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