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