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