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