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