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