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