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