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