]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/ppc/configure
e43216f17666b088dc8e742b4e01a8d7d1a8b2ca
[thirdparty/binutils-gdb.git] / sim / ppc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-sim-alignment=align Specify strict or nonstrict alignment.
854 --enable-sim-assert Specify whether to perform random assertions.
855 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
856 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
857 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
858 --enable-sim-config=file Override default config file
859 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
860 --enable-sim-default-model=which Specify default PowerPC to model.
861 --enable-sim-duplicate Expand (duplicate) semantic functions.
862 --enable-sim-endian=endian Specify target byte endian orientation.
863 --enable-sim-env=env Specify target environment (operating, virtual, user).
864 --enable-sim-filter=rule Specify filter rules.
865 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
866 --enable-sim-hardware=list Specify the hardware to be included in the build.
867 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
868 --enable-sim-hostendian=end Specify host byte endian orientation.
869 --enable-sim-icache=size Specify instruction-decode cache size and type.
870 --enable-sim-inline=inlines Specify which functions should be inlined.
871 --enable-sim-jump Jump between semantic code (instead of call/return).
872 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
873 --enable-sim-model=which Specify PowerPC to model.
874 --enable-sim-model-issue Specify whether to simulate model specific actions
875 --enable-sim-monitor=mon Specify whether to enable monitoring events.
876 --enable-sim-opcode=which Override default opcode lookup.
877 --enable-sim-packages=list Specify the packages to be included in the build.
878 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
879 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
880 --enable-sim-smp=n Specify number of processors to configure for.
881 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
882 --enable-sim-stdio Specify whether to use stdio for console input/output.
883 --enable-sim-switch Use a switch instead of a table for instruction call.
884 --enable-sim-timebase Specify whether the PPC timebase is supported.
885 --enable-sim-trace Specify whether tracing is supported.
886 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
887 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
888
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
896 CPP C preprocessor
897
898 Use these variables to override the choices made by `configure' or to help
899 it to find libraries and programs with nonstandard names/locations.
900
901 _ACEOF
902 fi
903
904 if test "$ac_init_help" = "recursive"; then
905 # If there are subdirs, report their specific --help.
906 ac_popdir=`pwd`
907 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908 test -d $ac_dir || continue
909 ac_builddir=.
910
911 if test "$ac_dir" != .; then
912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913 # A "../" for each directory in $ac_dir_suffix.
914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915 else
916 ac_dir_suffix= ac_top_builddir=
917 fi
918
919 case $srcdir in
920 .) # No --srcdir option. We are building in place.
921 ac_srcdir=.
922 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=.
924 else
925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926 fi ;;
927 [\\/]* | ?:[\\/]* ) # Absolute path.
928 ac_srcdir=$srcdir$ac_dir_suffix;
929 ac_top_srcdir=$srcdir ;;
930 *) # Relative path.
931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 esac
934
935 # Do not use `cd foo && pwd` to compute absolute paths, because
936 # the directories may not exist.
937 case `pwd` in
938 .) ac_abs_builddir="$ac_dir";;
939 *)
940 case "$ac_dir" in
941 .) ac_abs_builddir=`pwd`;;
942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 *)
949 case ${ac_top_builddir}. in
950 .) ac_abs_top_builddir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_srcdir=$ac_srcdir;;
957 *)
958 case $ac_srcdir in
959 .) ac_abs_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 *)
967 case $ac_top_srcdir in
968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971 esac;;
972 esac
973
974 cd $ac_dir
975 # Check for guested configure; otherwise get Cygnus style configure.
976 if test -f $ac_srcdir/configure.gnu; then
977 echo
978 $SHELL $ac_srcdir/configure.gnu --help=recursive
979 elif test -f $ac_srcdir/configure; then
980 echo
981 $SHELL $ac_srcdir/configure --help=recursive
982 elif test -f $ac_srcdir/configure.ac ||
983 test -f $ac_srcdir/configure.in; then
984 echo
985 $ac_configure --help
986 else
987 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 fi
989 cd $ac_popdir
990 done
991 fi
992
993 test -n "$ac_init_help" && exit 0
994 if $ac_init_version; then
995 cat <<\_ACEOF
996
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1002 fi
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1007
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1010
1011 $ $0 $@
1012
1013 _ACEOF
1014 {
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1019
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1028
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036
1037 _ASUNAME
1038
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1041 do
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1046
1047 } >&5
1048
1049 cat >&5 <<_ACEOF
1050
1051
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1055
1056 _ACEOF
1057
1058
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1070 do
1071 for ac_arg
1072 do
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 2)
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1096 ;;
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1099 fi
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1103 ;;
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1117 {
1118 echo
1119
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1127 {
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 ;;
1135 *)
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ;;
1139 esac;
1140 }
1141 echo
1142
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169 fi
1170
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1180 fi
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1188 ' 0
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1193
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1198
1199 # Predefined preprocessor variables.
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1224
1225
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 fi
1234 fi
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1241 fi
1242 done
1243
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1254 fi
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1259 fi
1260
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1280 *)
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1302 fi
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1310 fi
1311
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337 ac_aux_dir=
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 break
1343 elif test -f $ac_dir/install.sh; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 break
1347 elif test -f $ac_dir/shtool; then
1348 ac_aux_dir=$ac_dir
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 break
1351 fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356 { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362 # Find a good install program. We prefer a C program (faster),
1363 # so one script is as good as another. But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AmigaOS /C/install, which installs bootblocks on floppy discs
1370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1373 # OS/2's system install, which has a completely different semantic
1374 # ./install, which can be erroneously created by make from ./install.sh.
1375 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1376 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1377 if test -z "$INSTALL"; then
1378 if test "${ac_cv_path_install+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1383 do
1384 IFS=$as_save_IFS
1385 test -z "$as_dir" && as_dir=.
1386 # Account for people who put trailing slashes in PATH elements.
1387 case $as_dir/ in
1388 ./ | .// | /cC/* | \
1389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1390 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1391 /usr/ucb/* ) ;;
1392 *)
1393 # OSF1 and SCO ODT 3.0 have their own names for install.
1394 # Don't use installbsd from OSF since it installs stuff as root
1395 # by default.
1396 for ac_prog in ginstall scoinst install; do
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1399 if test $ac_prog = install &&
1400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1401 # AIX install. It has an incompatible calling convention.
1402 :
1403 elif test $ac_prog = install &&
1404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1405 # program-specific install script used by HP pwplus--don't use.
1406 :
1407 else
1408 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1409 break 3
1410 fi
1411 fi
1412 done
1413 done
1414 ;;
1415 esac
1416 done
1417
1418
1419 fi
1420 if test "${ac_cv_path_install+set}" = set; then
1421 INSTALL=$ac_cv_path_install
1422 else
1423 # As a last resort, use the slow shell script. We don't cache a
1424 # path for INSTALL within a source directory, because that will
1425 # break other packages using the cache if that directory is
1426 # removed, or if the path is relative.
1427 INSTALL=$ac_install_sh
1428 fi
1429 fi
1430 echo "$as_me:$LINENO: result: $INSTALL" >&5
1431 echo "${ECHO_T}$INSTALL" >&6
1432
1433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434 # It thinks the first close brace ends the variable substitution.
1435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1436
1437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1438
1439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1440
1441 ac_ext=c
1442 ac_cpp='$CPP $CPPFLAGS'
1443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1446 if test -n "$ac_tool_prefix"; then
1447 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1448 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 if test -n "$CC"; then
1455 ac_cv_prog_CC="$CC" # Let the user override the test.
1456 else
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1459 do
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 break 2
1467 fi
1468 done
1469 done
1470
1471 fi
1472 fi
1473 CC=$ac_cv_prog_CC
1474 if test -n "$CC"; then
1475 echo "$as_me:$LINENO: result: $CC" >&5
1476 echo "${ECHO_T}$CC" >&6
1477 else
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1480 fi
1481
1482 fi
1483 if test -z "$ac_cv_prog_CC"; then
1484 ac_ct_CC=$CC
1485 # Extract the first word of "gcc", so it can be a program name with args.
1486 set dummy gcc; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 if test -n "$ac_ct_CC"; then
1493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 else
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1497 do
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_ac_ct_CC="gcc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 break 2
1505 fi
1506 done
1507 done
1508
1509 fi
1510 fi
1511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1512 if test -n "$ac_ct_CC"; then
1513 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1514 echo "${ECHO_T}$ac_ct_CC" >&6
1515 else
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520 CC=$ac_ct_CC
1521 else
1522 CC="$ac_cv_prog_CC"
1523 fi
1524
1525 if test -z "$CC"; then
1526 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}cc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="${ac_tool_prefix}cc"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 break 2
1547 fi
1548 done
1549 done
1550
1551 fi
1552 fi
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1561
1562 fi
1563 if test -z "$ac_cv_prog_CC"; then
1564 ac_ct_CC=$CC
1565 # Extract the first word of "cc", so it can be a program name with args.
1566 set dummy cc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586 done
1587 done
1588
1589 fi
1590 fi
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1595 else
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 fi
1599
1600 CC=$ac_ct_CC
1601 else
1602 CC="$ac_cv_prog_CC"
1603 fi
1604
1605 fi
1606 if test -z "$CC"; then
1607 # Extract the first word of "cc", so it can be a program name with args.
1608 set dummy cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 ac_prog_rejected=no
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1626 ac_prog_rejected=yes
1627 continue
1628 fi
1629 ac_cv_prog_CC="cc"
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 break 2
1632 fi
1633 done
1634 done
1635
1636 if test $ac_prog_rejected = yes; then
1637 # We found a bogon in the path, so make sure we never use it.
1638 set dummy $ac_cv_prog_CC
1639 shift
1640 if test $# != 0; then
1641 # We chose a different compiler from the bogus one.
1642 # However, it has the same basename, so the bogon will be chosen
1643 # first if we set CC to just the basename; use the full file name.
1644 shift
1645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1646 fi
1647 fi
1648 fi
1649 fi
1650 CC=$ac_cv_prog_CC
1651 if test -n "$CC"; then
1652 echo "$as_me:$LINENO: result: $CC" >&5
1653 echo "${ECHO_T}$CC" >&6
1654 else
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1657 fi
1658
1659 fi
1660 if test -z "$CC"; then
1661 if test -n "$ac_tool_prefix"; then
1662 for ac_prog in cl
1663 do
1664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 break 2
1684 fi
1685 done
1686 done
1687
1688 fi
1689 fi
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699 test -n "$CC" && break
1700 done
1701 fi
1702 if test -z "$CC"; then
1703 ac_ct_CC=$CC
1704 for ac_prog in cl
1705 do
1706 # Extract the first word of "$ac_prog", so it can be a program name with args.
1707 set dummy $ac_prog; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC="$ac_prog"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727 done
1728 done
1729
1730 fi
1731 fi
1732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733 if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735 echo "${ECHO_T}$ac_ct_CC" >&6
1736 else
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741 test -n "$ac_ct_CC" && break
1742 done
1743
1744 CC=$ac_ct_CC
1745 fi
1746
1747 fi
1748
1749
1750 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1751 See \`config.log' for more details." >&5
1752 echo "$as_me: error: no acceptable C compiler found in \$PATH
1753 See \`config.log' for more details." >&2;}
1754 { (exit 1); exit 1; }; }
1755
1756 # Provide some information about the compiler.
1757 echo "$as_me:$LINENO:" \
1758 "checking for C compiler version" >&5
1759 ac_compiler=`set X $ac_compile; echo $2`
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1761 (eval $ac_compiler --version </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1766 (eval $ac_compiler -v </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1771 (eval $ac_compiler -V </dev/null >&5) 2>&5
1772 ac_status=$?
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }
1775
1776 cat >conftest.$ac_ext <<_ACEOF
1777 /* confdefs.h. */
1778 _ACEOF
1779 cat confdefs.h >>conftest.$ac_ext
1780 cat >>conftest.$ac_ext <<_ACEOF
1781 /* end confdefs.h. */
1782
1783 int
1784 main ()
1785 {
1786
1787 ;
1788 return 0;
1789 }
1790 _ACEOF
1791 ac_clean_files_save=$ac_clean_files
1792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1793 # Try to create an executable without -o first, disregard a.out.
1794 # It will help us diagnose broken compilers, and finding out an intuition
1795 # of exeext.
1796 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1799 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1800 (eval $ac_link_default) 2>&5
1801 ac_status=$?
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }; then
1804 # Find the output, starting from the most likely. This scheme is
1805 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1806 # resort.
1807
1808 # Be careful to initialize this variable, since it used to be cached.
1809 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1810 ac_cv_exeext=
1811 # b.out is created by i960 compilers.
1812 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1813 do
1814 test -f "$ac_file" || continue
1815 case $ac_file in
1816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1817 ;;
1818 conftest.$ac_ext )
1819 # This is the source file.
1820 ;;
1821 [ab].out )
1822 # We found the default executable, but exeext='' is most
1823 # certainly right.
1824 break;;
1825 *.* )
1826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827 # FIXME: I believe we export ac_cv_exeext for Libtool,
1828 # but it would be cool to find out if it's true. Does anybody
1829 # maintain Libtool? --akim.
1830 export ac_cv_exeext
1831 break;;
1832 * )
1833 break;;
1834 esac
1835 done
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: C compiler cannot create executables
1843 See \`config.log' for more details." >&2;}
1844 { (exit 77); exit 77; }; }
1845 fi
1846
1847 ac_exeext=$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_file" >&5
1849 echo "${ECHO_T}$ac_file" >&6
1850
1851 # Check the compiler produces executables we can run. If not, either
1852 # the compiler is broken, or we cross compile.
1853 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1854 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1855 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1856 # If not cross compiling, check that we can run a simple program.
1857 if test "$cross_compiling" != yes; then
1858 if { ac_try='./$ac_file'
1859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1860 (eval $ac_try) 2>&5
1861 ac_status=$?
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; }; then
1864 cross_compiling=no
1865 else
1866 if test "$cross_compiling" = maybe; then
1867 cross_compiling=yes
1868 else
1869 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1870 If you meant to cross compile, use \`--host'.
1871 See \`config.log' for more details." >&5
1872 echo "$as_me: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'.
1874 See \`config.log' for more details." >&2;}
1875 { (exit 1); exit 1; }; }
1876 fi
1877 fi
1878 fi
1879 echo "$as_me:$LINENO: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6
1881
1882 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1883 ac_clean_files=$ac_clean_files_save
1884 # Check the compiler produces executables we can run. If not, either
1885 # the compiler is broken, or we cross compile.
1886 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1887 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1888 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1889 echo "${ECHO_T}$cross_compiling" >&6
1890
1891 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1892 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1894 (eval $ac_link) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1900 # work properly (i.e., refer to `conftest.exe'), while it won't with
1901 # `rm'.
1902 for ac_file in conftest.exe conftest conftest.*; do
1903 test -f "$ac_file" || continue
1904 case $ac_file in
1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 export ac_cv_exeext
1908 break;;
1909 * ) break;;
1910 esac
1911 done
1912 else
1913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1918 fi
1919
1920 rm -f conftest$ac_cv_exeext
1921 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1922 echo "${ECHO_T}$ac_cv_exeext" >&6
1923
1924 rm -f conftest.$ac_ext
1925 EXEEXT=$ac_cv_exeext
1926 ac_exeext=$EXEEXT
1927 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1928 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1929 if test "${ac_cv_objext+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 cat >conftest.$ac_ext <<_ACEOF
1933 /* confdefs.h. */
1934 _ACEOF
1935 cat confdefs.h >>conftest.$ac_ext
1936 cat >>conftest.$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1938
1939 int
1940 main ()
1941 {
1942
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 rm -f conftest.o conftest.obj
1948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1949 (eval $ac_compile) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; then
1953 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1954 case $ac_file in
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1957 break;;
1958 esac
1959 done
1960 else
1961 echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1969 fi
1970
1971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1972 fi
1973 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1974 echo "${ECHO_T}$ac_cv_objext" >&6
1975 OBJEXT=$ac_cv_objext
1976 ac_objext=$OBJEXT
1977 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 cat >conftest.$ac_ext <<_ACEOF
1983 /* confdefs.h. */
1984 _ACEOF
1985 cat confdefs.h >>conftest.$ac_ext
1986 cat >>conftest.$ac_ext <<_ACEOF
1987 /* end confdefs.h. */
1988
1989 int
1990 main ()
1991 {
1992 #ifndef __GNUC__
1993 choke me
1994 #endif
1995
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>conftest.er1
2003 ac_status=$?
2004 grep -v '^ *+' conftest.er1 >conftest.err
2005 rm -f conftest.er1
2006 cat conftest.err >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -z "$ac_c_werror_flag"
2010 || test ! -s conftest.err'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; } &&
2016 { ac_try='test -s conftest.$ac_objext'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; }; then
2022 ac_compiler_gnu=yes
2023 else
2024 echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_compiler_gnu=no
2028 fi
2029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2031
2032 fi
2033 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2035 GCC=`test $ac_compiler_gnu = yes && echo yes`
2036 ac_test_CFLAGS=${CFLAGS+set}
2037 ac_save_CFLAGS=$CFLAGS
2038 CFLAGS="-g"
2039 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2041 if test "${ac_cv_prog_cc_g+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 cat >conftest.$ac_ext <<_ACEOF
2045 /* confdefs.h. */
2046 _ACEOF
2047 cat confdefs.h >>conftest.$ac_ext
2048 cat >>conftest.$ac_ext <<_ACEOF
2049 /* end confdefs.h. */
2050
2051 int
2052 main ()
2053 {
2054
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>conftest.er1
2062 ac_status=$?
2063 grep -v '^ *+' conftest.er1 >conftest.err
2064 rm -f conftest.er1
2065 cat conftest.err >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -z "$ac_c_werror_flag"
2069 || test ! -s conftest.err'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; } &&
2075 { ac_try='test -s conftest.$ac_objext'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 (eval $ac_try) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; }; then
2081 ac_cv_prog_cc_g=yes
2082 else
2083 echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2085
2086 ac_cv_prog_cc_g=no
2087 fi
2088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2089 fi
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2092 if test "$ac_test_CFLAGS" = set; then
2093 CFLAGS=$ac_save_CFLAGS
2094 elif test $ac_cv_prog_cc_g = yes; then
2095 if test "$GCC" = yes; then
2096 CFLAGS="-g -O2"
2097 else
2098 CFLAGS="-g"
2099 fi
2100 else
2101 if test "$GCC" = yes; then
2102 CFLAGS="-O2"
2103 else
2104 CFLAGS=
2105 fi
2106 fi
2107 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2108 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 ac_cv_prog_cc_stdc=no
2113 ac_save_CC=$CC
2114 cat >conftest.$ac_ext <<_ACEOF
2115 /* confdefs.h. */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2120 #include <stdarg.h>
2121 #include <stdio.h>
2122 #include <sys/types.h>
2123 #include <sys/stat.h>
2124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2125 struct buf { int x; };
2126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2127 static char *e (p, i)
2128 char **p;
2129 int i;
2130 {
2131 return p[i];
2132 }
2133 static char *f (char * (*g) (char **, int), char **p, ...)
2134 {
2135 char *s;
2136 va_list v;
2137 va_start (v,p);
2138 s = g (p, va_arg (v,int));
2139 va_end (v);
2140 return s;
2141 }
2142
2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2144 function prototypes and stuff, but not '\xHH' hex character constants.
2145 These don't provoke an error unfortunately, instead are silently treated
2146 as 'x'. The following induces an error, until -std1 is added to get
2147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2148 array size at least. It's necessary to write '\x00'==0 to get something
2149 that's true only with -std1. */
2150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2151
2152 int test (int i, double x);
2153 struct s1 {int (*f) (int a);};
2154 struct s2 {int (*f) (double a);};
2155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2156 int argc;
2157 char **argv;
2158 int
2159 main ()
2160 {
2161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 # Don't try gcc -ansi; that turns off useful extensions and
2167 # breaks some systems' header files.
2168 # AIX -qlanglvl=ansi
2169 # Ultrix and OSF/1 -std1
2170 # HP-UX 10.20 and later -Ae
2171 # HP-UX older versions -Aa -D_HPUX_SOURCE
2172 # SVR4 -Xc -D__EXTENSIONS__
2173 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2174 do
2175 CC="$ac_save_CC $ac_arg"
2176 rm -f conftest.$ac_objext
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2179 ac_status=$?
2180 grep -v '^ *+' conftest.er1 >conftest.err
2181 rm -f conftest.er1
2182 cat conftest.err >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 ac_cv_prog_cc_stdc=$ac_arg
2199 break
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 fi
2205 rm -f conftest.err conftest.$ac_objext
2206 done
2207 rm -f conftest.$ac_ext conftest.$ac_objext
2208 CC=$ac_save_CC
2209
2210 fi
2211
2212 case "x$ac_cv_prog_cc_stdc" in
2213 x|xno)
2214 echo "$as_me:$LINENO: result: none needed" >&5
2215 echo "${ECHO_T}none needed" >&6 ;;
2216 *)
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2219 CC="$CC $ac_cv_prog_cc_stdc" ;;
2220 esac
2221
2222 # Some people use a C++ compiler to compile C. Since we use `exit',
2223 # in C++ we need to declare it. In case someone uses the same compiler
2224 # for both compiling C and C++ we need to have the C++ compiler decide
2225 # the declaration of exit, since it's the most demanding environment.
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #ifndef __cplusplus
2228 choke me
2229 #endif
2230 _ACEOF
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>conftest.er1
2234 ac_status=$?
2235 grep -v '^ *+' conftest.er1 >conftest.err
2236 rm -f conftest.er1
2237 cat conftest.err >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -z "$ac_c_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 for ac_declaration in \
2254 '' \
2255 'extern "C" void std::exit (int) throw (); using std::exit;' \
2256 'extern "C" void std::exit (int); using std::exit;' \
2257 'extern "C" void exit (int) throw ();' \
2258 'extern "C" void exit (int);' \
2259 'void exit (int);'
2260 do
2261 cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h. */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2267 $ac_declaration
2268 #include <stdlib.h>
2269 int
2270 main ()
2271 {
2272 exit (42);
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>conftest.er1
2280 ac_status=$?
2281 grep -v '^ *+' conftest.er1 >conftest.err
2282 rm -f conftest.er1
2283 cat conftest.err >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } &&
2286 { ac_try='test -z "$ac_c_werror_flag"
2287 || test ! -s conftest.err'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; } &&
2293 { ac_try='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2299 :
2300 else
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 continue
2305 fi
2306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2313 $ac_declaration
2314 int
2315 main ()
2316 {
2317 exit (42);
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2325 ac_status=$?
2326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 break
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 fi
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 done
2352 rm -f conftest*
2353 if test -n "$ac_declaration"; then
2354 echo '#ifdef __cplusplus' >>confdefs.h
2355 echo $ac_declaration >>confdefs.h
2356 echo '#endif' >>confdefs.h
2357 fi
2358
2359 else
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 fi
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 ac_ext=c
2366 ac_cpp='$CPP $CPPFLAGS'
2367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
2371
2372 # Put a plausible default for CC_FOR_BUILD in Makefile.
2373 if test "x$cross_compiling" = "xno"; then
2374 CC_FOR_BUILD='$(CC)'
2375 else
2376 CC_FOR_BUILD=gcc
2377 fi
2378 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
2379
2380 ALL_LINGUAS=
2381 # If we haven't got the data from the intl directory,
2382 # assume NLS is disabled.
2383 USE_NLS=no
2384 LIBINTL=
2385 LIBINTL_DEP=
2386 INCINTL=
2387 XGETTEXT=
2388 GMSGFMT=
2389 POSUB=
2390 if test -f ../intl/config.intl; then
2391 . ../intl/config.intl
2392 fi
2393 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2394 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2395 if test x"$USE_NLS" != xyes; then
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2398 else
2399 echo "$as_me:$LINENO: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2401
2402 cat >>confdefs.h <<\_ACEOF
2403 #define ENABLE_NLS 1
2404 _ACEOF
2405
2406
2407 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2408 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2409 # Look for .po and .gmo files in the source directory.
2410 CATALOGS=
2411 XLINGUAS=
2412 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2413 # If there aren't any .gmo files the shell will give us the
2414 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2415 # weeded out.
2416 case "$cat" in *\**)
2417 continue;;
2418 esac
2419 # The quadruple backslash is collapsed to a double backslash
2420 # by the backticks, then collapsed again by the double quotes,
2421 # leaving us with one backslash in the sed expression (right
2422 # before the dot that mustn't act as a wildcard).
2423 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2424 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2425 # The user is allowed to set LINGUAS to a list of languages to
2426 # install catalogs for. If it's empty that means "all of them."
2427 if test "x$LINGUAS" = x; then
2428 CATALOGS="$CATALOGS $cat"
2429 XLINGUAS="$XLINGUAS $lang"
2430 else
2431 case "$LINGUAS" in *$lang*)
2432 CATALOGS="$CATALOGS $cat"
2433 XLINGUAS="$XLINGUAS $lang"
2434 ;;
2435 esac
2436 fi
2437 done
2438 LINGUAS="$XLINGUAS"
2439 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2440 echo "${ECHO_T}$LINGUAS" >&6
2441
2442
2443 DATADIRNAME=share
2444
2445 INSTOBJEXT=.mo
2446
2447 GENCAT=gencat
2448
2449 CATOBJEXT=.gmo
2450
2451 fi
2452
2453
2454 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2455 if test "${enable_sim_alignment+set}" = set; then
2456 enableval="$enable_sim_alignment"
2457 case "${enableval}" in
2458 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2459 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2460 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
2461 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2462 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2463 { (exit 1); exit 1; }; }; sim_alignment="";;
2464 esac
2465 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
2466 echo "Setting alignment flags = $sim_alignment" 6>&1
2467 fi
2468 else
2469 sim_alignment=""
2470 fi;
2471
2472 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2473 if test "${enable_sim_assert+set}" = set; then
2474 enableval="$enable_sim_assert"
2475 case "${enableval}" in
2476 yes) sim_assert="-DWITH_ASSERT=1";;
2477 no) sim_assert="-DWITH_ASSERT=0";;
2478 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2479 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2480 { (exit 1); exit 1; }; }; sim_assert="";;
2481 esac
2482 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
2483 echo "Setting assert flags = $sim_assert" 6>&1
2484 fi
2485 else
2486 sim_assert=""
2487 fi;
2488
2489 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2490 if test "${enable_sim_bitsize+set}" = set; then
2491 enableval="$enable_sim_bitsize"
2492 case "${enableval}" in
2493 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2494 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2495 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2496 { (exit 1); exit 1; }; }; sim_bitsize="";;
2497 esac
2498 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2499 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2500 fi
2501 else
2502 sim_bitsize=""
2503 fi;
2504
2505 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2506 if test "${enable_sim_bswap+set}" = set; then
2507 enableval="$enable_sim_bswap"
2508 case "${enableval}" in
2509 yes) sim_bswap="-DWITH_BSWAP=1";;
2510 no) sim_bswap="-DWITH_BSWAP=0";;
2511 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2512 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2513 { (exit 1); exit 1; }; }; sim_bswap="";;
2514 esac
2515 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
2516 echo "Setting bswap flags = $sim_bswap" 6>&1
2517 fi
2518 else
2519 sim_bswap=""
2520 fi;
2521
2522 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2523 if test "${enable_sim_cflags+set}" = set; then
2524 enableval="$enable_sim_cflags"
2525 case "${enableval}" in
2526 yes) sim_cflags="-O2 -fomit-frame-pointer";;
2527 no) sim_cflags="";;
2528 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2529 esac
2530 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
2531 echo "Setting sim cflags = $sim_cflags" 6>&1
2532 fi
2533 else
2534 sim_cflags=""
2535 fi;
2536
2537 # Check whether --enable-sim-config or --disable-sim-config was given.
2538 if test "${enable_sim_config+set}" = set; then
2539 enableval="$enable_sim_config"
2540 case "${enableval}" in
2541 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2542 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2543 { (exit 1); exit 1; }; };;
2544 *) if test -f "${srcdir}/${enableval}"; then
2545 sim_config="${enableval}";
2546 elif test -f "${srcdir}/${enableval}-config.h"; then
2547 sim_config="${enableval}-config.h"
2548 else
2549 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2550 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2551 { (exit 1); exit 1; }; };
2552 sim_config=std-config.h
2553 fi;;
2554 esac
2555 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
2556 echo "Setting config flags = $sim_config" 6>&1
2557 fi
2558 else
2559 sim_config="std-config.h"
2560 if test x"$silent" != x"yes"; then
2561 echo "Setting config flags = $sim_config" 6>&1
2562 fi
2563 fi;
2564
2565 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2566 if test "${enable_sim_decode_mechanism+set}" = set; then
2567 enableval="$enable_sim_decode_mechanism"
2568 case "${enableval}" in
2569 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2570 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2571 { (exit 1); exit 1; }; };;
2572 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
2573 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2574 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2575 { (exit 1); exit 1; }; };
2576 sim_decode_mechanism="switch";;
2577 esac
2578 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
2579 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2580 fi
2581 else
2582 sim_decode_mechanism=""
2583 if test x"$silent" != x"yes"; then
2584 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2585 fi
2586 fi;
2587
2588 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2589 if test "${enable_sim_default_model+set}" = set; then
2590 enableval="$enable_sim_default_model"
2591 case "${enableval}" in
2592 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2593 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2594 { (exit 1); exit 1; }; };;
2595 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
2596 esac
2597 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
2598 echo "Setting default-model flags = $sim_default_model" 6>&1
2599 fi
2600 else
2601 sim_default_model=""
2602 fi;
2603
2604 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2605 if test "${enable_sim_duplicate+set}" = set; then
2606 enableval="$enable_sim_duplicate"
2607 case "${enableval}" in
2608 yes) sim_dup="-E";;
2609 no) sim_dup="";;
2610 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2611 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2612 { (exit 1); exit 1; }; }; sim_dup="";;
2613 esac
2614 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
2615 echo "Setting duplicate flags = $sim_dup" 6>&1
2616 fi
2617 else
2618 sim_dup="-E"
2619 if test x"$silent" != x"yes"; then
2620 echo "Setting duplicate flags = $sim_dup" 6>&1
2621 fi
2622 fi;
2623
2624 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2625 if test "${enable_sim_endian+set}" = set; then
2626 enableval="$enable_sim_endian"
2627 case "${enableval}" in
2628 yes) case "$target" in
2629 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2630 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2631 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2632 esac;;
2633 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2634 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2635 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2636 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2637 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2638 { (exit 1); exit 1; }; }; sim_endian="";;
2639 esac
2640 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
2641 echo "Setting endian flags = $sim_endian" 6>&1
2642 fi
2643 else
2644 sim_endian=""
2645 fi;
2646
2647 # Check whether --enable-sim-env or --disable-sim-env was given.
2648 if test "${enable_sim_env+set}" = set; then
2649 enableval="$enable_sim_env"
2650 case "${enableval}" in
2651 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2652 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2653 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2654 no) sim_env="-DWITH_ENVIRONMENT=0";;
2655 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2656 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2657 { (exit 1); exit 1; }; }; sim_env="";;
2658 esac
2659 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
2660 echo "Setting env flags = $sim_env" 6>&1
2661 fi
2662 else
2663 sim_env=""
2664 fi;
2665
2666 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2667 if test "${enable_sim_filter+set}" = set; then
2668 enableval="$enable_sim_filter"
2669 case "${enableval}" in
2670 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2671 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2672 { (exit 1); exit 1; }; }; sim_filter="";;
2673 no) sim_filter="";;
2674 *) sim_filter="-F $enableval";;
2675 esac
2676 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
2677 echo "Setting filter flags = $sim_filter" 6>&1
2678 fi
2679 else
2680 sim_filter="-F 32,f,o"
2681 if test x"$silent" != x"yes"; then
2682 echo "Setting filter flags = $sim_filter" 6>&1
2683 fi
2684 fi;
2685
2686 # Check whether --enable-sim-float or --disable-sim-float was given.
2687 if test "${enable_sim_float+set}" = set; then
2688 enableval="$enable_sim_float"
2689 case "${enableval}" in
2690 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2691 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2692 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2693 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2694 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2695 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2696 { (exit 1); exit 1; }; }; sim_float="";;
2697 esac
2698 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
2699 echo "Setting float flags = $sim_float" 6>&1
2700 fi
2701 else
2702
2703 case "${target}" in
2704 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2705 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2706 *) sim_float=""
2707 esac
2708
2709 fi;
2710
2711 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2712 if test "${enable_sim_hardware+set}" = set; then
2713 enableval="$enable_sim_hardware"
2714 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2715 case "${enableval}" in
2716 yes) ;;
2717 no) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2718 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2719 { (exit 1); exit 1; }; }; hardware="";;
2720 ,*) hardware="${hardware}${enableval}";;
2721 *,) hardware="${enableval}${hardware}";;
2722 *) hardware="${enableval}"'';;
2723 esac
2724 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2725 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2726 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
2727 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2728 fi
2729 else
2730 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2731 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2732 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2733 if test x"$silent" != x"yes"; then
2734 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2735 fi
2736 fi;
2737
2738 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2739 if test "${enable_sim_hostbitsize+set}" = set; then
2740 enableval="$enable_sim_hostbitsize"
2741 case "${enableval}" in
2742 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2743 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
2744 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
2745 { (exit 1); exit 1; }; }; sim_hostbitsize="";;
2746 esac
2747 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
2748 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2749 fi
2750 else
2751 sim_hostbitsize=""
2752 fi;
2753
2754
2755 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2756 if test "${enable_sim_hostendian+set}" = set; then
2757 enableval="$enable_sim_hostendian"
2758 case "${enableval}" in
2759 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
2760 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2761 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2762 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2763 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2764 { (exit 1); exit 1; }; }; sim_hostendian="";;
2765 esac
2766 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
2767 echo "Setting hostendian flags = $sim_hostendian" 6>&1
2768 fi
2769 else
2770
2771 if test "x$cross_compiling" = "xno"; then
2772 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2773 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2774 if test "${ac_cv_c_bigendian+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 # See if sys/param.h defines the BYTE_ORDER macro.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2784 #include <sys/types.h>
2785 #include <sys/param.h>
2786
2787 int
2788 main ()
2789 {
2790 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2791 bogus endian macros
2792 #endif
2793
2794 ;
2795 return 0;
2796 }
2797 _ACEOF
2798 rm -f conftest.$ac_objext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800 (eval $ac_compile) 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag"
2808 || test ! -s conftest.err'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; } &&
2814 { ac_try='test -s conftest.$ac_objext'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 # It does; now see whether it defined to BIG_ENDIAN or not.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2827 #include <sys/types.h>
2828 #include <sys/param.h>
2829
2830 int
2831 main ()
2832 {
2833 #if BYTE_ORDER != BIG_ENDIAN
2834 not big endian
2835 #endif
2836
2837 ;
2838 return 0;
2839 }
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_c_bigendian=yes
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 ac_cv_c_bigendian=no
2869 fi
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 else
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 # It does not; compile a test program.
2876 if test "$cross_compiling" = yes; then
2877 # try to guess the endianness by grepping values into an object file
2878 ac_cv_c_bigendian=unknown
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2886 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2887 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2888 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2889 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2890 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2891 int
2892 main ()
2893 {
2894 _ascii (); _ebcdic ();
2895 ;
2896 return 0;
2897 }
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>conftest.er1
2902 ac_status=$?
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -z "$ac_c_werror_flag"
2909 || test ! -s conftest.err'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 (eval $ac_try) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2922 ac_cv_c_bigendian=yes
2923 fi
2924 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2925 if test "$ac_cv_c_bigendian" = unknown; then
2926 ac_cv_c_bigendian=no
2927 else
2928 # finding both strings is unlikely to happen, but who knows?
2929 ac_cv_c_bigendian=unknown
2930 fi
2931 fi
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 fi
2937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2938 else
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 int
2946 main ()
2947 {
2948 /* Are we little or big endian? From Harbison&Steele. */
2949 union
2950 {
2951 long l;
2952 char c[sizeof (long)];
2953 } u;
2954 u.l = 1;
2955 exit (u.c[sizeof (long) - 1] == 1);
2956 }
2957 _ACEOF
2958 rm -f conftest$ac_exeext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2960 (eval $ac_link) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 (eval $ac_try) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_cv_c_bigendian=no
2970 else
2971 echo "$as_me: program exited with status $ac_status" >&5
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 ( exit $ac_status )
2976 ac_cv_c_bigendian=yes
2977 fi
2978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2979 fi
2980 fi
2981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 fi
2983 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2984 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2985 case $ac_cv_c_bigendian in
2986 yes)
2987
2988 cat >>confdefs.h <<\_ACEOF
2989 #define WORDS_BIGENDIAN 1
2990 _ACEOF
2991 ;;
2992 no)
2993 ;;
2994 *)
2995 { { echo "$as_me:$LINENO: error: unknown endianness
2996 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2997 echo "$as_me: error: unknown endianness
2998 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2999 { (exit 1); exit 1; }; } ;;
3000 esac
3001
3002 if test $ac_cv_c_bigendian = yes; then
3003 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3004 else
3005 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3006 fi
3007 else
3008 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3009 fi
3010 fi;
3011
3012 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3013 if test "${enable_sim_icache+set}" = set; then
3014 enableval="$enable_sim_icache"
3015 icache="-R"
3016 case "${enableval}" in
3017 yes) icache="1024"; sim_icache="-I $icache";;
3018 no) sim_icache="-R";;
3019 *) icache=1024
3020 sim_icache="-"
3021 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3022 case "$x" in
3023 define) sim_icache="${sim_icache}R";;
3024 semantic) sim_icache="${sim_icache}C";;
3025 insn) sim_icache="${sim_icache}S";;
3026 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3027 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3028 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3029 { (exit 1); exit 1; }; }; sim_icache="";;
3030 esac
3031 done
3032 sim_icache="${sim_icache}I $icache";;
3033 esac
3034 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3035 echo "Setting instruction cache size to $icache ($sim_icache)"
3036 fi
3037 else
3038 sim_icache="-CSRI 1024"
3039 if test x"$silent" != x"yes"; then
3040 echo "Setting instruction cache size to 1024 ($sim_icache)"
3041 fi
3042 fi;
3043
3044 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3045 if test "${enable_sim_inline+set}" = set; then
3046 enableval="$enable_sim_inline"
3047 sim_inline=""
3048 case "$enableval" in
3049 no) sim_inline="-DDEFAULT_INLINE=0";;
3050 0) sim_inline="-DDEFAULT_INLINE=0";;
3051 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
3052 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3053 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3054 new_flag=""
3055 case "$x" in
3056 *_INLINE=*) new_flag="-D$x";;
3057 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3058 *_INLINE) new_flag="-D$x=ALL_INLINE";;
3059 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
3060 esac
3061 if test x"$sim_inline" = x""; then
3062 sim_inline="$new_flag"
3063 else
3064 sim_inline="$sim_inline $new_flag"
3065 fi
3066 done;;
3067 esac
3068 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3069 echo "Setting inline flags = $sim_inline" 6>&1
3070 fi
3071 else
3072 if test x"$GCC" != ""; then
3073 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3074 if test x"$silent" != x"yes"; then
3075 echo "Setting inline flags = $sim_inline" 6>&1
3076 fi
3077 else
3078 sim_inline=""
3079 fi
3080 fi;
3081
3082 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3083 if test "${enable_sim_jump+set}" = set; then
3084 enableval="$enable_sim_jump"
3085 case "${enableval}" in
3086 yes) sim_jump="-J";;
3087 no) sim_jump="";;
3088 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3089 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3090 { (exit 1); exit 1; }; }; sim_jump="";;
3091 esac
3092 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3093 echo "Setting jump flag = $sim_jump" 6>&1
3094 fi
3095 else
3096 sim_jump=""
3097 if test x"$silent" != x"yes"; then
3098 echo "Setting jump flag = $sim_jump" 6>&1
3099 fi
3100 fi;
3101
3102 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3103 if test "${enable_sim_line_nr+set}" = set; then
3104 enableval="$enable_sim_line_nr"
3105 case "${enableval}" in
3106 yes) sim_line_nr="";;
3107 no) sim_line_nr="-L";;
3108 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3109 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3110 { (exit 1); exit 1; }; }; sim_line_nr="";;
3111 esac
3112 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3113 echo "Setting warning flags = $sim_line_nr" 6>&1
3114 fi
3115 else
3116 sim_line_nr=""
3117 fi;
3118
3119 # Check whether --enable-sim-model or --disable-sim-model was given.
3120 if test "${enable_sim_model+set}" = set; then
3121 enableval="$enable_sim_model"
3122 case "${enableval}" in
3123 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3124 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3125 { (exit 1); exit 1; }; };;
3126 *) sim_model="-DWITH_MODEL=${enableval}";;
3127 esac
3128 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3129 echo "Setting model flags = $sim_model" 6>&1
3130 fi
3131 else
3132 sim_model=""
3133 fi;
3134
3135 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3136 if test "${enable_sim_model_issue+set}" = set; then
3137 enableval="$enable_sim_model_issue"
3138 case "${enableval}" in
3139 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3140 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3141 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3142 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3143 { (exit 1); exit 1; }; }; sim_model_issue="";;
3144 esac
3145 if test x"$silent" != x"yes"; then
3146 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3147 fi
3148 else
3149 sim_model_issue=""
3150 fi;
3151
3152 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3153 if test "${enable_sim_monitor+set}" = set; then
3154 enableval="$enable_sim_monitor"
3155 case "${enableval}" in
3156 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3157 no) sim_monitor="-DWITH_MON=0";;
3158 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3159 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3160 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3161 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3162 { (exit 1); exit 1; }; }; sim_env="";;
3163 esac
3164 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3165 echo "Setting monitor flags = $sim_monitor" 6>&1
3166 fi
3167 else
3168 sim_monitor=""
3169 fi;
3170
3171 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3172 if test "${enable_sim_opcode+set}" = set; then
3173 enableval="$enable_sim_opcode"
3174 case "${enableval}" in
3175 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3176 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3177 { (exit 1); exit 1; }; };;
3178 *) if test -f "${srcdir}/${enableval}"; then
3179 sim_opcode="${enableval}"
3180 elif test -f "${srcdir}/dc-${enableval}"; then
3181 sim_opcode="dc-${enableval}"
3182 else
3183 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3184 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3185 { (exit 1); exit 1; }; };
3186 sim_opcode="dc-complex"
3187 fi;;
3188 esac
3189 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3190 echo "Setting opcode flags = $sim_opcode" 6>&1
3191 fi
3192 else
3193 sim_opcode="dc-complex"
3194 if test x"$silent" != x"yes"; then
3195 echo "Setting opcode flags = $sim_opcode"
3196 fi
3197 fi;
3198
3199 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3200 if test "${enable_sim_packages+set}" = set; then
3201 enableval="$enable_sim_packages"
3202 packages=disklabel
3203 case "${enableval}" in
3204 yes) ;;
3205 no) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3206 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3207 { (exit 1); exit 1; }; }; packages="";;
3208 ,*) packages="${packages}${enableval}";;
3209 *,) packages="${enableval}${packages}";;
3210 *) packages="${enableval}"'';;
3211 esac
3212 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3213 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3214 if test x"$silent" != x"yes" && test x"$packages" != x""; then
3215 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3216 fi
3217 else
3218 packages=disklabel
3219 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3220 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3221 if test x"$silent" != x"yes"; then
3222 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3223 fi
3224 fi;
3225
3226 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3227 if test "${enable_sim_regparm+set}" = set; then
3228 enableval="$enable_sim_regparm"
3229 case "${enableval}" in
3230 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
3231 no) sim_regparm="" ;;
3232 yes) sim_regparm="-DWITH_REGPARM=3";;
3233 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3234 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3235 { (exit 1); exit 1; }; }; sim_regparm="";;
3236 esac
3237 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
3238 echo "Setting regparm flags = $sim_regparm" 6>&1
3239 fi
3240 else
3241 sim_regparm=""
3242 fi;
3243
3244 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3245 if test "${enable_sim_reserved_bits+set}" = set; then
3246 enableval="$enable_sim_reserved_bits"
3247 case "${enableval}" in
3248 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
3249 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
3250 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3251 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3252 { (exit 1); exit 1; }; }; sim_reserved="";;
3253 esac
3254 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3255 echo "Setting reserved flags = $sim_reserved" 6>&1
3256 fi
3257 else
3258 sim_reserved=""
3259 fi;
3260
3261 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3262 if test "${enable_sim_smp+set}" = set; then
3263 enableval="$enable_sim_smp"
3264 case "${enableval}" in
3265 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3266 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3267 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3268 esac
3269 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3270 echo "Setting smp flags = $sim_smp" 6>&1
3271 fi
3272 else
3273 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3274 if test x"$silent" != x"yes"; then
3275 echo "Setting smp flags = $sim_smp" 6>&1
3276 fi
3277 fi;
3278
3279 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3280 if test "${enable_sim_stdcall+set}" = set; then
3281 enableval="$enable_sim_stdcall"
3282 case "${enableval}" in
3283 no) sim_stdcall="" ;;
3284 std*) sim_stdcall="-DWITH_STDCALL=1";;
3285 yes) sim_stdcall="-DWITH_STDCALL=1";;
3286 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3287 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3288 { (exit 1); exit 1; }; }; sim_stdcall="";;
3289 esac
3290 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
3291 echo "Setting function call flags = $sim_stdcall" 6>&1
3292 fi
3293 else
3294 sim_stdcall=""
3295 fi;
3296
3297 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3298 if test "${enable_sim_stdio+set}" = set; then
3299 enableval="$enable_sim_stdio"
3300 case "${enableval}" in
3301 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3302 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3303 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3304 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3305 { (exit 1); exit 1; }; }; sim_stdio="";;
3306 esac
3307 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3308 echo "Setting stdio flags = $sim_stdio" 6>&1
3309 fi
3310 else
3311 sim_stdio=""
3312 fi;
3313
3314 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3315 if test "${enable_sim_switch+set}" = set; then
3316 enableval="$enable_sim_switch"
3317 case "${enableval}" in
3318 yes) sim_switch="-s";;
3319 no) sim_switch="";;
3320 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3321 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3322 { (exit 1); exit 1; }; }; sim_switch="";;
3323 esac
3324 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3325 echo "Setting switch flags = $sim_switch" 6>&1
3326 fi
3327 else
3328 sim_switch="";
3329 if test x"$silent" != x"yes"; then
3330 echo "Setting switch flags = $sim_switch" 6>&1
3331 fi
3332 fi;
3333
3334 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3335 if test "${enable_sim_timebase+set}" = set; then
3336 enableval="$enable_sim_timebase"
3337 case "${enableval}" in
3338 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3339 no) sim_timebase="-DWITH_TIME_BASE=0";;
3340 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3341 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3342 { (exit 1); exit 1; }; }; sim_timebase="";;
3343 esac
3344 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3345 echo "Setting timebase flags = $sim_timebase" 6>&1
3346 fi
3347 else
3348 sim_timebase=""
3349 fi;
3350
3351 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3352 if test "${enable_sim_trace+set}" = set; then
3353 enableval="$enable_sim_trace"
3354 case "${enableval}" in
3355 yes) sim_trace="-DWITH_TRACE=1";;
3356 no) sim_trace="-DWITH_TRACE=0";;
3357 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3358 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3359 { (exit 1); exit 1; }; }; sim_trace="";;
3360 esac
3361 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3362 echo "Setting trace flags = $sim_trace" 6>&1
3363 fi
3364 else
3365 sim_trace=""
3366 fi;
3367
3368 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3369 if test "${enable_sim_warnings+set}" = set; then
3370 enableval="$enable_sim_warnings"
3371 case "${enableval}" in
3372 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3373 no) sim_warnings="-w";;
3374 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3375 esac
3376 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3377 echo "Setting warning flags = $sim_warnings" 6>&1
3378 fi
3379 else
3380 sim_warnings=""
3381 fi;
3382
3383 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3384 if test "${enable_sim_xor_endian+set}" = set; then
3385 enableval="$enable_sim_xor_endian"
3386 case "${enableval}" in
3387 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3388 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3389 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3390 esac
3391 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3392 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3393 fi
3394 else
3395 sim_xor_endian=""
3396 fi;
3397
3398 # Make sure we can run config.sub.
3399 $ac_config_sub sun4 >/dev/null 2>&1 ||
3400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3402 { (exit 1); exit 1; }; }
3403
3404 echo "$as_me:$LINENO: checking build system type" >&5
3405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3406 if test "${ac_cv_build+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 ac_cv_build_alias=$build_alias
3410 test -z "$ac_cv_build_alias" &&
3411 ac_cv_build_alias=`$ac_config_guess`
3412 test -z "$ac_cv_build_alias" &&
3413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3415 { (exit 1); exit 1; }; }
3416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3419 { (exit 1); exit 1; }; }
3420
3421 fi
3422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3423 echo "${ECHO_T}$ac_cv_build" >&6
3424 build=$ac_cv_build
3425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3428
3429
3430 echo "$as_me:$LINENO: checking host system type" >&5
3431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3432 if test "${ac_cv_host+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 ac_cv_host_alias=$host_alias
3436 test -z "$ac_cv_host_alias" &&
3437 ac_cv_host_alias=$ac_cv_build_alias
3438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3441 { (exit 1); exit 1; }; }
3442
3443 fi
3444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3445 echo "${ECHO_T}$ac_cv_host" >&6
3446 host=$ac_cv_host
3447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3450
3451
3452 echo "$as_me:$LINENO: checking target system type" >&5
3453 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3454 if test "${ac_cv_target+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 ac_cv_target_alias=$target_alias
3458 test "x$ac_cv_target_alias" = "x" &&
3459 ac_cv_target_alias=$ac_cv_host_alias
3460 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3462 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3463 { (exit 1); exit 1; }; }
3464
3465 fi
3466 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3467 echo "${ECHO_T}$ac_cv_target" >&6
3468 target=$ac_cv_target
3469 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3470 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3471 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3472
3473
3474 # The aliases save the names the user supplied, while $host etc.
3475 # will get canonicalized.
3476 test -n "$target_alias" &&
3477 test "$program_prefix$program_suffix$program_transform_name" = \
3478 NONENONEs,x,x, &&
3479 program_prefix=${target_alias}-
3480 test "$program_prefix" != NONE &&
3481 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3482 # Use a double $ so make ignores it.
3483 test "$program_suffix" != NONE &&
3484 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3485 # Double any \ or $. echo might interpret backslashes.
3486 # By default was `s,x,x', remove it if useless.
3487 cat <<\_ACEOF >conftest.sed
3488 s/[\\$]/&&/g;s/;s,x,x,$//
3489 _ACEOF
3490 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3491 rm conftest.sed
3492
3493
3494 . ${srcdir}/../../bfd/configure.host
3495
3496 case ${host} in
3497 *mingw32*)
3498
3499 cat >>confdefs.h <<\_ACEOF
3500 #define USE_WIN32API 1
3501 _ACEOF
3502
3503 ;;
3504 esac
3505
3506 ac_config_headers="$ac_config_headers config.h:config.in"
3507
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3515 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3516 # On Suns, sometimes $CPP names a directory.
3517 if test -n "$CPP" && test -d "$CPP"; then
3518 CPP=
3519 fi
3520 if test -z "$CPP"; then
3521 if test "${ac_cv_prog_CPP+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 # Double quotes because CPP needs to be expanded
3525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3526 do
3527 ac_preproc_ok=false
3528 for ac_c_preproc_warn_flag in '' yes
3529 do
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h. */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #ifdef __STDC__
3543 # include <limits.h>
3544 #else
3545 # include <assert.h>
3546 #endif
3547 Syntax error
3548 _ACEOF
3549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 else
3561 ac_cpp_err=
3562 fi
3563 else
3564 ac_cpp_err=yes
3565 fi
3566 if test -z "$ac_cpp_err"; then
3567 :
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 # Broken: fails on valid input.
3573 continue
3574 fi
3575 rm -f conftest.err conftest.$ac_ext
3576
3577 # OK, works on sane cases. Now check whether non-existent headers
3578 # can be detected and how.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3586 _ACEOF
3587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null; then
3595 if test -s conftest.err; then
3596 ac_cpp_err=$ac_c_preproc_warn_flag
3597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3598 else
3599 ac_cpp_err=
3600 fi
3601 else
3602 ac_cpp_err=yes
3603 fi
3604 if test -z "$ac_cpp_err"; then
3605 # Broken: success on invalid input.
3606 continue
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 # Passes both tests.
3612 ac_preproc_ok=:
3613 break
3614 fi
3615 rm -f conftest.err conftest.$ac_ext
3616
3617 done
3618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619 rm -f conftest.err conftest.$ac_ext
3620 if $ac_preproc_ok; then
3621 break
3622 fi
3623
3624 done
3625 ac_cv_prog_CPP=$CPP
3626
3627 fi
3628 CPP=$ac_cv_prog_CPP
3629 else
3630 ac_cv_prog_CPP=$CPP
3631 fi
3632 echo "$as_me:$LINENO: result: $CPP" >&5
3633 echo "${ECHO_T}$CPP" >&6
3634 ac_preproc_ok=false
3635 for ac_c_preproc_warn_flag in '' yes
3636 do
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 #ifdef __STDC__
3650 # include <limits.h>
3651 #else
3652 # include <assert.h>
3653 #endif
3654 Syntax error
3655 _ACEOF
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_c_preproc_warn_flag
3666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3667 else
3668 ac_cpp_err=
3669 fi
3670 else
3671 ac_cpp_err=yes
3672 fi
3673 if test -z "$ac_cpp_err"; then
3674 :
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 # Broken: fails on valid input.
3680 continue
3681 fi
3682 rm -f conftest.err conftest.$ac_ext
3683
3684 # OK, works on sane cases. Now check whether non-existent headers
3685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h. */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3693 _ACEOF
3694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } >/dev/null; then
3702 if test -s conftest.err; then
3703 ac_cpp_err=$ac_c_preproc_warn_flag
3704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3705 else
3706 ac_cpp_err=
3707 fi
3708 else
3709 ac_cpp_err=yes
3710 fi
3711 if test -z "$ac_cpp_err"; then
3712 # Broken: success on invalid input.
3713 continue
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722 rm -f conftest.err conftest.$ac_ext
3723
3724 done
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then
3728 :
3729 else
3730 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3731 See \`config.log' for more details." >&5
3732 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&2;}
3734 { (exit 1); exit 1; }; }
3735 fi
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742
3743
3744 echo "$as_me:$LINENO: checking for egrep" >&5
3745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3746 if test "${ac_cv_prog_egrep+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3750 then ac_cv_prog_egrep='grep -E'
3751 else ac_cv_prog_egrep='egrep'
3752 fi
3753 fi
3754 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3755 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3756 EGREP=$ac_cv_prog_egrep
3757
3758
3759 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3760 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3761 if test "${ac_cv_header_stdc+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <stdlib.h>
3771 #include <stdarg.h>
3772 #include <string.h>
3773 #include <float.h>
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_cv_header_stdc=yes
3806 else
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 ac_cv_header_stdc=no
3811 fi
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813
3814 if test $ac_cv_header_stdc = yes; then
3815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 #include <string.h>
3823
3824 _ACEOF
3825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3826 $EGREP "memchr" >/dev/null 2>&1; then
3827 :
3828 else
3829 ac_cv_header_stdc=no
3830 fi
3831 rm -f conftest*
3832
3833 fi
3834
3835 if test $ac_cv_header_stdc = yes; then
3836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #include <stdlib.h>
3844
3845 _ACEOF
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "free" >/dev/null 2>&1; then
3848 :
3849 else
3850 ac_cv_header_stdc=no
3851 fi
3852 rm -f conftest*
3853
3854 fi
3855
3856 if test $ac_cv_header_stdc = yes; then
3857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3858 if test "$cross_compiling" = yes; then
3859 :
3860 else
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 #include <ctype.h>
3868 #if ((' ' & 0x0FF) == 0x020)
3869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3871 #else
3872 # define ISLOWER(c) \
3873 (('a' <= (c) && (c) <= 'i') \
3874 || ('j' <= (c) && (c) <= 'r') \
3875 || ('s' <= (c) && (c) <= 'z'))
3876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3877 #endif
3878
3879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3880 int
3881 main ()
3882 {
3883 int i;
3884 for (i = 0; i < 256; i++)
3885 if (XOR (islower (i), ISLOWER (i))
3886 || toupper (i) != TOUPPER (i))
3887 exit(2);
3888 exit (0);
3889 }
3890 _ACEOF
3891 rm -f conftest$ac_exeext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 :
3903 else
3904 echo "$as_me: program exited with status $ac_status" >&5
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 ( exit $ac_status )
3909 ac_cv_header_stdc=no
3910 fi
3911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3912 fi
3913 fi
3914 fi
3915 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3916 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3917 if test $ac_cv_header_stdc = yes; then
3918
3919 cat >>confdefs.h <<\_ACEOF
3920 #define STDC_HEADERS 1
3921 _ACEOF
3922
3923 fi
3924
3925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3936 inttypes.h stdint.h unistd.h
3937 do
3938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3939 echo "$as_me:$LINENO: checking for $ac_header" >&5
3940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3951
3952 #include <$ac_header>
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_c_werror_flag"
3964 || test ! -s conftest.err'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; } &&
3970 { ac_try='test -s conftest.$ac_objext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 eval "$as_ac_Header=yes"
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 eval "$as_ac_Header=no"
3982 fi
3983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984 fi
3985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988 cat >>confdefs.h <<_ACEOF
3989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990 _ACEOF
3991
3992 fi
3993
3994 done
3995
3996
3997
3998 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
3999 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4000 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4010 int
4011 main ()
4012 {
4013 static struct stat ac_aggr;
4014 if (ac_aggr.st_blksize)
4015 return 0;
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_member_struct_stat_st_blksize=yes
4043 else
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h. */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 $ac_includes_default
4054 int
4055 main ()
4056 {
4057 static struct stat ac_aggr;
4058 if (sizeof ac_aggr.st_blksize)
4059 return 0;
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_member_struct_stat_st_blksize=yes
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 ac_cv_member_struct_stat_st_blksize=no
4092 fi
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 fi
4097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4099 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4100
4101 cat >>confdefs.h <<_ACEOF
4102 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4103 _ACEOF
4104
4105
4106 cat >>confdefs.h <<\_ACEOF
4107 #define HAVE_ST_BLKSIZE 1
4108 _ACEOF
4109
4110 fi
4111
4112
4113 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4114 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4115 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 $ac_includes_default
4125 int
4126 main ()
4127 {
4128 static struct stat ac_aggr;
4129 if (ac_aggr.st_blocks)
4130 return 0;
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag"
4145 || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_member_struct_stat_st_blocks=yes
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4169 int
4170 main ()
4171 {
4172 static struct stat ac_aggr;
4173 if (sizeof ac_aggr.st_blocks)
4174 return 0;
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_member_struct_stat_st_blocks=yes
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 ac_cv_member_struct_stat_st_blocks=no
4207 fi
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 fi
4210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211 fi
4212 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4213 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4214 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4215
4216 cat >>confdefs.h <<_ACEOF
4217 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4218 _ACEOF
4219
4220
4221 cat >>confdefs.h <<\_ACEOF
4222 #define HAVE_ST_BLOCKS 1
4223 _ACEOF
4224
4225 else
4226 case $LIBOBJS in
4227 "fileblocks.$ac_objext" | \
4228 *" fileblocks.$ac_objext" | \
4229 "fileblocks.$ac_objext "* | \
4230 *" fileblocks.$ac_objext "* ) ;;
4231 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
4232 esac
4233
4234 fi
4235
4236
4237
4238 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4239 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4240 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 $ac_includes_default
4250 int
4251 main ()
4252 {
4253 static struct stat ac_aggr;
4254 if (ac_aggr.st_rdev)
4255 return 0;
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262 (eval $ac_compile) 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag"
4270 || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 ac_cv_member_struct_stat_st_rdev=yes
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4294 int
4295 main ()
4296 {
4297 static struct stat ac_aggr;
4298 if (sizeof ac_aggr.st_rdev)
4299 return 0;
4300 ;
4301 return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_cv_member_struct_stat_st_rdev=yes
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ac_cv_member_struct_stat_st_rdev=no
4332 fi
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 fi
4335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336 fi
4337 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4338 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4339 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4340
4341 cat >>confdefs.h <<_ACEOF
4342 #define HAVE_STRUCT_STAT_ST_RDEV 1
4343 _ACEOF
4344
4345
4346 cat >>confdefs.h <<\_ACEOF
4347 #define HAVE_ST_RDEV 1
4348 _ACEOF
4349
4350 fi
4351
4352
4353 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4354 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4355 if test "${ac_cv_struct_tm+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h. */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <sys/types.h>
4365 #include <time.h>
4366
4367 int
4368 main ()
4369 {
4370 struct tm *tp; tp->tm_sec;
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_struct_tm=time.h
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 ac_cv_struct_tm=sys/time.h
4403 fi
4404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 fi
4406 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4407 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4408 if test $ac_cv_struct_tm = sys/time.h; then
4409
4410 cat >>confdefs.h <<\_ACEOF
4411 #define TM_IN_SYS_TIME 1
4412 _ACEOF
4413
4414 fi
4415
4416 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4417 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4418 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 #include <$ac_cv_struct_tm>
4429
4430
4431 int
4432 main ()
4433 {
4434 static struct tm ac_aggr;
4435 if (ac_aggr.tm_zone)
4436 return 0;
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_cv_member_struct_tm_tm_zone=yes
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <sys/types.h>
4475 #include <$ac_cv_struct_tm>
4476
4477
4478 int
4479 main ()
4480 {
4481 static struct tm ac_aggr;
4482 if (sizeof ac_aggr.tm_zone)
4483 return 0;
4484 ;
4485 return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_cv_member_struct_tm_tm_zone=yes
4511 else
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 ac_cv_member_struct_tm_tm_zone=no
4516 fi
4517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4518 fi
4519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4520 fi
4521 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4522 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4523 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4524
4525 cat >>confdefs.h <<_ACEOF
4526 #define HAVE_STRUCT_TM_TM_ZONE 1
4527 _ACEOF
4528
4529
4530 fi
4531
4532 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4533
4534 cat >>confdefs.h <<\_ACEOF
4535 #define HAVE_TM_ZONE 1
4536 _ACEOF
4537
4538 else
4539 echo "$as_me:$LINENO: checking for tzname" >&5
4540 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4541 if test "${ac_cv_var_tzname+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <time.h>
4551 #ifndef tzname /* For SGI. */
4552 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4553 #endif
4554
4555 int
4556 main ()
4557 {
4558 atoi(*tzname);
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_var_tzname=yes
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 ac_cv_var_tzname=no
4591 fi
4592 rm -f conftest.err conftest.$ac_objext \
4593 conftest$ac_exeext conftest.$ac_ext
4594 fi
4595 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4596 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4597 if test $ac_cv_var_tzname = yes; then
4598
4599 cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_TZNAME 1
4601 _ACEOF
4602
4603 fi
4604 fi
4605
4606
4607 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4608 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4609 if test "${ac_cv_type_uid_t+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 #include <sys/types.h>
4619
4620 _ACEOF
4621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622 $EGREP "uid_t" >/dev/null 2>&1; then
4623 ac_cv_type_uid_t=yes
4624 else
4625 ac_cv_type_uid_t=no
4626 fi
4627 rm -f conftest*
4628
4629 fi
4630 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4631 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4632 if test $ac_cv_type_uid_t = no; then
4633
4634 cat >>confdefs.h <<\_ACEOF
4635 #define uid_t int
4636 _ACEOF
4637
4638
4639 cat >>confdefs.h <<\_ACEOF
4640 #define gid_t int
4641 _ACEOF
4642
4643 fi
4644
4645 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4646 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4647 if test "${ac_cv_type_getgroups+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 if test "$cross_compiling" = yes; then
4651 ac_cv_type_getgroups=cross
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 /* Thanks to Mike Rendell for this test. */
4660 #include <sys/types.h>
4661 #define NGID 256
4662 #undef MAX
4663 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4664
4665 int
4666 main ()
4667 {
4668 gid_t gidset[NGID];
4669 int i, n;
4670 union { gid_t gval; long lval; } val;
4671
4672 val.lval = -1;
4673 for (i = 0; i < NGID; i++)
4674 gidset[i] = val.gval;
4675 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4676 gidset);
4677 /* Exit non-zero if getgroups seems to require an array of ints. This
4678 happens when gid_t is short but getgroups modifies an array of ints. */
4679 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4680 }
4681 _ACEOF
4682 rm -f conftest$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_cv_type_getgroups=gid_t
4694 else
4695 echo "$as_me: program exited with status $ac_status" >&5
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ( exit $ac_status )
4700 ac_cv_type_getgroups=int
4701 fi
4702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4703 fi
4704 if test $ac_cv_type_getgroups = cross; then
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <unistd.h>
4712
4713 _ACEOF
4714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4716 ac_cv_type_getgroups=gid_t
4717 else
4718 ac_cv_type_getgroups=int
4719 fi
4720 rm -f conftest*
4721
4722 fi
4723 fi
4724 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4725 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4726
4727 cat >>confdefs.h <<_ACEOF
4728 #define GETGROUPS_T $ac_cv_type_getgroups
4729 _ACEOF
4730
4731
4732 echo "$as_me:$LINENO: checking for mode_t" >&5
4733 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4734 if test "${ac_cv_type_mode_t+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 $ac_includes_default
4744 int
4745 main ()
4746 {
4747 if ((mode_t *) 0)
4748 return 0;
4749 if (sizeof (mode_t))
4750 return 0;
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_cv_type_mode_t=yes
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 ac_cv_type_mode_t=no
4783 fi
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 fi
4786 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4787 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4788 if test $ac_cv_type_mode_t = yes; then
4789 :
4790 else
4791
4792 cat >>confdefs.h <<_ACEOF
4793 #define mode_t int
4794 _ACEOF
4795
4796 fi
4797
4798 echo "$as_me:$LINENO: checking for off_t" >&5
4799 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4800 if test "${ac_cv_type_off_t+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h. */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4810 int
4811 main ()
4812 {
4813 if ((off_t *) 0)
4814 return 0;
4815 if (sizeof (off_t))
4816 return 0;
4817 ;
4818 return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest.$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try='test -z "$ac_c_werror_flag"
4831 || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 ac_cv_type_off_t=yes
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 ac_cv_type_off_t=no
4849 fi
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4853 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4854 if test $ac_cv_type_off_t = yes; then
4855 :
4856 else
4857
4858 cat >>confdefs.h <<_ACEOF
4859 #define off_t long
4860 _ACEOF
4861
4862 fi
4863
4864 echo "$as_me:$LINENO: checking for pid_t" >&5
4865 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4866 if test "${ac_cv_type_pid_t+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h. */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 $ac_includes_default
4876 int
4877 main ()
4878 {
4879 if ((pid_t *) 0)
4880 return 0;
4881 if (sizeof (pid_t))
4882 return 0;
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889 (eval $ac_compile) 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest.$ac_objext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 ac_cv_type_pid_t=yes
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 ac_cv_type_pid_t=no
4915 fi
4916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917 fi
4918 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4919 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4920 if test $ac_cv_type_pid_t = yes; then
4921 :
4922 else
4923
4924 cat >>confdefs.h <<_ACEOF
4925 #define pid_t int
4926 _ACEOF
4927
4928 fi
4929
4930 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4931 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4932 if test "${ac_cv_type_signal+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #include <sys/types.h>
4942 #include <signal.h>
4943 #ifdef signal
4944 # undef signal
4945 #endif
4946 #ifdef __cplusplus
4947 extern "C" void (*signal (int, void (*)(int)))(int);
4948 #else
4949 void (*signal ()) ();
4950 #endif
4951
4952 int
4953 main ()
4954 {
4955 int i;
4956 ;
4957 return 0;
4958 }
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_type_signal=void
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ac_cv_type_signal=int
4988 fi
4989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990 fi
4991 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4992 echo "${ECHO_T}$ac_cv_type_signal" >&6
4993
4994 cat >>confdefs.h <<_ACEOF
4995 #define RETSIGTYPE $ac_cv_type_signal
4996 _ACEOF
4997
4998
4999 echo "$as_me:$LINENO: checking for size_t" >&5
5000 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5001 if test "${ac_cv_type_size_t+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5011 int
5012 main ()
5013 {
5014 if ((size_t *) 0)
5015 return 0;
5016 if (sizeof (size_t))
5017 return 0;
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_type_size_t=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_cv_type_size_t=no
5050 fi
5051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5054 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5055 if test $ac_cv_type_size_t = yes; then
5056 :
5057 else
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define size_t unsigned
5061 _ACEOF
5062
5063 fi
5064
5065 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5066 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5067 if test "${ac_cv_type_uid_t+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077
5078 _ACEOF
5079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080 $EGREP "uid_t" >/dev/null 2>&1; then
5081 ac_cv_type_uid_t=yes
5082 else
5083 ac_cv_type_uid_t=no
5084 fi
5085 rm -f conftest*
5086
5087 fi
5088 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5089 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5090 if test $ac_cv_type_uid_t = no; then
5091
5092 cat >>confdefs.h <<\_ACEOF
5093 #define uid_t int
5094 _ACEOF
5095
5096
5097 cat >>confdefs.h <<\_ACEOF
5098 #define gid_t int
5099 _ACEOF
5100
5101 fi
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
5155 do
5156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5157 echo "$as_me:$LINENO: checking for $ac_func" >&5
5158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5159 if eval "test \"\${$as_ac_var+set}\" = set"; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5170 #define $ac_func innocuous_$ac_func
5171
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char $ac_func (); below.
5174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5175 <limits.h> exists even on freestanding compilers. */
5176
5177 #ifdef __STDC__
5178 # include <limits.h>
5179 #else
5180 # include <assert.h>
5181 #endif
5182
5183 #undef $ac_func
5184
5185 /* Override any gcc2 internal prototype to avoid an error. */
5186 #ifdef __cplusplus
5187 extern "C"
5188 {
5189 #endif
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5192 char $ac_func ();
5193 /* The GNU C library defines this for functions which it implements
5194 to always fail with ENOSYS. Some functions are actually named
5195 something starting with __ and the normal name is an alias. */
5196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5197 choke me
5198 #else
5199 char (*f) () = $ac_func;
5200 #endif
5201 #ifdef __cplusplus
5202 }
5203 #endif
5204
5205 int
5206 main ()
5207 {
5208 return f != $ac_func;
5209 ;
5210 return 0;
5211 }
5212 _ACEOF
5213 rm -f conftest.$ac_objext conftest$ac_exeext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5215 (eval $ac_link) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -z "$ac_c_werror_flag"
5223 || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try='test -s conftest$ac_exeext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 eval "$as_ac_var=yes"
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 eval "$as_ac_var=no"
5241 fi
5242 rm -f conftest.err conftest.$ac_objext \
5243 conftest$ac_exeext conftest.$ac_ext
5244 fi
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5247 if test `eval echo '${'$as_ac_var'}'` = yes; then
5248 cat >>confdefs.h <<_ACEOF
5249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5250 _ACEOF
5251
5252 fi
5253 done
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274 for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
5275 do
5276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5278 echo "$as_me:$LINENO: checking for $ac_header" >&5
5279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 fi
5283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5285 else
5286 # Is the header compilable?
5287 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5289 cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h. */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 $ac_includes_default
5296 #include <$ac_header>
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_header_compiler=yes
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_header_compiler=no
5326 fi
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5329 echo "${ECHO_T}$ac_header_compiler" >&6
5330
5331 # Is the header present?
5332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <$ac_header>
5341 _ACEOF
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353 else
5354 ac_cpp_err=
5355 fi
5356 else
5357 ac_cpp_err=yes
5358 fi
5359 if test -z "$ac_cpp_err"; then
5360 ac_header_preproc=yes
5361 else
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_header_preproc=no
5366 fi
5367 rm -f conftest.err conftest.$ac_ext
5368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5369 echo "${ECHO_T}$ac_header_preproc" >&6
5370
5371 # So? What about this header?
5372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5373 yes:no: )
5374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5378 ac_header_preproc=yes
5379 ;;
5380 no:yes:* )
5381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5393 (
5394 cat <<\_ASBOX
5395 ## ------------------------------------------ ##
5396 ## Report this to the AC_PACKAGE_NAME lists. ##
5397 ## ------------------------------------------ ##
5398 _ASBOX
5399 ) |
5400 sed "s/^/$as_me: WARNING: /" >&2
5401 ;;
5402 esac
5403 echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 eval "$as_ac_Header=\$ac_header_preproc"
5409 fi
5410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5412
5413 fi
5414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5415 cat >>confdefs.h <<_ACEOF
5416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5417 _ACEOF
5418
5419 fi
5420
5421 done
5422
5423
5424
5425
5426
5427
5428 ac_header_dirent=no
5429 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5430 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5431 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5432 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <sys/types.h>
5443 #include <$ac_hdr>
5444
5445 int
5446 main ()
5447 {
5448 if ((DIR *) 0)
5449 return 0;
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_c_werror_flag"
5464 || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 eval "$as_ac_Header=yes"
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 eval "$as_ac_Header=no"
5482 fi
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5488 cat >>confdefs.h <<_ACEOF
5489 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5490 _ACEOF
5491
5492 ac_header_dirent=$ac_hdr; break
5493 fi
5494
5495 done
5496 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5497 if test $ac_header_dirent = dirent.h; then
5498 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5499 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5500 if test "${ac_cv_search_opendir+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 ac_func_search_save_LIBS=$LIBS
5504 ac_cv_search_opendir=no
5505 cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h. */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511
5512 /* Override any gcc2 internal prototype to avoid an error. */
5513 #ifdef __cplusplus
5514 extern "C"
5515 #endif
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5518 char opendir ();
5519 int
5520 main ()
5521 {
5522 opendir ();
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_search_opendir="none required"
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 fi
5555 rm -f conftest.err conftest.$ac_objext \
5556 conftest$ac_exeext conftest.$ac_ext
5557 if test "$ac_cv_search_opendir" = no; then
5558 for ac_lib in dir; do
5559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 #ifdef __cplusplus
5569 extern "C"
5570 #endif
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5573 char opendir ();
5574 int
5575 main ()
5576 {
5577 opendir ();
5578 ;
5579 return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try='test -s conftest$ac_exeext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_cv_search_opendir="-l$ac_lib"
5605 break
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 fi
5611 rm -f conftest.err conftest.$ac_objext \
5612 conftest$ac_exeext conftest.$ac_ext
5613 done
5614 fi
5615 LIBS=$ac_func_search_save_LIBS
5616 fi
5617 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5618 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5619 if test "$ac_cv_search_opendir" != no; then
5620 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5621
5622 fi
5623
5624 else
5625 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5626 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5627 if test "${ac_cv_search_opendir+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 ac_func_search_save_LIBS=$LIBS
5631 ac_cv_search_opendir=no
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638
5639 /* Override any gcc2 internal prototype to avoid an error. */
5640 #ifdef __cplusplus
5641 extern "C"
5642 #endif
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5645 char opendir ();
5646 int
5647 main ()
5648 {
5649 opendir ();
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_search_opendir="none required"
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 fi
5682 rm -f conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684 if test "$ac_cv_search_opendir" = no; then
5685 for ac_lib in x; do
5686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693
5694 /* Override any gcc2 internal prototype to avoid an error. */
5695 #ifdef __cplusplus
5696 extern "C"
5697 #endif
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700 char opendir ();
5701 int
5702 main ()
5703 {
5704 opendir ();
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest$ac_exeext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 ac_cv_search_opendir="-l$ac_lib"
5732 break
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 fi
5738 rm -f conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 done
5741 fi
5742 LIBS=$ac_func_search_save_LIBS
5743 fi
5744 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5745 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5746 if test "$ac_cv_search_opendir" != no; then
5747 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5748
5749 fi
5750
5751 fi
5752
5753
5754 sim_termio=""
5755 echo "$as_me:$LINENO: checking for struct termios" >&5
5756 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5757 if test "${ac_cv_termios_struct+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5767 #include <sys/termios.h>
5768 int
5769 main ()
5770 {
5771 static struct termios x;
5772 x.c_iflag = 0;
5773 x.c_oflag = 0;
5774 x.c_cflag = 0;
5775 x.c_lflag = 0;
5776 x.c_cc[NCCS] = 0;
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_termios_struct=yes
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 ac_cv_termios_struct=no
5809 fi
5810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 fi
5812
5813 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5814 echo "${ECHO_T}$ac_cv_termios_struct" >&6
5815 if test $ac_cv_termios_struct = yes; then
5816 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5817 fi
5818
5819 if test "$ac_cv_termios_struct" = "yes"; then
5820 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5821 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
5822 if test "${ac_cv_termios_cline+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #include <sys/types.h>
5832 #include <sys/termios.h>
5833 int
5834 main ()
5835 {
5836 static struct termios x; x.c_line = 0;
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_termios_cline=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 ac_cv_termios_cline=no
5869 fi
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5871 fi
5872
5873
5874 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5875 echo "${ECHO_T}$ac_cv_termios_cline" >&6
5876 if test $ac_cv_termios_cline = yes; then
5877 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5878 fi
5879 else
5880 ac_cv_termios_cline=no
5881 fi
5882
5883 if test "$ac_cv_termios_struct" != "yes"; then
5884 echo "$as_me:$LINENO: checking for struct termio" >&5
5885 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
5886 if test "${ac_cv_termio_struct+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <sys/termio.h>
5897 int
5898 main ()
5899 {
5900 static struct termio x;
5901 x.c_iflag = 0;
5902 x.c_oflag = 0;
5903 x.c_cflag = 0;
5904 x.c_lflag = 0;
5905 x.c_cc[NCC] = 0;
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_termio_struct=yes
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_termio_struct=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941
5942 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
5943 echo "${ECHO_T}$ac_cv_termio_struct" >&6
5944 if test $ac_cv_termio_struct = yes; then
5945 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5946 fi
5947 else
5948 ac_cv_termio_struct=no
5949 fi
5950
5951 if test "$ac_cv_termio_struct" = "yes"; then
5952 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
5953 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
5954 if test "${ac_cv_termio_cline+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 #include <sys/termio.h>
5965 int
5966 main ()
5967 {
5968 static struct termio x; x.c_line = 0;
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_termio_cline=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 ac_cv_termio_cline=no
6001 fi
6002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003 fi
6004
6005
6006 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6007 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6008 if test $ac_cv_termio_cline = yes; then
6009 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6010 fi
6011 else
6012 ac_cv_termio_cline=no
6013 fi
6014
6015 echo "$as_me:$LINENO: checking for struct statfs" >&5
6016 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6017 if test "${ac_cv_struct_statfs+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <sys/types.h>
6027 #ifdef HAVE_SYS_PARAM_H
6028 #include <sys/param.h>
6029 #endif
6030 #ifdef HAVE_SYS_MOUNT_H
6031 #include <sys/mount.h>
6032 #endif
6033 #ifdef HAVE_SYS_VFS_H
6034 #include <sys/vfs.h>
6035 #endif
6036 #ifdef HAVE_SYS_STATFS_H
6037 #include <sys/statfs.h>
6038 #endif
6039 int
6040 main ()
6041 {
6042 static struct statfs s;
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_c_werror_flag"
6057 || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_struct_statfs=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 ac_cv_struct_statfs=no
6075 fi
6076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078
6079 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6080 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6081 if test $ac_cv_struct_statfs = yes; then
6082
6083 cat >>confdefs.h <<\_ACEOF
6084 #define HAVE_STRUCT_STATFS 1
6085 _ACEOF
6086
6087 fi
6088
6089 echo "$as_me:$LINENO: checking for long long" >&5
6090 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6091 if test "${ac_cv_type_long_long+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6101 int
6102 main ()
6103 {
6104 if ((long long *) 0)
6105 return 0;
6106 if (sizeof (long long))
6107 return 0;
6108 ;
6109 return 0;
6110 }
6111 _ACEOF
6112 rm -f conftest.$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_type_long_long=yes
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 ac_cv_type_long_long=no
6140 fi
6141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6142 fi
6143 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6144 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6145 if test $ac_cv_type_long_long = yes; then
6146
6147 cat >>confdefs.h <<_ACEOF
6148 #define HAVE_LONG_LONG 1
6149 _ACEOF
6150
6151
6152 fi
6153
6154
6155 sim_devzero=""
6156 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6157 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6158 if test "${ac_cv_devzero+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 if test "$cross_compiling" = yes; then
6162 ac_cv_devzero=no
6163 else
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <fcntl.h>
6171 main () {
6172 char buf[2048];
6173 int i;
6174 int fd = open ("/dev/zero", O_RDONLY);
6175 if (fd < 0)
6176 return 1;
6177 for (i = 0; i < sizeof (buf); i++)
6178 buf[i] = 1;
6179 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6180 return 1;
6181 for (i = 0; i < sizeof (buf); i++)
6182 if (buf[i])
6183 return 1;
6184 return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_devzero=yes
6199 else
6200 echo "$as_me: program exited with status $ac_status" >&5
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ( exit $ac_status )
6205 ac_cv_devzero=no
6206 fi
6207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6208 fi
6209 fi
6210
6211 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6212 echo "${ECHO_T}$ac_cv_devzero" >&6
6213 if test $ac_cv_devzero = yes; then
6214 sim_devzero="-DHAVE_DEVZERO"
6215 else
6216 sim_devzero=""
6217 fi
6218
6219 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6220 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6221 if test -f "${srcdir}/../common/callback.c"; then
6222 echo "$as_me:$LINENO: result: yes" >&5
6223 echo "${ECHO_T}yes" >&6
6224 sim_callback="callback.o targ-map.o"
6225 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6
6229 sim_callback=""
6230 sim_targ_vals=""
6231 fi
6232
6233 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6234 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6235 if test -f "${srcdir}/../common/sim-fpu.c"; then
6236 echo "$as_me:$LINENO: result: yes" >&5
6237 echo "${ECHO_T}yes" >&6
6238 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6239 sim_fpu="sim-fpu.o"
6240 else
6241 echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6
6243 sim_fpu_cflags=
6244 sim_fpu=
6245 fi
6246
6247
6248
6249
6250
6251
6252
6253 AR=${AR-ar}
6254
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6258 echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6260 if test "${ac_cv_prog_RANLIB+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 if test -n "$RANLIB"; then
6264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279
6280 fi
6281 fi
6282 RANLIB=$ac_cv_prog_RANLIB
6283 if test -n "$RANLIB"; then
6284 echo "$as_me:$LINENO: result: $RANLIB" >&5
6285 echo "${ECHO_T}$RANLIB" >&6
6286 else
6287 echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6
6289 fi
6290
6291 fi
6292 if test -z "$ac_cv_prog_RANLIB"; then
6293 ac_ct_RANLIB=$RANLIB
6294 # Extract the first word of "ranlib", so it can be a program name with args.
6295 set dummy ranlib; ac_word=$2
6296 echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 if test -n "$ac_ct_RANLIB"; then
6302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_ac_ct_RANLIB="ranlib"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317
6318 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6319 fi
6320 fi
6321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6322 if test -n "$ac_ct_RANLIB"; then
6323 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6324 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6325 else
6326 echo "$as_me:$LINENO: result: no" >&5
6327 echo "${ECHO_T}no" >&6
6328 fi
6329
6330 RANLIB=$ac_ct_RANLIB
6331 else
6332 RANLIB="$ac_cv_prog_RANLIB"
6333 fi
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 ac_config_files="$ac_config_files Makefile"
6381 ac_config_commands="$ac_config_commands default"
6382 cat >confcache <<\_ACEOF
6383 # This file is a shell script that caches the results of configure
6384 # tests run on this system so they can be shared between configure
6385 # scripts and configure runs, see configure's option --config-cache.
6386 # It is not useful on other systems. If it contains results you don't
6387 # want to keep, you may remove or edit it.
6388 #
6389 # config.status only pays attention to the cache file if you give it
6390 # the --recheck option to rerun configure.
6391 #
6392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6394 # following values.
6395
6396 _ACEOF
6397
6398 # The following way of writing the cache mishandles newlines in values,
6399 # but we know of no workaround that is simple, portable, and efficient.
6400 # So, don't put newlines in cache variables' values.
6401 # Ultrix sh set writes to stderr and can't be redirected directly,
6402 # and sets the high bit in the cache file unless we assign to the vars.
6403 {
6404 (set) 2>&1 |
6405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6406 *ac_space=\ *)
6407 # `set' does not quote correctly, so add quotes (double-quote
6408 # substitution turns \\\\ into \\, and sed turns \\ into \).
6409 sed -n \
6410 "s/'/'\\\\''/g;
6411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6412 ;;
6413 *)
6414 # `set' quotes correctly as required by POSIX, so do not add quotes.
6415 sed -n \
6416 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6417 ;;
6418 esac;
6419 } |
6420 sed '
6421 t clear
6422 : clear
6423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6424 t end
6425 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6426 : end' >>confcache
6427 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6428 if test -w $cache_file; then
6429 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6430 cat confcache >$cache_file
6431 else
6432 echo "not updating unwritable cache $cache_file"
6433 fi
6434 fi
6435 rm -f confcache
6436
6437 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6438 # Let make expand exec_prefix.
6439 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6440
6441 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6442 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6443 # trailing colons and then remove the whole line if VPATH becomes empty
6444 # (actually we leave an empty line to preserve line numbers).
6445 if test "x$srcdir" = x.; then
6446 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6447 s/:*\$(srcdir):*/:/;
6448 s/:*\${srcdir}:*/:/;
6449 s/:*@srcdir@:*/:/;
6450 s/^\([^=]*=[ ]*\):*/\1/;
6451 s/:*$//;
6452 s/^[^=]*=[ ]*$//;
6453 }'
6454 fi
6455
6456 DEFS=-DHAVE_CONFIG_H
6457
6458 ac_libobjs=
6459 ac_ltlibobjs=
6460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6461 # 1. Remove the extension, and $U if already installed.
6462 ac_i=`echo "$ac_i" |
6463 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6464 # 2. Add them.
6465 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6466 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6467 done
6468 LIBOBJS=$ac_libobjs
6469
6470 LTLIBOBJS=$ac_ltlibobjs
6471
6472
6473
6474 : ${CONFIG_STATUS=./config.status}
6475 ac_clean_files_save=$ac_clean_files
6476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6477 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6478 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6479 cat >$CONFIG_STATUS <<_ACEOF
6480 #! $SHELL
6481 # Generated by $as_me.
6482 # Run this file to recreate the current configuration.
6483 # Compiler output produced by configure, useful for debugging
6484 # configure, is in config.log if it exists.
6485
6486 debug=false
6487 ac_cs_recheck=false
6488 ac_cs_silent=false
6489 SHELL=\${CONFIG_SHELL-$SHELL}
6490 _ACEOF
6491
6492 cat >>$CONFIG_STATUS <<\_ACEOF
6493 ## --------------------- ##
6494 ## M4sh Initialization. ##
6495 ## --------------------- ##
6496
6497 # Be Bourne compatible
6498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6499 emulate sh
6500 NULLCMD=:
6501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6502 # is contrary to our usage. Disable this feature.
6503 alias -g '${1+"$@"}'='"$@"'
6504 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6505 set -o posix
6506 fi
6507 DUALCASE=1; export DUALCASE # for MKS sh
6508
6509 # Support unset when possible.
6510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6511 as_unset=unset
6512 else
6513 as_unset=false
6514 fi
6515
6516
6517 # Work around bugs in pre-3.0 UWIN ksh.
6518 $as_unset ENV MAIL MAILPATH
6519 PS1='$ '
6520 PS2='> '
6521 PS4='+ '
6522
6523 # NLS nuisances.
6524 for as_var in \
6525 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6526 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6527 LC_TELEPHONE LC_TIME
6528 do
6529 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6530 eval $as_var=C; export $as_var
6531 else
6532 $as_unset $as_var
6533 fi
6534 done
6535
6536 # Required to use basename.
6537 if expr a : '\(a\)' >/dev/null 2>&1; then
6538 as_expr=expr
6539 else
6540 as_expr=false
6541 fi
6542
6543 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6544 as_basename=basename
6545 else
6546 as_basename=false
6547 fi
6548
6549
6550 # Name of the executable.
6551 as_me=`$as_basename "$0" ||
6552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6553 X"$0" : 'X\(//\)$' \| \
6554 X"$0" : 'X\(/\)$' \| \
6555 . : '\(.\)' 2>/dev/null ||
6556 echo X/"$0" |
6557 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6558 /^X\/\(\/\/\)$/{ s//\1/; q; }
6559 /^X\/\(\/\).*/{ s//\1/; q; }
6560 s/.*/./; q'`
6561
6562
6563 # PATH needs CR, and LINENO needs CR and PATH.
6564 # Avoid depending upon Character Ranges.
6565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6568 as_cr_digits='0123456789'
6569 as_cr_alnum=$as_cr_Letters$as_cr_digits
6570
6571 # The user is always right.
6572 if test "${PATH_SEPARATOR+set}" != set; then
6573 echo "#! /bin/sh" >conf$$.sh
6574 echo "exit 0" >>conf$$.sh
6575 chmod +x conf$$.sh
6576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6577 PATH_SEPARATOR=';'
6578 else
6579 PATH_SEPARATOR=:
6580 fi
6581 rm -f conf$$.sh
6582 fi
6583
6584
6585 as_lineno_1=$LINENO
6586 as_lineno_2=$LINENO
6587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6588 test "x$as_lineno_1" != "x$as_lineno_2" &&
6589 test "x$as_lineno_3" = "x$as_lineno_2" || {
6590 # Find who we are. Look in the path if we contain no path at all
6591 # relative or not.
6592 case $0 in
6593 *[\\/]* ) as_myself=$0 ;;
6594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6600 done
6601
6602 ;;
6603 esac
6604 # We did not find ourselves, most probably we were run as `sh COMMAND'
6605 # in which case we are not to be found in the path.
6606 if test "x$as_myself" = x; then
6607 as_myself=$0
6608 fi
6609 if test ! -f "$as_myself"; then
6610 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6611 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6612 { (exit 1); exit 1; }; }
6613 fi
6614 case $CONFIG_SHELL in
6615 '')
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6618 do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for as_base in sh bash ksh sh5; do
6622 case $as_dir in
6623 /*)
6624 if ("$as_dir/$as_base" -c '
6625 as_lineno_1=$LINENO
6626 as_lineno_2=$LINENO
6627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6628 test "x$as_lineno_1" != "x$as_lineno_2" &&
6629 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6630 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6631 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6632 CONFIG_SHELL=$as_dir/$as_base
6633 export CONFIG_SHELL
6634 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6635 fi;;
6636 esac
6637 done
6638 done
6639 ;;
6640 esac
6641
6642 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6643 # uniformly replaced by the line number. The first 'sed' inserts a
6644 # line-number line before each line; the second 'sed' does the real
6645 # work. The second script uses 'N' to pair each line-number line
6646 # with the numbered line, and appends trailing '-' during
6647 # substitution so that $LINENO is not a special case at line end.
6648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6649 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6650 sed '=' <$as_myself |
6651 sed '
6652 N
6653 s,$,-,
6654 : loop
6655 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6656 t loop
6657 s,-$,,
6658 s,^['$as_cr_digits']*\n,,
6659 ' >$as_me.lineno &&
6660 chmod +x $as_me.lineno ||
6661 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6662 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6663 { (exit 1); exit 1; }; }
6664
6665 # Don't try to exec as it changes $[0], causing all sort of problems
6666 # (the dirname of $[0] is not the place where we might find the
6667 # original and so on. Autoconf is especially sensible to this).
6668 . ./$as_me.lineno
6669 # Exit status is that of the last command.
6670 exit
6671 }
6672
6673
6674 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6675 *c*,-n*) ECHO_N= ECHO_C='
6676 ' ECHO_T=' ' ;;
6677 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6678 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6679 esac
6680
6681 if expr a : '\(a\)' >/dev/null 2>&1; then
6682 as_expr=expr
6683 else
6684 as_expr=false
6685 fi
6686
6687 rm -f conf$$ conf$$.exe conf$$.file
6688 echo >conf$$.file
6689 if ln -s conf$$.file conf$$ 2>/dev/null; then
6690 # We could just check for DJGPP; but this test a) works b) is more generic
6691 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6692 if test -f conf$$.exe; then
6693 # Don't use ln at all; we don't have any links
6694 as_ln_s='cp -p'
6695 else
6696 as_ln_s='ln -s'
6697 fi
6698 elif ln conf$$.file conf$$ 2>/dev/null; then
6699 as_ln_s=ln
6700 else
6701 as_ln_s='cp -p'
6702 fi
6703 rm -f conf$$ conf$$.exe conf$$.file
6704
6705 if mkdir -p . 2>/dev/null; then
6706 as_mkdir_p=:
6707 else
6708 test -d ./-p && rmdir ./-p
6709 as_mkdir_p=false
6710 fi
6711
6712 as_executable_p="test -f"
6713
6714 # Sed expression to map a string onto a valid CPP name.
6715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6716
6717 # Sed expression to map a string onto a valid variable name.
6718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6719
6720
6721 # IFS
6722 # We need space, tab and new line, in precisely that order.
6723 as_nl='
6724 '
6725 IFS=" $as_nl"
6726
6727 # CDPATH.
6728 $as_unset CDPATH
6729
6730 exec 6>&1
6731
6732 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6733 # report actual input values of CONFIG_FILES etc. instead of their
6734 # values after options handling. Logging --version etc. is OK.
6735 exec 5>>config.log
6736 {
6737 echo
6738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6739 ## Running $as_me. ##
6740 _ASBOX
6741 } >&5
6742 cat >&5 <<_CSEOF
6743
6744 This file was extended by $as_me, which was
6745 generated by GNU Autoconf 2.59. Invocation command line was
6746
6747 CONFIG_FILES = $CONFIG_FILES
6748 CONFIG_HEADERS = $CONFIG_HEADERS
6749 CONFIG_LINKS = $CONFIG_LINKS
6750 CONFIG_COMMANDS = $CONFIG_COMMANDS
6751 $ $0 $@
6752
6753 _CSEOF
6754 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6755 echo >&5
6756 _ACEOF
6757
6758 # Files that config.status was made for.
6759 if test -n "$ac_config_files"; then
6760 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6761 fi
6762
6763 if test -n "$ac_config_headers"; then
6764 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6765 fi
6766
6767 if test -n "$ac_config_links"; then
6768 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6769 fi
6770
6771 if test -n "$ac_config_commands"; then
6772 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6773 fi
6774
6775 cat >>$CONFIG_STATUS <<\_ACEOF
6776
6777 ac_cs_usage="\
6778 \`$as_me' instantiates files from templates according to the
6779 current configuration.
6780
6781 Usage: $0 [OPTIONS] [FILE]...
6782
6783 -h, --help print this help, then exit
6784 -V, --version print version number, then exit
6785 -q, --quiet do not print progress messages
6786 -d, --debug don't remove temporary files
6787 --recheck update $as_me by reconfiguring in the same conditions
6788 --file=FILE[:TEMPLATE]
6789 instantiate the configuration file FILE
6790 --header=FILE[:TEMPLATE]
6791 instantiate the configuration header FILE
6792
6793 Configuration files:
6794 $config_files
6795
6796 Configuration headers:
6797 $config_headers
6798
6799 Configuration commands:
6800 $config_commands
6801
6802 Report bugs to <bug-autoconf@gnu.org>."
6803 _ACEOF
6804
6805 cat >>$CONFIG_STATUS <<_ACEOF
6806 ac_cs_version="\\
6807 config.status
6808 configured by $0, generated by GNU Autoconf 2.59,
6809 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6810
6811 Copyright (C) 2003 Free Software Foundation, Inc.
6812 This config.status script is free software; the Free Software Foundation
6813 gives unlimited permission to copy, distribute and modify it."
6814 srcdir=$srcdir
6815 INSTALL="$INSTALL"
6816 _ACEOF
6817
6818 cat >>$CONFIG_STATUS <<\_ACEOF
6819 # If no file are specified by the user, then we need to provide default
6820 # value. By we need to know if files were specified by the user.
6821 ac_need_defaults=:
6822 while test $# != 0
6823 do
6824 case $1 in
6825 --*=*)
6826 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6827 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6828 ac_shift=:
6829 ;;
6830 -*)
6831 ac_option=$1
6832 ac_optarg=$2
6833 ac_shift=shift
6834 ;;
6835 *) # This is not an option, so the user has probably given explicit
6836 # arguments.
6837 ac_option=$1
6838 ac_need_defaults=false;;
6839 esac
6840
6841 case $ac_option in
6842 # Handling of the options.
6843 _ACEOF
6844 cat >>$CONFIG_STATUS <<\_ACEOF
6845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6846 ac_cs_recheck=: ;;
6847 --version | --vers* | -V )
6848 echo "$ac_cs_version"; exit 0 ;;
6849 --he | --h)
6850 # Conflict between --help and --header
6851 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6852 Try \`$0 --help' for more information." >&5
6853 echo "$as_me: error: ambiguous option: $1
6854 Try \`$0 --help' for more information." >&2;}
6855 { (exit 1); exit 1; }; };;
6856 --help | --hel | -h )
6857 echo "$ac_cs_usage"; exit 0 ;;
6858 --debug | --d* | -d )
6859 debug=: ;;
6860 --file | --fil | --fi | --f )
6861 $ac_shift
6862 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6863 ac_need_defaults=false;;
6864 --header | --heade | --head | --hea )
6865 $ac_shift
6866 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6867 ac_need_defaults=false;;
6868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6870 ac_cs_silent=: ;;
6871
6872 # This is an error.
6873 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6874 Try \`$0 --help' for more information." >&5
6875 echo "$as_me: error: unrecognized option: $1
6876 Try \`$0 --help' for more information." >&2;}
6877 { (exit 1); exit 1; }; } ;;
6878
6879 *) ac_config_targets="$ac_config_targets $1" ;;
6880
6881 esac
6882 shift
6883 done
6884
6885 ac_configure_extra_args=
6886
6887 if $ac_cs_silent; then
6888 exec 6>/dev/null
6889 ac_configure_extra_args="$ac_configure_extra_args --silent"
6890 fi
6891
6892 _ACEOF
6893 cat >>$CONFIG_STATUS <<_ACEOF
6894 if \$ac_cs_recheck; then
6895 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6896 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6897 fi
6898
6899 _ACEOF
6900
6901
6902
6903
6904
6905 cat >>$CONFIG_STATUS <<\_ACEOF
6906 for ac_config_target in $ac_config_targets
6907 do
6908 case "$ac_config_target" in
6909 # Handling of arguments.
6910 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6911 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6912 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6913 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6915 { (exit 1); exit 1; }; };;
6916 esac
6917 done
6918
6919 # If the user did not use the arguments to specify the items to instantiate,
6920 # then the envvar interface is used. Set only those that are not.
6921 # We use the long form for the default assignment because of an extremely
6922 # bizarre bug on SunOS 4.1.3.
6923 if $ac_need_defaults; then
6924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6926 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6927 fi
6928
6929 # Have a temporary directory for convenience. Make it in the build tree
6930 # simply because there is no reason to put it here, and in addition,
6931 # creating and moving files from /tmp can sometimes cause problems.
6932 # Create a temporary directory, and hook for its removal unless debugging.
6933 $debug ||
6934 {
6935 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6936 trap '{ (exit 1); exit 1; }' 1 2 13 15
6937 }
6938
6939 # Create a (secure) tmp directory for tmp files.
6940
6941 {
6942 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6943 test -n "$tmp" && test -d "$tmp"
6944 } ||
6945 {
6946 tmp=./confstat$$-$RANDOM
6947 (umask 077 && mkdir $tmp)
6948 } ||
6949 {
6950 echo "$me: cannot create a temporary directory in ." >&2
6951 { (exit 1); exit 1; }
6952 }
6953
6954 _ACEOF
6955
6956 cat >>$CONFIG_STATUS <<_ACEOF
6957
6958 #
6959 # CONFIG_FILES section.
6960 #
6961
6962 # No need to generate the scripts if there are no CONFIG_FILES.
6963 # This happens for instance when ./config.status config.h
6964 if test -n "\$CONFIG_FILES"; then
6965 # Protect against being on the right side of a sed subst in config.status.
6966 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6967 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6968 s,@sim_environment@,$sim_environment,;t t
6969 s,@sim_alignment@,$sim_alignment,;t t
6970 s,@sim_assert@,$sim_assert,;t t
6971 s,@sim_bitsize@,$sim_bitsize,;t t
6972 s,@sim_endian@,$sim_endian,;t t
6973 s,@sim_hostendian@,$sim_hostendian,;t t
6974 s,@sim_float@,$sim_float,;t t
6975 s,@sim_scache@,$sim_scache,;t t
6976 s,@sim_default_model@,$sim_default_model,;t t
6977 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6978 s,@sim_hw_objs@,$sim_hw_objs,;t t
6979 s,@sim_hw@,$sim_hw,;t t
6980 s,@sim_inline@,$sim_inline,;t t
6981 s,@sim_packages@,$sim_packages,;t t
6982 s,@sim_regparm@,$sim_regparm,;t t
6983 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6984 s,@sim_smp@,$sim_smp,;t t
6985 s,@sim_stdcall@,$sim_stdcall,;t t
6986 s,@sim_xor_endian@,$sim_xor_endian,;t t
6987 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6988 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6989 s,@SHELL@,$SHELL,;t t
6990 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6991 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6992 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6993 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6994 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6995 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6996 s,@exec_prefix@,$exec_prefix,;t t
6997 s,@prefix@,$prefix,;t t
6998 s,@program_transform_name@,$program_transform_name,;t t
6999 s,@bindir@,$bindir,;t t
7000 s,@sbindir@,$sbindir,;t t
7001 s,@libexecdir@,$libexecdir,;t t
7002 s,@datadir@,$datadir,;t t
7003 s,@sysconfdir@,$sysconfdir,;t t
7004 s,@sharedstatedir@,$sharedstatedir,;t t
7005 s,@localstatedir@,$localstatedir,;t t
7006 s,@libdir@,$libdir,;t t
7007 s,@includedir@,$includedir,;t t
7008 s,@oldincludedir@,$oldincludedir,;t t
7009 s,@infodir@,$infodir,;t t
7010 s,@mandir@,$mandir,;t t
7011 s,@build_alias@,$build_alias,;t t
7012 s,@host_alias@,$host_alias,;t t
7013 s,@target_alias@,$target_alias,;t t
7014 s,@DEFS@,$DEFS,;t t
7015 s,@ECHO_C@,$ECHO_C,;t t
7016 s,@ECHO_N@,$ECHO_N,;t t
7017 s,@ECHO_T@,$ECHO_T,;t t
7018 s,@LIBS@,$LIBS,;t t
7019 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7020 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7021 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7022 s,@CC@,$CC,;t t
7023 s,@CFLAGS@,$CFLAGS,;t t
7024 s,@LDFLAGS@,$LDFLAGS,;t t
7025 s,@CPPFLAGS@,$CPPFLAGS,;t t
7026 s,@ac_ct_CC@,$ac_ct_CC,;t t
7027 s,@EXEEXT@,$EXEEXT,;t t
7028 s,@OBJEXT@,$OBJEXT,;t t
7029 s,@USE_NLS@,$USE_NLS,;t t
7030 s,@LIBINTL@,$LIBINTL,;t t
7031 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7032 s,@INCINTL@,$INCINTL,;t t
7033 s,@XGETTEXT@,$XGETTEXT,;t t
7034 s,@GMSGFMT@,$GMSGFMT,;t t
7035 s,@POSUB@,$POSUB,;t t
7036 s,@CATALOGS@,$CATALOGS,;t t
7037 s,@DATADIRNAME@,$DATADIRNAME,;t t
7038 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7039 s,@GENCAT@,$GENCAT,;t t
7040 s,@CATOBJEXT@,$CATOBJEXT,;t t
7041 s,@build@,$build,;t t
7042 s,@build_cpu@,$build_cpu,;t t
7043 s,@build_vendor@,$build_vendor,;t t
7044 s,@build_os@,$build_os,;t t
7045 s,@host@,$host,;t t
7046 s,@host_cpu@,$host_cpu,;t t
7047 s,@host_vendor@,$host_vendor,;t t
7048 s,@host_os@,$host_os,;t t
7049 s,@target@,$target,;t t
7050 s,@target_cpu@,$target_cpu,;t t
7051 s,@target_vendor@,$target_vendor,;t t
7052 s,@target_os@,$target_os,;t t
7053 s,@CPP@,$CPP,;t t
7054 s,@EGREP@,$EGREP,;t t
7055 s,@LIBOBJS@,$LIBOBJS,;t t
7056 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7057 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7058 s,@HDEFINES@,$HDEFINES,;t t
7059 s,@AR@,$AR,;t t
7060 s,@RANLIB@,$RANLIB,;t t
7061 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7062 s,@sim_cflags@,$sim_cflags,;t t
7063 s,@sim_warnings@,$sim_warnings,;t t
7064 s,@sim_line_nr@,$sim_line_nr,;t t
7065 s,@sim_config@,$sim_config,;t t
7066 s,@sim_opcode@,$sim_opcode,;t t
7067 s,@sim_switch@,$sim_switch,;t t
7068 s,@sim_dup@,$sim_dup,;t t
7069 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7070 s,@sim_jump@,$sim_jump,;t t
7071 s,@sim_filter@,$sim_filter,;t t
7072 s,@sim_icache@,$sim_icache,;t t
7073 s,@sim_hw_src@,$sim_hw_src,;t t
7074 s,@sim_hw_obj@,$sim_hw_obj,;t t
7075 s,@sim_pk_src@,$sim_pk_src,;t t
7076 s,@sim_pk_obj@,$sim_pk_obj,;t t
7077 s,@sim_bswap@,$sim_bswap,;t t
7078 s,@sim_igen_smp@,$sim_igen_smp,;t t
7079 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7080 s,@sim_env@,$sim_env,;t t
7081 s,@sim_timebase@,$sim_timebase,;t t
7082 s,@sim_trace@,$sim_trace,;t t
7083 s,@sim_reserved@,$sim_reserved,;t t
7084 s,@sim_monitor@,$sim_monitor,;t t
7085 s,@sim_model@,$sim_model,;t t
7086 s,@sim_model_issue@,$sim_model_issue,;t t
7087 s,@sim_stdio@,$sim_stdio,;t t
7088 s,@sim_termio@,$sim_termio,;t t
7089 s,@sim_devzero@,$sim_devzero,;t t
7090 s,@sim_callback@,$sim_callback,;t t
7091 s,@sim_targ_vals@,$sim_targ_vals,;t t
7092 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7093 s,@sim_fpu@,$sim_fpu,;t t
7094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7095 CEOF
7096
7097 _ACEOF
7098
7099 cat >>$CONFIG_STATUS <<\_ACEOF
7100 # Split the substitutions into bite-sized pieces for seds with
7101 # small command number limits, like on Digital OSF/1 and HP-UX.
7102 ac_max_sed_lines=48
7103 ac_sed_frag=1 # Number of current file.
7104 ac_beg=1 # First line for current file.
7105 ac_end=$ac_max_sed_lines # Line after last line for current file.
7106 ac_more_lines=:
7107 ac_sed_cmds=
7108 while $ac_more_lines; do
7109 if test $ac_beg -gt 1; then
7110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7111 else
7112 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7113 fi
7114 if test ! -s $tmp/subs.frag; then
7115 ac_more_lines=false
7116 else
7117 # The purpose of the label and of the branching condition is to
7118 # speed up the sed processing (if there are no `@' at all, there
7119 # is no need to browse any of the substitutions).
7120 # These are the two extra sed commands mentioned above.
7121 (echo ':t
7122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7123 if test -z "$ac_sed_cmds"; then
7124 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7125 else
7126 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7127 fi
7128 ac_sed_frag=`expr $ac_sed_frag + 1`
7129 ac_beg=$ac_end
7130 ac_end=`expr $ac_end + $ac_max_sed_lines`
7131 fi
7132 done
7133 if test -z "$ac_sed_cmds"; then
7134 ac_sed_cmds=cat
7135 fi
7136 fi # test -n "$CONFIG_FILES"
7137
7138 _ACEOF
7139 cat >>$CONFIG_STATUS <<\_ACEOF
7140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7142 case $ac_file in
7143 - | *:- | *:-:* ) # input from stdin
7144 cat >$tmp/stdin
7145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7149 * ) ac_file_in=$ac_file.in ;;
7150 esac
7151
7152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7153 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7155 X"$ac_file" : 'X\(//\)[^/]' \| \
7156 X"$ac_file" : 'X\(//\)$' \| \
7157 X"$ac_file" : 'X\(/\)' \| \
7158 . : '\(.\)' 2>/dev/null ||
7159 echo X"$ac_file" |
7160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7162 /^X\(\/\/\)$/{ s//\1/; q; }
7163 /^X\(\/\).*/{ s//\1/; q; }
7164 s/.*/./; q'`
7165 { if $as_mkdir_p; then
7166 mkdir -p "$ac_dir"
7167 else
7168 as_dir="$ac_dir"
7169 as_dirs=
7170 while test ! -d "$as_dir"; do
7171 as_dirs="$as_dir $as_dirs"
7172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7174 X"$as_dir" : 'X\(//\)[^/]' \| \
7175 X"$as_dir" : 'X\(//\)$' \| \
7176 X"$as_dir" : 'X\(/\)' \| \
7177 . : '\(.\)' 2>/dev/null ||
7178 echo X"$as_dir" |
7179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7181 /^X\(\/\/\)$/{ s//\1/; q; }
7182 /^X\(\/\).*/{ s//\1/; q; }
7183 s/.*/./; q'`
7184 done
7185 test ! -n "$as_dirs" || mkdir $as_dirs
7186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7188 { (exit 1); exit 1; }; }; }
7189
7190 ac_builddir=.
7191
7192 if test "$ac_dir" != .; then
7193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7194 # A "../" for each directory in $ac_dir_suffix.
7195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7196 else
7197 ac_dir_suffix= ac_top_builddir=
7198 fi
7199
7200 case $srcdir in
7201 .) # No --srcdir option. We are building in place.
7202 ac_srcdir=.
7203 if test -z "$ac_top_builddir"; then
7204 ac_top_srcdir=.
7205 else
7206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7207 fi ;;
7208 [\\/]* | ?:[\\/]* ) # Absolute path.
7209 ac_srcdir=$srcdir$ac_dir_suffix;
7210 ac_top_srcdir=$srcdir ;;
7211 *) # Relative path.
7212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7214 esac
7215
7216 # Do not use `cd foo && pwd` to compute absolute paths, because
7217 # the directories may not exist.
7218 case `pwd` in
7219 .) ac_abs_builddir="$ac_dir";;
7220 *)
7221 case "$ac_dir" in
7222 .) ac_abs_builddir=`pwd`;;
7223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7224 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7225 esac;;
7226 esac
7227 case $ac_abs_builddir in
7228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7229 *)
7230 case ${ac_top_builddir}. in
7231 .) ac_abs_top_builddir=$ac_abs_builddir;;
7232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7234 esac;;
7235 esac
7236 case $ac_abs_builddir in
7237 .) ac_abs_srcdir=$ac_srcdir;;
7238 *)
7239 case $ac_srcdir in
7240 .) ac_abs_srcdir=$ac_abs_builddir;;
7241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7243 esac;;
7244 esac
7245 case $ac_abs_builddir in
7246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7247 *)
7248 case $ac_top_srcdir in
7249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7252 esac;;
7253 esac
7254
7255
7256 case $INSTALL in
7257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7258 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7259 esac
7260
7261 if test x"$ac_file" != x-; then
7262 { echo "$as_me:$LINENO: creating $ac_file" >&5
7263 echo "$as_me: creating $ac_file" >&6;}
7264 rm -f "$ac_file"
7265 fi
7266 # Let's still pretend it is `configure' which instantiates (i.e., don't
7267 # use $as_me), people would be surprised to read:
7268 # /* config.h. Generated by config.status. */
7269 if test x"$ac_file" = x-; then
7270 configure_input=
7271 else
7272 configure_input="$ac_file. "
7273 fi
7274 configure_input=$configure_input"Generated from `echo $ac_file_in |
7275 sed 's,.*/,,'` by configure."
7276
7277 # First look for the input files in the build tree, otherwise in the
7278 # src tree.
7279 ac_file_inputs=`IFS=:
7280 for f in $ac_file_in; do
7281 case $f in
7282 -) echo $tmp/stdin ;;
7283 [\\/$]*)
7284 # Absolute (can't be DOS-style, as IFS=:)
7285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7286 echo "$as_me: error: cannot find input file: $f" >&2;}
7287 { (exit 1); exit 1; }; }
7288 echo "$f";;
7289 *) # Relative
7290 if test -f "$f"; then
7291 # Build tree
7292 echo "$f"
7293 elif test -f "$srcdir/$f"; then
7294 # Source tree
7295 echo "$srcdir/$f"
7296 else
7297 # /dev/null tree
7298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7299 echo "$as_me: error: cannot find input file: $f" >&2;}
7300 { (exit 1); exit 1; }; }
7301 fi;;
7302 esac
7303 done` || { (exit 1); exit 1; }
7304 _ACEOF
7305 cat >>$CONFIG_STATUS <<_ACEOF
7306 sed "$ac_vpsub
7307 $extrasub
7308 _ACEOF
7309 cat >>$CONFIG_STATUS <<\_ACEOF
7310 :t
7311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7312 s,@configure_input@,$configure_input,;t t
7313 s,@srcdir@,$ac_srcdir,;t t
7314 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7315 s,@top_srcdir@,$ac_top_srcdir,;t t
7316 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7317 s,@builddir@,$ac_builddir,;t t
7318 s,@abs_builddir@,$ac_abs_builddir,;t t
7319 s,@top_builddir@,$ac_top_builddir,;t t
7320 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7321 s,@INSTALL@,$ac_INSTALL,;t t
7322 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7323 rm -f $tmp/stdin
7324 if test x"$ac_file" != x-; then
7325 mv $tmp/out $ac_file
7326 else
7327 cat $tmp/out
7328 rm -f $tmp/out
7329 fi
7330
7331 done
7332 _ACEOF
7333 cat >>$CONFIG_STATUS <<\_ACEOF
7334
7335 #
7336 # CONFIG_HEADER section.
7337 #
7338
7339 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7340 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7341 #
7342 # ac_d sets the value in "#define NAME VALUE" lines.
7343 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7344 ac_dB='[ ].*$,\1#\2'
7345 ac_dC=' '
7346 ac_dD=',;t'
7347 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7348 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7349 ac_uB='$,\1#\2define\3'
7350 ac_uC=' '
7351 ac_uD=',;t'
7352
7353 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7355 case $ac_file in
7356 - | *:- | *:-:* ) # input from stdin
7357 cat >$tmp/stdin
7358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7362 * ) ac_file_in=$ac_file.in ;;
7363 esac
7364
7365 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7366 echo "$as_me: creating $ac_file" >&6;}
7367
7368 # First look for the input files in the build tree, otherwise in the
7369 # src tree.
7370 ac_file_inputs=`IFS=:
7371 for f in $ac_file_in; do
7372 case $f in
7373 -) echo $tmp/stdin ;;
7374 [\\/$]*)
7375 # Absolute (can't be DOS-style, as IFS=:)
7376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7377 echo "$as_me: error: cannot find input file: $f" >&2;}
7378 { (exit 1); exit 1; }; }
7379 # Do quote $f, to prevent DOS paths from being IFS'd.
7380 echo "$f";;
7381 *) # Relative
7382 if test -f "$f"; then
7383 # Build tree
7384 echo "$f"
7385 elif test -f "$srcdir/$f"; then
7386 # Source tree
7387 echo "$srcdir/$f"
7388 else
7389 # /dev/null tree
7390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7391 echo "$as_me: error: cannot find input file: $f" >&2;}
7392 { (exit 1); exit 1; }; }
7393 fi;;
7394 esac
7395 done` || { (exit 1); exit 1; }
7396 # Remove the trailing spaces.
7397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7398
7399 _ACEOF
7400
7401 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7402 # `conftest.undefs', that substitutes the proper values into
7403 # config.h.in to produce config.h. The first handles `#define'
7404 # templates, and the second `#undef' templates.
7405 # And first: Protect against being on the right side of a sed subst in
7406 # config.status. Protect against being in an unquoted here document
7407 # in config.status.
7408 rm -f conftest.defines conftest.undefs
7409 # Using a here document instead of a string reduces the quoting nightmare.
7410 # Putting comments in sed scripts is not portable.
7411 #
7412 # `end' is used to avoid that the second main sed command (meant for
7413 # 0-ary CPP macros) applies to n-ary macro definitions.
7414 # See the Autoconf documentation for `clear'.
7415 cat >confdef2sed.sed <<\_ACEOF
7416 s/[\\&,]/\\&/g
7417 s,[\\$`],\\&,g
7418 t clear
7419 : clear
7420 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7421 t end
7422 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7423 : end
7424 _ACEOF
7425 # If some macros were called several times there might be several times
7426 # the same #defines, which is useless. Nevertheless, we may not want to
7427 # sort them, since we want the *last* AC-DEFINE to be honored.
7428 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7429 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7430 rm -f confdef2sed.sed
7431
7432 # This sed command replaces #undef with comments. This is necessary, for
7433 # example, in the case of _POSIX_SOURCE, which is predefined and required
7434 # on some systems where configure will not decide to define it.
7435 cat >>conftest.undefs <<\_ACEOF
7436 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7437 _ACEOF
7438
7439 # Break up conftest.defines because some shells have a limit on the size
7440 # of here documents, and old seds have small limits too (100 cmds).
7441 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7442 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7443 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7444 echo ' :' >>$CONFIG_STATUS
7445 rm -f conftest.tail
7446 while grep . conftest.defines >/dev/null
7447 do
7448 # Write a limited-size here document to $tmp/defines.sed.
7449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7450 # Speed up: don't consider the non `#define' lines.
7451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7452 # Work around the forget-to-reset-the-flag bug.
7453 echo 't clr' >>$CONFIG_STATUS
7454 echo ': clr' >>$CONFIG_STATUS
7455 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7456 echo 'CEOF
7457 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7458 rm -f $tmp/in
7459 mv $tmp/out $tmp/in
7460 ' >>$CONFIG_STATUS
7461 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7462 rm -f conftest.defines
7463 mv conftest.tail conftest.defines
7464 done
7465 rm -f conftest.defines
7466 echo ' fi # grep' >>$CONFIG_STATUS
7467 echo >>$CONFIG_STATUS
7468
7469 # Break up conftest.undefs because some shells have a limit on the size
7470 # of here documents, and old seds have small limits too (100 cmds).
7471 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7472 rm -f conftest.tail
7473 while grep . conftest.undefs >/dev/null
7474 do
7475 # Write a limited-size here document to $tmp/undefs.sed.
7476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7477 # Speed up: don't consider the non `#undef'
7478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7479 # Work around the forget-to-reset-the-flag bug.
7480 echo 't clr' >>$CONFIG_STATUS
7481 echo ': clr' >>$CONFIG_STATUS
7482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7483 echo 'CEOF
7484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7485 rm -f $tmp/in
7486 mv $tmp/out $tmp/in
7487 ' >>$CONFIG_STATUS
7488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7489 rm -f conftest.undefs
7490 mv conftest.tail conftest.undefs
7491 done
7492 rm -f conftest.undefs
7493
7494 cat >>$CONFIG_STATUS <<\_ACEOF
7495 # Let's still pretend it is `configure' which instantiates (i.e., don't
7496 # use $as_me), people would be surprised to read:
7497 # /* config.h. Generated by config.status. */
7498 if test x"$ac_file" = x-; then
7499 echo "/* Generated by configure. */" >$tmp/config.h
7500 else
7501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7502 fi
7503 cat $tmp/in >>$tmp/config.h
7504 rm -f $tmp/in
7505 if test x"$ac_file" != x-; then
7506 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7508 echo "$as_me: $ac_file is unchanged" >&6;}
7509 else
7510 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7512 X"$ac_file" : 'X\(//\)[^/]' \| \
7513 X"$ac_file" : 'X\(//\)$' \| \
7514 X"$ac_file" : 'X\(/\)' \| \
7515 . : '\(.\)' 2>/dev/null ||
7516 echo X"$ac_file" |
7517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7519 /^X\(\/\/\)$/{ s//\1/; q; }
7520 /^X\(\/\).*/{ s//\1/; q; }
7521 s/.*/./; q'`
7522 { if $as_mkdir_p; then
7523 mkdir -p "$ac_dir"
7524 else
7525 as_dir="$ac_dir"
7526 as_dirs=
7527 while test ! -d "$as_dir"; do
7528 as_dirs="$as_dir $as_dirs"
7529 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7531 X"$as_dir" : 'X\(//\)[^/]' \| \
7532 X"$as_dir" : 'X\(//\)$' \| \
7533 X"$as_dir" : 'X\(/\)' \| \
7534 . : '\(.\)' 2>/dev/null ||
7535 echo X"$as_dir" |
7536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7538 /^X\(\/\/\)$/{ s//\1/; q; }
7539 /^X\(\/\).*/{ s//\1/; q; }
7540 s/.*/./; q'`
7541 done
7542 test ! -n "$as_dirs" || mkdir $as_dirs
7543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7544 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7545 { (exit 1); exit 1; }; }; }
7546
7547 rm -f $ac_file
7548 mv $tmp/config.h $ac_file
7549 fi
7550 else
7551 cat $tmp/config.h
7552 rm -f $tmp/config.h
7553 fi
7554 done
7555 _ACEOF
7556 cat >>$CONFIG_STATUS <<\_ACEOF
7557
7558 #
7559 # CONFIG_COMMANDS section.
7560 #
7561 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7562 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7563 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7564 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7565 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7566 X"$ac_dest" : 'X\(//\)[^/]' \| \
7567 X"$ac_dest" : 'X\(//\)$' \| \
7568 X"$ac_dest" : 'X\(/\)' \| \
7569 . : '\(.\)' 2>/dev/null ||
7570 echo X"$ac_dest" |
7571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7573 /^X\(\/\/\)$/{ s//\1/; q; }
7574 /^X\(\/\).*/{ s//\1/; q; }
7575 s/.*/./; q'`
7576 { if $as_mkdir_p; then
7577 mkdir -p "$ac_dir"
7578 else
7579 as_dir="$ac_dir"
7580 as_dirs=
7581 while test ! -d "$as_dir"; do
7582 as_dirs="$as_dir $as_dirs"
7583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7585 X"$as_dir" : 'X\(//\)[^/]' \| \
7586 X"$as_dir" : 'X\(//\)$' \| \
7587 X"$as_dir" : 'X\(/\)' \| \
7588 . : '\(.\)' 2>/dev/null ||
7589 echo X"$as_dir" |
7590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7592 /^X\(\/\/\)$/{ s//\1/; q; }
7593 /^X\(\/\).*/{ s//\1/; q; }
7594 s/.*/./; q'`
7595 done
7596 test ! -n "$as_dirs" || mkdir $as_dirs
7597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7599 { (exit 1); exit 1; }; }; }
7600
7601 ac_builddir=.
7602
7603 if test "$ac_dir" != .; then
7604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7605 # A "../" for each directory in $ac_dir_suffix.
7606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7607 else
7608 ac_dir_suffix= ac_top_builddir=
7609 fi
7610
7611 case $srcdir in
7612 .) # No --srcdir option. We are building in place.
7613 ac_srcdir=.
7614 if test -z "$ac_top_builddir"; then
7615 ac_top_srcdir=.
7616 else
7617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7618 fi ;;
7619 [\\/]* | ?:[\\/]* ) # Absolute path.
7620 ac_srcdir=$srcdir$ac_dir_suffix;
7621 ac_top_srcdir=$srcdir ;;
7622 *) # Relative path.
7623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7625 esac
7626
7627 # Do not use `cd foo && pwd` to compute absolute paths, because
7628 # the directories may not exist.
7629 case `pwd` in
7630 .) ac_abs_builddir="$ac_dir";;
7631 *)
7632 case "$ac_dir" in
7633 .) ac_abs_builddir=`pwd`;;
7634 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7635 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7636 esac;;
7637 esac
7638 case $ac_abs_builddir in
7639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7640 *)
7641 case ${ac_top_builddir}. in
7642 .) ac_abs_top_builddir=$ac_abs_builddir;;
7643 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7644 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7645 esac;;
7646 esac
7647 case $ac_abs_builddir in
7648 .) ac_abs_srcdir=$ac_srcdir;;
7649 *)
7650 case $ac_srcdir in
7651 .) ac_abs_srcdir=$ac_abs_builddir;;
7652 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7653 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7654 esac;;
7655 esac
7656 case $ac_abs_builddir in
7657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7658 *)
7659 case $ac_top_srcdir in
7660 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7661 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7662 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7663 esac;;
7664 esac
7665
7666
7667 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7668 echo "$as_me: executing $ac_dest commands" >&6;}
7669 case $ac_dest in
7670 default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7671 esac
7672 done
7673 _ACEOF
7674
7675 cat >>$CONFIG_STATUS <<\_ACEOF
7676
7677 { (exit 0); exit 0; }
7678 _ACEOF
7679 chmod +x $CONFIG_STATUS
7680 ac_clean_files=$ac_clean_files_save
7681
7682
7683 # configure is writing to config.log, and then calls config.status.
7684 # config.status does its own redirection, appending to config.log.
7685 # Unfortunately, on DOS this fails, as config.log is still kept open
7686 # by configure, so config.status won't be able to write to it; its
7687 # output is simply discarded. So we exec the FD to /dev/null,
7688 # effectively closing config.log, so it can be properly (re)opened and
7689 # appended to by config.status. When coming back to configure, we
7690 # need to make the FD available again.
7691 if test "$no_create" != yes; then
7692 ac_cs_success=:
7693 ac_config_status_args=
7694 test "$silent" = yes &&
7695 ac_config_status_args="$ac_config_status_args --quiet"
7696 exec 5>/dev/null
7697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7698 exec 5>>config.log
7699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7700 # would make configure fail if this is the last instruction.
7701 $ac_cs_success || { (exit 1); exit 1; }
7702 fi
7703