source: other-projects/trunk/search4j/configure@ 17496

Last change on this file since 17496 was 17496, checked in by oranfry, 13 years ago

GNU style build files for search4j

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