1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for ratbox-respond stable. 4# 5# $Id: configure 21635 2006-01-11 21:52:17Z leeh $ 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246# Name of the host. 247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 248# so uname gets run too. 249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 251exec 6>&1 252 253# 254# Initializations. 255# 256ac_default_prefix=/usr/local 257ac_config_libobj_dir=. 258cross_compiling=no 259subdirs= 260MFLAGS= 261MAKEFLAGS= 262SHELL=${CONFIG_SHELL-/bin/sh} 263 264# Maximum number of lines to put in a shell here document. 265# This variable seems obsolete. It should probably be removed, and 266# only ac_max_sed_lines should be used. 267: ${ac_max_here_lines=38} 268 269# Identity of this package. 270PACKAGE_NAME='ratbox-respond' 271PACKAGE_TARNAME='ratbox-respond' 272PACKAGE_VERSION='stable' 273PACKAGE_STRING='ratbox-respond stable' 274PACKAGE_BUGREPORT='' 275 276ac_default_prefix=. 277ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CP MV TOUCH CPP EGREP SSL_SRCS_ENABLE SSL_INCLUDES SSL_LIBS LIBOBJS LTLIBOBJS' 278ac_subst_files='' 279 280# Initialize some variables set by options. 281ac_init_help= 282ac_init_version=false 283# The variables have the same names as the options, with 284# dashes changed to underlines. 285cache_file=/dev/null 286exec_prefix=NONE 287no_create= 288no_recursion= 289prefix=NONE 290program_prefix=NONE 291program_suffix=NONE 292program_transform_name=s,x,x, 293silent= 294site= 295srcdir= 296verbose= 297x_includes=NONE 298x_libraries=NONE 299 300# Installation directory options. 301# These are left unexpanded so users can "make install exec_prefix=/foo" 302# and all the variables that are supposed to be based on exec_prefix 303# by default will actually change. 304# Use braces instead of parens because sh, perl, etc. also accept them. 305bindir='${exec_prefix}/bin' 306sbindir='${exec_prefix}/sbin' 307libexecdir='${exec_prefix}/libexec' 308datadir='${prefix}/share' 309sysconfdir='${prefix}/etc' 310sharedstatedir='${prefix}/com' 311localstatedir='${prefix}/var' 312libdir='${exec_prefix}/lib' 313includedir='${prefix}/include' 314oldincludedir='/usr/include' 315infodir='${prefix}/info' 316mandir='${prefix}/man' 317 318ac_prev= 319for ac_option 320do 321 # If the previous option needs an argument, assign it. 322 if test -n "$ac_prev"; then 323 eval "$ac_prev=\$ac_option" 324 ac_prev= 325 continue 326 fi 327 328 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 329 330 # Accept the important Cygnus configure options, so we can diagnose typos. 331 332 case $ac_option in 333 334 -bindir | --bindir | --bindi | --bind | --bin | --bi) 335 ac_prev=bindir ;; 336 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 337 bindir=$ac_optarg ;; 338 339 -build | --build | --buil | --bui | --bu) 340 ac_prev=build_alias ;; 341 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 342 build_alias=$ac_optarg ;; 343 344 -cache-file | --cache-file | --cache-fil | --cache-fi \ 345 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 346 ac_prev=cache_file ;; 347 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 348 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 349 cache_file=$ac_optarg ;; 350 351 --config-cache | -C) 352 cache_file=config.cache ;; 353 354 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 355 ac_prev=datadir ;; 356 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 357 | --da=*) 358 datadir=$ac_optarg ;; 359 360 -disable-* | --disable-*) 361 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 362 # Reject names that are not valid shell variable names. 363 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 364 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 365 { (exit 1); exit 1; }; } 366 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 367 eval "enable_$ac_feature=no" ;; 368 369 -enable-* | --enable-*) 370 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 371 # Reject names that are not valid shell variable names. 372 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 373 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 374 { (exit 1); exit 1; }; } 375 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 376 case $ac_option in 377 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 378 *) ac_optarg=yes ;; 379 esac 380 eval "enable_$ac_feature='$ac_optarg'" ;; 381 382 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 383 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 384 | --exec | --exe | --ex) 385 ac_prev=exec_prefix ;; 386 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 387 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 388 | --exec=* | --exe=* | --ex=*) 389 exec_prefix=$ac_optarg ;; 390 391 -gas | --gas | --ga | --g) 392 # Obsolete; use --with-gas. 393 with_gas=yes ;; 394 395 -help | --help | --hel | --he | -h) 396 ac_init_help=long ;; 397 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 398 ac_init_help=recursive ;; 399 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 400 ac_init_help=short ;; 401 402 -host | --host | --hos | --ho) 403 ac_prev=host_alias ;; 404 -host=* | --host=* | --hos=* | --ho=*) 405 host_alias=$ac_optarg ;; 406 407 -includedir | --includedir | --includedi | --included | --include \ 408 | --includ | --inclu | --incl | --inc) 409 ac_prev=includedir ;; 410 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 411 | --includ=* | --inclu=* | --incl=* | --inc=*) 412 includedir=$ac_optarg ;; 413 414 -infodir | --infodir | --infodi | --infod | --info | --inf) 415 ac_prev=infodir ;; 416 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 417 infodir=$ac_optarg ;; 418 419 -libdir | --libdir | --libdi | --libd) 420 ac_prev=libdir ;; 421 -libdir=* | --libdir=* | --libdi=* | --libd=*) 422 libdir=$ac_optarg ;; 423 424 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 425 | --libexe | --libex | --libe) 426 ac_prev=libexecdir ;; 427 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 428 | --libexe=* | --libex=* | --libe=*) 429 libexecdir=$ac_optarg ;; 430 431 -localstatedir | --localstatedir | --localstatedi | --localstated \ 432 | --localstate | --localstat | --localsta | --localst \ 433 | --locals | --local | --loca | --loc | --lo) 434 ac_prev=localstatedir ;; 435 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 436 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 437 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 438 localstatedir=$ac_optarg ;; 439 440 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 441 ac_prev=mandir ;; 442 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 443 mandir=$ac_optarg ;; 444 445 -nfp | --nfp | --nf) 446 # Obsolete; use --without-fp. 447 with_fp=no ;; 448 449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 450 | --no-cr | --no-c | -n) 451 no_create=yes ;; 452 453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 455 no_recursion=yes ;; 456 457 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 458 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 459 | --oldin | --oldi | --old | --ol | --o) 460 ac_prev=oldincludedir ;; 461 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 462 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 463 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 464 oldincludedir=$ac_optarg ;; 465 466 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 467 ac_prev=prefix ;; 468 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 469 prefix=$ac_optarg ;; 470 471 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 472 | --program-pre | --program-pr | --program-p) 473 ac_prev=program_prefix ;; 474 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 475 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 476 program_prefix=$ac_optarg ;; 477 478 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 479 | --program-suf | --program-su | --program-s) 480 ac_prev=program_suffix ;; 481 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 482 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 483 program_suffix=$ac_optarg ;; 484 485 -program-transform-name | --program-transform-name \ 486 | --program-transform-nam | --program-transform-na \ 487 | --program-transform-n | --program-transform- \ 488 | --program-transform | --program-transfor \ 489 | --program-transfo | --program-transf \ 490 | --program-trans | --program-tran \ 491 | --progr-tra | --program-tr | --program-t) 492 ac_prev=program_transform_name ;; 493 -program-transform-name=* | --program-transform-name=* \ 494 | --program-transform-nam=* | --program-transform-na=* \ 495 | --program-transform-n=* | --program-transform-=* \ 496 | --program-transform=* | --program-transfor=* \ 497 | --program-transfo=* | --program-transf=* \ 498 | --program-trans=* | --program-tran=* \ 499 | --progr-tra=* | --program-tr=* | --program-t=*) 500 program_transform_name=$ac_optarg ;; 501 502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 503 | -silent | --silent | --silen | --sile | --sil) 504 silent=yes ;; 505 506 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 507 ac_prev=sbindir ;; 508 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 509 | --sbi=* | --sb=*) 510 sbindir=$ac_optarg ;; 511 512 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 513 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 514 | --sharedst | --shareds | --shared | --share | --shar \ 515 | --sha | --sh) 516 ac_prev=sharedstatedir ;; 517 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 518 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 519 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 520 | --sha=* | --sh=*) 521 sharedstatedir=$ac_optarg ;; 522 523 -site | --site | --sit) 524 ac_prev=site ;; 525 -site=* | --site=* | --sit=*) 526 site=$ac_optarg ;; 527 528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 529 ac_prev=srcdir ;; 530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 531 srcdir=$ac_optarg ;; 532 533 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 534 | --syscon | --sysco | --sysc | --sys | --sy) 535 ac_prev=sysconfdir ;; 536 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 537 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 538 sysconfdir=$ac_optarg ;; 539 540 -target | --target | --targe | --targ | --tar | --ta | --t) 541 ac_prev=target_alias ;; 542 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 543 target_alias=$ac_optarg ;; 544 545 -v | -verbose | --verbose | --verbos | --verbo | --verb) 546 verbose=yes ;; 547 548 -version | --version | --versio | --versi | --vers | -V) 549 ac_init_version=: ;; 550 551 -with-* | --with-*) 552 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid package name: $ac_package" >&2 556 { (exit 1); exit 1; }; } 557 ac_package=`echo $ac_package| sed 's/-/_/g'` 558 case $ac_option in 559 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 560 *) ac_optarg=yes ;; 561 esac 562 eval "with_$ac_package='$ac_optarg'" ;; 563 564 -without-* | --without-*) 565 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 566 # Reject names that are not valid shell variable names. 567 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 568 { echo "$as_me: error: invalid package name: $ac_package" >&2 569 { (exit 1); exit 1; }; } 570 ac_package=`echo $ac_package | sed 's/-/_/g'` 571 eval "with_$ac_package=no" ;; 572 573 --x) 574 # Obsolete; use --with-x. 575 with_x=yes ;; 576 577 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 578 | --x-incl | --x-inc | --x-in | --x-i) 579 ac_prev=x_includes ;; 580 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 581 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 582 x_includes=$ac_optarg ;; 583 584 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 585 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 586 ac_prev=x_libraries ;; 587 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 588 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 589 x_libraries=$ac_optarg ;; 590 591 -*) { echo "$as_me: error: unrecognized option: $ac_option 592Try \`$0 --help' for more information." >&2 593 { (exit 1); exit 1; }; } 594 ;; 595 596 *=*) 597 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 598 # Reject names that are not valid shell variable names. 599 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 600 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 601 { (exit 1); exit 1; }; } 602 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 603 eval "$ac_envvar='$ac_optarg'" 604 export $ac_envvar ;; 605 606 *) 607 # FIXME: should be removed in autoconf 3.0. 608 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 609 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 610 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 611 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 612 ;; 613 614 esac 615done 616 617if test -n "$ac_prev"; then 618 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 619 { echo "$as_me: error: missing argument to $ac_option" >&2 620 { (exit 1); exit 1; }; } 621fi 622 623# Be sure to have absolute paths. 624for ac_var in exec_prefix prefix 625do 626 eval ac_val=$`echo $ac_var` 627 case $ac_val in 628 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 629 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 630 { (exit 1); exit 1; }; };; 631 esac 632done 633 634# Be sure to have absolute paths. 635for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 636 localstatedir libdir includedir oldincludedir infodir mandir 637do 638 eval ac_val=$`echo $ac_var` 639 case $ac_val in 640 [\\/$]* | ?:[\\/]* ) ;; 641 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 642 { (exit 1); exit 1; }; };; 643 esac 644done 645 646# There might be people who depend on the old broken behavior: `$host' 647# used to hold the argument of --host etc. 648# FIXME: To remove some day. 649build=$build_alias 650host=$host_alias 651target=$target_alias 652 653# FIXME: To remove some day. 654if test "x$host_alias" != x; then 655 if test "x$build_alias" = x; then 656 cross_compiling=maybe 657 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 658 If a cross compiler is detected then cross compile mode will be used." >&2 659 elif test "x$build_alias" != "x$host_alias"; then 660 cross_compiling=yes 661 fi 662fi 663 664ac_tool_prefix= 665test -n "$host_alias" && ac_tool_prefix=$host_alias- 666 667test "$silent" = yes && exec 6>/dev/null 668 669 670# Find the source files, if location was not specified. 671if test -z "$srcdir"; then 672 ac_srcdir_defaulted=yes 673 # Try the directory containing this script, then its parent. 674 ac_confdir=`(dirname "$0") 2>/dev/null || 675$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 676 X"$0" : 'X\(//\)[^/]' \| \ 677 X"$0" : 'X\(//\)$' \| \ 678 X"$0" : 'X\(/\)' \| \ 679 . : '\(.\)' 2>/dev/null || 680echo X"$0" | 681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 682 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 683 /^X\(\/\/\)$/{ s//\1/; q; } 684 /^X\(\/\).*/{ s//\1/; q; } 685 s/.*/./; q'` 686 srcdir=$ac_confdir 687 if test ! -r $srcdir/$ac_unique_file; then 688 srcdir=.. 689 fi 690else 691 ac_srcdir_defaulted=no 692fi 693if test ! -r $srcdir/$ac_unique_file; then 694 if test "$ac_srcdir_defaulted" = yes; then 695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 696 { (exit 1); exit 1; }; } 697 else 698 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 699 { (exit 1); exit 1; }; } 700 fi 701fi 702(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 703 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 704 { (exit 1); exit 1; }; } 705srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 706ac_env_build_alias_set=${build_alias+set} 707ac_env_build_alias_value=$build_alias 708ac_cv_env_build_alias_set=${build_alias+set} 709ac_cv_env_build_alias_value=$build_alias 710ac_env_host_alias_set=${host_alias+set} 711ac_env_host_alias_value=$host_alias 712ac_cv_env_host_alias_set=${host_alias+set} 713ac_cv_env_host_alias_value=$host_alias 714ac_env_target_alias_set=${target_alias+set} 715ac_env_target_alias_value=$target_alias 716ac_cv_env_target_alias_set=${target_alias+set} 717ac_cv_env_target_alias_value=$target_alias 718ac_env_CC_set=${CC+set} 719ac_env_CC_value=$CC 720ac_cv_env_CC_set=${CC+set} 721ac_cv_env_CC_value=$CC 722ac_env_CFLAGS_set=${CFLAGS+set} 723ac_env_CFLAGS_value=$CFLAGS 724ac_cv_env_CFLAGS_set=${CFLAGS+set} 725ac_cv_env_CFLAGS_value=$CFLAGS 726ac_env_LDFLAGS_set=${LDFLAGS+set} 727ac_env_LDFLAGS_value=$LDFLAGS 728ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 729ac_cv_env_LDFLAGS_value=$LDFLAGS 730ac_env_CPPFLAGS_set=${CPPFLAGS+set} 731ac_env_CPPFLAGS_value=$CPPFLAGS 732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 733ac_cv_env_CPPFLAGS_value=$CPPFLAGS 734ac_env_CPP_set=${CPP+set} 735ac_env_CPP_value=$CPP 736ac_cv_env_CPP_set=${CPP+set} 737ac_cv_env_CPP_value=$CPP 738 739# 740# Report the --help message. 741# 742if test "$ac_init_help" = "long"; then 743 # Omit some internal or obsolete options to make the list less imposing. 744 # This message is too long to be a string in the A/UX 3.1 sh. 745 cat <<_ACEOF 746\`configure' configures ratbox-respond stable to adapt to many kinds of systems. 747 748Usage: $0 [OPTION]... [VAR=VALUE]... 749 750To assign environment variables (e.g., CC, CFLAGS...), specify them as 751VAR=VALUE. See below for descriptions of some of the useful variables. 752 753Defaults for the options are specified in brackets. 754 755Configuration: 756 -h, --help display this help and exit 757 --help=short display options specific to this package 758 --help=recursive display the short help of all the included packages 759 -V, --version display version information and exit 760 -q, --quiet, --silent do not print \`checking...' messages 761 --cache-file=FILE cache test results in FILE [disabled] 762 -C, --config-cache alias for \`--cache-file=config.cache' 763 -n, --no-create do not create output files 764 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 765 766_ACEOF 767 768 cat <<_ACEOF 769Installation directories: 770 --prefix=PREFIX install architecture-independent files in PREFIX 771 [$ac_default_prefix] 772 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 773 [PREFIX] 774 775By default, \`make install' will install all the files in 776\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 777an installation prefix other than \`$ac_default_prefix' using \`--prefix', 778for instance \`--prefix=\$HOME'. 779 780For better control, use the options below. 781 782Fine tuning of the installation directories: 783 --bindir=DIR user executables [EPREFIX/bin] 784 --sbindir=DIR system admin executables [EPREFIX/sbin] 785 --libexecdir=DIR program executables [EPREFIX/libexec] 786 --datadir=DIR read-only architecture-independent data [PREFIX/share] 787 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 788 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 789 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 790 --libdir=DIR object code libraries [EPREFIX/lib] 791 --includedir=DIR C header files [PREFIX/include] 792 --oldincludedir=DIR C header files for non-gcc [/usr/include] 793 --infodir=DIR info documentation [PREFIX/info] 794 --mandir=DIR man documentation [PREFIX/man] 795_ACEOF 796 797 cat <<\_ACEOF 798_ACEOF 799fi 800 801if test -n "$ac_init_help"; then 802 case $ac_init_help in 803 short | recursive ) echo "Configuration of ratbox-respond stable:";; 804 esac 805 cat <<\_ACEOF 806 807Optional Features: 808 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 809 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 810 --enable-openssl=DIR Enable OpenSSL support (DIR optional). 811 812Some influential environment variables: 813 CC C compiler command 814 CFLAGS C compiler flags 815 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 816 nonstandard directory <lib dir> 817 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 818 headers in a nonstandard directory <include dir> 819 CPP C preprocessor 820 821Use these variables to override the choices made by `configure' or to help 822it to find libraries and programs with nonstandard names/locations. 823 824_ACEOF 825fi 826 827if test "$ac_init_help" = "recursive"; then 828 # If there are subdirs, report their specific --help. 829 ac_popdir=`pwd` 830 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 831 test -d $ac_dir || continue 832 ac_builddir=. 833 834if test "$ac_dir" != .; then 835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 836 # A "../" for each directory in $ac_dir_suffix. 837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 838else 839 ac_dir_suffix= ac_top_builddir= 840fi 841 842case $srcdir in 843 .) # No --srcdir option. We are building in place. 844 ac_srcdir=. 845 if test -z "$ac_top_builddir"; then 846 ac_top_srcdir=. 847 else 848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 849 fi ;; 850 [\\/]* | ?:[\\/]* ) # Absolute path. 851 ac_srcdir=$srcdir$ac_dir_suffix; 852 ac_top_srcdir=$srcdir ;; 853 *) # Relative path. 854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 855 ac_top_srcdir=$ac_top_builddir$srcdir ;; 856esac 857 858# Do not use `cd foo && pwd` to compute absolute paths, because 859# the directories may not exist. 860case `pwd` in 861.) ac_abs_builddir="$ac_dir";; 862*) 863 case "$ac_dir" in 864 .) ac_abs_builddir=`pwd`;; 865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 866 *) ac_abs_builddir=`pwd`/"$ac_dir";; 867 esac;; 868esac 869case $ac_abs_builddir in 870.) ac_abs_top_builddir=${ac_top_builddir}.;; 871*) 872 case ${ac_top_builddir}. in 873 .) ac_abs_top_builddir=$ac_abs_builddir;; 874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 876 esac;; 877esac 878case $ac_abs_builddir in 879.) ac_abs_srcdir=$ac_srcdir;; 880*) 881 case $ac_srcdir in 882 .) ac_abs_srcdir=$ac_abs_builddir;; 883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 885 esac;; 886esac 887case $ac_abs_builddir in 888.) ac_abs_top_srcdir=$ac_top_srcdir;; 889*) 890 case $ac_top_srcdir in 891 .) ac_abs_top_srcdir=$ac_abs_builddir;; 892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 894 esac;; 895esac 896 897 cd $ac_dir 898 # Check for guested configure; otherwise get Cygnus style configure. 899 if test -f $ac_srcdir/configure.gnu; then 900 echo 901 $SHELL $ac_srcdir/configure.gnu --help=recursive 902 elif test -f $ac_srcdir/configure; then 903 echo 904 $SHELL $ac_srcdir/configure --help=recursive 905 elif test -f $ac_srcdir/configure.ac || 906 test -f $ac_srcdir/configure.in; then 907 echo 908 $ac_configure --help 909 else 910 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 911 fi 912 cd "$ac_popdir" 913 done 914fi 915 916test -n "$ac_init_help" && exit 0 917if $ac_init_version; then 918 cat <<\_ACEOF 919ratbox-respond configure stable 920generated by GNU Autoconf 2.59 921 922Copyright (C) 2003 Free Software Foundation, Inc. 923This configure script is free software; the Free Software Foundation 924gives unlimited permission to copy, distribute and modify it. 925 926$Id: configure 21635 2006-01-11 21:52:17Z leeh $ 927_ACEOF 928 exit 0 929fi 930exec 5>config.log 931cat >&5 <<_ACEOF 932This file contains any messages produced by compilers while 933running configure, to aid debugging if configure makes a mistake. 934 935It was created by ratbox-respond $as_me stable, which was 936generated by GNU Autoconf 2.59. Invocation command line was 937 938 $ $0 $@ 939 940_ACEOF 941{ 942cat <<_ASUNAME 943## --------- ## 944## Platform. ## 945## --------- ## 946 947hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 948uname -m = `(uname -m) 2>/dev/null || echo unknown` 949uname -r = `(uname -r) 2>/dev/null || echo unknown` 950uname -s = `(uname -s) 2>/dev/null || echo unknown` 951uname -v = `(uname -v) 2>/dev/null || echo unknown` 952 953/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 954/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 955 956/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 957/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 958/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 959hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 960/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 961/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 962/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 963 964_ASUNAME 965 966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 967for as_dir in $PATH 968do 969 IFS=$as_save_IFS 970 test -z "$as_dir" && as_dir=. 971 echo "PATH: $as_dir" 972done 973 974} >&5 975 976cat >&5 <<_ACEOF 977 978 979## ----------- ## 980## Core tests. ## 981## ----------- ## 982 983_ACEOF 984 985 986# Keep a trace of the command line. 987# Strip out --no-create and --no-recursion so they do not pile up. 988# Strip out --silent because we don't want to record it for future runs. 989# Also quote any args containing shell meta-characters. 990# Make two passes to allow for proper duplicate-argument suppression. 991ac_configure_args= 992ac_configure_args0= 993ac_configure_args1= 994ac_sep= 995ac_must_keep_next=false 996for ac_pass in 1 2 997do 998 for ac_arg 999 do 1000 case $ac_arg in 1001 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1003 | -silent | --silent | --silen | --sile | --sil) 1004 continue ;; 1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1006 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1007 esac 1008 case $ac_pass in 1009 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1010 2) 1011 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1012 if test $ac_must_keep_next = true; then 1013 ac_must_keep_next=false # Got value, back to normal. 1014 else 1015 case $ac_arg in 1016 *=* | --config-cache | -C | -disable-* | --disable-* \ 1017 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1018 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1019 | -with-* | --with-* | -without-* | --without-* | --x) 1020 case "$ac_configure_args0 " in 1021 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1022 esac 1023 ;; 1024 -* ) ac_must_keep_next=true ;; 1025 esac 1026 fi 1027 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1028 # Get rid of the leading space. 1029 ac_sep=" " 1030 ;; 1031 esac 1032 done 1033done 1034$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1035$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1036 1037# When interrupted or exit'd, cleanup temporary files, and complete 1038# config.log. We remove comments because anyway the quotes in there 1039# would cause problems or look ugly. 1040# WARNING: Be sure not to use single quotes in there, as some shells, 1041# such as our DU 5.0 friend, will then `close' the trap. 1042trap 'exit_status=$? 1043 # Save into config.log some information that might help in debugging. 1044 { 1045 echo 1046 1047 cat <<\_ASBOX 1048## ---------------- ## 1049## Cache variables. ## 1050## ---------------- ## 1051_ASBOX 1052 echo 1053 # The following way of writing the cache mishandles newlines in values, 1054{ 1055 (set) 2>&1 | 1056 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1057 *ac_space=\ *) 1058 sed -n \ 1059 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1061 ;; 1062 *) 1063 sed -n \ 1064 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1065 ;; 1066 esac; 1067} 1068 echo 1069 1070 cat <<\_ASBOX 1071## ----------------- ## 1072## Output variables. ## 1073## ----------------- ## 1074_ASBOX 1075 echo 1076 for ac_var in $ac_subst_vars 1077 do 1078 eval ac_val=$`echo $ac_var` 1079 echo "$ac_var='"'"'$ac_val'"'"'" 1080 done | sort 1081 echo 1082 1083 if test -n "$ac_subst_files"; then 1084 cat <<\_ASBOX 1085## ------------- ## 1086## Output files. ## 1087## ------------- ## 1088_ASBOX 1089 echo 1090 for ac_var in $ac_subst_files 1091 do 1092 eval ac_val=$`echo $ac_var` 1093 echo "$ac_var='"'"'$ac_val'"'"'" 1094 done | sort 1095 echo 1096 fi 1097 1098 if test -s confdefs.h; then 1099 cat <<\_ASBOX 1100## ----------- ## 1101## confdefs.h. ## 1102## ----------- ## 1103_ASBOX 1104 echo 1105 sed "/^$/d" confdefs.h | sort 1106 echo 1107 fi 1108 test "$ac_signal" != 0 && 1109 echo "$as_me: caught signal $ac_signal" 1110 echo "$as_me: exit $exit_status" 1111 } >&5 1112 rm -f core *.core && 1113 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1114 exit $exit_status 1115 ' 0 1116for ac_signal in 1 2 13 15; do 1117 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1118done 1119ac_signal=0 1120 1121# confdefs.h avoids OS command line length limits that DEFS can exceed. 1122rm -rf conftest* confdefs.h 1123# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1124echo >confdefs.h 1125 1126# Predefined preprocessor variables. 1127 1128cat >>confdefs.h <<_ACEOF 1129#define PACKAGE_NAME "$PACKAGE_NAME" 1130_ACEOF 1131 1132 1133cat >>confdefs.h <<_ACEOF 1134#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1135_ACEOF 1136 1137 1138cat >>confdefs.h <<_ACEOF 1139#define PACKAGE_VERSION "$PACKAGE_VERSION" 1140_ACEOF 1141 1142 1143cat >>confdefs.h <<_ACEOF 1144#define PACKAGE_STRING "$PACKAGE_STRING" 1145_ACEOF 1146 1147 1148cat >>confdefs.h <<_ACEOF 1149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1150_ACEOF 1151 1152 1153# Let the site file select an alternate cache file if it wants to. 1154# Prefer explicitly selected file to automatically selected ones. 1155if test -z "$CONFIG_SITE"; then 1156 if test "x$prefix" != xNONE; then 1157 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1158 else 1159 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1160 fi 1161fi 1162for ac_site_file in $CONFIG_SITE; do 1163 if test -r "$ac_site_file"; then 1164 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1165echo "$as_me: loading site script $ac_site_file" >&6;} 1166 sed 's/^/| /' "$ac_site_file" >&5 1167 . "$ac_site_file" 1168 fi 1169done 1170 1171if test -r "$cache_file"; then 1172 # Some versions of bash will fail to source /dev/null (special 1173 # files actually), so we avoid doing that. 1174 if test -f "$cache_file"; then 1175 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1176echo "$as_me: loading cache $cache_file" >&6;} 1177 case $cache_file in 1178 [\\/]* | ?:[\\/]* ) . $cache_file;; 1179 *) . ./$cache_file;; 1180 esac 1181 fi 1182else 1183 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1184echo "$as_me: creating cache $cache_file" >&6;} 1185 >$cache_file 1186fi 1187 1188# Check that the precious variables saved in the cache have kept the same 1189# value. 1190ac_cache_corrupted=false 1191for ac_var in `(set) 2>&1 | 1192 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1193 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1194 eval ac_new_set=\$ac_env_${ac_var}_set 1195 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1196 eval ac_new_val="\$ac_env_${ac_var}_value" 1197 case $ac_old_set,$ac_new_set in 1198 set,) 1199 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1200echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1201 ac_cache_corrupted=: ;; 1202 ,set) 1203 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1204echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1205 ac_cache_corrupted=: ;; 1206 ,);; 1207 *) 1208 if test "x$ac_old_val" != "x$ac_new_val"; then 1209 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1210echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1211 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1212echo "$as_me: former value: $ac_old_val" >&2;} 1213 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1214echo "$as_me: current value: $ac_new_val" >&2;} 1215 ac_cache_corrupted=: 1216 fi;; 1217 esac 1218 # Pass precious variables to config.status. 1219 if test "$ac_new_set" = set; then 1220 case $ac_new_val in 1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1222 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1223 *) ac_arg=$ac_var=$ac_new_val ;; 1224 esac 1225 case " $ac_configure_args " in 1226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1227 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1228 esac 1229 fi 1230done 1231if $ac_cache_corrupted; then 1232 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1233echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1234 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1235echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1236 { (exit 1); exit 1; }; } 1237fi 1238 1239ac_ext=c 1240ac_cpp='$CPP $CPPFLAGS' 1241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1243ac_compiler_gnu=$ac_cv_c_compiler_gnu 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 ac_config_headers="$ac_config_headers setup.h" 1273 1274 1275 1276cat >>confdefs.h <<\_ACEOF 1277#define _GNU_SOURCE 1 1278_ACEOF 1279 1280 1281 1282ac_ext=c 1283ac_cpp='$CPP $CPPFLAGS' 1284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1286ac_compiler_gnu=$ac_cv_c_compiler_gnu 1287if test -n "$ac_tool_prefix"; then 1288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1289set dummy ${ac_tool_prefix}gcc; ac_word=$2 1290echo "$as_me:$LINENO: checking for $ac_word" >&5 1291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1292if test "${ac_cv_prog_CC+set}" = set; then 1293 echo $ECHO_N "(cached) $ECHO_C" >&6 1294else 1295 if test -n "$CC"; then 1296 ac_cv_prog_CC="$CC" # Let the user override the test. 1297else 1298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1299for as_dir in $PATH 1300do 1301 IFS=$as_save_IFS 1302 test -z "$as_dir" && as_dir=. 1303 for ac_exec_ext in '' $ac_executable_extensions; do 1304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1305 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1307 break 2 1308 fi 1309done 1310done 1311 1312fi 1313fi 1314CC=$ac_cv_prog_CC 1315if test -n "$CC"; then 1316 echo "$as_me:$LINENO: result: $CC" >&5 1317echo "${ECHO_T}$CC" >&6 1318else 1319 echo "$as_me:$LINENO: result: no" >&5 1320echo "${ECHO_T}no" >&6 1321fi 1322 1323fi 1324if test -z "$ac_cv_prog_CC"; then 1325 ac_ct_CC=$CC 1326 # Extract the first word of "gcc", so it can be a program name with args. 1327set dummy gcc; ac_word=$2 1328echo "$as_me:$LINENO: checking for $ac_word" >&5 1329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1330if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1331 echo $ECHO_N "(cached) $ECHO_C" >&6 1332else 1333 if test -n "$ac_ct_CC"; then 1334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1335else 1336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1337for as_dir in $PATH 1338do 1339 IFS=$as_save_IFS 1340 test -z "$as_dir" && as_dir=. 1341 for ac_exec_ext in '' $ac_executable_extensions; do 1342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1343 ac_cv_prog_ac_ct_CC="gcc" 1344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1345 break 2 1346 fi 1347done 1348done 1349 1350fi 1351fi 1352ac_ct_CC=$ac_cv_prog_ac_ct_CC 1353if test -n "$ac_ct_CC"; then 1354 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1355echo "${ECHO_T}$ac_ct_CC" >&6 1356else 1357 echo "$as_me:$LINENO: result: no" >&5 1358echo "${ECHO_T}no" >&6 1359fi 1360 1361 CC=$ac_ct_CC 1362else 1363 CC="$ac_cv_prog_CC" 1364fi 1365 1366if test -z "$CC"; then 1367 if test -n "$ac_tool_prefix"; then 1368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1369set dummy ${ac_tool_prefix}cc; ac_word=$2 1370echo "$as_me:$LINENO: checking for $ac_word" >&5 1371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1372if test "${ac_cv_prog_CC+set}" = set; then 1373 echo $ECHO_N "(cached) $ECHO_C" >&6 1374else 1375 if test -n "$CC"; then 1376 ac_cv_prog_CC="$CC" # Let the user override the test. 1377else 1378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1379for as_dir in $PATH 1380do 1381 IFS=$as_save_IFS 1382 test -z "$as_dir" && as_dir=. 1383 for ac_exec_ext in '' $ac_executable_extensions; do 1384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1385 ac_cv_prog_CC="${ac_tool_prefix}cc" 1386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1387 break 2 1388 fi 1389done 1390done 1391 1392fi 1393fi 1394CC=$ac_cv_prog_CC 1395if test -n "$CC"; then 1396 echo "$as_me:$LINENO: result: $CC" >&5 1397echo "${ECHO_T}$CC" >&6 1398else 1399 echo "$as_me:$LINENO: result: no" >&5 1400echo "${ECHO_T}no" >&6 1401fi 1402 1403fi 1404if test -z "$ac_cv_prog_CC"; then 1405 ac_ct_CC=$CC 1406 # Extract the first word of "cc", so it can be a program name with args. 1407set dummy cc; ac_word=$2 1408echo "$as_me:$LINENO: checking for $ac_word" >&5 1409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1411 echo $ECHO_N "(cached) $ECHO_C" >&6 1412else 1413 if test -n "$ac_ct_CC"; then 1414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1415else 1416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1417for as_dir in $PATH 1418do 1419 IFS=$as_save_IFS 1420 test -z "$as_dir" && as_dir=. 1421 for ac_exec_ext in '' $ac_executable_extensions; do 1422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1423 ac_cv_prog_ac_ct_CC="cc" 1424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1425 break 2 1426 fi 1427done 1428done 1429 1430fi 1431fi 1432ac_ct_CC=$ac_cv_prog_ac_ct_CC 1433if test -n "$ac_ct_CC"; then 1434 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1435echo "${ECHO_T}$ac_ct_CC" >&6 1436else 1437 echo "$as_me:$LINENO: result: no" >&5 1438echo "${ECHO_T}no" >&6 1439fi 1440 1441 CC=$ac_ct_CC 1442else 1443 CC="$ac_cv_prog_CC" 1444fi 1445 1446fi 1447if test -z "$CC"; then 1448 # Extract the first word of "cc", so it can be a program name with args. 1449set dummy cc; ac_word=$2 1450echo "$as_me:$LINENO: checking for $ac_word" >&5 1451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1452if test "${ac_cv_prog_CC+set}" = set; then 1453 echo $ECHO_N "(cached) $ECHO_C" >&6 1454else 1455 if test -n "$CC"; then 1456 ac_cv_prog_CC="$CC" # Let the user override the test. 1457else 1458 ac_prog_rejected=no 1459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1460for as_dir in $PATH 1461do 1462 IFS=$as_save_IFS 1463 test -z "$as_dir" && as_dir=. 1464 for ac_exec_ext in '' $ac_executable_extensions; do 1465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1467 ac_prog_rejected=yes 1468 continue 1469 fi 1470 ac_cv_prog_CC="cc" 1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1472 break 2 1473 fi 1474done 1475done 1476 1477if test $ac_prog_rejected = yes; then 1478 # We found a bogon in the path, so make sure we never use it. 1479 set dummy $ac_cv_prog_CC 1480 shift 1481 if test $# != 0; then 1482 # We chose a different compiler from the bogus one. 1483 # However, it has the same basename, so the bogon will be chosen 1484 # first if we set CC to just the basename; use the full file name. 1485 shift 1486 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1487 fi 1488fi 1489fi 1490fi 1491CC=$ac_cv_prog_CC 1492if test -n "$CC"; then 1493 echo "$as_me:$LINENO: result: $CC" >&5 1494echo "${ECHO_T}$CC" >&6 1495else 1496 echo "$as_me:$LINENO: result: no" >&5 1497echo "${ECHO_T}no" >&6 1498fi 1499 1500fi 1501if test -z "$CC"; then 1502 if test -n "$ac_tool_prefix"; then 1503 for ac_prog in cl 1504 do 1505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1506set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1507echo "$as_me:$LINENO: checking for $ac_word" >&5 1508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1509if test "${ac_cv_prog_CC+set}" = set; then 1510 echo $ECHO_N "(cached) $ECHO_C" >&6 1511else 1512 if test -n "$CC"; then 1513 ac_cv_prog_CC="$CC" # Let the user override the test. 1514else 1515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1516for as_dir in $PATH 1517do 1518 IFS=$as_save_IFS 1519 test -z "$as_dir" && as_dir=. 1520 for ac_exec_ext in '' $ac_executable_extensions; do 1521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1524 break 2 1525 fi 1526done 1527done 1528 1529fi 1530fi 1531CC=$ac_cv_prog_CC 1532if test -n "$CC"; then 1533 echo "$as_me:$LINENO: result: $CC" >&5 1534echo "${ECHO_T}$CC" >&6 1535else 1536 echo "$as_me:$LINENO: result: no" >&5 1537echo "${ECHO_T}no" >&6 1538fi 1539 1540 test -n "$CC" && break 1541 done 1542fi 1543if test -z "$CC"; then 1544 ac_ct_CC=$CC 1545 for ac_prog in cl 1546do 1547 # Extract the first word of "$ac_prog", so it can be a program name with args. 1548set dummy $ac_prog; ac_word=$2 1549echo "$as_me:$LINENO: checking for $ac_word" >&5 1550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1552 echo $ECHO_N "(cached) $ECHO_C" >&6 1553else 1554 if test -n "$ac_ct_CC"; then 1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1556else 1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1558for as_dir in $PATH 1559do 1560 IFS=$as_save_IFS 1561 test -z "$as_dir" && as_dir=. 1562 for ac_exec_ext in '' $ac_executable_extensions; do 1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1564 ac_cv_prog_ac_ct_CC="$ac_prog" 1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1566 break 2 1567 fi 1568done 1569done 1570 1571fi 1572fi 1573ac_ct_CC=$ac_cv_prog_ac_ct_CC 1574if test -n "$ac_ct_CC"; then 1575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1576echo "${ECHO_T}$ac_ct_CC" >&6 1577else 1578 echo "$as_me:$LINENO: result: no" >&5 1579echo "${ECHO_T}no" >&6 1580fi 1581 1582 test -n "$ac_ct_CC" && break 1583done 1584 1585 CC=$ac_ct_CC 1586fi 1587 1588fi 1589 1590 1591test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1592See \`config.log' for more details." >&5 1593echo "$as_me: error: no acceptable C compiler found in \$PATH 1594See \`config.log' for more details." >&2;} 1595 { (exit 1); exit 1; }; } 1596 1597# Provide some information about the compiler. 1598echo "$as_me:$LINENO:" \ 1599 "checking for C compiler version" >&5 1600ac_compiler=`set X $ac_compile; echo $2` 1601{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1602 (eval $ac_compiler --version </dev/null >&5) 2>&5 1603 ac_status=$? 1604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1605 (exit $ac_status); } 1606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1607 (eval $ac_compiler -v </dev/null >&5) 2>&5 1608 ac_status=$? 1609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1610 (exit $ac_status); } 1611{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1612 (eval $ac_compiler -V </dev/null >&5) 2>&5 1613 ac_status=$? 1614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1615 (exit $ac_status); } 1616 1617cat >conftest.$ac_ext <<_ACEOF 1618/* confdefs.h. */ 1619_ACEOF 1620cat confdefs.h >>conftest.$ac_ext 1621cat >>conftest.$ac_ext <<_ACEOF 1622/* end confdefs.h. */ 1623 1624int 1625main () 1626{ 1627 1628 ; 1629 return 0; 1630} 1631_ACEOF 1632ac_clean_files_save=$ac_clean_files 1633ac_clean_files="$ac_clean_files a.out a.exe b.out" 1634# Try to create an executable without -o first, disregard a.out. 1635# It will help us diagnose broken compilers, and finding out an intuition 1636# of exeext. 1637echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1638echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1639ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1640if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1641 (eval $ac_link_default) 2>&5 1642 ac_status=$? 1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1644 (exit $ac_status); }; then 1645 # Find the output, starting from the most likely. This scheme is 1646# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1647# resort. 1648 1649# Be careful to initialize this variable, since it used to be cached. 1650# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1651ac_cv_exeext= 1652# b.out is created by i960 compilers. 1653for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1654do 1655 test -f "$ac_file" || continue 1656 case $ac_file in 1657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1658 ;; 1659 conftest.$ac_ext ) 1660 # This is the source file. 1661 ;; 1662 [ab].out ) 1663 # We found the default executable, but exeext='' is most 1664 # certainly right. 1665 break;; 1666 *.* ) 1667 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1668 # FIXME: I believe we export ac_cv_exeext for Libtool, 1669 # but it would be cool to find out if it's true. Does anybody 1670 # maintain Libtool? --akim. 1671 export ac_cv_exeext 1672 break;; 1673 * ) 1674 break;; 1675 esac 1676done 1677else 1678 echo "$as_me: failed program was:" >&5 1679sed 's/^/| /' conftest.$ac_ext >&5 1680 1681{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1682See \`config.log' for more details." >&5 1683echo "$as_me: error: C compiler cannot create executables 1684See \`config.log' for more details." >&2;} 1685 { (exit 77); exit 77; }; } 1686fi 1687 1688ac_exeext=$ac_cv_exeext 1689echo "$as_me:$LINENO: result: $ac_file" >&5 1690echo "${ECHO_T}$ac_file" >&6 1691 1692# Check the compiler produces executables we can run. If not, either 1693# the compiler is broken, or we cross compile. 1694echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1695echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1696# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1697# If not cross compiling, check that we can run a simple program. 1698if test "$cross_compiling" != yes; then 1699 if { ac_try='./$ac_file' 1700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1701 (eval $ac_try) 2>&5 1702 ac_status=$? 1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1704 (exit $ac_status); }; }; then 1705 cross_compiling=no 1706 else 1707 if test "$cross_compiling" = maybe; then 1708 cross_compiling=yes 1709 else 1710 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1711If you meant to cross compile, use \`--host'. 1712See \`config.log' for more details." >&5 1713echo "$as_me: error: cannot run C compiled programs. 1714If you meant to cross compile, use \`--host'. 1715See \`config.log' for more details." >&2;} 1716 { (exit 1); exit 1; }; } 1717 fi 1718 fi 1719fi 1720echo "$as_me:$LINENO: result: yes" >&5 1721echo "${ECHO_T}yes" >&6 1722 1723rm -f a.out a.exe conftest$ac_cv_exeext b.out 1724ac_clean_files=$ac_clean_files_save 1725# Check the compiler produces executables we can run. If not, either 1726# the compiler is broken, or we cross compile. 1727echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1728echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1729echo "$as_me:$LINENO: result: $cross_compiling" >&5 1730echo "${ECHO_T}$cross_compiling" >&6 1731 1732echo "$as_me:$LINENO: checking for suffix of executables" >&5 1733echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1735 (eval $ac_link) 2>&5 1736 ac_status=$? 1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1738 (exit $ac_status); }; then 1739 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1740# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1741# work properly (i.e., refer to `conftest.exe'), while it won't with 1742# `rm'. 1743for ac_file in conftest.exe conftest conftest.*; do 1744 test -f "$ac_file" || continue 1745 case $ac_file in 1746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1748 export ac_cv_exeext 1749 break;; 1750 * ) break;; 1751 esac 1752done 1753else 1754 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1755See \`config.log' for more details." >&5 1756echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1757See \`config.log' for more details." >&2;} 1758 { (exit 1); exit 1; }; } 1759fi 1760 1761rm -f conftest$ac_cv_exeext 1762echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1763echo "${ECHO_T}$ac_cv_exeext" >&6 1764 1765rm -f conftest.$ac_ext 1766EXEEXT=$ac_cv_exeext 1767ac_exeext=$EXEEXT 1768echo "$as_me:$LINENO: checking for suffix of object files" >&5 1769echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1770if test "${ac_cv_objext+set}" = set; then 1771 echo $ECHO_N "(cached) $ECHO_C" >&6 1772else 1773 cat >conftest.$ac_ext <<_ACEOF 1774/* confdefs.h. */ 1775_ACEOF 1776cat confdefs.h >>conftest.$ac_ext 1777cat >>conftest.$ac_ext <<_ACEOF 1778/* end confdefs.h. */ 1779 1780int 1781main () 1782{ 1783 1784 ; 1785 return 0; 1786} 1787_ACEOF 1788rm -f conftest.o conftest.obj 1789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1790 (eval $ac_compile) 2>&5 1791 ac_status=$? 1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1793 (exit $ac_status); }; then 1794 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1795 case $ac_file in 1796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1798 break;; 1799 esac 1800done 1801else 1802 echo "$as_me: failed program was:" >&5 1803sed 's/^/| /' conftest.$ac_ext >&5 1804 1805{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1806See \`config.log' for more details." >&5 1807echo "$as_me: error: cannot compute suffix of object files: cannot compile 1808See \`config.log' for more details." >&2;} 1809 { (exit 1); exit 1; }; } 1810fi 1811 1812rm -f conftest.$ac_cv_objext conftest.$ac_ext 1813fi 1814echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1815echo "${ECHO_T}$ac_cv_objext" >&6 1816OBJEXT=$ac_cv_objext 1817ac_objext=$OBJEXT 1818echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1819echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1820if test "${ac_cv_c_compiler_gnu+set}" = set; then 1821 echo $ECHO_N "(cached) $ECHO_C" >&6 1822else 1823 cat >conftest.$ac_ext <<_ACEOF 1824/* confdefs.h. */ 1825_ACEOF 1826cat confdefs.h >>conftest.$ac_ext 1827cat >>conftest.$ac_ext <<_ACEOF 1828/* end confdefs.h. */ 1829 1830int 1831main () 1832{ 1833#ifndef __GNUC__ 1834 choke me 1835#endif 1836 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841rm -f conftest.$ac_objext 1842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1843 (eval $ac_compile) 2>conftest.er1 1844 ac_status=$? 1845 grep -v '^ *+' conftest.er1 >conftest.err 1846 rm -f conftest.er1 1847 cat conftest.err >&5 1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1849 (exit $ac_status); } && 1850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1852 (eval $ac_try) 2>&5 1853 ac_status=$? 1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1855 (exit $ac_status); }; } && 1856 { ac_try='test -s conftest.$ac_objext' 1857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1858 (eval $ac_try) 2>&5 1859 ac_status=$? 1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1861 (exit $ac_status); }; }; then 1862 ac_compiler_gnu=yes 1863else 1864 echo "$as_me: failed program was:" >&5 1865sed 's/^/| /' conftest.$ac_ext >&5 1866 1867ac_compiler_gnu=no 1868fi 1869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1870ac_cv_c_compiler_gnu=$ac_compiler_gnu 1871 1872fi 1873echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1874echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1875GCC=`test $ac_compiler_gnu = yes && echo yes` 1876ac_test_CFLAGS=${CFLAGS+set} 1877ac_save_CFLAGS=$CFLAGS 1878CFLAGS="-g" 1879echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1880echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1881if test "${ac_cv_prog_cc_g+set}" = set; then 1882 echo $ECHO_N "(cached) $ECHO_C" >&6 1883else 1884 cat >conftest.$ac_ext <<_ACEOF 1885/* confdefs.h. */ 1886_ACEOF 1887cat confdefs.h >>conftest.$ac_ext 1888cat >>conftest.$ac_ext <<_ACEOF 1889/* end confdefs.h. */ 1890 1891int 1892main () 1893{ 1894 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899rm -f conftest.$ac_objext 1900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1901 (eval $ac_compile) 2>conftest.er1 1902 ac_status=$? 1903 grep -v '^ *+' conftest.er1 >conftest.err 1904 rm -f conftest.er1 1905 cat conftest.err >&5 1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1907 (exit $ac_status); } && 1908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1910 (eval $ac_try) 2>&5 1911 ac_status=$? 1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1913 (exit $ac_status); }; } && 1914 { ac_try='test -s conftest.$ac_objext' 1915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1916 (eval $ac_try) 2>&5 1917 ac_status=$? 1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1919 (exit $ac_status); }; }; then 1920 ac_cv_prog_cc_g=yes 1921else 1922 echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925ac_cv_prog_cc_g=no 1926fi 1927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1928fi 1929echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1930echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1931if test "$ac_test_CFLAGS" = set; then 1932 CFLAGS=$ac_save_CFLAGS 1933elif test $ac_cv_prog_cc_g = yes; then 1934 if test "$GCC" = yes; then 1935 CFLAGS="-g -O2" 1936 else 1937 CFLAGS="-g" 1938 fi 1939else 1940 if test "$GCC" = yes; then 1941 CFLAGS="-O2" 1942 else 1943 CFLAGS= 1944 fi 1945fi 1946echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1947echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1948if test "${ac_cv_prog_cc_stdc+set}" = set; then 1949 echo $ECHO_N "(cached) $ECHO_C" >&6 1950else 1951 ac_cv_prog_cc_stdc=no 1952ac_save_CC=$CC 1953cat >conftest.$ac_ext <<_ACEOF 1954/* confdefs.h. */ 1955_ACEOF 1956cat confdefs.h >>conftest.$ac_ext 1957cat >>conftest.$ac_ext <<_ACEOF 1958/* end confdefs.h. */ 1959#include <stdarg.h> 1960#include <stdio.h> 1961#include <sys/types.h> 1962#include <sys/stat.h> 1963/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1964struct buf { int x; }; 1965FILE * (*rcsopen) (struct buf *, struct stat *, int); 1966static char *e (p, i) 1967 char **p; 1968 int i; 1969{ 1970 return p[i]; 1971} 1972static char *f (char * (*g) (char **, int), char **p, ...) 1973{ 1974 char *s; 1975 va_list v; 1976 va_start (v,p); 1977 s = g (p, va_arg (v,int)); 1978 va_end (v); 1979 return s; 1980} 1981 1982/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 1983 function prototypes and stuff, but not '\xHH' hex character constants. 1984 These don't provoke an error unfortunately, instead are silently treated 1985 as 'x'. The following induces an error, until -std1 is added to get 1986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 1987 array size at least. It's necessary to write '\x00'==0 to get something 1988 that's true only with -std1. */ 1989int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 1990 1991int test (int i, double x); 1992struct s1 {int (*f) (int a);}; 1993struct s2 {int (*f) (double a);}; 1994int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1995int argc; 1996char **argv; 1997int 1998main () 1999{ 2000return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005# Don't try gcc -ansi; that turns off useful extensions and 2006# breaks some systems' header files. 2007# AIX -qlanglvl=ansi 2008# Ultrix and OSF/1 -std1 2009# HP-UX 10.20 and later -Ae 2010# HP-UX older versions -Aa -D_HPUX_SOURCE 2011# SVR4 -Xc -D__EXTENSIONS__ 2012for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2013do 2014 CC="$ac_save_CC $ac_arg" 2015 rm -f conftest.$ac_objext 2016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2017 (eval $ac_compile) 2>conftest.er1 2018 ac_status=$? 2019 grep -v '^ *+' conftest.er1 >conftest.err 2020 rm -f conftest.er1 2021 cat conftest.err >&5 2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2023 (exit $ac_status); } && 2024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2026 (eval $ac_try) 2>&5 2027 ac_status=$? 2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2029 (exit $ac_status); }; } && 2030 { ac_try='test -s conftest.$ac_objext' 2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2032 (eval $ac_try) 2>&5 2033 ac_status=$? 2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2035 (exit $ac_status); }; }; then 2036 ac_cv_prog_cc_stdc=$ac_arg 2037break 2038else 2039 echo "$as_me: failed program was:" >&5 2040sed 's/^/| /' conftest.$ac_ext >&5 2041 2042fi 2043rm -f conftest.err conftest.$ac_objext 2044done 2045rm -f conftest.$ac_ext conftest.$ac_objext 2046CC=$ac_save_CC 2047 2048fi 2049 2050case "x$ac_cv_prog_cc_stdc" in 2051 x|xno) 2052 echo "$as_me:$LINENO: result: none needed" >&5 2053echo "${ECHO_T}none needed" >&6 ;; 2054 *) 2055 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2056echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2057 CC="$CC $ac_cv_prog_cc_stdc" ;; 2058esac 2059 2060# Some people use a C++ compiler to compile C. Since we use `exit', 2061# in C++ we need to declare it. In case someone uses the same compiler 2062# for both compiling C and C++ we need to have the C++ compiler decide 2063# the declaration of exit, since it's the most demanding environment. 2064cat >conftest.$ac_ext <<_ACEOF 2065#ifndef __cplusplus 2066 choke me 2067#endif 2068_ACEOF 2069rm -f conftest.$ac_objext 2070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2071 (eval $ac_compile) 2>conftest.er1 2072 ac_status=$? 2073 grep -v '^ *+' conftest.er1 >conftest.err 2074 rm -f conftest.er1 2075 cat conftest.err >&5 2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2077 (exit $ac_status); } && 2078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2080 (eval $ac_try) 2>&5 2081 ac_status=$? 2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2083 (exit $ac_status); }; } && 2084 { ac_try='test -s conftest.$ac_objext' 2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2086 (eval $ac_try) 2>&5 2087 ac_status=$? 2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2089 (exit $ac_status); }; }; then 2090 for ac_declaration in \ 2091 '' \ 2092 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2093 'extern "C" void std::exit (int); using std::exit;' \ 2094 'extern "C" void exit (int) throw ();' \ 2095 'extern "C" void exit (int);' \ 2096 'void exit (int);' 2097do 2098 cat >conftest.$ac_ext <<_ACEOF 2099/* confdefs.h. */ 2100_ACEOF 2101cat confdefs.h >>conftest.$ac_ext 2102cat >>conftest.$ac_ext <<_ACEOF 2103/* end confdefs.h. */ 2104$ac_declaration 2105#include <stdlib.h> 2106int 2107main () 2108{ 2109exit (42); 2110 ; 2111 return 0; 2112} 2113_ACEOF 2114rm -f conftest.$ac_objext 2115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2116 (eval $ac_compile) 2>conftest.er1 2117 ac_status=$? 2118 grep -v '^ *+' conftest.er1 >conftest.err 2119 rm -f conftest.er1 2120 cat conftest.err >&5 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); } && 2123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2125 (eval $ac_try) 2>&5 2126 ac_status=$? 2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2128 (exit $ac_status); }; } && 2129 { ac_try='test -s conftest.$ac_objext' 2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2131 (eval $ac_try) 2>&5 2132 ac_status=$? 2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2134 (exit $ac_status); }; }; then 2135 : 2136else 2137 echo "$as_me: failed program was:" >&5 2138sed 's/^/| /' conftest.$ac_ext >&5 2139 2140continue 2141fi 2142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2143 cat >conftest.$ac_ext <<_ACEOF 2144/* confdefs.h. */ 2145_ACEOF 2146cat confdefs.h >>conftest.$ac_ext 2147cat >>conftest.$ac_ext <<_ACEOF 2148/* end confdefs.h. */ 2149$ac_declaration 2150int 2151main () 2152{ 2153exit (42); 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158rm -f conftest.$ac_objext 2159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2160 (eval $ac_compile) 2>conftest.er1 2161 ac_status=$? 2162 grep -v '^ *+' conftest.er1 >conftest.err 2163 rm -f conftest.er1 2164 cat conftest.err >&5 2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2166 (exit $ac_status); } && 2167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2169 (eval $ac_try) 2>&5 2170 ac_status=$? 2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2172 (exit $ac_status); }; } && 2173 { ac_try='test -s conftest.$ac_objext' 2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2175 (eval $ac_try) 2>&5 2176 ac_status=$? 2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2178 (exit $ac_status); }; }; then 2179 break 2180else 2181 echo "$as_me: failed program was:" >&5 2182sed 's/^/| /' conftest.$ac_ext >&5 2183 2184fi 2185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2186done 2187rm -f conftest* 2188if test -n "$ac_declaration"; then 2189 echo '#ifdef __cplusplus' >>confdefs.h 2190 echo $ac_declaration >>confdefs.h 2191 echo '#endif' >>confdefs.h 2192fi 2193 2194else 2195 echo "$as_me: failed program was:" >&5 2196sed 's/^/| /' conftest.$ac_ext >&5 2197 2198fi 2199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2200ac_ext=c 2201ac_cpp='$CPP $CPPFLAGS' 2202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2204ac_compiler_gnu=$ac_cv_c_compiler_gnu 2205 2206ac_aux_dir= 2207for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2208 if test -f $ac_dir/install-sh; then 2209 ac_aux_dir=$ac_dir 2210 ac_install_sh="$ac_aux_dir/install-sh -c" 2211 break 2212 elif test -f $ac_dir/install.sh; then 2213 ac_aux_dir=$ac_dir 2214 ac_install_sh="$ac_aux_dir/install.sh -c" 2215 break 2216 elif test -f $ac_dir/shtool; then 2217 ac_aux_dir=$ac_dir 2218 ac_install_sh="$ac_aux_dir/shtool install -c" 2219 break 2220 fi 2221done 2222if test -z "$ac_aux_dir"; then 2223 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2224echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2225 { (exit 1); exit 1; }; } 2226fi 2227ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2228ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2229ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2230 2231# Find a good install program. We prefer a C program (faster), 2232# so one script is as good as another. But avoid the broken or 2233# incompatible versions: 2234# SysV /etc/install, /usr/sbin/install 2235# SunOS /usr/etc/install 2236# IRIX /sbin/install 2237# AIX /bin/install 2238# AmigaOS /C/install, which installs bootblocks on floppy discs 2239# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2240# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2241# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2242# OS/2's system install, which has a completely different semantic 2243# ./install, which can be erroneously created by make from ./install.sh. 2244echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2245echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2246if test -z "$INSTALL"; then 2247if test "${ac_cv_path_install+set}" = set; then 2248 echo $ECHO_N "(cached) $ECHO_C" >&6 2249else 2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2251for as_dir in $PATH 2252do 2253 IFS=$as_save_IFS 2254 test -z "$as_dir" && as_dir=. 2255 # Account for people who put trailing slashes in PATH elements. 2256case $as_dir/ in 2257 ./ | .// | /cC/* | \ 2258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2259 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2260 /usr/ucb/* ) ;; 2261 *) 2262 # OSF1 and SCO ODT 3.0 have their own names for install. 2263 # Don't use installbsd from OSF since it installs stuff as root 2264 # by default. 2265 for ac_prog in ginstall scoinst install; do 2266 for ac_exec_ext in '' $ac_executable_extensions; do 2267 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2268 if test $ac_prog = install && 2269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2270 # AIX install. It has an incompatible calling convention. 2271 : 2272 elif test $ac_prog = install && 2273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2274 # program-specific install script used by HP pwplus--don't use. 2275 : 2276 else 2277 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2278 break 3 2279 fi 2280 fi 2281 done 2282 done 2283 ;; 2284esac 2285done 2286 2287 2288fi 2289 if test "${ac_cv_path_install+set}" = set; then 2290 INSTALL=$ac_cv_path_install 2291 else 2292 # As a last resort, use the slow shell script. We don't cache a 2293 # path for INSTALL within a source directory, because that will 2294 # break other packages using the cache if that directory is 2295 # removed, or if the path is relative. 2296 INSTALL=$ac_install_sh 2297 fi 2298fi 2299echo "$as_me:$LINENO: result: $INSTALL" >&5 2300echo "${ECHO_T}$INSTALL" >&6 2301 2302# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2303# It thinks the first close brace ends the variable substitution. 2304test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2305 2306test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2307 2308test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2309 2310 2311# Extract the first word of "rm", so it can be a program name with args. 2312set dummy rm; ac_word=$2 2313echo "$as_me:$LINENO: checking for $ac_word" >&5 2314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2315if test "${ac_cv_path_RM+set}" = set; then 2316 echo $ECHO_N "(cached) $ECHO_C" >&6 2317else 2318 case $RM in 2319 [\\/]* | ?:[\\/]*) 2320 ac_cv_path_RM="$RM" # Let the user override the test with a path. 2321 ;; 2322 *) 2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 for ac_exec_ext in '' $ac_executable_extensions; do 2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2330 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2332 break 2 2333 fi 2334done 2335done 2336 2337 ;; 2338esac 2339fi 2340RM=$ac_cv_path_RM 2341 2342if test -n "$RM"; then 2343 echo "$as_me:$LINENO: result: $RM" >&5 2344echo "${ECHO_T}$RM" >&6 2345else 2346 echo "$as_me:$LINENO: result: no" >&5 2347echo "${ECHO_T}no" >&6 2348fi 2349 2350# Extract the first word of "cp", so it can be a program name with args. 2351set dummy cp; ac_word=$2 2352echo "$as_me:$LINENO: checking for $ac_word" >&5 2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2354if test "${ac_cv_path_CP+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356else 2357 case $CP in 2358 [\\/]* | ?:[\\/]*) 2359 ac_cv_path_CP="$CP" # Let the user override the test with a path. 2360 ;; 2361 *) 2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2369 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374done 2375 2376 ;; 2377esac 2378fi 2379CP=$ac_cv_path_CP 2380 2381if test -n "$CP"; then 2382 echo "$as_me:$LINENO: result: $CP" >&5 2383echo "${ECHO_T}$CP" >&6 2384else 2385 echo "$as_me:$LINENO: result: no" >&5 2386echo "${ECHO_T}no" >&6 2387fi 2388 2389# Extract the first word of "mv", so it can be a program name with args. 2390set dummy mv; ac_word=$2 2391echo "$as_me:$LINENO: checking for $ac_word" >&5 2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2393if test "${ac_cv_path_MV+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395else 2396 case $MV in 2397 [\\/]* | ?:[\\/]*) 2398 ac_cv_path_MV="$MV" # Let the user override the test with a path. 2399 ;; 2400 *) 2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2402for as_dir in $PATH 2403do 2404 IFS=$as_save_IFS 2405 test -z "$as_dir" && as_dir=. 2406 for ac_exec_ext in '' $ac_executable_extensions; do 2407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2408 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2410 break 2 2411 fi 2412done 2413done 2414 2415 ;; 2416esac 2417fi 2418MV=$ac_cv_path_MV 2419 2420if test -n "$MV"; then 2421 echo "$as_me:$LINENO: result: $MV" >&5 2422echo "${ECHO_T}$MV" >&6 2423else 2424 echo "$as_me:$LINENO: result: no" >&5 2425echo "${ECHO_T}no" >&6 2426fi 2427 2428# Extract the first word of "touch", so it can be a program name with args. 2429set dummy touch; ac_word=$2 2430echo "$as_me:$LINENO: checking for $ac_word" >&5 2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2432if test "${ac_cv_path_TOUCH+set}" = set; then 2433 echo $ECHO_N "(cached) $ECHO_C" >&6 2434else 2435 case $TOUCH in 2436 [\\/]* | ?:[\\/]*) 2437 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 2438 ;; 2439 *) 2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2447 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452done 2453 2454 ;; 2455esac 2456fi 2457TOUCH=$ac_cv_path_TOUCH 2458 2459if test -n "$TOUCH"; then 2460 echo "$as_me:$LINENO: result: $TOUCH" >&5 2461echo "${ECHO_T}$TOUCH" >&6 2462else 2463 echo "$as_me:$LINENO: result: no" >&5 2464echo "${ECHO_T}no" >&6 2465fi 2466 2467 2468ac_ext=c 2469ac_cpp='$CPP $CPPFLAGS' 2470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2472ac_compiler_gnu=$ac_cv_c_compiler_gnu 2473 2474 2475 2476ac_ext=c 2477ac_cpp='$CPP $CPPFLAGS' 2478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2480ac_compiler_gnu=$ac_cv_c_compiler_gnu 2481echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2482echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2483# On Suns, sometimes $CPP names a directory. 2484if test -n "$CPP" && test -d "$CPP"; then 2485 CPP= 2486fi 2487if test -z "$CPP"; then 2488 if test "${ac_cv_prog_CPP+set}" = set; then 2489 echo $ECHO_N "(cached) $ECHO_C" >&6 2490else 2491 # Double quotes because CPP needs to be expanded 2492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2493 do 2494 ac_preproc_ok=false 2495for ac_c_preproc_warn_flag in '' yes 2496do 2497 # Use a header file that comes with gcc, so configuring glibc 2498 # with a fresh cross-compiler works. 2499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2500 # <limits.h> exists even on freestanding compilers. 2501 # On the NeXT, cc -E runs the code through the compiler's parser, 2502 # not just through cpp. "Syntax error" is here to catch this case. 2503 cat >conftest.$ac_ext <<_ACEOF 2504/* confdefs.h. */ 2505_ACEOF 2506cat confdefs.h >>conftest.$ac_ext 2507cat >>conftest.$ac_ext <<_ACEOF 2508/* end confdefs.h. */ 2509#ifdef __STDC__ 2510# include <limits.h> 2511#else 2512# include <assert.h> 2513#endif 2514 Syntax error 2515_ACEOF 2516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2518 ac_status=$? 2519 grep -v '^ *+' conftest.er1 >conftest.err 2520 rm -f conftest.er1 2521 cat conftest.err >&5 2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2523 (exit $ac_status); } >/dev/null; then 2524 if test -s conftest.err; then 2525 ac_cpp_err=$ac_c_preproc_warn_flag 2526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2527 else 2528 ac_cpp_err= 2529 fi 2530else 2531 ac_cpp_err=yes 2532fi 2533if test -z "$ac_cpp_err"; then 2534 : 2535else 2536 echo "$as_me: failed program was:" >&5 2537sed 's/^/| /' conftest.$ac_ext >&5 2538 2539 # Broken: fails on valid input. 2540continue 2541fi 2542rm -f conftest.err conftest.$ac_ext 2543 2544 # OK, works on sane cases. Now check whether non-existent headers 2545 # can be detected and how. 2546 cat >conftest.$ac_ext <<_ACEOF 2547/* confdefs.h. */ 2548_ACEOF 2549cat confdefs.h >>conftest.$ac_ext 2550cat >>conftest.$ac_ext <<_ACEOF 2551/* end confdefs.h. */ 2552#include <ac_nonexistent.h> 2553_ACEOF 2554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2556 ac_status=$? 2557 grep -v '^ *+' conftest.er1 >conftest.err 2558 rm -f conftest.er1 2559 cat conftest.err >&5 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); } >/dev/null; then 2562 if test -s conftest.err; then 2563 ac_cpp_err=$ac_c_preproc_warn_flag 2564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2565 else 2566 ac_cpp_err= 2567 fi 2568else 2569 ac_cpp_err=yes 2570fi 2571if test -z "$ac_cpp_err"; then 2572 # Broken: success on invalid input. 2573continue 2574else 2575 echo "$as_me: failed program was:" >&5 2576sed 's/^/| /' conftest.$ac_ext >&5 2577 2578 # Passes both tests. 2579ac_preproc_ok=: 2580break 2581fi 2582rm -f conftest.err conftest.$ac_ext 2583 2584done 2585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2586rm -f conftest.err conftest.$ac_ext 2587if $ac_preproc_ok; then 2588 break 2589fi 2590 2591 done 2592 ac_cv_prog_CPP=$CPP 2593 2594fi 2595 CPP=$ac_cv_prog_CPP 2596else 2597 ac_cv_prog_CPP=$CPP 2598fi 2599echo "$as_me:$LINENO: result: $CPP" >&5 2600echo "${ECHO_T}$CPP" >&6 2601ac_preproc_ok=false 2602for ac_c_preproc_warn_flag in '' yes 2603do 2604 # Use a header file that comes with gcc, so configuring glibc 2605 # with a fresh cross-compiler works. 2606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2607 # <limits.h> exists even on freestanding compilers. 2608 # On the NeXT, cc -E runs the code through the compiler's parser, 2609 # not just through cpp. "Syntax error" is here to catch this case. 2610 cat >conftest.$ac_ext <<_ACEOF 2611/* confdefs.h. */ 2612_ACEOF 2613cat confdefs.h >>conftest.$ac_ext 2614cat >>conftest.$ac_ext <<_ACEOF 2615/* end confdefs.h. */ 2616#ifdef __STDC__ 2617# include <limits.h> 2618#else 2619# include <assert.h> 2620#endif 2621 Syntax error 2622_ACEOF 2623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2625 ac_status=$? 2626 grep -v '^ *+' conftest.er1 >conftest.err 2627 rm -f conftest.er1 2628 cat conftest.err >&5 2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2630 (exit $ac_status); } >/dev/null; then 2631 if test -s conftest.err; then 2632 ac_cpp_err=$ac_c_preproc_warn_flag 2633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2634 else 2635 ac_cpp_err= 2636 fi 2637else 2638 ac_cpp_err=yes 2639fi 2640if test -z "$ac_cpp_err"; then 2641 : 2642else 2643 echo "$as_me: failed program was:" >&5 2644sed 's/^/| /' conftest.$ac_ext >&5 2645 2646 # Broken: fails on valid input. 2647continue 2648fi 2649rm -f conftest.err conftest.$ac_ext 2650 2651 # OK, works on sane cases. Now check whether non-existent headers 2652 # can be detected and how. 2653 cat >conftest.$ac_ext <<_ACEOF 2654/* confdefs.h. */ 2655_ACEOF 2656cat confdefs.h >>conftest.$ac_ext 2657cat >>conftest.$ac_ext <<_ACEOF 2658/* end confdefs.h. */ 2659#include <ac_nonexistent.h> 2660_ACEOF 2661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2663 ac_status=$? 2664 grep -v '^ *+' conftest.er1 >conftest.err 2665 rm -f conftest.er1 2666 cat conftest.err >&5 2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 (exit $ac_status); } >/dev/null; then 2669 if test -s conftest.err; then 2670 ac_cpp_err=$ac_c_preproc_warn_flag 2671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2672 else 2673 ac_cpp_err= 2674 fi 2675else 2676 ac_cpp_err=yes 2677fi 2678if test -z "$ac_cpp_err"; then 2679 # Broken: success on invalid input. 2680continue 2681else 2682 echo "$as_me: failed program was:" >&5 2683sed 's/^/| /' conftest.$ac_ext >&5 2684 2685 # Passes both tests. 2686ac_preproc_ok=: 2687break 2688fi 2689rm -f conftest.err conftest.$ac_ext 2690 2691done 2692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2693rm -f conftest.err conftest.$ac_ext 2694if $ac_preproc_ok; then 2695 : 2696else 2697 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2698See \`config.log' for more details." >&5 2699echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2700See \`config.log' for more details." >&2;} 2701 { (exit 1); exit 1; }; } 2702fi 2703 2704ac_ext=c 2705ac_cpp='$CPP $CPPFLAGS' 2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2708ac_compiler_gnu=$ac_cv_c_compiler_gnu 2709 2710 2711echo "$as_me:$LINENO: checking for egrep" >&5 2712echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2713if test "${ac_cv_prog_egrep+set}" = set; then 2714 echo $ECHO_N "(cached) $ECHO_C" >&6 2715else 2716 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2717 then ac_cv_prog_egrep='grep -E' 2718 else ac_cv_prog_egrep='egrep' 2719 fi 2720fi 2721echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2722echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2723 EGREP=$ac_cv_prog_egrep 2724 2725 2726echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2727echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2728if test "${ac_cv_header_stdc+set}" = set; then 2729 echo $ECHO_N "(cached) $ECHO_C" >&6 2730else 2731 cat >conftest.$ac_ext <<_ACEOF 2732/* confdefs.h. */ 2733_ACEOF 2734cat confdefs.h >>conftest.$ac_ext 2735cat >>conftest.$ac_ext <<_ACEOF 2736/* end confdefs.h. */ 2737#include <stdlib.h> 2738#include <stdarg.h> 2739#include <string.h> 2740#include <float.h> 2741 2742int 2743main () 2744{ 2745 2746 ; 2747 return 0; 2748} 2749_ACEOF 2750rm -f conftest.$ac_objext 2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2752 (eval $ac_compile) 2>conftest.er1 2753 ac_status=$? 2754 grep -v '^ *+' conftest.er1 >conftest.err 2755 rm -f conftest.er1 2756 cat conftest.err >&5 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } && 2759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2761 (eval $ac_try) 2>&5 2762 ac_status=$? 2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2764 (exit $ac_status); }; } && 2765 { ac_try='test -s conftest.$ac_objext' 2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2767 (eval $ac_try) 2>&5 2768 ac_status=$? 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); }; }; then 2771 ac_cv_header_stdc=yes 2772else 2773 echo "$as_me: failed program was:" >&5 2774sed 's/^/| /' conftest.$ac_ext >&5 2775 2776ac_cv_header_stdc=no 2777fi 2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2779 2780if test $ac_cv_header_stdc = yes; then 2781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2782 cat >conftest.$ac_ext <<_ACEOF 2783/* confdefs.h. */ 2784_ACEOF 2785cat confdefs.h >>conftest.$ac_ext 2786cat >>conftest.$ac_ext <<_ACEOF 2787/* end confdefs.h. */ 2788#include <string.h> 2789 2790_ACEOF 2791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2792 $EGREP "memchr" >/dev/null 2>&1; then 2793 : 2794else 2795 ac_cv_header_stdc=no 2796fi 2797rm -f conftest* 2798 2799fi 2800 2801if test $ac_cv_header_stdc = yes; then 2802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2803 cat >conftest.$ac_ext <<_ACEOF 2804/* confdefs.h. */ 2805_ACEOF 2806cat confdefs.h >>conftest.$ac_ext 2807cat >>conftest.$ac_ext <<_ACEOF 2808/* end confdefs.h. */ 2809#include <stdlib.h> 2810 2811_ACEOF 2812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2813 $EGREP "free" >/dev/null 2>&1; then 2814 : 2815else 2816 ac_cv_header_stdc=no 2817fi 2818rm -f conftest* 2819 2820fi 2821 2822if test $ac_cv_header_stdc = yes; then 2823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2824 if test "$cross_compiling" = yes; then 2825 : 2826else 2827 cat >conftest.$ac_ext <<_ACEOF 2828/* confdefs.h. */ 2829_ACEOF 2830cat confdefs.h >>conftest.$ac_ext 2831cat >>conftest.$ac_ext <<_ACEOF 2832/* end confdefs.h. */ 2833#include <ctype.h> 2834#if ((' ' & 0x0FF) == 0x020) 2835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2837#else 2838# define ISLOWER(c) \ 2839 (('a' <= (c) && (c) <= 'i') \ 2840 || ('j' <= (c) && (c) <= 'r') \ 2841 || ('s' <= (c) && (c) <= 'z')) 2842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2843#endif 2844 2845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2846int 2847main () 2848{ 2849 int i; 2850 for (i = 0; i < 256; i++) 2851 if (XOR (islower (i), ISLOWER (i)) 2852 || toupper (i) != TOUPPER (i)) 2853 exit(2); 2854 exit (0); 2855} 2856_ACEOF 2857rm -f conftest$ac_exeext 2858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2859 (eval $ac_link) 2>&5 2860 ac_status=$? 2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2864 (eval $ac_try) 2>&5 2865 ac_status=$? 2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2867 (exit $ac_status); }; }; then 2868 : 2869else 2870 echo "$as_me: program exited with status $ac_status" >&5 2871echo "$as_me: failed program was:" >&5 2872sed 's/^/| /' conftest.$ac_ext >&5 2873 2874( exit $ac_status ) 2875ac_cv_header_stdc=no 2876fi 2877rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2878fi 2879fi 2880fi 2881echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2882echo "${ECHO_T}$ac_cv_header_stdc" >&6 2883if test $ac_cv_header_stdc = yes; then 2884 2885cat >>confdefs.h <<\_ACEOF 2886#define STDC_HEADERS 1 2887_ACEOF 2888 2889fi 2890 2891 2892CPPFLAGS="-I /usr/include" 2893LIBS="-L /usr/lib" 2894 2895echo "$as_me:$LINENO: checking for OpenSSL" >&5 2896echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6 2897# Check whether --enable-openssl or --disable-openssl was given. 2898if test "${enable_openssl+set}" = set; then 2899 enableval="$enable_openssl" 2900 cf_enable_openssl=$enableval 2901else 2902 cf_enable_openssl="auto" 2903fi; 2904 2905if test "$cf_enable_openssl" != "no" ; then 2906 cf_openssl_basedir="" 2907 if test "$cf_enable_openssl" != "auto" && 2908 test "$cf_enable_openssl" != "yes" ; then 2909 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" 2910 else 2911 for dirs in /usr/local/ssl /usr/pkg /usr/local \ 2912 /usr/local/openssl ; do 2913 if test -f "${dirs}/include/openssl/opensslv.h" ; then 2914 cf_openssl_basedir="${dirs}" 2915 break 2916 fi 2917 done 2918 unset dirs 2919 fi 2920 if test ! -z "$cf_openssl_basedir"; then 2921 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then 2922 SSL_INCLUDES="-I${cf_openssl_basedir}/include" 2923 SSL_LIBS="-L${cf_openssl_basedir}/lib" 2924 else 2925 cf_openssl_basedir="" 2926 fi 2927 else 2928 if test -f "/usr/include/openssl/opensslv.h" ; then 2929 cf_openssl_basedir="/usr" 2930 fi 2931 fi 2932 2933 if test ! -z "$cf_openssl_basedir"; then 2934 echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 2935echo "${ECHO_T}$cf_openssl_basedir" >&6 2936 cf_enable_openssl="yes" 2937 else 2938 echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 2939echo "${ECHO_T}not found. Specify a correct path?" >&6 2940 cf_enable_openssl="no" 2941 fi 2942 unset cf_openssl_basedir 2943else 2944 echo "$as_me:$LINENO: result: disabled" >&5 2945echo "${ECHO_T}disabled" >&6 2946 { { echo "$as_me:$LINENO: error: Need openssl to compile ratbox-respond" >&5 2947echo "$as_me: error: Need openssl to compile ratbox-respond" >&2;} 2948 { (exit 1); exit 1; }; } 2949fi 2950 2951save_CPPFLAGS="$CPPFLAGS" 2952CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" 2953save_LIBS="$LIBS" 2954LIBS="$LIBS $SSL_LIBS" 2955if test "$cf_enable_openssl" != no; then 2956 echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 2957echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6 2958 if test "$cross_compiling" = yes; then 2959 cf_openssl_version_ok=no 2960else 2961 cat >conftest.$ac_ext <<_ACEOF 2962/* confdefs.h. */ 2963_ACEOF 2964cat confdefs.h >>conftest.$ac_ext 2965cat >>conftest.$ac_ext <<_ACEOF 2966/* end confdefs.h. */ 2967#include <openssl/opensslv.h> 2968 #include <stdlib.h> 2969int 2970main () 2971{ 2972if (OPENSSL_VERSION_NUMBER >= 0x00906000) 2973 exit(0); else exit(1); 2974 ; 2975 return 0; 2976} 2977_ACEOF 2978rm -f conftest$ac_exeext 2979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2980 (eval $ac_link) 2>&5 2981 ac_status=$? 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2985 (eval $ac_try) 2>&5 2986 ac_status=$? 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); }; }; then 2989 cf_openssl_version_ok=yes 2990else 2991 echo "$as_me: program exited with status $ac_status" >&5 2992echo "$as_me: failed program was:" >&5 2993sed 's/^/| /' conftest.$ac_ext >&5 2994 2995( exit $ac_status ) 2996cf_openssl_version_ok=no 2997fi 2998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2999fi 3000 3001 if test "$cf_openssl_version_ok" = yes; then 3002 echo "$as_me:$LINENO: result: found" >&5 3003echo "${ECHO_T}found" >&6 3004 3005 CPPFLAGS="$CPPFLAGS $SSL_LIBS" 3006 3007echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 3008echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6 3009if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then 3010 echo $ECHO_N "(cached) $ECHO_C" >&6 3011else 3012 ac_check_lib_save_LIBS=$LIBS 3013LIBS="-lcrypto $LIBS" 3014cat >conftest.$ac_ext <<_ACEOF 3015/* confdefs.h. */ 3016_ACEOF 3017cat confdefs.h >>conftest.$ac_ext 3018cat >>conftest.$ac_ext <<_ACEOF 3019/* end confdefs.h. */ 3020 3021/* Override any gcc2 internal prototype to avoid an error. */ 3022#ifdef __cplusplus 3023extern "C" 3024#endif 3025/* We use char because int might match the return type of a gcc2 3026 builtin and then its argument prototype would still apply. */ 3027char RSA_free (); 3028int 3029main () 3030{ 3031RSA_free (); 3032 ; 3033 return 0; 3034} 3035_ACEOF 3036rm -f conftest.$ac_objext conftest$ac_exeext 3037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3038 (eval $ac_link) 2>conftest.er1 3039 ac_status=$? 3040 grep -v '^ *+' conftest.er1 >conftest.err 3041 rm -f conftest.er1 3042 cat conftest.err >&5 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); } && 3045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3047 (eval $ac_try) 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); }; } && 3051 { ac_try='test -s conftest$ac_exeext' 3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3053 (eval $ac_try) 2>&5 3054 ac_status=$? 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); }; }; then 3057 ac_cv_lib_crypto_RSA_free=yes 3058else 3059 echo "$as_me: failed program was:" >&5 3060sed 's/^/| /' conftest.$ac_ext >&5 3061 3062ac_cv_lib_crypto_RSA_free=no 3063fi 3064rm -f conftest.err conftest.$ac_objext \ 3065 conftest$ac_exeext conftest.$ac_ext 3066LIBS=$ac_check_lib_save_LIBS 3067fi 3068echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 3069echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6 3070if test $ac_cv_lib_crypto_RSA_free = yes; then 3071 cat >>confdefs.h <<_ACEOF 3072#define HAVE_LIBCRYPTO 1 3073_ACEOF 3074 3075 LIBS="-lcrypto $LIBS" 3076 3077fi 3078 3079 SSL_LIBS="$SSL_LIBS -lcrypto" 3080 SSL_SRCS_ENABLE='$(SSL_SRCS)' 3081 else 3082 echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 3083echo "${ECHO_T}no - OpenSSL support disabled" >&6 3084 { { echo "$as_me:$LINENO: error: Need openssl to compile ratbox-respond" >&5 3085echo "$as_me: error: Need openssl to compile ratbox-respond" >&2;} 3086 { (exit 1); exit 1; }; } 3087 fi 3088else 3089 { { echo "$as_me:$LINENO: error: Need openssl development files to compile ratbox-respond" >&5 3090echo "$as_me: error: Need openssl development files to compile ratbox-respond" >&2;} 3091 { (exit 1); exit 1; }; } 3092fi 3093 3094CPPFLAGS="$save_CPPFLAGS" 3095LIBS="$save_LIBS" 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 ac_config_files="$ac_config_files Makefile" 3107 3108 3109cat >confcache <<\_ACEOF 3110# This file is a shell script that caches the results of configure 3111# tests run on this system so they can be shared between configure 3112# scripts and configure runs, see configure's option --config-cache. 3113# It is not useful on other systems. If it contains results you don't 3114# want to keep, you may remove or edit it. 3115# 3116# config.status only pays attention to the cache file if you give it 3117# the --recheck option to rerun configure. 3118# 3119# `ac_cv_env_foo' variables (set or unset) will be overridden when 3120# loading this file, other *unset* `ac_cv_foo' will be assigned the 3121# following values. 3122 3123_ACEOF 3124 3125# The following way of writing the cache mishandles newlines in values, 3126# but we know of no workaround that is simple, portable, and efficient. 3127# So, don't put newlines in cache variables' values. 3128# Ultrix sh set writes to stderr and can't be redirected directly, 3129# and sets the high bit in the cache file unless we assign to the vars. 3130{ 3131 (set) 2>&1 | 3132 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3133 *ac_space=\ *) 3134 # `set' does not quote correctly, so add quotes (double-quote 3135 # substitution turns \\\\ into \\, and sed turns \\ into \). 3136 sed -n \ 3137 "s/'/'\\\\''/g; 3138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3139 ;; 3140 *) 3141 # `set' quotes correctly as required by POSIX, so do not add quotes. 3142 sed -n \ 3143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3144 ;; 3145 esac; 3146} | 3147 sed ' 3148 t clear 3149 : clear 3150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3151 t end 3152 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3153 : end' >>confcache 3154if diff $cache_file confcache >/dev/null 2>&1; then :; else 3155 if test -w $cache_file; then 3156 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3157 cat confcache >$cache_file 3158 else 3159 echo "not updating unwritable cache $cache_file" 3160 fi 3161fi 3162rm -f confcache 3163 3164test "x$prefix" = xNONE && prefix=$ac_default_prefix 3165# Let make expand exec_prefix. 3166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3167 3168# VPATH may cause trouble with some makes, so we remove $(srcdir), 3169# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3170# trailing colons and then remove the whole line if VPATH becomes empty 3171# (actually we leave an empty line to preserve line numbers). 3172if test "x$srcdir" = x.; then 3173 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3174s/:*\$(srcdir):*/:/; 3175s/:*\${srcdir}:*/:/; 3176s/:*@srcdir@:*/:/; 3177s/^\([^=]*=[ ]*\):*/\1/; 3178s/:*$//; 3179s/^[^=]*=[ ]*$//; 3180}' 3181fi 3182 3183DEFS=-DHAVE_CONFIG_H 3184 3185ac_libobjs= 3186ac_ltlibobjs= 3187for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3188 # 1. Remove the extension, and $U if already installed. 3189 ac_i=`echo "$ac_i" | 3190 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3191 # 2. Add them. 3192 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3193 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 3194done 3195LIBOBJS=$ac_libobjs 3196 3197LTLIBOBJS=$ac_ltlibobjs 3198 3199 3200 3201: ${CONFIG_STATUS=./config.status} 3202ac_clean_files_save=$ac_clean_files 3203ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3204{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3205echo "$as_me: creating $CONFIG_STATUS" >&6;} 3206cat >$CONFIG_STATUS <<_ACEOF 3207#! $SHELL 3208# Generated by $as_me. 3209# Run this file to recreate the current configuration. 3210# Compiler output produced by configure, useful for debugging 3211# configure, is in config.log if it exists. 3212 3213debug=false 3214ac_cs_recheck=false 3215ac_cs_silent=false 3216SHELL=\${CONFIG_SHELL-$SHELL} 3217_ACEOF 3218 3219cat >>$CONFIG_STATUS <<\_ACEOF 3220## --------------------- ## 3221## M4sh Initialization. ## 3222## --------------------- ## 3223 3224# Be Bourne compatible 3225if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3226 emulate sh 3227 NULLCMD=: 3228 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3229 # is contrary to our usage. Disable this feature. 3230 alias -g '${1+"$@"}'='"$@"' 3231elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 3232 set -o posix 3233fi 3234DUALCASE=1; export DUALCASE # for MKS sh 3235 3236# Support unset when possible. 3237if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3238 as_unset=unset 3239else 3240 as_unset=false 3241fi 3242 3243 3244# Work around bugs in pre-3.0 UWIN ksh. 3245$as_unset ENV MAIL MAILPATH 3246PS1='$ ' 3247PS2='> ' 3248PS4='+ ' 3249 3250# NLS nuisances. 3251for as_var in \ 3252 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3253 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3254 LC_TELEPHONE LC_TIME 3255do 3256 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 3257 eval $as_var=C; export $as_var 3258 else 3259 $as_unset $as_var 3260 fi 3261done 3262 3263# Required to use basename. 3264if expr a : '\(a\)' >/dev/null 2>&1; then 3265 as_expr=expr 3266else 3267 as_expr=false 3268fi 3269 3270if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 3271 as_basename=basename 3272else 3273 as_basename=false 3274fi 3275 3276 3277# Name of the executable. 3278as_me=`$as_basename "$0" || 3279$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3280 X"$0" : 'X\(//\)$' \| \ 3281 X"$0" : 'X\(/\)$' \| \ 3282 . : '\(.\)' 2>/dev/null || 3283echo X/"$0" | 3284 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 3285 /^X\/\(\/\/\)$/{ s//\1/; q; } 3286 /^X\/\(\/\).*/{ s//\1/; q; } 3287 s/.*/./; q'` 3288 3289 3290# PATH needs CR, and LINENO needs CR and PATH. 3291# Avoid depending upon Character Ranges. 3292as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3293as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3294as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3295as_cr_digits='0123456789' 3296as_cr_alnum=$as_cr_Letters$as_cr_digits 3297 3298# The user is always right. 3299if test "${PATH_SEPARATOR+set}" != set; then 3300 echo "#! /bin/sh" >conf$$.sh 3301 echo "exit 0" >>conf$$.sh 3302 chmod +x conf$$.sh 3303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3304 PATH_SEPARATOR=';' 3305 else 3306 PATH_SEPARATOR=: 3307 fi 3308 rm -f conf$$.sh 3309fi 3310 3311 3312 as_lineno_1=$LINENO 3313 as_lineno_2=$LINENO 3314 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3315 test "x$as_lineno_1" != "x$as_lineno_2" && 3316 test "x$as_lineno_3" = "x$as_lineno_2" || { 3317 # Find who we are. Look in the path if we contain no path at all 3318 # relative or not. 3319 case $0 in 3320 *[\\/]* ) as_myself=$0 ;; 3321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3322for as_dir in $PATH 3323do 3324 IFS=$as_save_IFS 3325 test -z "$as_dir" && as_dir=. 3326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3327done 3328 3329 ;; 3330 esac 3331 # We did not find ourselves, most probably we were run as `sh COMMAND' 3332 # in which case we are not to be found in the path. 3333 if test "x$as_myself" = x; then 3334 as_myself=$0 3335 fi 3336 if test ! -f "$as_myself"; then 3337 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 3338echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 3339 { (exit 1); exit 1; }; } 3340 fi 3341 case $CONFIG_SHELL in 3342 '') 3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3344for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 3345do 3346 IFS=$as_save_IFS 3347 test -z "$as_dir" && as_dir=. 3348 for as_base in sh bash ksh sh5; do 3349 case $as_dir in 3350 /*) 3351 if ("$as_dir/$as_base" -c ' 3352 as_lineno_1=$LINENO 3353 as_lineno_2=$LINENO 3354 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3355 test "x$as_lineno_1" != "x$as_lineno_2" && 3356 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 3357 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 3358 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 3359 CONFIG_SHELL=$as_dir/$as_base 3360 export CONFIG_SHELL 3361 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 3362 fi;; 3363 esac 3364 done 3365done 3366;; 3367 esac 3368 3369 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3370 # uniformly replaced by the line number. The first 'sed' inserts a 3371 # line-number line before each line; the second 'sed' does the real 3372 # work. The second script uses 'N' to pair each line-number line 3373 # with the numbered line, and appends trailing '-' during 3374 # substitution so that $LINENO is not a special case at line end. 3375 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3376 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3377 sed '=' <$as_myself | 3378 sed ' 3379 N 3380 s,$,-, 3381 : loop 3382 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 3383 t loop 3384 s,-$,, 3385 s,^['$as_cr_digits']*\n,, 3386 ' >$as_me.lineno && 3387 chmod +x $as_me.lineno || 3388 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3389echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 3390 { (exit 1); exit 1; }; } 3391 3392 # Don't try to exec as it changes $[0], causing all sort of problems 3393 # (the dirname of $[0] is not the place where we might find the 3394 # original and so on. Autoconf is especially sensible to this). 3395 . ./$as_me.lineno 3396 # Exit status is that of the last command. 3397 exit 3398} 3399 3400 3401case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3402 *c*,-n*) ECHO_N= ECHO_C=' 3403' ECHO_T=' ' ;; 3404 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3405 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 3406esac 3407 3408if expr a : '\(a\)' >/dev/null 2>&1; then 3409 as_expr=expr 3410else 3411 as_expr=false 3412fi 3413 3414rm -f conf$$ conf$$.exe conf$$.file 3415echo >conf$$.file 3416if ln -s conf$$.file conf$$ 2>/dev/null; then 3417 # We could just check for DJGPP; but this test a) works b) is more generic 3418 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3419 if test -f conf$$.exe; then 3420 # Don't use ln at all; we don't have any links 3421 as_ln_s='cp -p' 3422 else 3423 as_ln_s='ln -s' 3424 fi 3425elif ln conf$$.file conf$$ 2>/dev/null; then 3426 as_ln_s=ln 3427else 3428 as_ln_s='cp -p' 3429fi 3430rm -f conf$$ conf$$.exe conf$$.file 3431 3432if mkdir -p . 2>/dev/null; then 3433 as_mkdir_p=: 3434else 3435 test -d ./-p && rmdir ./-p 3436 as_mkdir_p=false 3437fi 3438 3439as_executable_p="test -f" 3440 3441# Sed expression to map a string onto a valid CPP name. 3442as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 3443 3444# Sed expression to map a string onto a valid variable name. 3445as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3446 3447 3448# IFS 3449# We need space, tab and new line, in precisely that order. 3450as_nl=' 3451' 3452IFS=" $as_nl" 3453 3454# CDPATH. 3455$as_unset CDPATH 3456 3457exec 6>&1 3458 3459# Open the log real soon, to keep \$[0] and so on meaningful, and to 3460# report actual input values of CONFIG_FILES etc. instead of their 3461# values after options handling. Logging --version etc. is OK. 3462exec 5>>config.log 3463{ 3464 echo 3465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3466## Running $as_me. ## 3467_ASBOX 3468} >&5 3469cat >&5 <<_CSEOF 3470 3471This file was extended by ratbox-respond $as_me stable, which was 3472generated by GNU Autoconf 2.59. Invocation command line was 3473 3474 CONFIG_FILES = $CONFIG_FILES 3475 CONFIG_HEADERS = $CONFIG_HEADERS 3476 CONFIG_LINKS = $CONFIG_LINKS 3477 CONFIG_COMMANDS = $CONFIG_COMMANDS 3478 $ $0 $@ 3479 3480_CSEOF 3481echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3482echo >&5 3483_ACEOF 3484 3485# Files that config.status was made for. 3486if test -n "$ac_config_files"; then 3487 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3488fi 3489 3490if test -n "$ac_config_headers"; then 3491 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3492fi 3493 3494if test -n "$ac_config_links"; then 3495 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3496fi 3497 3498if test -n "$ac_config_commands"; then 3499 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3500fi 3501 3502cat >>$CONFIG_STATUS <<\_ACEOF 3503 3504ac_cs_usage="\ 3505\`$as_me' instantiates files from templates according to the 3506current configuration. 3507 3508Usage: $0 [OPTIONS] [FILE]... 3509 3510 -h, --help print this help, then exit 3511 -V, --version print version number, then exit 3512 -q, --quiet do not print progress messages 3513 -d, --debug don't remove temporary files 3514 --recheck update $as_me by reconfiguring in the same conditions 3515 --file=FILE[:TEMPLATE] 3516 instantiate the configuration file FILE 3517 --header=FILE[:TEMPLATE] 3518 instantiate the configuration header FILE 3519 3520Configuration files: 3521$config_files 3522 3523Configuration headers: 3524$config_headers 3525 3526Report bugs to <bug-autoconf@gnu.org>." 3527_ACEOF 3528 3529cat >>$CONFIG_STATUS <<_ACEOF 3530ac_cs_version="\\ 3531ratbox-respond config.status stable 3532configured by $0, generated by GNU Autoconf 2.59, 3533 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 3534 3535Copyright (C) 2003 Free Software Foundation, Inc. 3536This config.status script is free software; the Free Software Foundation 3537gives unlimited permission to copy, distribute and modify it." 3538srcdir=$srcdir 3539INSTALL="$INSTALL" 3540_ACEOF 3541 3542cat >>$CONFIG_STATUS <<\_ACEOF 3543# If no file are specified by the user, then we need to provide default 3544# value. By we need to know if files were specified by the user. 3545ac_need_defaults=: 3546while test $# != 0 3547do 3548 case $1 in 3549 --*=*) 3550 ac_option=`expr "x$1" : 'x\([^=]*\)='` 3551 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 3552 ac_shift=: 3553 ;; 3554 -*) 3555 ac_option=$1 3556 ac_optarg=$2 3557 ac_shift=shift 3558 ;; 3559 *) # This is not an option, so the user has probably given explicit 3560 # arguments. 3561 ac_option=$1 3562 ac_need_defaults=false;; 3563 esac 3564 3565 case $ac_option in 3566 # Handling of the options. 3567_ACEOF 3568cat >>$CONFIG_STATUS <<\_ACEOF 3569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3570 ac_cs_recheck=: ;; 3571 --version | --vers* | -V ) 3572 echo "$ac_cs_version"; exit 0 ;; 3573 --he | --h) 3574 # Conflict between --help and --header 3575 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3576Try \`$0 --help' for more information." >&5 3577echo "$as_me: error: ambiguous option: $1 3578Try \`$0 --help' for more information." >&2;} 3579 { (exit 1); exit 1; }; };; 3580 --help | --hel | -h ) 3581 echo "$ac_cs_usage"; exit 0 ;; 3582 --debug | --d* | -d ) 3583 debug=: ;; 3584 --file | --fil | --fi | --f ) 3585 $ac_shift 3586 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3587 ac_need_defaults=false;; 3588 --header | --heade | --head | --hea ) 3589 $ac_shift 3590 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3591 ac_need_defaults=false;; 3592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3593 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3594 ac_cs_silent=: ;; 3595 3596 # This is an error. 3597 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3598Try \`$0 --help' for more information." >&5 3599echo "$as_me: error: unrecognized option: $1 3600Try \`$0 --help' for more information." >&2;} 3601 { (exit 1); exit 1; }; } ;; 3602 3603 *) ac_config_targets="$ac_config_targets $1" ;; 3604 3605 esac 3606 shift 3607done 3608 3609ac_configure_extra_args= 3610 3611if $ac_cs_silent; then 3612 exec 6>/dev/null 3613 ac_configure_extra_args="$ac_configure_extra_args --silent" 3614fi 3615 3616_ACEOF 3617cat >>$CONFIG_STATUS <<_ACEOF 3618if \$ac_cs_recheck; then 3619 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3620 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3621fi 3622 3623_ACEOF 3624 3625 3626 3627 3628 3629cat >>$CONFIG_STATUS <<\_ACEOF 3630for ac_config_target in $ac_config_targets 3631do 3632 case "$ac_config_target" in 3633 # Handling of arguments. 3634 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3635 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; 3636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3637echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3638 { (exit 1); exit 1; }; };; 3639 esac 3640done 3641 3642# If the user did not use the arguments to specify the items to instantiate, 3643# then the envvar interface is used. Set only those that are not. 3644# We use the long form for the default assignment because of an extremely 3645# bizarre bug on SunOS 4.1.3. 3646if $ac_need_defaults; then 3647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 3649fi 3650 3651# Have a temporary directory for convenience. Make it in the build tree 3652# simply because there is no reason to put it here, and in addition, 3653# creating and moving files from /tmp can sometimes cause problems. 3654# Create a temporary directory, and hook for its removal unless debugging. 3655$debug || 3656{ 3657 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3658 trap '{ (exit 1); exit 1; }' 1 2 13 15 3659} 3660 3661# Create a (secure) tmp directory for tmp files. 3662 3663{ 3664 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 3665 test -n "$tmp" && test -d "$tmp" 3666} || 3667{ 3668 tmp=./confstat$$-$RANDOM 3669 (umask 077 && mkdir $tmp) 3670} || 3671{ 3672 echo "$me: cannot create a temporary directory in ." >&2 3673 { (exit 1); exit 1; } 3674} 3675 3676_ACEOF 3677 3678cat >>$CONFIG_STATUS <<_ACEOF 3679 3680# 3681# CONFIG_FILES section. 3682# 3683 3684# No need to generate the scripts if there are no CONFIG_FILES. 3685# This happens for instance when ./config.status config.h 3686if test -n "\$CONFIG_FILES"; then 3687 # Protect against being on the right side of a sed subst in config.status. 3688 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3689 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3690s,@SHELL@,$SHELL,;t t 3691s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3692s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3693s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3694s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3695s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3696s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3697s,@exec_prefix@,$exec_prefix,;t t 3698s,@prefix@,$prefix,;t t 3699s,@program_transform_name@,$program_transform_name,;t t 3700s,@bindir@,$bindir,;t t 3701s,@sbindir@,$sbindir,;t t 3702s,@libexecdir@,$libexecdir,;t t 3703s,@datadir@,$datadir,;t t 3704s,@sysconfdir@,$sysconfdir,;t t 3705s,@sharedstatedir@,$sharedstatedir,;t t 3706s,@localstatedir@,$localstatedir,;t t 3707s,@libdir@,$libdir,;t t 3708s,@includedir@,$includedir,;t t 3709s,@oldincludedir@,$oldincludedir,;t t 3710s,@infodir@,$infodir,;t t 3711s,@mandir@,$mandir,;t t 3712s,@build_alias@,$build_alias,;t t 3713s,@host_alias@,$host_alias,;t t 3714s,@target_alias@,$target_alias,;t t 3715s,@DEFS@,$DEFS,;t t 3716s,@ECHO_C@,$ECHO_C,;t t 3717s,@ECHO_N@,$ECHO_N,;t t 3718s,@ECHO_T@,$ECHO_T,;t t 3719s,@LIBS@,$LIBS,;t t 3720s,@CC@,$CC,;t t 3721s,@CFLAGS@,$CFLAGS,;t t 3722s,@LDFLAGS@,$LDFLAGS,;t t 3723s,@CPPFLAGS@,$CPPFLAGS,;t t 3724s,@ac_ct_CC@,$ac_ct_CC,;t t 3725s,@EXEEXT@,$EXEEXT,;t t 3726s,@OBJEXT@,$OBJEXT,;t t 3727s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 3728s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 3729s,@INSTALL_DATA@,$INSTALL_DATA,;t t 3730s,@RM@,$RM,;t t 3731s,@CP@,$CP,;t t 3732s,@MV@,$MV,;t t 3733s,@TOUCH@,$TOUCH,;t t 3734s,@CPP@,$CPP,;t t 3735s,@EGREP@,$EGREP,;t t 3736s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t 3737s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t 3738s,@SSL_LIBS@,$SSL_LIBS,;t t 3739s,@LIBOBJS@,$LIBOBJS,;t t 3740s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3741CEOF 3742 3743_ACEOF 3744 3745 cat >>$CONFIG_STATUS <<\_ACEOF 3746 # Split the substitutions into bite-sized pieces for seds with 3747 # small command number limits, like on Digital OSF/1 and HP-UX. 3748 ac_max_sed_lines=48 3749 ac_sed_frag=1 # Number of current file. 3750 ac_beg=1 # First line for current file. 3751 ac_end=$ac_max_sed_lines # Line after last line for current file. 3752 ac_more_lines=: 3753 ac_sed_cmds= 3754 while $ac_more_lines; do 3755 if test $ac_beg -gt 1; then 3756 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3757 else 3758 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3759 fi 3760 if test ! -s $tmp/subs.frag; then 3761 ac_more_lines=false 3762 else 3763 # The purpose of the label and of the branching condition is to 3764 # speed up the sed processing (if there are no `@' at all, there 3765 # is no need to browse any of the substitutions). 3766 # These are the two extra sed commands mentioned above. 3767 (echo ':t 3768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3769 if test -z "$ac_sed_cmds"; then 3770 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3771 else 3772 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3773 fi 3774 ac_sed_frag=`expr $ac_sed_frag + 1` 3775 ac_beg=$ac_end 3776 ac_end=`expr $ac_end + $ac_max_sed_lines` 3777 fi 3778 done 3779 if test -z "$ac_sed_cmds"; then 3780 ac_sed_cmds=cat 3781 fi 3782fi # test -n "$CONFIG_FILES" 3783 3784_ACEOF 3785cat >>$CONFIG_STATUS <<\_ACEOF 3786for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3787 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3788 case $ac_file in 3789 - | *:- | *:-:* ) # input from stdin 3790 cat >$tmp/stdin 3791 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3793 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3795 * ) ac_file_in=$ac_file.in ;; 3796 esac 3797 3798 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3799 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3801 X"$ac_file" : 'X\(//\)[^/]' \| \ 3802 X"$ac_file" : 'X\(//\)$' \| \ 3803 X"$ac_file" : 'X\(/\)' \| \ 3804 . : '\(.\)' 2>/dev/null || 3805echo X"$ac_file" | 3806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3807 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3808 /^X\(\/\/\)$/{ s//\1/; q; } 3809 /^X\(\/\).*/{ s//\1/; q; } 3810 s/.*/./; q'` 3811 { if $as_mkdir_p; then 3812 mkdir -p "$ac_dir" 3813 else 3814 as_dir="$ac_dir" 3815 as_dirs= 3816 while test ! -d "$as_dir"; do 3817 as_dirs="$as_dir $as_dirs" 3818 as_dir=`(dirname "$as_dir") 2>/dev/null || 3819$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3820 X"$as_dir" : 'X\(//\)[^/]' \| \ 3821 X"$as_dir" : 'X\(//\)$' \| \ 3822 X"$as_dir" : 'X\(/\)' \| \ 3823 . : '\(.\)' 2>/dev/null || 3824echo X"$as_dir" | 3825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3826 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3827 /^X\(\/\/\)$/{ s//\1/; q; } 3828 /^X\(\/\).*/{ s//\1/; q; } 3829 s/.*/./; q'` 3830 done 3831 test ! -n "$as_dirs" || mkdir $as_dirs 3832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3833echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3834 { (exit 1); exit 1; }; }; } 3835 3836 ac_builddir=. 3837 3838if test "$ac_dir" != .; then 3839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3840 # A "../" for each directory in $ac_dir_suffix. 3841 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3842else 3843 ac_dir_suffix= ac_top_builddir= 3844fi 3845 3846case $srcdir in 3847 .) # No --srcdir option. We are building in place. 3848 ac_srcdir=. 3849 if test -z "$ac_top_builddir"; then 3850 ac_top_srcdir=. 3851 else 3852 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3853 fi ;; 3854 [\\/]* | ?:[\\/]* ) # Absolute path. 3855 ac_srcdir=$srcdir$ac_dir_suffix; 3856 ac_top_srcdir=$srcdir ;; 3857 *) # Relative path. 3858 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3859 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3860esac 3861 3862# Do not use `cd foo && pwd` to compute absolute paths, because 3863# the directories may not exist. 3864case `pwd` in 3865.) ac_abs_builddir="$ac_dir";; 3866*) 3867 case "$ac_dir" in 3868 .) ac_abs_builddir=`pwd`;; 3869 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 3870 *) ac_abs_builddir=`pwd`/"$ac_dir";; 3871 esac;; 3872esac 3873case $ac_abs_builddir in 3874.) ac_abs_top_builddir=${ac_top_builddir}.;; 3875*) 3876 case ${ac_top_builddir}. in 3877 .) ac_abs_top_builddir=$ac_abs_builddir;; 3878 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 3879 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 3880 esac;; 3881esac 3882case $ac_abs_builddir in 3883.) ac_abs_srcdir=$ac_srcdir;; 3884*) 3885 case $ac_srcdir in 3886 .) ac_abs_srcdir=$ac_abs_builddir;; 3887 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 3888 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 3889 esac;; 3890esac 3891case $ac_abs_builddir in 3892.) ac_abs_top_srcdir=$ac_top_srcdir;; 3893*) 3894 case $ac_top_srcdir in 3895 .) ac_abs_top_srcdir=$ac_abs_builddir;; 3896 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 3897 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 3898 esac;; 3899esac 3900 3901 3902 case $INSTALL in 3903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 3904 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 3905 esac 3906 3907 # Let's still pretend it is `configure' which instantiates (i.e., don't 3908 # use $as_me), people would be surprised to read: 3909 # /* config.h. Generated by config.status. */ 3910 if test x"$ac_file" = x-; then 3911 configure_input= 3912 else 3913 configure_input="$ac_file. " 3914 fi 3915 configure_input=$configure_input"Generated from `echo $ac_file_in | 3916 sed 's,.*/,,'` by configure." 3917 3918 # First look for the input files in the build tree, otherwise in the 3919 # src tree. 3920 ac_file_inputs=`IFS=: 3921 for f in $ac_file_in; do 3922 case $f in 3923 -) echo $tmp/stdin ;; 3924 [\\/$]*) 3925 # Absolute (can't be DOS-style, as IFS=:) 3926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3927echo "$as_me: error: cannot find input file: $f" >&2;} 3928 { (exit 1); exit 1; }; } 3929 echo "$f";; 3930 *) # Relative 3931 if test -f "$f"; then 3932 # Build tree 3933 echo "$f" 3934 elif test -f "$srcdir/$f"; then 3935 # Source tree 3936 echo "$srcdir/$f" 3937 else 3938 # /dev/null tree 3939 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3940echo "$as_me: error: cannot find input file: $f" >&2;} 3941 { (exit 1); exit 1; }; } 3942 fi;; 3943 esac 3944 done` || { (exit 1); exit 1; } 3945 3946 if test x"$ac_file" != x-; then 3947 { echo "$as_me:$LINENO: creating $ac_file" >&5 3948echo "$as_me: creating $ac_file" >&6;} 3949 rm -f "$ac_file" 3950 fi 3951_ACEOF 3952cat >>$CONFIG_STATUS <<_ACEOF 3953 sed "$ac_vpsub 3954$extrasub 3955_ACEOF 3956cat >>$CONFIG_STATUS <<\_ACEOF 3957:t 3958/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3959s,@configure_input@,$configure_input,;t t 3960s,@srcdir@,$ac_srcdir,;t t 3961s,@abs_srcdir@,$ac_abs_srcdir,;t t 3962s,@top_srcdir@,$ac_top_srcdir,;t t 3963s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3964s,@builddir@,$ac_builddir,;t t 3965s,@abs_builddir@,$ac_abs_builddir,;t t 3966s,@top_builddir@,$ac_top_builddir,;t t 3967s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3968s,@INSTALL@,$ac_INSTALL,;t t 3969" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3970 rm -f $tmp/stdin 3971 if test x"$ac_file" != x-; then 3972 mv $tmp/out $ac_file 3973 else 3974 cat $tmp/out 3975 rm -f $tmp/out 3976 fi 3977 3978done 3979_ACEOF 3980cat >>$CONFIG_STATUS <<\_ACEOF 3981 3982# 3983# CONFIG_HEADER section. 3984# 3985 3986# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 3987# NAME is the cpp macro being defined and VALUE is the value it is being given. 3988# 3989# ac_d sets the value in "#define NAME VALUE" lines. 3990ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 3991ac_dB='[ ].*$,\1#\2' 3992ac_dC=' ' 3993ac_dD=',;t' 3994# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3995ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3996ac_uB='$,\1#\2define\3' 3997ac_uC=' ' 3998ac_uD=',;t' 3999 4000for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 4001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4002 case $ac_file in 4003 - | *:- | *:-:* ) # input from stdin 4004 cat >$tmp/stdin 4005 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4006 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4007 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4009 * ) ac_file_in=$ac_file.in ;; 4010 esac 4011 4012 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 4013echo "$as_me: creating $ac_file" >&6;} 4014 4015 # First look for the input files in the build tree, otherwise in the 4016 # src tree. 4017 ac_file_inputs=`IFS=: 4018 for f in $ac_file_in; do 4019 case $f in 4020 -) echo $tmp/stdin ;; 4021 [\\/$]*) 4022 # Absolute (can't be DOS-style, as IFS=:) 4023 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4024echo "$as_me: error: cannot find input file: $f" >&2;} 4025 { (exit 1); exit 1; }; } 4026 # Do quote $f, to prevent DOS paths from being IFS'd. 4027 echo "$f";; 4028 *) # Relative 4029 if test -f "$f"; then 4030 # Build tree 4031 echo "$f" 4032 elif test -f "$srcdir/$f"; then 4033 # Source tree 4034 echo "$srcdir/$f" 4035 else 4036 # /dev/null tree 4037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4038echo "$as_me: error: cannot find input file: $f" >&2;} 4039 { (exit 1); exit 1; }; } 4040 fi;; 4041 esac 4042 done` || { (exit 1); exit 1; } 4043 # Remove the trailing spaces. 4044 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 4045 4046_ACEOF 4047 4048# Transform confdefs.h into two sed scripts, `conftest.defines' and 4049# `conftest.undefs', that substitutes the proper values into 4050# config.h.in to produce config.h. The first handles `#define' 4051# templates, and the second `#undef' templates. 4052# And first: Protect against being on the right side of a sed subst in 4053# config.status. Protect against being in an unquoted here document 4054# in config.status. 4055rm -f conftest.defines conftest.undefs 4056# Using a here document instead of a string reduces the quoting nightmare. 4057# Putting comments in sed scripts is not portable. 4058# 4059# `end' is used to avoid that the second main sed command (meant for 4060# 0-ary CPP macros) applies to n-ary macro definitions. 4061# See the Autoconf documentation for `clear'. 4062cat >confdef2sed.sed <<\_ACEOF 4063s/[\\&,]/\\&/g 4064s,[\\$`],\\&,g 4065t clear 4066: clear 4067s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 4068t end 4069s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 4070: end 4071_ACEOF 4072# If some macros were called several times there might be several times 4073# the same #defines, which is useless. Nevertheless, we may not want to 4074# sort them, since we want the *last* AC-DEFINE to be honored. 4075uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 4076sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 4077rm -f confdef2sed.sed 4078 4079# This sed command replaces #undef with comments. This is necessary, for 4080# example, in the case of _POSIX_SOURCE, which is predefined and required 4081# on some systems where configure will not decide to define it. 4082cat >>conftest.undefs <<\_ACEOF 4083s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 4084_ACEOF 4085 4086# Break up conftest.defines because some shells have a limit on the size 4087# of here documents, and old seds have small limits too (100 cmds). 4088echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 4089echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 4090echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 4091echo ' :' >>$CONFIG_STATUS 4092rm -f conftest.tail 4093while grep . conftest.defines >/dev/null 4094do 4095 # Write a limited-size here document to $tmp/defines.sed. 4096 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 4097 # Speed up: don't consider the non `#define' lines. 4098 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 4099 # Work around the forget-to-reset-the-flag bug. 4100 echo 't clr' >>$CONFIG_STATUS 4101 echo ': clr' >>$CONFIG_STATUS 4102 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 4103 echo 'CEOF 4104 sed -f $tmp/defines.sed $tmp/in >$tmp/out 4105 rm -f $tmp/in 4106 mv $tmp/out $tmp/in 4107' >>$CONFIG_STATUS 4108 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 4109 rm -f conftest.defines 4110 mv conftest.tail conftest.defines 4111done 4112rm -f conftest.defines 4113echo ' fi # grep' >>$CONFIG_STATUS 4114echo >>$CONFIG_STATUS 4115 4116# Break up conftest.undefs because some shells have a limit on the size 4117# of here documents, and old seds have small limits too (100 cmds). 4118echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 4119rm -f conftest.tail 4120while grep . conftest.undefs >/dev/null 4121do 4122 # Write a limited-size here document to $tmp/undefs.sed. 4123 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 4124 # Speed up: don't consider the non `#undef' 4125 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 4126 # Work around the forget-to-reset-the-flag bug. 4127 echo 't clr' >>$CONFIG_STATUS 4128 echo ': clr' >>$CONFIG_STATUS 4129 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 4130 echo 'CEOF 4131 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 4132 rm -f $tmp/in 4133 mv $tmp/out $tmp/in 4134' >>$CONFIG_STATUS 4135 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 4136 rm -f conftest.undefs 4137 mv conftest.tail conftest.undefs 4138done 4139rm -f conftest.undefs 4140 4141cat >>$CONFIG_STATUS <<\_ACEOF 4142 # Let's still pretend it is `configure' which instantiates (i.e., don't 4143 # use $as_me), people would be surprised to read: 4144 # /* config.h. Generated by config.status. */ 4145 if test x"$ac_file" = x-; then 4146 echo "/* Generated by configure. */" >$tmp/config.h 4147 else 4148 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 4149 fi 4150 cat $tmp/in >>$tmp/config.h 4151 rm -f $tmp/in 4152 if test x"$ac_file" != x-; then 4153 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 4154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 4155echo "$as_me: $ac_file is unchanged" >&6;} 4156 else 4157 ac_dir=`(dirname "$ac_file") 2>/dev/null || 4158$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4159 X"$ac_file" : 'X\(//\)[^/]' \| \ 4160 X"$ac_file" : 'X\(//\)$' \| \ 4161 X"$ac_file" : 'X\(/\)' \| \ 4162 . : '\(.\)' 2>/dev/null || 4163echo X"$ac_file" | 4164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4165 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4166 /^X\(\/\/\)$/{ s//\1/; q; } 4167 /^X\(\/\).*/{ s//\1/; q; } 4168 s/.*/./; q'` 4169 { if $as_mkdir_p; then 4170 mkdir -p "$ac_dir" 4171 else 4172 as_dir="$ac_dir" 4173 as_dirs= 4174 while test ! -d "$as_dir"; do 4175 as_dirs="$as_dir $as_dirs" 4176 as_dir=`(dirname "$as_dir") 2>/dev/null || 4177$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4178 X"$as_dir" : 'X\(//\)[^/]' \| \ 4179 X"$as_dir" : 'X\(//\)$' \| \ 4180 X"$as_dir" : 'X\(/\)' \| \ 4181 . : '\(.\)' 2>/dev/null || 4182echo X"$as_dir" | 4183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4184 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4185 /^X\(\/\/\)$/{ s//\1/; q; } 4186 /^X\(\/\).*/{ s//\1/; q; } 4187 s/.*/./; q'` 4188 done 4189 test ! -n "$as_dirs" || mkdir $as_dirs 4190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4191echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4192 { (exit 1); exit 1; }; }; } 4193 4194 rm -f $ac_file 4195 mv $tmp/config.h $ac_file 4196 fi 4197 else 4198 cat $tmp/config.h 4199 rm -f $tmp/config.h 4200 fi 4201done 4202_ACEOF 4203 4204cat >>$CONFIG_STATUS <<\_ACEOF 4205 4206{ (exit 0); exit 0; } 4207_ACEOF 4208chmod +x $CONFIG_STATUS 4209ac_clean_files=$ac_clean_files_save 4210 4211 4212# configure is writing to config.log, and then calls config.status. 4213# config.status does its own redirection, appending to config.log. 4214# Unfortunately, on DOS this fails, as config.log is still kept open 4215# by configure, so config.status won't be able to write to it; its 4216# output is simply discarded. So we exec the FD to /dev/null, 4217# effectively closing config.log, so it can be properly (re)opened and 4218# appended to by config.status. When coming back to configure, we 4219# need to make the FD available again. 4220if test "$no_create" != yes; then 4221 ac_cs_success=: 4222 ac_config_status_args= 4223 test "$silent" = yes && 4224 ac_config_status_args="$ac_config_status_args --quiet" 4225 exec 5>/dev/null 4226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4227 exec 5>>config.log 4228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4229 # would make configure fail if this is the last instruction. 4230 $ac_cs_success || { (exit 1); exit 1; } 4231fi 4232 4233