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