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