blob: dfb198543a30a0cb2b65d0856ba58b1e50ab8870 [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
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +0000308ac_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 ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE RANLIB ac_ct_RANLIB LN_S LIBTOOL CPP EGREP LIBOBJS CCAS CCASFLAGS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000309ac_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]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000849 --enable-maintainer-mode enable make rules and dependencies not useful
850 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +0000851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000853 --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}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001356am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001357# Find a good install program. We prefer a C program (faster),
1358# so one script is as good as another. But avoid the broken or
1359# incompatible versions:
1360# SysV /etc/install, /usr/sbin/install
1361# SunOS /usr/etc/install
1362# IRIX /sbin/install
1363# AIX /bin/install
1364# AmigaOS /C/install, which installs bootblocks on floppy discs
1365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1368# ./install, which can be erroneously created by make from ./install.sh.
1369echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1370echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1371if test -z "$INSTALL"; then
1372if test "${ac_cv_path_install+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1374else
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376for as_dir in $PATH
1377do
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 # Account for people who put trailing slashes in PATH elements.
1381case $as_dir/ in
1382 ./ | .// | /cC/* | \
1383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1384 /usr/ucb/* ) ;;
1385 *)
1386 # OSF1 and SCO ODT 3.0 have their own names for install.
1387 # Don't use installbsd from OSF since it installs stuff as root
1388 # by default.
1389 for ac_prog in ginstall scoinst install; do
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1392 if test $ac_prog = install &&
1393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1394 # AIX install. It has an incompatible calling convention.
1395 :
1396 elif test $ac_prog = install &&
1397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1398 # program-specific install script used by HP pwplus--don't use.
1399 :
1400 else
1401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1402 break 3
1403 fi
1404 fi
1405 done
1406 done
1407 ;;
1408esac
1409done
1410
1411
1412fi
1413 if test "${ac_cv_path_install+set}" = set; then
1414 INSTALL=$ac_cv_path_install
1415 else
1416 # As a last resort, use the slow shell script. We don't cache a
1417 # path for INSTALL within a source directory, because that will
1418 # break other packages using the cache if that directory is
1419 # removed, or if the path is relative.
1420 INSTALL=$ac_install_sh
1421 fi
1422fi
1423echo "$as_me:$LINENO: result: $INSTALL" >&5
1424echo "${ECHO_T}$INSTALL" >&6
1425
1426# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1427# It thinks the first close brace ends the variable substitution.
1428test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1429
1430test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1431
1432test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1433
1434echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1435echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1436# Just in case
1437sleep 1
1438echo timestamp > conftest.file
1439# Do `set' in a subshell so we don't clobber the current shell's
1440# arguments. Must try -L first in case configure is actually a
1441# symlink; some systems play weird games with the mod time of symlinks
1442# (eg FreeBSD returns the mod time of the symlink's containing
1443# directory).
1444if (
1445 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1446 if test "$*" = "X"; then
1447 # -L didn't work.
1448 set X `ls -t $srcdir/configure conftest.file`
1449 fi
1450 rm -f conftest.file
1451 if test "$*" != "X $srcdir/configure conftest.file" \
1452 && test "$*" != "X conftest.file $srcdir/configure"; then
1453
1454 # If neither matched, then we have a broken ls. This can happen
1455 # if, for instance, CONFIG_SHELL is bash and it inherits a
1456 # broken ls alias from the environment. This has actually
1457 # happened. Such a system could not be considered "sane".
1458 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1459alias in your environment" >&5
1460echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1461alias in your environment" >&2;}
1462 { (exit 1); exit 1; }; }
1463 fi
1464
1465 test "$2" = conftest.file
1466 )
1467then
1468 # Ok.
1469 :
1470else
1471 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1472Check your system clock" >&5
1473echo "$as_me: error: newly created file is older than distributed files!
1474Check your system clock" >&2;}
1475 { (exit 1); exit 1; }; }
1476fi
1477echo "$as_me:$LINENO: result: yes" >&5
1478echo "${ECHO_T}yes" >&6
1479test "$program_prefix" != NONE &&
1480 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1481# Use a double $ so make ignores it.
1482test "$program_suffix" != NONE &&
1483 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1484# Double any \ or $. echo might interpret backslashes.
1485# By default was `s,x,x', remove it if useless.
1486cat <<\_ACEOF >conftest.sed
1487s/[\\$]/&&/g;s/;s,x,x,$//
1488_ACEOF
1489program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1490rm conftest.sed
1491
1492
1493# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001494am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001495
1496test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1497# Use eval to expand $SHELL
1498if eval "$MISSING --run true"; then
1499 am_missing_run="$MISSING --run "
1500else
1501 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001502 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1503echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001504fi
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
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001575 # test to see if srcdir already configured
1576if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001577 test -f $srcdir/config.status; then
1578 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1579echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1580 { (exit 1); exit 1; }; }
1581fi
1582
1583# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001584 PACKAGE=libunwind
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00001585 VERSION=0.2-pre3
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001586
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001587
1588cat >>confdefs.h <<_ACEOF
1589#define PACKAGE "$PACKAGE"
1590_ACEOF
1591
1592
1593cat >>confdefs.h <<_ACEOF
1594#define VERSION "$VERSION"
1595_ACEOF
1596
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001597# Some tools Automake needs.
1598
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001599ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001600
1601
1602AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1603
1604
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001605AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001606
1607
1608AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1609
1610
1611MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1612
1613
1614AMTAR=${AMTAR-"${am_missing_run}tar"}
1615
1616install_sh=${install_sh-"$am_aux_dir/install-sh"}
1617
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001618# Installed binaries are usually stripped using `strip' when the user
1619# run `make install-strip'. However `strip' might not be the right
1620# tool to use in cross-compilation environments, therefore Automake
1621# will honor the `STRIP' environment variable to overrule this program.
1622if test "$cross_compiling" != no; then
1623 if test -n "$ac_tool_prefix"; then
1624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1625set dummy ${ac_tool_prefix}strip; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_STRIP+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 if test -n "$STRIP"; then
1632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1633else
1634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635for as_dir in $PATH
1636do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1644 fi
1645done
1646done
1647
1648fi
1649fi
1650STRIP=$ac_cv_prog_STRIP
1651if test -n "$STRIP"; then
1652 echo "$as_me:$LINENO: result: $STRIP" >&5
1653echo "${ECHO_T}$STRIP" >&6
1654else
1655 echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657fi
1658
1659fi
1660if test -z "$ac_cv_prog_STRIP"; then
1661 ac_ct_STRIP=$STRIP
1662 # Extract the first word of "strip", so it can be a program name with args.
1663set dummy strip; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$ac_ct_STRIP"; then
1670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_ac_ct_STRIP="strip"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683done
1684done
1685
1686 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1687fi
1688fi
1689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1690if test -n "$ac_ct_STRIP"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1692echo "${ECHO_T}$ac_ct_STRIP" >&6
1693else
1694 echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698 STRIP=$ac_ct_STRIP
1699else
1700 STRIP="$ac_cv_prog_STRIP"
1701fi
1702
1703fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001704INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1705
1706# We need awk for the "check" target. The system "awk" is bad on
1707# some platforms.
1708
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001709
1710
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001711echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1712echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1713 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1714if test "${enable_maintainer_mode+set}" = set; then
1715 enableval="$enable_maintainer_mode"
1716 USE_MAINTAINER_MODE=$enableval
1717else
1718 USE_MAINTAINER_MODE=no
1719fi;
1720 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1721echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1722
1723
1724if test $USE_MAINTAINER_MODE = yes; then
1725 MAINTAINER_MODE_TRUE=
1726 MAINTAINER_MODE_FALSE='#'
1727else
1728 MAINTAINER_MODE_TRUE='#'
1729 MAINTAINER_MODE_FALSE=
1730fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001731
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001732 MAINT=$MAINTAINER_MODE_TRUE
1733
1734
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001735# Add the stamp file to the list of files AC keeps track of,
1736# along with our hook.
1737 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001738
1739
1740
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001741
1742ac_ext=c
1743ac_cpp='$CPP $CPPFLAGS'
1744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746ac_compiler_gnu=$ac_cv_c_compiler_gnu
1747if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1749set dummy ${ac_tool_prefix}gcc; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757else
1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759for as_dir in $PATH
1760do
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1768 fi
1769done
1770done
1771
1772fi
1773fi
1774CC=$ac_cv_prog_CC
1775if test -n "$CC"; then
1776 echo "$as_me:$LINENO: result: $CC" >&5
1777echo "${ECHO_T}$CC" >&6
1778else
1779 echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
1781fi
1782
1783fi
1784if test -z "$ac_cv_prog_CC"; then
1785 ac_ct_CC=$CC
1786 # Extract the first word of "gcc", so it can be a program name with args.
1787set dummy gcc; ac_word=$2
1788echo "$as_me:$LINENO: checking for $ac_word" >&5
1789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795else
1796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797for as_dir in $PATH
1798do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="gcc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
1806 fi
1807done
1808done
1809
1810fi
1811fi
1812ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815echo "${ECHO_T}$ac_ct_CC" >&6
1816else
1817 echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821 CC=$ac_ct_CC
1822else
1823 CC="$ac_cv_prog_CC"
1824fi
1825
1826if test -z "$CC"; then
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1829set dummy ${ac_tool_prefix}cc; ac_word=$2
1830echo "$as_me:$LINENO: checking for $ac_word" >&5
1831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837else
1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="${ac_tool_prefix}cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849done
1850done
1851
1852fi
1853fi
1854CC=$ac_cv_prog_CC
1855if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857echo "${ECHO_T}$CC" >&6
1858else
1859 echo "$as_me:$LINENO: result: no" >&5
1860echo "${ECHO_T}no" >&6
1861fi
1862
1863fi
1864if test -z "$ac_cv_prog_CC"; then
1865 ac_ct_CC=$CC
1866 # Extract the first word of "cc", so it can be a program name with args.
1867set dummy cc; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="cc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887done
1888done
1889
1890fi
1891fi
1892ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895echo "${ECHO_T}$ac_ct_CC" >&6
1896else
1897 echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901 CC=$ac_ct_CC
1902else
1903 CC="$ac_cv_prog_CC"
1904fi
1905
1906fi
1907if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909set dummy cc; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917else
1918 ac_prog_rejected=no
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1927 ac_prog_rejected=yes
1928 continue
1929 fi
1930 ac_cv_prog_CC="cc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1933 fi
1934done
1935done
1936
1937if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy $ac_cv_prog_CC
1940 shift
1941 if test $# != 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1945 shift
1946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1947 fi
1948fi
1949fi
1950fi
1951CC=$ac_cv_prog_CC
1952if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954echo "${ECHO_T}$CC" >&6
1955else
1956 echo "$as_me:$LINENO: result: no" >&5
1957echo "${ECHO_T}no" >&6
1958fi
1959
1960fi
1961if test -z "$CC"; then
1962 if test -n "$ac_tool_prefix"; then
1963 for ac_prog in cl
1964 do
1965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1967echo "$as_me:$LINENO: checking for $ac_word" >&5
1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1974else
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1985 fi
1986done
1987done
1988
1989fi
1990fi
1991CC=$ac_cv_prog_CC
1992if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994echo "${ECHO_T}$CC" >&6
1995else
1996 echo "$as_me:$LINENO: result: no" >&5
1997echo "${ECHO_T}no" >&6
1998fi
1999
2000 test -n "$CC" && break
2001 done
2002fi
2003if test -z "$CC"; then
2004 ac_ct_CC=$CC
2005 for ac_prog in cl
2006do
2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
2008set dummy $ac_prog; ac_word=$2
2009echo "$as_me:$LINENO: checking for $ac_word" >&5
2010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014 if test -n "$ac_ct_CC"; then
2015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016else
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_CC="$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2027 fi
2028done
2029done
2030
2031fi
2032fi
2033ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034if test -n "$ac_ct_CC"; then
2035 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036echo "${ECHO_T}$ac_ct_CC" >&6
2037else
2038 echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6
2040fi
2041
2042 test -n "$ac_ct_CC" && break
2043done
2044
2045 CC=$ac_ct_CC
2046fi
2047
2048fi
2049
2050
2051test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2052echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2053 { (exit 1); exit 1; }; }
2054
2055# Provide some information about the compiler.
2056echo "$as_me:$LINENO:" \
2057 "checking for C compiler version" >&5
2058ac_compiler=`set X $ac_compile; echo $2`
2059{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2060 (eval $ac_compiler --version </dev/null >&5) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }
2064{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2065 (eval $ac_compiler -v </dev/null >&5) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }
2069{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2070 (eval $ac_compiler -V </dev/null >&5) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }
2074
2075cat >conftest.$ac_ext <<_ACEOF
2076#line $LINENO "configure"
2077#include "confdefs.h"
2078
2079int
2080main ()
2081{
2082
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087ac_clean_files_save=$ac_clean_files
2088ac_clean_files="$ac_clean_files a.out a.exe"
2089# Try to create an executable without -o first, disregard a.out.
2090# It will help us diagnose broken compilers, and finding out an intuition
2091# of exeext.
2092echo "$as_me:$LINENO: checking for C compiler default output" >&5
2093echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2094ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2095if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2096 (eval $ac_link_default) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; then
2100 # Find the output, starting from the most likely. This scheme is
2101# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2102# resort.
2103
2104# Be careful to initialize this variable, since it used to be cached.
2105# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2106ac_cv_exeext=
2107for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2108 test -f "$ac_file" || continue
2109 case $ac_file in
2110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2111 a.out ) # We found the default executable, but exeext='' is most
2112 # certainly right.
2113 break;;
2114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2116 export ac_cv_exeext
2117 break;;
2118 * ) break;;
2119 esac
2120done
2121else
2122 echo "$as_me: failed program was:" >&5
2123cat conftest.$ac_ext >&5
2124{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2125check \`config.log' for details." >&5
2126echo "$as_me: error: C compiler cannot create executables
2127check \`config.log' for details." >&2;}
2128 { (exit 77); exit 77; }; }
2129fi
2130
2131ac_exeext=$ac_cv_exeext
2132echo "$as_me:$LINENO: result: $ac_file" >&5
2133echo "${ECHO_T}$ac_file" >&6
2134
2135# Check the compiler produces executables we can run. If not, either
2136# the compiler is broken, or we cross compile.
2137echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2138echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2139# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2140# If not cross compiling, check that we can run a simple program.
2141if test "$cross_compiling" != yes; then
2142 if { ac_try='./$ac_file'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 cross_compiling=no
2149 else
2150 if test "$cross_compiling" = maybe; then
2151 cross_compiling=yes
2152 else
2153 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2154If you meant to cross compile, use \`--host'." >&5
2155echo "$as_me: error: cannot run C compiled programs.
2156If you meant to cross compile, use \`--host'." >&2;}
2157 { (exit 1); exit 1; }; }
2158 fi
2159 fi
2160fi
2161echo "$as_me:$LINENO: result: yes" >&5
2162echo "${ECHO_T}yes" >&6
2163
2164rm -f a.out a.exe conftest$ac_cv_exeext
2165ac_clean_files=$ac_clean_files_save
2166# Check the compiler produces executables we can run. If not, either
2167# the compiler is broken, or we cross compile.
2168echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2169echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2170echo "$as_me:$LINENO: result: $cross_compiling" >&5
2171echo "${ECHO_T}$cross_compiling" >&6
2172
2173echo "$as_me:$LINENO: checking for suffix of executables" >&5
2174echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2176 (eval $ac_link) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; then
2180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2181# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2182# work properly (i.e., refer to `conftest.exe'), while it won't with
2183# `rm'.
2184for ac_file in conftest.exe conftest conftest.*; do
2185 test -f "$ac_file" || continue
2186 case $ac_file in
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 export ac_cv_exeext
2190 break;;
2191 * ) break;;
2192 esac
2193done
2194else
2195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2196echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2197 { (exit 1); exit 1; }; }
2198fi
2199
2200rm -f conftest$ac_cv_exeext
2201echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2202echo "${ECHO_T}$ac_cv_exeext" >&6
2203
2204rm -f conftest.$ac_ext
2205EXEEXT=$ac_cv_exeext
2206ac_exeext=$EXEEXT
2207echo "$as_me:$LINENO: checking for suffix of object files" >&5
2208echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2209if test "${ac_cv_objext+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 cat >conftest.$ac_ext <<_ACEOF
2213#line $LINENO "configure"
2214#include "confdefs.h"
2215
2216int
2217main ()
2218{
2219
2220 ;
2221 return 0;
2222}
2223_ACEOF
2224rm -f conftest.o conftest.obj
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; then
2230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2231 case $ac_file in
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2234 break;;
2235 esac
2236done
2237else
2238 echo "$as_me: failed program was:" >&5
2239cat conftest.$ac_ext >&5
2240{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2241echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2242 { (exit 1); exit 1; }; }
2243fi
2244
2245rm -f conftest.$ac_cv_objext conftest.$ac_ext
2246fi
2247echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2248echo "${ECHO_T}$ac_cv_objext" >&6
2249OBJEXT=$ac_cv_objext
2250ac_objext=$OBJEXT
2251echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2252echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2253if test "${ac_cv_c_compiler_gnu+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256 cat >conftest.$ac_ext <<_ACEOF
2257#line $LINENO "configure"
2258#include "confdefs.h"
2259
2260int
2261main ()
2262{
2263#ifndef __GNUC__
2264 choke me
2265#endif
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_compiler_gnu=yes
2284else
2285 echo "$as_me: failed program was:" >&5
2286cat conftest.$ac_ext >&5
2287ac_compiler_gnu=no
2288fi
2289rm -f conftest.$ac_objext conftest.$ac_ext
2290ac_cv_c_compiler_gnu=$ac_compiler_gnu
2291
2292fi
2293echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2294echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2295GCC=`test $ac_compiler_gnu = yes && echo yes`
2296ac_test_CFLAGS=${CFLAGS+set}
2297ac_save_CFLAGS=$CFLAGS
2298CFLAGS="-g"
2299echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2300echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2301if test "${ac_cv_prog_cc_g+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
2305#line $LINENO "configure"
2306#include "confdefs.h"
2307
2308int
2309main ()
2310{
2311
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316rm -f conftest.$ac_objext
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2328 ac_cv_prog_cc_g=yes
2329else
2330 echo "$as_me: failed program was:" >&5
2331cat conftest.$ac_ext >&5
2332ac_cv_prog_cc_g=no
2333fi
2334rm -f conftest.$ac_objext conftest.$ac_ext
2335fi
2336echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2337echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2338if test "$ac_test_CFLAGS" = set; then
2339 CFLAGS=$ac_save_CFLAGS
2340elif test $ac_cv_prog_cc_g = yes; then
2341 if test "$GCC" = yes; then
2342 CFLAGS="-g -O2"
2343 else
2344 CFLAGS="-g"
2345 fi
2346else
2347 if test "$GCC" = yes; then
2348 CFLAGS="-O2"
2349 else
2350 CFLAGS=
2351 fi
2352fi
2353echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2354echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2355if test "${ac_cv_prog_cc_stdc+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 ac_cv_prog_cc_stdc=no
2359ac_save_CC=$CC
2360cat >conftest.$ac_ext <<_ACEOF
2361#line $LINENO "configure"
2362#include "confdefs.h"
2363#include <stdarg.h>
2364#include <stdio.h>
2365#include <sys/types.h>
2366#include <sys/stat.h>
2367/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2368struct buf { int x; };
2369FILE * (*rcsopen) (struct buf *, struct stat *, int);
2370static char *e (p, i)
2371 char **p;
2372 int i;
2373{
2374 return p[i];
2375}
2376static char *f (char * (*g) (char **, int), char **p, ...)
2377{
2378 char *s;
2379 va_list v;
2380 va_start (v,p);
2381 s = g (p, va_arg (v,int));
2382 va_end (v);
2383 return s;
2384}
2385int test (int i, double x);
2386struct s1 {int (*f) (int a);};
2387struct s2 {int (*f) (double a);};
2388int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2389int argc;
2390char **argv;
2391int
2392main ()
2393{
2394return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2395 ;
2396 return 0;
2397}
2398_ACEOF
2399# Don't try gcc -ansi; that turns off useful extensions and
2400# breaks some systems' header files.
2401# AIX -qlanglvl=ansi
2402# Ultrix and OSF/1 -std1
2403# HP-UX 10.20 and later -Ae
2404# HP-UX older versions -Aa -D_HPUX_SOURCE
2405# SVR4 -Xc -D__EXTENSIONS__
2406for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2407do
2408 CC="$ac_save_CC $ac_arg"
2409 rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_stdc=$ac_arg
2422break
2423else
2424 echo "$as_me: failed program was:" >&5
2425cat conftest.$ac_ext >&5
2426fi
2427rm -f conftest.$ac_objext
2428done
2429rm -f conftest.$ac_ext conftest.$ac_objext
2430CC=$ac_save_CC
2431
2432fi
2433
2434case "x$ac_cv_prog_cc_stdc" in
2435 x|xno)
2436 echo "$as_me:$LINENO: result: none needed" >&5
2437echo "${ECHO_T}none needed" >&6 ;;
2438 *)
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441 CC="$CC $ac_cv_prog_cc_stdc" ;;
2442esac
2443
2444# Some people use a C++ compiler to compile C. Since we use `exit',
2445# in C++ we need to declare it. In case someone uses the same compiler
2446# for both compiling C and C++ we need to have the C++ compiler decide
2447# the declaration of exit, since it's the most demanding environment.
2448cat >conftest.$ac_ext <<_ACEOF
2449#ifndef __cplusplus
2450 choke me
2451#endif
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 for ac_declaration in \
2466 ''\
2467 '#include <stdlib.h>' \
2468 'extern "C" void std::exit (int) throw (); using std::exit;' \
2469 'extern "C" void std::exit (int); using std::exit;' \
2470 'extern "C" void exit (int) throw ();' \
2471 'extern "C" void exit (int);' \
2472 'void exit (int);'
2473do
2474 cat >conftest.$ac_ext <<_ACEOF
2475#line $LINENO "configure"
2476#include "confdefs.h"
2477#include <stdlib.h>
2478$ac_declaration
2479int
2480main ()
2481{
2482exit (42);
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487rm -f conftest.$ac_objext
2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 :
2500else
2501 echo "$as_me: failed program was:" >&5
2502cat conftest.$ac_ext >&5
2503continue
2504fi
2505rm -f conftest.$ac_objext conftest.$ac_ext
2506 cat >conftest.$ac_ext <<_ACEOF
2507#line $LINENO "configure"
2508#include "confdefs.h"
2509$ac_declaration
2510int
2511main ()
2512{
2513exit (42);
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 break
2531else
2532 echo "$as_me: failed program was:" >&5
2533cat conftest.$ac_ext >&5
2534fi
2535rm -f conftest.$ac_objext conftest.$ac_ext
2536done
2537rm -f conftest*
2538if test -n "$ac_declaration"; then
2539 echo '#ifdef __cplusplus' >>confdefs.h
2540 echo $ac_declaration >>confdefs.h
2541 echo '#endif' >>confdefs.h
2542fi
2543
2544else
2545 echo "$as_me: failed program was:" >&5
2546cat conftest.$ac_ext >&5
2547fi
2548rm -f conftest.$ac_objext conftest.$ac_ext
2549ac_ext=c
2550ac_cpp='$CPP $CPPFLAGS'
2551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002554rm -f .deps 2>/dev/null
2555mkdir .deps 2>/dev/null
2556if test -d .deps; then
2557 DEPDIR=.deps
2558else
2559 # MS-DOS does not allow filenames that begin with a dot.
2560 DEPDIR=_deps
2561fi
2562rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002563
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002564
2565 ac_config_commands="$ac_config_commands depfiles"
2566
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002567
2568am_make=${MAKE-make}
2569cat > confinc << 'END'
2570doit:
2571 @echo done
2572END
2573# If we don't find an include directive, just comment out the code.
2574echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2575echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002576am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002577am__quote=
2578_am_result=none
2579# First try GNU make style include.
2580echo "include confinc" > confmf
2581# We grep out `Entering directory' and `Leaving directory'
2582# messages which can occur if `w' ends up in MAKEFLAGS.
2583# In particular we don't look at `^make:' because GNU make might
2584# be invoked under some other name (usually "gmake"), in which
2585# case it prints its new name instead of `make'.
2586if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2587 am__include=include
2588 am__quote=
2589 _am_result=GNU
2590fi
2591# Now try BSD make style include.
2592if test "$am__include" = "#"; then
2593 echo '.include "confinc"' > confmf
2594 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2595 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002596 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002597 _am_result=BSD
2598 fi
2599fi
2600
2601
2602echo "$as_me:$LINENO: result: $_am_result" >&5
2603echo "${ECHO_T}$_am_result" >&6
2604rm -f confinc confmf
2605
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002606# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2607if test "${enable_dependency_tracking+set}" = set; then
2608 enableval="$enable_dependency_tracking"
2609
2610fi;
2611if test "x$enable_dependency_tracking" != xno; then
2612 am_depcomp="$ac_aux_dir/depcomp"
2613 AMDEPBACKSLASH='\'
2614fi
2615
2616
2617if test "x$enable_dependency_tracking" != xno; then
2618 AMDEP_TRUE=
2619 AMDEP_FALSE='#'
2620else
2621 AMDEP_TRUE='#'
2622 AMDEP_FALSE=
2623fi
2624
2625
2626
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002627
2628depcc="$CC" am_compiler_list=
2629
2630echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2631echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2632if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2636 # We make a subdir and do the tests there. Otherwise we can end up
2637 # making bogus files that we don't know about and never remove. For
2638 # instance it was reported that on HP-UX the gcc test will end up
2639 # making a dummy file named `D' -- because `-MD' means `put the output
2640 # in D'.
2641 mkdir conftest.dir
2642 # Copy depcomp to subdir because otherwise we won't find it if we're
2643 # using a relative directory.
2644 cp "$am_depcomp" conftest.dir
2645 cd conftest.dir
2646
2647 am_cv_CC_dependencies_compiler_type=none
2648 if test "$am_compiler_list" = ""; then
2649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2650 fi
2651 for depmode in $am_compiler_list; do
2652 # We need to recreate these files for each test, as the compiler may
2653 # overwrite some of them when testing with obscure command lines.
2654 # This happens at least with the AIX C compiler.
2655 echo '#include "conftest.h"' > conftest.c
2656 echo 'int i;' > conftest.h
2657 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2658
2659 case $depmode in
2660 nosideeffect)
2661 # after this tag, mechanisms are not by side-effect, so they'll
2662 # only be used when explicitly requested
2663 if test "x$enable_dependency_tracking" = xyes; then
2664 continue
2665 else
2666 break
2667 fi
2668 ;;
2669 none) break ;;
2670 esac
2671 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2672 # mode. It turns out that the SunPro C++ compiler does not properly
2673 # handle `-M -o', and we need to detect this.
2674 if depmode=$depmode \
2675 source=conftest.c object=conftest.o \
2676 depfile=conftest.Po tmpdepfile=conftest.TPo \
2677 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2678 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2680 am_cv_CC_dependencies_compiler_type=$depmode
2681 break
2682 fi
2683 done
2684
2685 cd ..
2686 rm -rf conftest.dir
2687else
2688 am_cv_CC_dependencies_compiler_type=none
2689fi
2690
2691fi
2692echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2693echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002694CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002695
2696
2697# Find a good install program. We prefer a C program (faster),
2698# so one script is as good as another. But avoid the broken or
2699# incompatible versions:
2700# SysV /etc/install, /usr/sbin/install
2701# SunOS /usr/etc/install
2702# IRIX /sbin/install
2703# AIX /bin/install
2704# AmigaOS /C/install, which installs bootblocks on floppy discs
2705# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2706# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2707# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2708# ./install, which can be erroneously created by make from ./install.sh.
2709echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2710echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2711if test -z "$INSTALL"; then
2712if test "${ac_cv_path_install+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 # Account for people who put trailing slashes in PATH elements.
2721case $as_dir/ in
2722 ./ | .// | /cC/* | \
2723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2724 /usr/ucb/* ) ;;
2725 *)
2726 # OSF1 and SCO ODT 3.0 have their own names for install.
2727 # Don't use installbsd from OSF since it installs stuff as root
2728 # by default.
2729 for ac_prog in ginstall scoinst install; do
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2732 if test $ac_prog = install &&
2733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # AIX install. It has an incompatible calling convention.
2735 :
2736 elif test $ac_prog = install &&
2737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # program-specific install script used by HP pwplus--don't use.
2739 :
2740 else
2741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2742 break 3
2743 fi
2744 fi
2745 done
2746 done
2747 ;;
2748esac
2749done
2750
2751
2752fi
2753 if test "${ac_cv_path_install+set}" = set; then
2754 INSTALL=$ac_cv_path_install
2755 else
2756 # As a last resort, use the slow shell script. We don't cache a
2757 # path for INSTALL within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the path is relative.
2760 INSTALL=$ac_install_sh
2761 fi
2762fi
2763echo "$as_me:$LINENO: result: $INSTALL" >&5
2764echo "${ECHO_T}$INSTALL" >&6
2765
2766# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2767# It thinks the first close brace ends the variable substitution.
2768test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769
2770test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771
2772test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773
2774echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2775echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2776set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2777if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 cat >conftest.make <<\_ACEOF
2781all:
2782 @echo 'ac_maketemp="${MAKE}"'
2783_ACEOF
2784# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2785eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2786if test -n "$ac_maketemp"; then
2787 eval ac_cv_prog_make_${ac_make}_set=yes
2788else
2789 eval ac_cv_prog_make_${ac_make}_set=no
2790fi
2791rm -f conftest.make
2792fi
2793if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2794 echo "$as_me:$LINENO: result: yes" >&5
2795echo "${ECHO_T}yes" >&6
2796 SET_MAKE=
2797else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800 SET_MAKE="MAKE=${MAKE-make}"
2801fi
2802
2803# Check whether --enable-shared or --disable-shared was given.
2804if test "${enable_shared+set}" = set; then
2805 enableval="$enable_shared"
2806 p=${PACKAGE-default}
2807case "$enableval" in
2808yes) enable_shared=yes ;;
2809no) enable_shared=no ;;
2810*)
2811 enable_shared=no
2812 # Look at the argument we got. We use all the common list separators.
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2814 for pkg in $enableval; do
2815 if test "X$pkg" = "X$p"; then
2816 enable_shared=yes
2817 fi
2818 done
2819 IFS="$ac_save_ifs"
2820 ;;
2821esac
2822else
2823 enable_shared=yes
2824fi;
2825# Check whether --enable-static or --disable-static was given.
2826if test "${enable_static+set}" = set; then
2827 enableval="$enable_static"
2828 p=${PACKAGE-default}
2829case "$enableval" in
2830yes) enable_static=yes ;;
2831no) enable_static=no ;;
2832*)
2833 enable_static=no
2834 # Look at the argument we got. We use all the common list separators.
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2836 for pkg in $enableval; do
2837 if test "X$pkg" = "X$p"; then
2838 enable_static=yes
2839 fi
2840 done
2841 IFS="$ac_save_ifs"
2842 ;;
2843esac
2844else
2845 enable_static=yes
2846fi;
2847# Check whether --enable-fast-install or --disable-fast-install was given.
2848if test "${enable_fast_install+set}" = set; then
2849 enableval="$enable_fast_install"
2850 p=${PACKAGE-default}
2851case "$enableval" in
2852yes) enable_fast_install=yes ;;
2853no) enable_fast_install=no ;;
2854*)
2855 enable_fast_install=no
2856 # Look at the argument we got. We use all the common list separators.
2857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2858 for pkg in $enableval; do
2859 if test "X$pkg" = "X$p"; then
2860 enable_fast_install=yes
2861 fi
2862 done
2863 IFS="$ac_save_ifs"
2864 ;;
2865esac
2866else
2867 enable_fast_install=yes
2868fi;
2869if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2871set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_RANLIB+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 if test -n "$RANLIB"; then
2878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891done
2892done
2893
2894fi
2895fi
2896RANLIB=$ac_cv_prog_RANLIB
2897if test -n "$RANLIB"; then
2898 echo "$as_me:$LINENO: result: $RANLIB" >&5
2899echo "${ECHO_T}$RANLIB" >&6
2900else
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905fi
2906if test -z "$ac_cv_prog_RANLIB"; then
2907 ac_ct_RANLIB=$RANLIB
2908 # Extract the first word of "ranlib", so it can be a program name with args.
2909set dummy ranlib; ac_word=$2
2910echo "$as_me:$LINENO: checking for $ac_word" >&5
2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915 if test -n "$ac_ct_RANLIB"; then
2916 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_RANLIB="ranlib"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930done
2931
2932 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2933fi
2934fi
2935ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2936if test -n "$ac_ct_RANLIB"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2938echo "${ECHO_T}$ac_ct_RANLIB" >&6
2939else
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942fi
2943
2944 RANLIB=$ac_ct_RANLIB
2945else
2946 RANLIB="$ac_cv_prog_RANLIB"
2947fi
2948
2949
2950# Check whether --with-gnu-ld or --without-gnu-ld was given.
2951if test "${with_gnu_ld+set}" = set; then
2952 withval="$with_gnu_ld"
2953 test "$withval" = no || with_gnu_ld=yes
2954else
2955 with_gnu_ld=no
2956fi;
2957ac_prog=ld
2958if test "$ac_cv_c_compiler_gnu" = yes; then
2959 # Check if gcc -print-prog-name=ld gives a path.
2960 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2961echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2962 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2963 case "$ac_prog" in
2964 # Accept absolute paths.
2965 [\\/]* | [A-Za-z]:[\\/]*)
2966 re_direlt='/[^/][^/]*/\.\./'
2967 # Canonicalize the path of ld
2968 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2969 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2970 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2971 done
2972 test -z "$LD" && LD="$ac_prog"
2973 ;;
2974 "")
2975 # If it fails, then pretend we aren't using GCC.
2976 ac_prog=ld
2977 ;;
2978 *)
2979 # If it is relative, then search for the first ld in PATH.
2980 with_gnu_ld=unknown
2981 ;;
2982 esac
2983elif test "$with_gnu_ld" = yes; then
2984 echo "$as_me:$LINENO: checking for GNU ld" >&5
2985echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2986else
2987 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2988echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2989fi
2990if test "${ac_cv_path_LD+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 if test -z "$LD"; then
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2995 for ac_dir in $PATH; do
2996 test -z "$ac_dir" && ac_dir=.
2997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2998 ac_cv_path_LD="$ac_dir/$ac_prog"
2999 # Check to see if the program is GNU ld. I'd rather use --version,
3000 # but apparently some GNU ld's only accept -v.
3001 # Break only if it was the GNU/non-GNU ld that we prefer.
3002 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3003 test "$with_gnu_ld" != no && break
3004 else
3005 test "$with_gnu_ld" != yes && break
3006 fi
3007 fi
3008 done
3009 IFS="$ac_save_ifs"
3010else
3011 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3012fi
3013fi
3014
3015LD="$ac_cv_path_LD"
3016if test -n "$LD"; then
3017 echo "$as_me:$LINENO: result: $LD" >&5
3018echo "${ECHO_T}$LD" >&6
3019else
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
3022fi
3023test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3024echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3025 { (exit 1); exit 1; }; }
3026echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3027echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3028if test "${ac_cv_prog_gnu_ld+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3032if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3033 ac_cv_prog_gnu_ld=yes
3034else
3035 ac_cv_prog_gnu_ld=no
3036fi
3037fi
3038echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3039echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3040
3041
3042echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3043echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3044if test "${ac_cv_path_NM+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047 if test -n "$NM"; then
3048 # Let the user override the test.
3049 ac_cv_path_NM="$NM"
3050else
3051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3052 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3053 test -z "$ac_dir" && ac_dir=.
3054 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3055 # Check to see if the nm accepts a BSD-compat flag.
3056 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3057 # nm: unknown option "B" ignored
3058 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3059 ac_cv_path_NM="$ac_dir/nm -B"
3060 break
3061 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3062 ac_cv_path_NM="$ac_dir/nm -p"
3063 break
3064 else
3065 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3066 continue # so that we can try to find one that supports BSD flags
3067 fi
3068 fi
3069 done
3070 IFS="$ac_save_ifs"
3071 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3072fi
3073fi
3074
3075NM="$ac_cv_path_NM"
3076echo "$as_me:$LINENO: result: $NM" >&5
3077echo "${ECHO_T}$NM" >&6
3078
3079echo "$as_me:$LINENO: checking whether ln -s works" >&5
3080echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3081LN_S=$as_ln_s
3082if test "$LN_S" = "ln -s"; then
3083 echo "$as_me:$LINENO: result: yes" >&5
3084echo "${ECHO_T}yes" >&6
3085else
3086 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3087echo "${ECHO_T}no, using $LN_S" >&6
3088fi
3089
3090
3091
3092case "$target" in
3093NONE) lt_target="$host" ;;
3094*) lt_target="$target" ;;
3095esac
3096
3097# Check for any special flags to pass to ltconfig.
3098#
3099# the following will cause an existing older ltconfig to fail, so
3100# we ignore this at the expense of the cache file... Checking this
3101# will just take longer ... bummer!
3102#libtool_flags="--cache-file=$cache_file"
3103#
3104test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3105test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3106test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3107test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
3108test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3109
3110
3111# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3112if test "${enable_libtool_lock+set}" = set; then
3113 enableval="$enable_libtool_lock"
3114
3115fi;
3116test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3117test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3118
3119# Some flags need to be propagated to the compiler or linker for good
3120# libtool support.
3121case "$lt_target" in
3122*-*-irix6*)
3123 # Find out which ABI we are using.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003124 echo '#line 3124 "configure"' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126 (eval $ac_compile) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; then
3130 case "`/usr/bin/file conftest.o`" in
3131 *32-bit*)
3132 LD="${LD-ld} -32"
3133 ;;
3134 *N32*)
3135 LD="${LD-ld} -n32"
3136 ;;
3137 *64-bit*)
3138 LD="${LD-ld} -64"
3139 ;;
3140 esac
3141 fi
3142 rm -rf conftest*
3143 ;;
3144
3145*-*-sco3.2v5*)
3146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3147 SAVE_CFLAGS="$CFLAGS"
3148 CFLAGS="$CFLAGS -belf"
3149 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3150echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3151if test "${lt_cv_cc_needs_belf+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 cat >conftest.$ac_ext <<_ACEOF
3155#line $LINENO "configure"
3156#include "confdefs.h"
3157
3158int
3159main ()
3160{
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext conftest$ac_exeext
3167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3168 (eval $ac_link) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -s conftest$ac_exeext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3178 lt_cv_cc_needs_belf=yes
3179else
3180 echo "$as_me: failed program was:" >&5
3181cat conftest.$ac_ext >&5
3182lt_cv_cc_needs_belf=no
3183fi
3184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3185fi
3186echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3187echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3188 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3189 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3190 CFLAGS="$SAVE_CFLAGS"
3191 fi
3192 ;;
3193
3194
3195esac
3196
3197
3198# Save cache, so that ltconfig can load it
3199cat >confcache <<\_ACEOF
3200# This file is a shell script that caches the results of configure
3201# tests run on this system so they can be shared between configure
3202# scripts and configure runs, see configure's option --config-cache.
3203# It is not useful on other systems. If it contains results you don't
3204# want to keep, you may remove or edit it.
3205#
3206# config.status only pays attention to the cache file if you give it
3207# the --recheck option to rerun configure.
3208#
3209# `ac_cv_env_foo' variables (set or unset) will be overridden when
3210# loading this file, other *unset* `ac_cv_foo' will be assigned the
3211# following values.
3212
3213_ACEOF
3214
3215# The following way of writing the cache mishandles newlines in values,
3216# but we know of no workaround that is simple, portable, and efficient.
3217# So, don't put newlines in cache variables' values.
3218# Ultrix sh set writes to stderr and can't be redirected directly,
3219# and sets the high bit in the cache file unless we assign to the vars.
3220{
3221 (set) 2>&1 |
3222 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3223 *ac_space=\ *)
3224 # `set' does not quote correctly, so add quotes (double-quote
3225 # substitution turns \\\\ into \\, and sed turns \\ into \).
3226 sed -n \
3227 "s/'/'\\\\''/g;
3228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3229 ;;
3230 *)
3231 # `set' quotes correctly as required by POSIX, so do not add quotes.
3232 sed -n \
3233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3234 ;;
3235 esac;
3236} |
3237 sed '
3238 t clear
3239 : clear
3240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3241 t end
3242 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3243 : end' >>confcache
3244if cmp -s $cache_file confcache; then :; else
3245 if test -w $cache_file; then
3246 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3247 cat confcache >$cache_file
3248 else
3249 echo "not updating unwritable cache $cache_file"
3250 fi
3251fi
3252rm -f confcache
3253
3254# Actually configure libtool. ac_aux_dir is where install-sh is found.
3255CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3256LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3257LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3258DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3259${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3260$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3261|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3262echo "$as_me: error: libtool configure failed" >&2;}
3263 { (exit 1); exit 1; }; }
3264
3265# Reload cache, that may have been modified by ltconfig
3266if test -r "$cache_file"; then
3267 # Some versions of bash will fail to source /dev/null (special
3268 # files actually), so we avoid doing that.
3269 if test -f "$cache_file"; then
3270 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3271echo "$as_me: loading cache $cache_file" >&6;}
3272 case $cache_file in
3273 [\\/]* | ?:[\\/]* ) . $cache_file;;
3274 *) . ./$cache_file;;
3275 esac
3276 fi
3277else
3278 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3279echo "$as_me: creating cache $cache_file" >&6;}
3280 >$cache_file
3281fi
3282
3283
3284# This can be used to rebuild libtool when needed
3285LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3286
3287# Always use our own libtool.
3288LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3289
3290# Redirect the config.log output again, so that the ltconfig log is not
3291# clobbered by the next message.
3292exec 5>>./config.log
3293
3294
3295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3302echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3303# On Suns, sometimes $CPP names a directory.
3304if test -n "$CPP" && test -d "$CPP"; then
3305 CPP=
3306fi
3307if test -z "$CPP"; then
3308 if test "${ac_cv_prog_CPP+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311 # Double quotes because CPP needs to be expanded
3312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3313 do
3314 ac_preproc_ok=false
3315for ac_c_preproc_warn_flag in '' yes
3316do
3317 # Use a header file that comes with gcc, so configuring glibc
3318 # with a fresh cross-compiler works.
3319 # On the NeXT, cc -E runs the code through the compiler's parser,
3320 # not just through cpp. "Syntax error" is here to catch this case.
3321 cat >conftest.$ac_ext <<_ACEOF
3322#line $LINENO "configure"
3323#include "confdefs.h"
3324#include <assert.h>
3325 Syntax error
3326_ACEOF
3327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_c_preproc_warn_flag
3337 else
3338 ac_cpp_err=
3339 fi
3340else
3341 ac_cpp_err=yes
3342fi
3343if test -z "$ac_cpp_err"; then
3344 :
3345else
3346 echo "$as_me: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 # Broken: fails on valid input.
3349continue
3350fi
3351rm -f conftest.err conftest.$ac_ext
3352
3353 # OK, works on sane cases. Now check whether non-existent headers
3354 # can be detected and how.
3355 cat >conftest.$ac_ext <<_ACEOF
3356#line $LINENO "configure"
3357#include "confdefs.h"
3358#include <ac_nonexistent.h>
3359_ACEOF
3360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 else
3371 ac_cpp_err=
3372 fi
3373else
3374 ac_cpp_err=yes
3375fi
3376if test -z "$ac_cpp_err"; then
3377 # Broken: success on invalid input.
3378continue
3379else
3380 echo "$as_me: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 # Passes both tests.
3383ac_preproc_ok=:
3384break
3385fi
3386rm -f conftest.err conftest.$ac_ext
3387
3388done
3389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390rm -f conftest.err conftest.$ac_ext
3391if $ac_preproc_ok; then
3392 break
3393fi
3394
3395 done
3396 ac_cv_prog_CPP=$CPP
3397
3398fi
3399 CPP=$ac_cv_prog_CPP
3400else
3401 ac_cv_prog_CPP=$CPP
3402fi
3403echo "$as_me:$LINENO: result: $CPP" >&5
3404echo "${ECHO_T}$CPP" >&6
3405ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # On the NeXT, cc -E runs the code through the compiler's parser,
3411 # not just through cpp. "Syntax error" is here to catch this case.
3412 cat >conftest.$ac_ext <<_ACEOF
3413#line $LINENO "configure"
3414#include "confdefs.h"
3415#include <assert.h>
3416 Syntax error
3417_ACEOF
3418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 else
3429 ac_cpp_err=
3430 fi
3431else
3432 ac_cpp_err=yes
3433fi
3434if test -z "$ac_cpp_err"; then
3435 :
3436else
3437 echo "$as_me: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3439 # Broken: fails on valid input.
3440continue
3441fi
3442rm -f conftest.err conftest.$ac_ext
3443
3444 # OK, works on sane cases. Now check whether non-existent headers
3445 # can be detected and how.
3446 cat >conftest.$ac_ext <<_ACEOF
3447#line $LINENO "configure"
3448#include "confdefs.h"
3449#include <ac_nonexistent.h>
3450_ACEOF
3451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_c_preproc_warn_flag
3461 else
3462 ac_cpp_err=
3463 fi
3464else
3465 ac_cpp_err=yes
3466fi
3467if test -z "$ac_cpp_err"; then
3468 # Broken: success on invalid input.
3469continue
3470else
3471 echo "$as_me: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3473 # Passes both tests.
3474ac_preproc_ok=:
3475break
3476fi
3477rm -f conftest.err conftest.$ac_ext
3478
3479done
3480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481rm -f conftest.err conftest.$ac_ext
3482if $ac_preproc_ok; then
3483 :
3484else
3485 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3486echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3487 { (exit 1); exit 1; }; }
3488fi
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497echo "$as_me:$LINENO: checking for egrep" >&5
3498echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3499if test "${ac_cv_prog_egrep+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3503 then ac_cv_prog_egrep='grep -E'
3504 else ac_cv_prog_egrep='egrep'
3505 fi
3506fi
3507echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3508echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3509 EGREP=$ac_cv_prog_egrep
3510
3511
3512echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3513echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3514if test "${ac_cv_header_stdc+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 cat >conftest.$ac_ext <<_ACEOF
3518#line $LINENO "configure"
3519#include "confdefs.h"
3520#include <stdlib.h>
3521#include <stdarg.h>
3522#include <string.h>
3523#include <float.h>
3524
3525_ACEOF
3526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 else
3537 ac_cpp_err=
3538 fi
3539else
3540 ac_cpp_err=yes
3541fi
3542if test -z "$ac_cpp_err"; then
3543 ac_cv_header_stdc=yes
3544else
3545 echo "$as_me: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3547 ac_cv_header_stdc=no
3548fi
3549rm -f conftest.err conftest.$ac_ext
3550
3551if test $ac_cv_header_stdc = yes; then
3552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3553 cat >conftest.$ac_ext <<_ACEOF
3554#line $LINENO "configure"
3555#include "confdefs.h"
3556#include <string.h>
3557
3558_ACEOF
3559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "memchr" >/dev/null 2>&1; then
3561 :
3562else
3563 ac_cv_header_stdc=no
3564fi
3565rm -f conftest*
3566
3567fi
3568
3569if test $ac_cv_header_stdc = yes; then
3570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3571 cat >conftest.$ac_ext <<_ACEOF
3572#line $LINENO "configure"
3573#include "confdefs.h"
3574#include <stdlib.h>
3575
3576_ACEOF
3577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 $EGREP "free" >/dev/null 2>&1; then
3579 :
3580else
3581 ac_cv_header_stdc=no
3582fi
3583rm -f conftest*
3584
3585fi
3586
3587if test $ac_cv_header_stdc = yes; then
3588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3589 if test "$cross_compiling" = yes; then
3590 :
3591else
3592 cat >conftest.$ac_ext <<_ACEOF
3593#line $LINENO "configure"
3594#include "confdefs.h"
3595#include <ctype.h>
3596#if ((' ' & 0x0FF) == 0x020)
3597# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3598# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599#else
3600# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3601 || ('j' <= (c) && (c) <= 'r') \
3602 || ('s' <= (c) && (c) <= 'z'))
3603# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3604#endif
3605
3606#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3607int
3608main ()
3609{
3610 int i;
3611 for (i = 0; i < 256; i++)
3612 if (XOR (islower (i), ISLOWER (i))
3613 || toupper (i) != TOUPPER (i))
3614 exit(2);
3615 exit (0);
3616}
3617_ACEOF
3618rm -f conftest$ac_exeext
3619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3620 (eval $ac_link) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 :
3630else
3631 echo "$as_me: program exited with status $ac_status" >&5
3632echo "$as_me: failed program was:" >&5
3633cat conftest.$ac_ext >&5
3634( exit $ac_status )
3635ac_cv_header_stdc=no
3636fi
3637rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3638fi
3639fi
3640fi
3641echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3642echo "${ECHO_T}$ac_cv_header_stdc" >&6
3643if test $ac_cv_header_stdc = yes; then
3644
3645cat >>confdefs.h <<\_ACEOF
3646#define STDC_HEADERS 1
3647_ACEOF
3648
3649fi
3650
3651# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3662 inttypes.h stdint.h unistd.h
3663do
3664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3665echo "$as_me:$LINENO: checking for $ac_header" >&5
3666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3667if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 cat >conftest.$ac_ext <<_ACEOF
3671#line $LINENO "configure"
3672#include "confdefs.h"
3673$ac_includes_default
3674
3675#include <$ac_header>
3676_ACEOF
3677rm -f conftest.$ac_objext
3678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3679 (eval $ac_compile) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 eval "$as_ac_Header=yes"
3690else
3691 echo "$as_me: failed program was:" >&5
3692cat conftest.$ac_ext >&5
3693eval "$as_ac_Header=no"
3694fi
3695rm -f conftest.$ac_objext conftest.$ac_ext
3696fi
3697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3699if test `eval echo '${'$as_ac_Header'}'` = yes; then
3700 cat >>confdefs.h <<_ACEOF
3701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3702_ACEOF
3703
3704fi
3705
3706done
3707
3708
3709
3710for ac_header in unistd.h
3711do
3712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3713if eval "test \"\${$as_ac_Header+set}\" = set"; then
3714 echo "$as_me:$LINENO: checking for $ac_header" >&5
3715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3716if eval "test \"\${$as_ac_Header+set}\" = set"; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718fi
3719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721else
3722 # Is the header compilable?
3723echo "$as_me:$LINENO: checking $ac_header usability" >&5
3724echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3725cat >conftest.$ac_ext <<_ACEOF
3726#line $LINENO "configure"
3727#include "confdefs.h"
3728$ac_includes_default
3729#include <$ac_header>
3730_ACEOF
3731rm -f conftest.$ac_objext
3732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_header_compiler=yes
3744else
3745 echo "$as_me: failed program was:" >&5
3746cat conftest.$ac_ext >&5
3747ac_header_compiler=no
3748fi
3749rm -f conftest.$ac_objext conftest.$ac_ext
3750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3751echo "${ECHO_T}$ac_header_compiler" >&6
3752
3753# Is the header present?
3754echo "$as_me:$LINENO: checking $ac_header presence" >&5
3755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3756cat >conftest.$ac_ext <<_ACEOF
3757#line $LINENO "configure"
3758#include "confdefs.h"
3759#include <$ac_header>
3760_ACEOF
3761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null; then
3769 if test -s conftest.err; then
3770 ac_cpp_err=$ac_c_preproc_warn_flag
3771 else
3772 ac_cpp_err=
3773 fi
3774else
3775 ac_cpp_err=yes
3776fi
3777if test -z "$ac_cpp_err"; then
3778 ac_header_preproc=yes
3779else
3780 echo "$as_me: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 ac_header_preproc=no
3783fi
3784rm -f conftest.err conftest.$ac_ext
3785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3786echo "${ECHO_T}$ac_header_preproc" >&6
3787
3788# So? What about this header?
3789case $ac_header_compiler:$ac_header_preproc in
3790 yes:no )
3791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3795 no:yes )
3796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3802esac
3803echo "$as_me:$LINENO: checking for $ac_header" >&5
3804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3805if eval "test \"\${$as_ac_Header+set}\" = set"; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807else
3808 eval "$as_ac_Header=$ac_header_preproc"
3809fi
3810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3812
3813fi
3814if test `eval echo '${'$as_ac_Header'}'` = yes; then
3815 cat >>confdefs.h <<_ACEOF
3816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3817_ACEOF
3818
3819fi
3820
3821done
3822
3823
3824echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3825echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3826if test "${ac_cv_c_const+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829 cat >conftest.$ac_ext <<_ACEOF
3830#line $LINENO "configure"
3831#include "confdefs.h"
3832
3833int
3834main ()
3835{
3836/* FIXME: Include the comments suggested by Paul. */
3837#ifndef __cplusplus
3838 /* Ultrix mips cc rejects this. */
3839 typedef int charset[2];
3840 const charset x;
3841 /* SunOS 4.1.1 cc rejects this. */
3842 char const *const *ccp;
3843 char **p;
3844 /* NEC SVR4.0.2 mips cc rejects this. */
3845 struct point {int x, y;};
3846 static struct point const zero = {0,0};
3847 /* AIX XL C 1.02.0.0 rejects this.
3848 It does not let you subtract one const X* pointer from another in
3849 an arm of an if-expression whose if-part is not a constant
3850 expression */
3851 const char *g = "string";
3852 ccp = &g + (g ? g-g : 0);
3853 /* HPUX 7.0 cc rejects these. */
3854 ++ccp;
3855 p = (char**) ccp;
3856 ccp = (char const *const *) p;
3857 { /* SCO 3.2v4 cc rejects this. */
3858 char *t;
3859 char const *s = 0 ? (char *) 0 : (char const *) 0;
3860
3861 *t++ = 0;
3862 }
3863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3864 int x[] = {25, 17};
3865 const int *foo = &x[0];
3866 ++foo;
3867 }
3868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3869 typedef const int *iptr;
3870 iptr p = 0;
3871 ++p;
3872 }
3873 { /* AIX XL C 1.02.0.0 rejects this saying
3874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3875 struct s { int j; const int *ap[3]; };
3876 struct s *b; b->j = 5;
3877 }
3878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3879 const int foo = 10;
3880 }
3881#endif
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_c_const=yes
3900else
3901 echo "$as_me: failed program was:" >&5
3902cat conftest.$ac_ext >&5
3903ac_cv_c_const=no
3904fi
3905rm -f conftest.$ac_objext conftest.$ac_ext
3906fi
3907echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3908echo "${ECHO_T}$ac_cv_c_const" >&6
3909if test $ac_cv_c_const = no; then
3910
3911cat >>confdefs.h <<\_ACEOF
3912#define const
3913_ACEOF
3914
3915fi
3916
3917echo "$as_me:$LINENO: checking for inline" >&5
3918echo $ECHO_N "checking for inline... $ECHO_C" >&6
3919if test "${ac_cv_c_inline+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 ac_cv_c_inline=no
3923for ac_kw in inline __inline__ __inline; do
3924 cat >conftest.$ac_ext <<_ACEOF
3925#line $LINENO "configure"
3926#include "confdefs.h"
3927#ifndef __cplusplus
3928typedef int foo_t;
3929static $ac_kw foo_t static_foo () {return 0; }
3930$ac_kw foo_t foo () {return 0; }
3931#endif
3932
3933_ACEOF
3934rm -f conftest.$ac_objext
3935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 ac_cv_c_inline=$ac_kw; break
3947else
3948 echo "$as_me: failed program was:" >&5
3949cat conftest.$ac_ext >&5
3950fi
3951rm -f conftest.$ac_objext conftest.$ac_ext
3952done
3953
3954fi
3955echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3956echo "${ECHO_T}$ac_cv_c_inline" >&6
3957case $ac_cv_c_inline in
3958 inline | yes) ;;
3959 no)
3960cat >>confdefs.h <<\_ACEOF
3961#define inline
3962_ACEOF
3963 ;;
3964 *) cat >>confdefs.h <<_ACEOF
3965#define inline $ac_cv_c_inline
3966_ACEOF
3967 ;;
3968esac
3969
3970echo "$as_me:$LINENO: checking for size_t" >&5
3971echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3972if test "${ac_cv_type_size_t+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975 cat >conftest.$ac_ext <<_ACEOF
3976#line $LINENO "configure"
3977#include "confdefs.h"
3978$ac_includes_default
3979int
3980main ()
3981{
3982if ((size_t *) 0)
3983 return 0;
3984if (sizeof (size_t))
3985 return 0;
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990rm -f conftest.$ac_objext
3991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3992 (eval $ac_compile) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 ac_cv_type_size_t=yes
4003else
4004 echo "$as_me: failed program was:" >&5
4005cat conftest.$ac_ext >&5
4006ac_cv_type_size_t=no
4007fi
4008rm -f conftest.$ac_objext conftest.$ac_ext
4009fi
4010echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4011echo "${ECHO_T}$ac_cv_type_size_t" >&6
4012if test $ac_cv_type_size_t = yes; then
4013 :
4014else
4015
4016cat >>confdefs.h <<_ACEOF
4017#define size_t unsigned
4018_ACEOF
4019
4020fi
4021
4022
4023echo "$as_me:$LINENO: checking for working memcmp" >&5
4024echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4025if test "${ac_cv_func_memcmp_working+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028 if test "$cross_compiling" = yes; then
4029 ac_cv_func_memcmp_working=no
4030else
4031 cat >conftest.$ac_ext <<_ACEOF
4032#line $LINENO "configure"
4033#include "confdefs.h"
4034
4035int
4036main ()
4037{
4038
4039 /* Some versions of memcmp are not 8-bit clean. */
4040 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4041 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4042 exit (1);
4043
4044 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4045 or more and with at least one buffer not starting on a 4-byte boundary.
4046 William Lewis provided this test program. */
4047 {
4048 char foo[21];
4049 char bar[21];
4050 int i;
4051 for (i = 0; i < 4; i++)
4052 {
4053 char *a = foo + i;
4054 char *b = bar + i;
4055 strcpy (a, "--------01111111");
4056 strcpy (b, "--------10000000");
4057 if (memcmp (a, b, 16) >= 0)
4058 exit (1);
4059 }
4060 exit (0);
4061 }
4062
4063 ;
4064 return 0;
4065}
4066_ACEOF
4067rm -f conftest$ac_exeext
4068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069 (eval $ac_link) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_func_memcmp_working=yes
4079else
4080 echo "$as_me: program exited with status $ac_status" >&5
4081echo "$as_me: failed program was:" >&5
4082cat conftest.$ac_ext >&5
4083( exit $ac_status )
4084ac_cv_func_memcmp_working=no
4085fi
4086rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4087fi
4088fi
4089echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4090echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4091test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4092
4093echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4094echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4095if test "${ac_cv_type_signal+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 cat >conftest.$ac_ext <<_ACEOF
4099#line $LINENO "configure"
4100#include "confdefs.h"
4101#include <sys/types.h>
4102#include <signal.h>
4103#ifdef signal
4104# undef signal
4105#endif
4106#ifdef __cplusplus
4107extern "C" void (*signal (int, void (*)(int)))(int);
4108#else
4109void (*signal ()) ();
4110#endif
4111
4112int
4113main ()
4114{
4115int i;
4116 ;
4117 return 0;
4118}
4119_ACEOF
4120rm -f conftest.$ac_objext
4121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_cv_type_signal=void
4133else
4134 echo "$as_me: failed program was:" >&5
4135cat conftest.$ac_ext >&5
4136ac_cv_type_signal=int
4137fi
4138rm -f conftest.$ac_objext conftest.$ac_ext
4139fi
4140echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4141echo "${ECHO_T}$ac_cv_type_signal" >&6
4142
4143cat >>confdefs.h <<_ACEOF
4144#define RETSIGTYPE $ac_cv_type_signal
4145_ACEOF
4146
4147
4148
4149for ac_func in getunwind
4150do
4151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4152echo "$as_me:$LINENO: checking for $ac_func" >&5
4153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4154if eval "test \"\${$as_ac_var+set}\" = set"; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157 cat >conftest.$ac_ext <<_ACEOF
4158#line $LINENO "configure"
4159#include "confdefs.h"
4160/* System header to define __stub macros and hopefully few prototypes,
4161 which can conflict with char $ac_func (); below. */
4162#include <assert.h>
4163/* Override any gcc2 internal prototype to avoid an error. */
4164#ifdef __cplusplus
4165extern "C"
4166#endif
4167/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4169char $ac_func ();
4170char (*f) ();
4171
4172int
4173main ()
4174{
4175/* The GNU C library defines this for functions which it implements
4176 to always fail with ENOSYS. Some functions are actually named
4177 something starting with __ and the normal name is an alias. */
4178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4179choke me
4180#else
4181f = $ac_func;
4182#endif
4183
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext conftest$ac_exeext
4189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try='test -s conftest$ac_exeext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 eval "$as_ac_var=yes"
4201else
4202 echo "$as_me: failed program was:" >&5
4203cat conftest.$ac_ext >&5
4204eval "$as_ac_var=no"
4205fi
4206rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4207fi
4208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4210if test `eval echo '${'$as_ac_var'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4213_ACEOF
4214
4215fi
4216done
4217
4218
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004219# By default we simply use the C compiler to build assembly code.
4220
4221: ${CCAS='$(CC)'}
4222# Set ASFLAGS if not already set.
4223: ${CCASFLAGS='$(CFLAGS)'}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004224
4225
4226
4227get_arch() {
4228 case "$1" in
4229 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00004230 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004231 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004232 esac
4233}
4234
4235build_arch=`get_arch $build_cpu`
4236target_arch=`get_arch $target_cpu`
4237
4238
4239
4240if test x$target_arch != x$build_arch; then
4241 REMOTE_ONLY_TRUE=
4242 REMOTE_ONLY_FALSE='#'
4243else
4244 REMOTE_ONLY_TRUE='#'
4245 REMOTE_ONLY_FALSE=
4246fi
4247
4248
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004249
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004250if test x$target_arch == xia64; then
4251 ARCH_IA64_TRUE=
4252 ARCH_IA64_FALSE='#'
4253else
4254 ARCH_IA64_TRUE='#'
4255 ARCH_IA64_FALSE=
4256fi
4257
4258
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004259
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00004260if test x$target_arch == xhppa; then
4261 ARCH_HPPA_TRUE=
4262 ARCH_HPPA_FALSE='#'
4263else
4264 ARCH_HPPA_TRUE='#'
4265 ARCH_HPPA_FALSE=
4266fi
4267
4268
4269
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004270if test x$target_arch == xx86; then
4271 ARCH_X86_TRUE=
4272 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004273else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004274 ARCH_X86_TRUE='#'
4275 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004276fi
4277
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004278
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004279if test x$target_arch != x$build_arch; then
4280 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004281fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +00004282 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
4283
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004284
4285# Check whether --enable-debug or --disable-debug was given.
4286if test "${enable_debug+set}" = set; then
4287 enableval="$enable_debug"
4288 enable_debug=yes
4289fi;
4290
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00004291if test "x$use__thread" != xno; then
4292 echo "$as_me:$LINENO: checking for __thread" >&5
4293echo $ECHO_N "checking for __thread... $ECHO_C" >&6
4294if test "${libc_cv_gcc___thread+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297 cat > conftest.c <<\EOF
4298 __thread int a = 42;
4299EOF
4300 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 libc_cv_gcc___thread=yes
4307 else
4308 libc_cv_gcc___thread=no
4309 fi
4310 rm -f conftest*
4311fi
4312echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
4313echo "${ECHO_T}$libc_cv_gcc___thread" >&6
4314 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +00004315
4316cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00004317#define HAVE___THREAD 1
4318_ACEOF
4319
4320 fi
4321else
4322 libc_cv_gcc___thread=no
4323fi
4324
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004325CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
4326if test x$enable_debug == xyes; then
4327 CPPFLAGS="${CPPFLAGS} -DDEBUG"
4328else
4329 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
4330fi
4331ASFLAGS="${ASFLAGS} ${CPPFLAGS}"
4332
4333if test x$GCC = xyes; then
4334 CFLAGS="${CFLAGS} -Wall"
4335fi
4336
4337arch="$target_arch"
4338ARCH=`echo $target_arch | tr a-z A-Z`
4339
4340
4341
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004342 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile"
4343cat >confcache <<\_ACEOF
4344# This file is a shell script that caches the results of configure
4345# tests run on this system so they can be shared between configure
4346# scripts and configure runs, see configure's option --config-cache.
4347# It is not useful on other systems. If it contains results you don't
4348# want to keep, you may remove or edit it.
4349#
4350# config.status only pays attention to the cache file if you give it
4351# the --recheck option to rerun configure.
4352#
4353# `ac_cv_env_foo' variables (set or unset) will be overridden when
4354# loading this file, other *unset* `ac_cv_foo' will be assigned the
4355# following values.
4356
4357_ACEOF
4358
4359# The following way of writing the cache mishandles newlines in values,
4360# but we know of no workaround that is simple, portable, and efficient.
4361# So, don't put newlines in cache variables' values.
4362# Ultrix sh set writes to stderr and can't be redirected directly,
4363# and sets the high bit in the cache file unless we assign to the vars.
4364{
4365 (set) 2>&1 |
4366 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4367 *ac_space=\ *)
4368 # `set' does not quote correctly, so add quotes (double-quote
4369 # substitution turns \\\\ into \\, and sed turns \\ into \).
4370 sed -n \
4371 "s/'/'\\\\''/g;
4372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4373 ;;
4374 *)
4375 # `set' quotes correctly as required by POSIX, so do not add quotes.
4376 sed -n \
4377 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4378 ;;
4379 esac;
4380} |
4381 sed '
4382 t clear
4383 : clear
4384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4385 t end
4386 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4387 : end' >>confcache
4388if cmp -s $cache_file confcache; then :; else
4389 if test -w $cache_file; then
4390 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4391 cat confcache >$cache_file
4392 else
4393 echo "not updating unwritable cache $cache_file"
4394 fi
4395fi
4396rm -f confcache
4397
4398test "x$prefix" = xNONE && prefix=$ac_default_prefix
4399# Let make expand exec_prefix.
4400test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4401
4402# VPATH may cause trouble with some makes, so we remove $(srcdir),
4403# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4404# trailing colons and then remove the whole line if VPATH becomes empty
4405# (actually we leave an empty line to preserve line numbers).
4406if test "x$srcdir" = x.; then
4407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4408s/:*\$(srcdir):*/:/;
4409s/:*\${srcdir}:*/:/;
4410s/:*@srcdir@:*/:/;
4411s/^\([^=]*=[ ]*\):*/\1/;
4412s/:*$//;
4413s/^[^=]*=[ ]*$//;
4414}'
4415fi
4416
4417DEFS=-DHAVE_CONFIG_H
4418
4419ac_libobjs=
4420ac_ltlibobjs=
4421for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4422 # 1. Remove the extension, and $U if already installed.
4423 ac_i=`echo "$ac_i" |
4424 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4425 # 2. Add them.
4426 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4427 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4428done
4429LIBOBJS=$ac_libobjs
4430
4431LTLIBOBJS=$ac_ltlibobjs
4432
4433
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004434if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4435 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4436Usually this means the macro was only invoked conditionally." >&5
4437echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4438Usually this means the macro was only invoked conditionally." >&2;}
4439 { (exit 1); exit 1; }; }
4440fi
4441if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4442 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4443Usually this means the macro was only invoked conditionally." >&5
4444echo "$as_me: error: conditional \"AMDEP\" was never defined.
4445Usually this means the macro was only invoked conditionally." >&2;}
4446 { (exit 1); exit 1; }; }
4447fi
4448if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
4449 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
4450Usually this means the macro was only invoked conditionally." >&5
4451echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
4452Usually this means the macro was only invoked conditionally." >&2;}
4453 { (exit 1); exit 1; }; }
4454fi
4455if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
4456 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
4457Usually this means the macro was only invoked conditionally." >&5
4458echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
4459Usually this means the macro was only invoked conditionally." >&2;}
4460 { (exit 1); exit 1; }; }
4461fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00004462if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
4463 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
4464Usually this means the macro was only invoked conditionally." >&5
4465echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
4466Usually this means the macro was only invoked conditionally." >&2;}
4467 { (exit 1); exit 1; }; }
4468fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004469if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
4470 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
4471Usually this means the macro was only invoked conditionally." >&5
4472echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
4473Usually this means the macro was only invoked conditionally." >&2;}
4474 { (exit 1); exit 1; }; }
4475fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004476
4477: ${CONFIG_STATUS=./config.status}
4478ac_clean_files_save=$ac_clean_files
4479ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4480{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4481echo "$as_me: creating $CONFIG_STATUS" >&6;}
4482cat >$CONFIG_STATUS <<_ACEOF
4483#! $SHELL
4484# Generated by $as_me.
4485# Run this file to recreate the current configuration.
4486# Compiler output produced by configure, useful for debugging
4487# configure, is in config.log if it exists.
4488
4489debug=false
4490SHELL=\${CONFIG_SHELL-$SHELL}
4491_ACEOF
4492
4493cat >>$CONFIG_STATUS <<\_ACEOF
4494## --------------------- ##
4495## M4sh Initialization. ##
4496## --------------------- ##
4497
4498# Be Bourne compatible
4499if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4500 emulate sh
4501 NULLCMD=:
4502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4503 # is contrary to our usage. Disable this feature.
4504 alias -g '${1+"$@"}'='"$@"'
4505elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4506 set -o posix
4507fi
4508
4509# Support unset when possible.
4510if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4511 as_unset=unset
4512else
4513 as_unset=false
4514fi
4515
4516
4517# Work around bugs in pre-3.0 UWIN ksh.
4518$as_unset ENV MAIL MAILPATH
4519PS1='$ '
4520PS2='> '
4521PS4='+ '
4522
4523# NLS nuisances.
4524for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
4525do
4526 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4527 eval $as_var=C; export $as_var
4528 else
4529 $as_unset $as_var
4530 fi
4531done
4532
4533# Required to use basename.
4534if expr a : '\(a\)' >/dev/null 2>&1; then
4535 as_expr=expr
4536else
4537 as_expr=false
4538fi
4539
4540if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4541 as_basename=basename
4542else
4543 as_basename=false
4544fi
4545
4546
4547# Name of the executable.
4548as_me=`$as_basename "$0" ||
4549$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4550 X"$0" : 'X\(//\)$' \| \
4551 X"$0" : 'X\(/\)$' \| \
4552 . : '\(.\)' 2>/dev/null ||
4553echo X/"$0" |
4554 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4555 /^X\/\(\/\/\)$/{ s//\1/; q; }
4556 /^X\/\(\/\).*/{ s//\1/; q; }
4557 s/.*/./; q'`
4558
4559
4560# PATH needs CR, and LINENO needs CR and PATH.
4561# Avoid depending upon Character Ranges.
4562as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4563as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4564as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4565as_cr_digits='0123456789'
4566as_cr_alnum=$as_cr_Letters$as_cr_digits
4567
4568# The user is always right.
4569if test "${PATH_SEPARATOR+set}" != set; then
4570 echo "#! /bin/sh" >conftest.sh
4571 echo "exit 0" >>conftest.sh
4572 chmod +x conftest.sh
4573 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
4574 PATH_SEPARATOR=';'
4575 else
4576 PATH_SEPARATOR=:
4577 fi
4578 rm -f conftest.sh
4579fi
4580
4581
4582 as_lineno_1=$LINENO
4583 as_lineno_2=$LINENO
4584 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4585 test "x$as_lineno_1" != "x$as_lineno_2" &&
4586 test "x$as_lineno_3" = "x$as_lineno_2" || {
4587 # Find who we are. Look in the path if we contain no path at all
4588 # relative or not.
4589 case $0 in
4590 *[\\/]* ) as_myself=$0 ;;
4591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4597done
4598
4599 ;;
4600 esac
4601 # We did not find ourselves, most probably we were run as `sh COMMAND'
4602 # in which case we are not to be found in the path.
4603 if test "x$as_myself" = x; then
4604 as_myself=$0
4605 fi
4606 if test ! -f "$as_myself"; then
4607 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4608echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4609 { (exit 1); exit 1; }; }
4610 fi
4611 case $CONFIG_SHELL in
4612 '')
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for as_base in sh bash ksh sh5; do
4619 case $as_dir in
4620 /*)
4621 if ("$as_dir/$as_base" -c '
4622 as_lineno_1=$LINENO
4623 as_lineno_2=$LINENO
4624 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4625 test "x$as_lineno_1" != "x$as_lineno_2" &&
4626 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4627 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4628 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4629 CONFIG_SHELL=$as_dir/$as_base
4630 export CONFIG_SHELL
4631 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4632 fi;;
4633 esac
4634 done
4635done
4636;;
4637 esac
4638
4639 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4640 # uniformly replaced by the line number. The first 'sed' inserts a
4641 # line-number line before each line; the second 'sed' does the real
4642 # work. The second script uses 'N' to pair each line-number line
4643 # with the numbered line, and appends trailing '-' during
4644 # substitution so that $LINENO is not a special case at line end.
4645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4646 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4647 sed '=' <$as_myself |
4648 sed '
4649 N
4650 s,$,-,
4651 : loop
4652 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4653 t loop
4654 s,-$,,
4655 s,^['$as_cr_digits']*\n,,
4656 ' >$as_me.lineno &&
4657 chmod +x $as_me.lineno ||
4658 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4659echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4660 { (exit 1); exit 1; }; }
4661
4662 # Don't try to exec as it changes $[0], causing all sort of problems
4663 # (the dirname of $[0] is not the place where we might find the
4664 # original and so on. Autoconf is especially sensible to this).
4665 . ./$as_me.lineno
4666 # Exit status is that of the last command.
4667 exit
4668}
4669
4670
4671case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4672 *c*,-n*) ECHO_N= ECHO_C='
4673' ECHO_T=' ' ;;
4674 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4675 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4676esac
4677
4678if expr a : '\(a\)' >/dev/null 2>&1; then
4679 as_expr=expr
4680else
4681 as_expr=false
4682fi
4683
4684rm -f conf$$ conf$$.exe conf$$.file
4685echo >conf$$.file
4686if ln -s conf$$.file conf$$ 2>/dev/null; then
4687 # We could just check for DJGPP; but this test a) works b) is more generic
4688 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4689 if test -f conf$$.exe; then
4690 # Don't use ln at all; we don't have any links
4691 as_ln_s='cp -p'
4692 else
4693 as_ln_s='ln -s'
4694 fi
4695elif ln conf$$.file conf$$ 2>/dev/null; then
4696 as_ln_s=ln
4697else
4698 as_ln_s='cp -p'
4699fi
4700rm -f conf$$ conf$$.exe conf$$.file
4701
4702if mkdir -p . 2>/dev/null; then
4703 as_mkdir_p=:
4704else
4705 as_mkdir_p=false
4706fi
4707
4708as_executable_p="test -f"
4709
4710# Sed expression to map a string onto a valid CPP name.
4711as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4712
4713# Sed expression to map a string onto a valid variable name.
4714as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4715
4716
4717# IFS
4718# We need space, tab and new line, in precisely that order.
4719as_nl='
4720'
4721IFS=" $as_nl"
4722
4723# CDPATH.
4724$as_unset CDPATH
4725
4726exec 6>&1
4727
4728# Open the log real soon, to keep \$[0] and so on meaningful, and to
4729# report actual input values of CONFIG_FILES etc. instead of their
4730# values after options handling. Logging --version etc. is OK.
4731exec 5>>config.log
4732{
4733 echo
4734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4735## Running $as_me. ##
4736_ASBOX
4737} >&5
4738cat >&5 <<_CSEOF
4739
4740This file was extended by $as_me, which was
4741generated by GNU Autoconf 2.54. Invocation command line was
4742
4743 CONFIG_FILES = $CONFIG_FILES
4744 CONFIG_HEADERS = $CONFIG_HEADERS
4745 CONFIG_LINKS = $CONFIG_LINKS
4746 CONFIG_COMMANDS = $CONFIG_COMMANDS
4747 $ $0 $@
4748
4749_CSEOF
4750echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4751echo >&5
4752_ACEOF
4753
4754# Files that config.status was made for.
4755if test -n "$ac_config_files"; then
4756 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4757fi
4758
4759if test -n "$ac_config_headers"; then
4760 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4761fi
4762
4763if test -n "$ac_config_links"; then
4764 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4765fi
4766
4767if test -n "$ac_config_commands"; then
4768 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4769fi
4770
4771cat >>$CONFIG_STATUS <<\_ACEOF
4772
4773ac_cs_usage="\
4774\`$as_me' instantiates files from templates according to the
4775current configuration.
4776
4777Usage: $0 [OPTIONS] [FILE]...
4778
4779 -h, --help print this help, then exit
4780 -V, --version print version number, then exit
4781 -d, --debug don't remove temporary files
4782 --recheck update $as_me by reconfiguring in the same conditions
4783 --file=FILE[:TEMPLATE]
4784 instantiate the configuration file FILE
4785 --header=FILE[:TEMPLATE]
4786 instantiate the configuration header FILE
4787
4788Configuration files:
4789$config_files
4790
4791Configuration headers:
4792$config_headers
4793
4794Configuration links:
4795$config_links
4796
4797Configuration commands:
4798$config_commands
4799
4800Report bugs to <bug-autoconf@gnu.org>."
4801_ACEOF
4802
4803cat >>$CONFIG_STATUS <<_ACEOF
4804ac_cs_version="\\
4805config.status
4806configured by $0, generated by GNU Autoconf 2.54,
4807 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4808
4809Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4810Free Software Foundation, Inc.
4811This config.status script is free software; the Free Software Foundation
4812gives unlimited permission to copy, distribute and modify it."
4813srcdir=$srcdir
4814INSTALL="$INSTALL"
4815_ACEOF
4816
4817cat >>$CONFIG_STATUS <<\_ACEOF
4818# If no file are specified by the user, then we need to provide default
4819# value. By we need to know if files were specified by the user.
4820ac_need_defaults=:
4821while test $# != 0
4822do
4823 case $1 in
4824 --*=*)
4825 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4826 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4827 ac_shift=:
4828 ;;
4829 -*)
4830 ac_option=$1
4831 ac_optarg=$2
4832 ac_shift=shift
4833 ;;
4834 *) # This is not an option, so the user has probably given explicit
4835 # arguments.
4836 ac_option=$1
4837 ac_need_defaults=false;;
4838 esac
4839
4840 case $ac_option in
4841 # Handling of the options.
4842_ACEOF
4843cat >>$CONFIG_STATUS <<_ACEOF
4844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4845 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4846 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4847_ACEOF
4848cat >>$CONFIG_STATUS <<\_ACEOF
4849 --version | --vers* | -V )
4850 echo "$ac_cs_version"; exit 0 ;;
4851 --he | --h)
4852 # Conflict between --help and --header
4853 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4854Try \`$0 --help' for more information." >&5
4855echo "$as_me: error: ambiguous option: $1
4856Try \`$0 --help' for more information." >&2;}
4857 { (exit 1); exit 1; }; };;
4858 --help | --hel | -h )
4859 echo "$ac_cs_usage"; exit 0 ;;
4860 --debug | --d* | -d )
4861 debug=: ;;
4862 --file | --fil | --fi | --f )
4863 $ac_shift
4864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4865 ac_need_defaults=false;;
4866 --header | --heade | --head | --hea )
4867 $ac_shift
4868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4869 ac_need_defaults=false;;
4870
4871 # This is an error.
4872 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4873Try \`$0 --help' for more information." >&5
4874echo "$as_me: error: unrecognized option: $1
4875Try \`$0 --help' for more information." >&2;}
4876 { (exit 1); exit 1; }; } ;;
4877
4878 *) ac_config_targets="$ac_config_targets $1" ;;
4879
4880 esac
4881 shift
4882done
4883
4884_ACEOF
4885
4886cat >>$CONFIG_STATUS <<_ACEOF
4887#
4888# INIT-COMMANDS section.
4889#
4890
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004891AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004892
4893_ACEOF
4894
4895
4896
4897cat >>$CONFIG_STATUS <<\_ACEOF
4898for ac_config_target in $ac_config_targets
4899do
4900 case "$ac_config_target" in
4901 # Handling of arguments.
4902 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4903 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4904 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
4905 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4906 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +00004907 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00004908 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004909 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
4910 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4911echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4912 { (exit 1); exit 1; }; };;
4913 esac
4914done
4915
4916# If the user did not use the arguments to specify the items to instantiate,
4917# then the envvar interface is used. Set only those that are not.
4918# We use the long form for the default assignment because of an extremely
4919# bizarre bug on SunOS 4.1.3.
4920if $ac_need_defaults; then
4921 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4922 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4923 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
4924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4925fi
4926
4927# Create a temporary directory, and hook for its removal unless debugging.
4928$debug ||
4929{
4930 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4931 trap '{ (exit 1); exit 1; }' 1 2 13 15
4932}
4933
4934# Create a (secure) tmp directory for tmp files.
4935: ${TMPDIR=/tmp}
4936{
4937 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4938 test -n "$tmp" && test -d "$tmp"
4939} ||
4940{
4941 tmp=$TMPDIR/cs$$-$RANDOM
4942 (umask 077 && mkdir $tmp)
4943} ||
4944{
4945 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4946 { (exit 1); exit 1; }
4947}
4948
4949_ACEOF
4950
4951cat >>$CONFIG_STATUS <<_ACEOF
4952
4953#
4954# CONFIG_FILES section.
4955#
4956
4957# No need to generate the scripts if there are no CONFIG_FILES.
4958# This happens for instance when ./config.status config.h
4959if test -n "\$CONFIG_FILES"; then
4960 # Protect against being on the right side of a sed subst in config.status.
4961 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4962 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4963s,@SHELL@,$SHELL,;t t
4964s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4965s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4966s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4967s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4968s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4969s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4970s,@exec_prefix@,$exec_prefix,;t t
4971s,@prefix@,$prefix,;t t
4972s,@program_transform_name@,$program_transform_name,;t t
4973s,@bindir@,$bindir,;t t
4974s,@sbindir@,$sbindir,;t t
4975s,@libexecdir@,$libexecdir,;t t
4976s,@datadir@,$datadir,;t t
4977s,@sysconfdir@,$sysconfdir,;t t
4978s,@sharedstatedir@,$sharedstatedir,;t t
4979s,@localstatedir@,$localstatedir,;t t
4980s,@libdir@,$libdir,;t t
4981s,@includedir@,$includedir,;t t
4982s,@oldincludedir@,$oldincludedir,;t t
4983s,@infodir@,$infodir,;t t
4984s,@mandir@,$mandir,;t t
4985s,@build_alias@,$build_alias,;t t
4986s,@host_alias@,$host_alias,;t t
4987s,@target_alias@,$target_alias,;t t
4988s,@DEFS@,$DEFS,;t t
4989s,@ECHO_C@,$ECHO_C,;t t
4990s,@ECHO_N@,$ECHO_N,;t t
4991s,@ECHO_T@,$ECHO_T,;t t
4992s,@LIBS@,$LIBS,;t t
4993s,@build@,$build,;t t
4994s,@build_cpu@,$build_cpu,;t t
4995s,@build_vendor@,$build_vendor,;t t
4996s,@build_os@,$build_os,;t t
4997s,@host@,$host,;t t
4998s,@host_cpu@,$host_cpu,;t t
4999s,@host_vendor@,$host_vendor,;t t
5000s,@host_os@,$host_os,;t t
5001s,@target@,$target,;t t
5002s,@target_cpu@,$target_cpu,;t t
5003s,@target_vendor@,$target_vendor,;t t
5004s,@target_os@,$target_os,;t t
5005s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5006s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5007s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5008s,@PACKAGE@,$PACKAGE,;t t
5009s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005010s,@ACLOCAL@,$ACLOCAL,;t t
5011s,@AUTOCONF@,$AUTOCONF,;t t
5012s,@AUTOMAKE@,$AUTOMAKE,;t t
5013s,@AUTOHEADER@,$AUTOHEADER,;t t
5014s,@MAKEINFO@,$MAKEINFO,;t t
5015s,@AMTAR@,$AMTAR,;t t
5016s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005017s,@STRIP@,$STRIP,;t t
5018s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005019s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5020s,@AWK@,$AWK,;t t
5021s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005022s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5023s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5024s,@MAINT@,$MAINT,;t t
5025s,@CC@,$CC,;t t
5026s,@CFLAGS@,$CFLAGS,;t t
5027s,@LDFLAGS@,$LDFLAGS,;t t
5028s,@CPPFLAGS@,$CPPFLAGS,;t t
5029s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005030s,@EXEEXT@,$EXEEXT,;t t
5031s,@OBJEXT@,$OBJEXT,;t t
5032s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005033s,@am__include@,$am__include,;t t
5034s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005035s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5036s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5037s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005038s,@CCDEPMODE@,$CCDEPMODE,;t t
5039s,@RANLIB@,$RANLIB,;t t
5040s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5041s,@LN_S@,$LN_S,;t t
5042s,@LIBTOOL@,$LIBTOOL,;t t
5043s,@CPP@,$CPP,;t t
5044s,@EGREP@,$EGREP,;t t
5045s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005046s,@CCAS@,$CCAS,;t t
5047s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005048s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
5049s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
5050s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
5051s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00005052s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
5053s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005054s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
5055s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005056s,@arch@,$arch,;t t
5057s,@ARCH@,$ARCH,;t t
5058s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5059CEOF
5060
5061_ACEOF
5062
5063 cat >>$CONFIG_STATUS <<\_ACEOF
5064 # Split the substitutions into bite-sized pieces for seds with
5065 # small command number limits, like on Digital OSF/1 and HP-UX.
5066 ac_max_sed_lines=48
5067 ac_sed_frag=1 # Number of current file.
5068 ac_beg=1 # First line for current file.
5069 ac_end=$ac_max_sed_lines # Line after last line for current file.
5070 ac_more_lines=:
5071 ac_sed_cmds=
5072 while $ac_more_lines; do
5073 if test $ac_beg -gt 1; then
5074 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5075 else
5076 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5077 fi
5078 if test ! -s $tmp/subs.frag; then
5079 ac_more_lines=false
5080 else
5081 # The purpose of the label and of the branching condition is to
5082 # speed up the sed processing (if there are no `@' at all, there
5083 # is no need to browse any of the substitutions).
5084 # These are the two extra sed commands mentioned above.
5085 (echo ':t
5086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5087 if test -z "$ac_sed_cmds"; then
5088 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5089 else
5090 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5091 fi
5092 ac_sed_frag=`expr $ac_sed_frag + 1`
5093 ac_beg=$ac_end
5094 ac_end=`expr $ac_end + $ac_max_sed_lines`
5095 fi
5096 done
5097 if test -z "$ac_sed_cmds"; then
5098 ac_sed_cmds=cat
5099 fi
5100fi # test -n "$CONFIG_FILES"
5101
5102_ACEOF
5103cat >>$CONFIG_STATUS <<\_ACEOF
5104for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5106 case $ac_file in
5107 - | *:- | *:-:* ) # input from stdin
5108 cat >$tmp/stdin
5109 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5111 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5113 * ) ac_file_in=$ac_file.in ;;
5114 esac
5115
5116 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5117 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5118$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5119 X"$ac_file" : 'X\(//\)[^/]' \| \
5120 X"$ac_file" : 'X\(//\)$' \| \
5121 X"$ac_file" : 'X\(/\)' \| \
5122 . : '\(.\)' 2>/dev/null ||
5123echo X"$ac_file" |
5124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5126 /^X\(\/\/\)$/{ s//\1/; q; }
5127 /^X\(\/\).*/{ s//\1/; q; }
5128 s/.*/./; q'`
5129 { if $as_mkdir_p; then
5130 mkdir -p "$ac_dir"
5131 else
5132 as_dir="$ac_dir"
5133 as_dirs=
5134 while test ! -d "$as_dir"; do
5135 as_dirs="$as_dir $as_dirs"
5136 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5137$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5138 X"$as_dir" : 'X\(//\)[^/]' \| \
5139 X"$as_dir" : 'X\(//\)$' \| \
5140 X"$as_dir" : 'X\(/\)' \| \
5141 . : '\(.\)' 2>/dev/null ||
5142echo X"$as_dir" |
5143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5145 /^X\(\/\/\)$/{ s//\1/; q; }
5146 /^X\(\/\).*/{ s//\1/; q; }
5147 s/.*/./; q'`
5148 done
5149 test ! -n "$as_dirs" || mkdir $as_dirs
5150 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5151echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5152 { (exit 1); exit 1; }; }; }
5153
5154 ac_builddir=.
5155
5156if test "$ac_dir" != .; then
5157 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5158 # A "../" for each directory in $ac_dir_suffix.
5159 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5160else
5161 ac_dir_suffix= ac_top_builddir=
5162fi
5163
5164case $srcdir in
5165 .) # No --srcdir option. We are building in place.
5166 ac_srcdir=.
5167 if test -z "$ac_top_builddir"; then
5168 ac_top_srcdir=.
5169 else
5170 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5171 fi ;;
5172 [\\/]* | ?:[\\/]* ) # Absolute path.
5173 ac_srcdir=$srcdir$ac_dir_suffix;
5174 ac_top_srcdir=$srcdir ;;
5175 *) # Relative path.
5176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5178esac
5179# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5180# absolute.
5181ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5182ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5183ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5184ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5185
5186
5187 case $INSTALL in
5188 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5189 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5190 esac
5191
5192 if test x"$ac_file" != x-; then
5193 { echo "$as_me:$LINENO: creating $ac_file" >&5
5194echo "$as_me: creating $ac_file" >&6;}
5195 rm -f "$ac_file"
5196 fi
5197 # Let's still pretend it is `configure' which instantiates (i.e., don't
5198 # use $as_me), people would be surprised to read:
5199 # /* config.h. Generated by config.status. */
5200 if test x"$ac_file" = x-; then
5201 configure_input=
5202 else
5203 configure_input="$ac_file. "
5204 fi
5205 configure_input=$configure_input"Generated from `echo $ac_file_in |
5206 sed 's,.*/,,'` by configure."
5207
5208 # First look for the input files in the build tree, otherwise in the
5209 # src tree.
5210 ac_file_inputs=`IFS=:
5211 for f in $ac_file_in; do
5212 case $f in
5213 -) echo $tmp/stdin ;;
5214 [\\/$]*)
5215 # Absolute (can't be DOS-style, as IFS=:)
5216 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5217echo "$as_me: error: cannot find input file: $f" >&2;}
5218 { (exit 1); exit 1; }; }
5219 echo $f;;
5220 *) # Relative
5221 if test -f "$f"; then
5222 # Build tree
5223 echo $f
5224 elif test -f "$srcdir/$f"; then
5225 # Source tree
5226 echo $srcdir/$f
5227 else
5228 # /dev/null tree
5229 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5230echo "$as_me: error: cannot find input file: $f" >&2;}
5231 { (exit 1); exit 1; }; }
5232 fi;;
5233 esac
5234 done` || { (exit 1); exit 1; }
5235_ACEOF
5236cat >>$CONFIG_STATUS <<_ACEOF
5237 sed "$ac_vpsub
5238$extrasub
5239_ACEOF
5240cat >>$CONFIG_STATUS <<\_ACEOF
5241:t
5242/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5243s,@configure_input@,$configure_input,;t t
5244s,@srcdir@,$ac_srcdir,;t t
5245s,@abs_srcdir@,$ac_abs_srcdir,;t t
5246s,@top_srcdir@,$ac_top_srcdir,;t t
5247s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5248s,@builddir@,$ac_builddir,;t t
5249s,@abs_builddir@,$ac_abs_builddir,;t t
5250s,@top_builddir@,$ac_top_builddir,;t t
5251s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5252s,@INSTALL@,$ac_INSTALL,;t t
5253" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5254 rm -f $tmp/stdin
5255 if test x"$ac_file" != x-; then
5256 mv $tmp/out $ac_file
5257 else
5258 cat $tmp/out
5259 rm -f $tmp/out
5260 fi
5261
5262done
5263_ACEOF
5264cat >>$CONFIG_STATUS <<\_ACEOF
5265
5266#
5267# CONFIG_HEADER section.
5268#
5269
5270# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5271# NAME is the cpp macro being defined and VALUE is the value it is being given.
5272#
5273# ac_d sets the value in "#define NAME VALUE" lines.
5274ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5275ac_dB='[ ].*$,\1#\2'
5276ac_dC=' '
5277ac_dD=',;t'
5278# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5279ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5280ac_uB='$,\1#\2define\3'
5281ac_uC=' '
5282ac_uD=',;t'
5283
5284for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5286 case $ac_file in
5287 - | *:- | *:-:* ) # input from stdin
5288 cat >$tmp/stdin
5289 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5291 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5292 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5293 * ) ac_file_in=$ac_file.in ;;
5294 esac
5295
5296 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5297echo "$as_me: creating $ac_file" >&6;}
5298
5299 # First look for the input files in the build tree, otherwise in the
5300 # src tree.
5301 ac_file_inputs=`IFS=:
5302 for f in $ac_file_in; do
5303 case $f in
5304 -) echo $tmp/stdin ;;
5305 [\\/$]*)
5306 # Absolute (can't be DOS-style, as IFS=:)
5307 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5308echo "$as_me: error: cannot find input file: $f" >&2;}
5309 { (exit 1); exit 1; }; }
5310 echo $f;;
5311 *) # Relative
5312 if test -f "$f"; then
5313 # Build tree
5314 echo $f
5315 elif test -f "$srcdir/$f"; then
5316 # Source tree
5317 echo $srcdir/$f
5318 else
5319 # /dev/null tree
5320 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5321echo "$as_me: error: cannot find input file: $f" >&2;}
5322 { (exit 1); exit 1; }; }
5323 fi;;
5324 esac
5325 done` || { (exit 1); exit 1; }
5326 # Remove the trailing spaces.
5327 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5328
5329_ACEOF
5330
5331# Transform confdefs.h into two sed scripts, `conftest.defines' and
5332# `conftest.undefs', that substitutes the proper values into
5333# config.h.in to produce config.h. The first handles `#define'
5334# templates, and the second `#undef' templates.
5335# And first: Protect against being on the right side of a sed subst in
5336# config.status. Protect against being in an unquoted here document
5337# in config.status.
5338rm -f conftest.defines conftest.undefs
5339# Using a here document instead of a string reduces the quoting nightmare.
5340# Putting comments in sed scripts is not portable.
5341#
5342# `end' is used to avoid that the second main sed command (meant for
5343# 0-ary CPP macros) applies to n-ary macro definitions.
5344# See the Autoconf documentation for `clear'.
5345cat >confdef2sed.sed <<\_ACEOF
5346s/[\\&,]/\\&/g
5347s,[\\$`],\\&,g
5348t clear
5349: clear
5350s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5351t end
5352s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5353: end
5354_ACEOF
5355# If some macros were called several times there might be several times
5356# the same #defines, which is useless. Nevertheless, we may not want to
5357# sort them, since we want the *last* AC-DEFINE to be honored.
5358uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5359sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5360rm -f confdef2sed.sed
5361
5362# This sed command replaces #undef with comments. This is necessary, for
5363# example, in the case of _POSIX_SOURCE, which is predefined and required
5364# on some systems where configure will not decide to define it.
5365cat >>conftest.undefs <<\_ACEOF
5366s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5367_ACEOF
5368
5369# Break up conftest.defines because some shells have a limit on the size
5370# of here documents, and old seds have small limits too (100 cmds).
5371echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5372echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5373echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5374echo ' :' >>$CONFIG_STATUS
5375rm -f conftest.tail
5376while grep . conftest.defines >/dev/null
5377do
5378 # Write a limited-size here document to $tmp/defines.sed.
5379 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5380 # Speed up: don't consider the non `#define' lines.
5381 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5382 # Work around the forget-to-reset-the-flag bug.
5383 echo 't clr' >>$CONFIG_STATUS
5384 echo ': clr' >>$CONFIG_STATUS
5385 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5386 echo 'CEOF
5387 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5388 rm -f $tmp/in
5389 mv $tmp/out $tmp/in
5390' >>$CONFIG_STATUS
5391 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5392 rm -f conftest.defines
5393 mv conftest.tail conftest.defines
5394done
5395rm -f conftest.defines
5396echo ' fi # grep' >>$CONFIG_STATUS
5397echo >>$CONFIG_STATUS
5398
5399# Break up conftest.undefs because some shells have a limit on the size
5400# of here documents, and old seds have small limits too (100 cmds).
5401echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5402rm -f conftest.tail
5403while grep . conftest.undefs >/dev/null
5404do
5405 # Write a limited-size here document to $tmp/undefs.sed.
5406 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5407 # Speed up: don't consider the non `#undef'
5408 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5409 # Work around the forget-to-reset-the-flag bug.
5410 echo 't clr' >>$CONFIG_STATUS
5411 echo ': clr' >>$CONFIG_STATUS
5412 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5413 echo 'CEOF
5414 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5415 rm -f $tmp/in
5416 mv $tmp/out $tmp/in
5417' >>$CONFIG_STATUS
5418 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5419 rm -f conftest.undefs
5420 mv conftest.tail conftest.undefs
5421done
5422rm -f conftest.undefs
5423
5424cat >>$CONFIG_STATUS <<\_ACEOF
5425 # Let's still pretend it is `configure' which instantiates (i.e., don't
5426 # use $as_me), people would be surprised to read:
5427 # /* config.h. Generated by config.status. */
5428 if test x"$ac_file" = x-; then
5429 echo "/* Generated by configure. */" >$tmp/config.h
5430 else
5431 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5432 fi
5433 cat $tmp/in >>$tmp/config.h
5434 rm -f $tmp/in
5435 if test x"$ac_file" != x-; then
5436 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5437 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5438echo "$as_me: $ac_file is unchanged" >&6;}
5439 else
5440 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5441$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5442 X"$ac_file" : 'X\(//\)[^/]' \| \
5443 X"$ac_file" : 'X\(//\)$' \| \
5444 X"$ac_file" : 'X\(/\)' \| \
5445 . : '\(.\)' 2>/dev/null ||
5446echo X"$ac_file" |
5447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5449 /^X\(\/\/\)$/{ s//\1/; q; }
5450 /^X\(\/\).*/{ s//\1/; q; }
5451 s/.*/./; q'`
5452 { if $as_mkdir_p; then
5453 mkdir -p "$ac_dir"
5454 else
5455 as_dir="$ac_dir"
5456 as_dirs=
5457 while test ! -d "$as_dir"; do
5458 as_dirs="$as_dir $as_dirs"
5459 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5460$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5461 X"$as_dir" : 'X\(//\)[^/]' \| \
5462 X"$as_dir" : 'X\(//\)$' \| \
5463 X"$as_dir" : 'X\(/\)' \| \
5464 . : '\(.\)' 2>/dev/null ||
5465echo X"$as_dir" |
5466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5468 /^X\(\/\/\)$/{ s//\1/; q; }
5469 /^X\(\/\).*/{ s//\1/; q; }
5470 s/.*/./; q'`
5471 done
5472 test ! -n "$as_dirs" || mkdir $as_dirs
5473 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5474echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5475 { (exit 1); exit 1; }; }; }
5476
5477 rm -f $ac_file
5478 mv $tmp/config.h $ac_file
5479 fi
5480 else
5481 cat $tmp/config.h
5482 rm -f $tmp/config.h
5483 fi
5484 # Run the commands associated with the file.
5485 case $ac_file in
5486 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005487echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005488 ;;
5489 esac
5490done
5491_ACEOF
5492cat >>$CONFIG_STATUS <<\_ACEOF
5493
5494#
5495# CONFIG_LINKS section.
5496#
5497
5498for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
5499 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5500 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5501
5502 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
5503echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
5504
5505 if test ! -r $srcdir/$ac_source; then
5506 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
5507echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
5508 { (exit 1); exit 1; }; }
5509 fi
5510 rm -f $ac_dest
5511
5512 # Make relative symlinks.
5513 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
5514$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5515 X"$ac_dest" : 'X\(//\)[^/]' \| \
5516 X"$ac_dest" : 'X\(//\)$' \| \
5517 X"$ac_dest" : 'X\(/\)' \| \
5518 . : '\(.\)' 2>/dev/null ||
5519echo X"$ac_dest" |
5520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5522 /^X\(\/\/\)$/{ s//\1/; q; }
5523 /^X\(\/\).*/{ s//\1/; q; }
5524 s/.*/./; q'`
5525 { if $as_mkdir_p; then
5526 mkdir -p "$ac_dest_dir"
5527 else
5528 as_dir="$ac_dest_dir"
5529 as_dirs=
5530 while test ! -d "$as_dir"; do
5531 as_dirs="$as_dir $as_dirs"
5532 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5533$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5534 X"$as_dir" : 'X\(//\)[^/]' \| \
5535 X"$as_dir" : 'X\(//\)$' \| \
5536 X"$as_dir" : 'X\(/\)' \| \
5537 . : '\(.\)' 2>/dev/null ||
5538echo X"$as_dir" |
5539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5541 /^X\(\/\/\)$/{ s//\1/; q; }
5542 /^X\(\/\).*/{ s//\1/; q; }
5543 s/.*/./; q'`
5544 done
5545 test ! -n "$as_dirs" || mkdir $as_dirs
5546 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
5547echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
5548 { (exit 1); exit 1; }; }; }
5549
5550 ac_builddir=.
5551
5552if test "$ac_dest_dir" != .; then
5553 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
5554 # A "../" for each directory in $ac_dir_suffix.
5555 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5556else
5557 ac_dir_suffix= ac_top_builddir=
5558fi
5559
5560case $srcdir in
5561 .) # No --srcdir option. We are building in place.
5562 ac_srcdir=.
5563 if test -z "$ac_top_builddir"; then
5564 ac_top_srcdir=.
5565 else
5566 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5567 fi ;;
5568 [\\/]* | ?:[\\/]* ) # Absolute path.
5569 ac_srcdir=$srcdir$ac_dir_suffix;
5570 ac_top_srcdir=$srcdir ;;
5571 *) # Relative path.
5572 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5573 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5574esac
5575# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
5576# absolute.
5577ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
5578ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
5579ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
5580ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
5581
5582
5583 case $srcdir in
5584 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
5585 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
5586 esac
5587
5588 # Try a symlink, then a hard link, then a copy.
5589 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5590 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
5591 cp -p $srcdir/$ac_source $ac_dest ||
5592 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
5593echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
5594 { (exit 1); exit 1; }; }
5595done
5596_ACEOF
5597cat >>$CONFIG_STATUS <<\_ACEOF
5598
5599#
5600# CONFIG_COMMANDS section.
5601#
5602for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5603 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5604 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5605 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5606$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5607 X"$ac_dest" : 'X\(//\)[^/]' \| \
5608 X"$ac_dest" : 'X\(//\)$' \| \
5609 X"$ac_dest" : 'X\(/\)' \| \
5610 . : '\(.\)' 2>/dev/null ||
5611echo X"$ac_dest" |
5612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5614 /^X\(\/\/\)$/{ s//\1/; q; }
5615 /^X\(\/\).*/{ s//\1/; q; }
5616 s/.*/./; q'`
5617 ac_builddir=.
5618
5619if test "$ac_dir" != .; then
5620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5621 # A "../" for each directory in $ac_dir_suffix.
5622 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5623else
5624 ac_dir_suffix= ac_top_builddir=
5625fi
5626
5627case $srcdir in
5628 .) # No --srcdir option. We are building in place.
5629 ac_srcdir=.
5630 if test -z "$ac_top_builddir"; then
5631 ac_top_srcdir=.
5632 else
5633 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5634 fi ;;
5635 [\\/]* | ?:[\\/]* ) # Absolute path.
5636 ac_srcdir=$srcdir$ac_dir_suffix;
5637 ac_top_srcdir=$srcdir ;;
5638 *) # Relative path.
5639 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5640 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5641esac
5642# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5643# absolute.
5644ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5645ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5646ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5647ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5648
5649
5650 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5651echo "$as_me: executing $ac_dest commands" >&6;}
5652 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005653 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5654 # Strip MF so we end up with the name of the file.
5655 mf=`echo "$mf" | sed -e 's/:.*$//'`
5656 # Check whether this is an Automake generated Makefile or not.
5657 # We used to match only the files named `Makefile.in', but
5658 # some people rename them; so instead we look at the file content.
5659 # Grep'ing the first line is not enough: some people post-process
5660 # each Makefile.in and add a new line on top of each file to say so.
5661 # So let's grep whole file.
5662 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5663 dirpart=`(dirname "$mf") 2>/dev/null ||
5664$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5665 X"$mf" : 'X\(//\)[^/]' \| \
5666 X"$mf" : 'X\(//\)$' \| \
5667 X"$mf" : 'X\(/\)' \| \
5668 . : '\(.\)' 2>/dev/null ||
5669echo X"$mf" |
5670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5672 /^X\(\/\/\)$/{ s//\1/; q; }
5673 /^X\(\/\).*/{ s//\1/; q; }
5674 s/.*/./; q'`
5675 else
5676 continue
5677 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005678 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5679 # Extract the definition of DEP_FILES from the Makefile without
5680 # running `make'.
5681 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5682 test -z "$DEPDIR" && continue
5683 # When using ansi2knr, U may be empty or an underscore; expand it
5684 U=`sed -n -e '/^U = / s///p' < "$mf"`
5685 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5686 # We invoke sed twice because it is the simplest approach to
5687 # changing $(DEPDIR) to its actual value in the expansion.
5688 for file in `sed -n -e '
5689 /^DEP_FILES = .*\\\\$/ {
5690 s/^DEP_FILES = //
5691 :loop
5692 s/\\\\$//
5693 p
5694 n
5695 /\\\\$/ b loop
5696 p
5697 }
5698 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5699 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5700 # Make sure the directory exists.
5701 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00005702 fdir=`(dirname "$file") 2>/dev/null ||
5703$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5704 X"$file" : 'X\(//\)[^/]' \| \
5705 X"$file" : 'X\(//\)$' \| \
5706 X"$file" : 'X\(/\)' \| \
5707 . : '\(.\)' 2>/dev/null ||
5708echo X"$file" |
5709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5711 /^X\(\/\/\)$/{ s//\1/; q; }
5712 /^X\(\/\).*/{ s//\1/; q; }
5713 s/.*/./; q'`
5714 { if $as_mkdir_p; then
5715 mkdir -p $dirpart/$fdir
5716 else
5717 as_dir=$dirpart/$fdir
5718 as_dirs=
5719 while test ! -d "$as_dir"; do
5720 as_dirs="$as_dir $as_dirs"
5721 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5722$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5723 X"$as_dir" : 'X\(//\)[^/]' \| \
5724 X"$as_dir" : 'X\(//\)$' \| \
5725 X"$as_dir" : 'X\(/\)' \| \
5726 . : '\(.\)' 2>/dev/null ||
5727echo X"$as_dir" |
5728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5730 /^X\(\/\/\)$/{ s//\1/; q; }
5731 /^X\(\/\).*/{ s//\1/; q; }
5732 s/.*/./; q'`
5733 done
5734 test ! -n "$as_dirs" || mkdir $as_dirs
5735 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5736echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5737 { (exit 1); exit 1; }; }; }
5738
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00005739 # echo "creating $dirpart/$file"
5740 echo '# dummy' > "$dirpart/$file"
5741 done
5742done
5743 ;;
5744 esac
5745done
5746_ACEOF
5747
5748cat >>$CONFIG_STATUS <<\_ACEOF
5749
5750{ (exit 0); exit 0; }
5751_ACEOF
5752chmod +x $CONFIG_STATUS
5753ac_clean_files=$ac_clean_files_save
5754
5755
5756# configure is writing to config.log, and then calls config.status.
5757# config.status does its own redirection, appending to config.log.
5758# Unfortunately, on DOS this fails, as config.log is still kept open
5759# by configure, so config.status won't be able to write to it; its
5760# output is simply discarded. So we exec the FD to /dev/null,
5761# effectively closing config.log, so it can be properly (re)opened and
5762# appended to by config.status. When coming back to configure, we
5763# need to make the FD available again.
5764if test "$no_create" != yes; then
5765 ac_cs_success=:
5766 exec 5>/dev/null
5767 $SHELL $CONFIG_STATUS || ac_cs_success=false
5768 exec 5>>config.log
5769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5770 # would make configure fail if this is the last instruction.
5771 $ac_cs_success || { (exit 1); exit 1; }
5772fi
5773