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