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