source: trunk/gsdl/packages/mg/configure@ 12997

Last change on this file since 12997 was 10852, checked in by kjdon, 18 years ago

changed LIBOBJS= to AC_LIBOBJ(), added in check for endianness

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