source: main/trunk/greenstone2/runtime-src/packages/d2m/configure@ 22588

Last change on this file since 22588 was 10365, checked in by kjdon, 19 years ago

changed my mind, now adding these all individually instead of in a tar file

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