]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/configure
This commit was generated by cvs2svn to track changes on a CVS vendor
[thirdparty/binutils-gdb.git] / sim / mips / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_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 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-nls do not use Native Language Support
858 --enable-maintainer-mode Enable developer functionality.
859 --enable-sim-bswap Use Host specific BSWAP instruction.
860 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
861 --enable-sim-debug=opts Enable debugging flags
862 --enable-sim-stdio Specify whether to use stdio for console input/output.
863 --enable-sim-trace=opts Enable tracing flags
864 --enable-sim-profile=opts Enable profiling flags
865 --enable-sim-inline=inlines Specify which functions should be inlined.
866 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
867 --enable-sim-hostendian=end Specify host byte endian orientation.
868 --enable-build-warnings Enable build-time compiler warnings if gcc is used
869 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
870 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
871 --enable-sim-endian=endian Specify target byte endian orientation.
872 --enable-sim-bitsize=N Specify target bitsize (32 or 64).
873 --enable-sim-float Specify that the target processor has floating point hardware.
874 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp}).
875 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
876
877 Optional Packages:
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-included-gettext use the GNU gettext library included here
881 --with-x use the X Window System
882
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CPP C preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 _ACEOF
896 fi
897
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
904
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910 ac_dir_suffix= ac_top_builddir=
911 fi
912
913 case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
931 case `pwd` in
932 .) ac_abs_builddir="$ac_dir";;
933 *)
934 case "$ac_dir" in
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *)
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
951 *)
952 case $ac_srcdir in
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *)
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 esac;;
966 esac
967
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
980 else
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 fi
983 cd $ac_popdir
984 done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989 cat <<\_ACEOF
990
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995 exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1004
1005 $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065 for ac_arg
1066 do
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 2)
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1090 ;;
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1093 fi
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1097 ;;
1098 esac
1099 done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1111 {
1112 echo
1113
1114 cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1121 {
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 ;;
1129 *)
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ;;
1133 esac;
1134 }
1135 echo
1136
1137 cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163 fi
1164
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1174 fi
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1182 ' 0
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1234 . "$ac_site_file"
1235 fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1248 fi
1249 else
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1274 *)
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1296 fi
1297 done
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 ac_config_headers="$ac_config_headers config.h:config.in"
1331
1332
1333 # This file contains common code used by all simulators.
1334 #
1335 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1336 # directory. It is intended to be invoked before any target specific stuff.
1337 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1338 # It is intended to be invoked last.
1339 #
1340 # The simulator's configure.in should look like:
1341 #
1342 # dnl Process this file with autoconf to produce a configure script.
1343 # sinclude(../common/aclocal.m4)
1344 # AC_PREREQ(2.5)dnl
1345 # AC_INIT(Makefile.in)
1346 #
1347 # SIM_AC_COMMON
1348 #
1349 # ... target specific stuff ...
1350 #
1351 # SIM_AC_OUTPUT
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400 sim_inline="-DDEFAULT_INLINE=0"
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437 # This file is derived from `gettext.m4'. The difference is that the
1438 # included macros assume Cygnus-style source and build trees.
1439
1440 # Macro to add for using GNU gettext.
1441 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1442 #
1443 # This file file be copied and used freely without restrictions. It can
1444 # be used in projects which are not available under the GNU Public License
1445 # but which still want to provide support for the GNU gettext functionality.
1446 # Please note that the actual code is *not* freely available.
1447
1448 # serial 3
1449
1450
1451
1452
1453
1454 # Search path for a program which passes the given test.
1455 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1456 #
1457 # This file file be copied and used freely without restrictions. It can
1458 # be used in projects which are not available under the GNU Public License
1459 # but which still want to provide support for the GNU gettext functionality.
1460 # Please note that the actual code is *not* freely available.
1461
1462 # serial 1
1463
1464
1465
1466 # Check whether LC_MESSAGES is available in <locale.h>.
1467 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1468 #
1469 # This file file be copied and used freely without restrictions. It can
1470 # be used in projects which are not available under the GNU Public License
1471 # but which still want to provide support for the GNU gettext functionality.
1472 # Please note that the actual code is *not* freely available.
1473
1474 # serial 1
1475
1476
1477
1478
1479
1480
1481
1482 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1483 # it by inlining the macro's contents.
1484 # This file contains common code used by all simulators.
1485 #
1486 # common.m4 invokes AC macros used by all simulators and by the common
1487 # directory. It is intended to be included before any target specific
1488 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1489 # the Makefile. It is intended to be invoked last.
1490 #
1491 # The simulator's configure.in should look like:
1492 #
1493 # dnl Process this file with autoconf to produce a configure script.
1494 # AC_PREREQ(2.5)dnl
1495 # AC_INIT(Makefile.in)
1496 # AC_CONFIG_HEADER(config.h:config.in)
1497 #
1498 # sinclude(../common/aclocal.m4)
1499 # sinclude(../common/common.m4)
1500 #
1501 # ... target specific stuff ...
1502
1503 ac_aux_dir=
1504 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505 if test -f $ac_dir/install-sh; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 break
1509 elif test -f $ac_dir/install.sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 break
1513 elif test -f $ac_dir/shtool; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 break
1517 fi
1518 done
1519 if test -z "$ac_aux_dir"; then
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522 { (exit 1); exit 1; }; }
1523 fi
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527
1528 # Make sure we can run config.sub.
1529 $ac_config_sub sun4 >/dev/null 2>&1 ||
1530 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534 echo "$as_me:$LINENO: checking build system type" >&5
1535 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1536 if test "${ac_cv_build+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539 ac_cv_build_alias=$build_alias
1540 test -z "$ac_cv_build_alias" &&
1541 ac_cv_build_alias=`$ac_config_guess`
1542 test -z "$ac_cv_build_alias" &&
1543 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545 { (exit 1); exit 1; }; }
1546 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1547 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1549 { (exit 1); exit 1; }; }
1550
1551 fi
1552 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553 echo "${ECHO_T}$ac_cv_build" >&6
1554 build=$ac_cv_build
1555 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558
1559
1560 echo "$as_me:$LINENO: checking host system type" >&5
1561 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1562 if test "${ac_cv_host+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 ac_cv_host_alias=$host_alias
1566 test -z "$ac_cv_host_alias" &&
1567 ac_cv_host_alias=$ac_cv_build_alias
1568 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1569 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1570 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1571 { (exit 1); exit 1; }; }
1572
1573 fi
1574 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1575 echo "${ECHO_T}$ac_cv_host" >&6
1576 host=$ac_cv_host
1577 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580
1581
1582 echo "$as_me:$LINENO: checking target system type" >&5
1583 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1584 if test "${ac_cv_target+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 ac_cv_target_alias=$target_alias
1588 test "x$ac_cv_target_alias" = "x" &&
1589 ac_cv_target_alias=$ac_cv_host_alias
1590 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1594
1595 fi
1596 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1597 echo "${ECHO_T}$ac_cv_target" >&6
1598 target=$ac_cv_target
1599 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604 # The aliases save the names the user supplied, while $host etc.
1605 # will get canonicalized.
1606 test -n "$target_alias" &&
1607 test "$program_prefix$program_suffix$program_transform_name" = \
1608 NONENONEs,x,x, &&
1609 program_prefix=${target_alias}-
1610 test "$program_prefix" != NONE &&
1611 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1612 # Use a double $ so make ignores it.
1613 test "$program_suffix" != NONE &&
1614 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1615 # Double any \ or $. echo might interpret backslashes.
1616 # By default was `s,x,x', remove it if useless.
1617 cat <<\_ACEOF >conftest.sed
1618 s/[\\$]/&&/g;s/;s,x,x,$//
1619 _ACEOF
1620 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1621 rm conftest.sed
1622
1623 ac_ext=c
1624 ac_cpp='$CPP $CPPFLAGS'
1625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1628 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 if test -n "$CC"; then
1637 ac_cv_prog_CC="$CC" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650 done
1651 done
1652
1653 fi
1654 fi
1655 CC=$ac_cv_prog_CC
1656 if test -n "$CC"; then
1657 echo "$as_me:$LINENO: result: $CC" >&5
1658 echo "${ECHO_T}$CC" >&6
1659 else
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 fi
1663
1664 fi
1665 if test -z "$ac_cv_prog_CC"; then
1666 ac_ct_CC=$CC
1667 # Extract the first word of "gcc", so it can be a program name with args.
1668 set dummy gcc; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674 if test -n "$ac_ct_CC"; then
1675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1676 else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_CC="gcc"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 break 2
1687 fi
1688 done
1689 done
1690
1691 fi
1692 fi
1693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1694 if test -n "$ac_ct_CC"; then
1695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1696 echo "${ECHO_T}$ac_ct_CC" >&6
1697 else
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 fi
1701
1702 CC=$ac_ct_CC
1703 else
1704 CC="$ac_cv_prog_CC"
1705 fi
1706
1707 if test -z "$CC"; then
1708 if test -n "$ac_tool_prefix"; then
1709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1710 set dummy ${ac_tool_prefix}cc; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 if test -n "$CC"; then
1717 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_CC="${ac_tool_prefix}cc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1729 fi
1730 done
1731 done
1732
1733 fi
1734 fi
1735 CC=$ac_cv_prog_CC
1736 if test -n "$CC"; then
1737 echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6
1739 else
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744 fi
1745 if test -z "$ac_cv_prog_CC"; then
1746 ac_ct_CC=$CC
1747 # Extract the first word of "cc", so it can be a program name with args.
1748 set dummy cc; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC="cc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1767 fi
1768 done
1769 done
1770
1771 fi
1772 fi
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 fi
1781
1782 CC=$ac_ct_CC
1783 else
1784 CC="$ac_cv_prog_CC"
1785 fi
1786
1787 fi
1788 if test -z "$CC"; then
1789 # Extract the first word of "cc", so it can be a program name with args.
1790 set dummy cc; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 else
1799 ac_prog_rejected=no
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1808 ac_prog_rejected=yes
1809 continue
1810 fi
1811 ac_cv_prog_CC="cc"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1814 fi
1815 done
1816 done
1817
1818 if test $ac_prog_rejected = yes; then
1819 # We found a bogon in the path, so make sure we never use it.
1820 set dummy $ac_cv_prog_CC
1821 shift
1822 if test $# != 0; then
1823 # We chose a different compiler from the bogus one.
1824 # However, it has the same basename, so the bogon will be chosen
1825 # first if we set CC to just the basename; use the full file name.
1826 shift
1827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1828 fi
1829 fi
1830 fi
1831 fi
1832 CC=$ac_cv_prog_CC
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1836 else
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841 fi
1842 if test -z "$CC"; then
1843 if test -n "$ac_tool_prefix"; then
1844 for ac_prog in cl
1845 do
1846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867 done
1868 done
1869
1870 fi
1871 fi
1872 CC=$ac_cv_prog_CC
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1876 else
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881 test -n "$CC" && break
1882 done
1883 fi
1884 if test -z "$CC"; then
1885 ac_ct_CC=$CC
1886 for ac_prog in cl
1887 do
1888 # Extract the first word of "$ac_prog", so it can be a program name with args.
1889 set dummy $ac_prog; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC="$ac_prog"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909 done
1910 done
1911
1912 fi
1913 fi
1914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 test -n "$ac_ct_CC" && break
1924 done
1925
1926 CC=$ac_ct_CC
1927 fi
1928
1929 fi
1930
1931
1932 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: no acceptable C compiler found in \$PATH
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1937
1938 # Provide some information about the compiler.
1939 echo "$as_me:$LINENO:" \
1940 "checking for C compiler version" >&5
1941 ac_compiler=`set X $ac_compile; echo $2`
1942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1943 (eval $ac_compiler --version </dev/null >&5) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1948 (eval $ac_compiler -v </dev/null >&5) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1953 (eval $ac_compiler -V </dev/null >&5) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1957
1958 cat >conftest.$ac_ext <<_ACEOF
1959 /* confdefs.h. */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1964
1965 int
1966 main ()
1967 {
1968
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 ac_clean_files_save=$ac_clean_files
1974 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1975 # Try to create an executable without -o first, disregard a.out.
1976 # It will help us diagnose broken compilers, and finding out an intuition
1977 # of exeext.
1978 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1979 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1980 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1982 (eval $ac_link_default) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 # Find the output, starting from the most likely. This scheme is
1987 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1988 # resort.
1989
1990 # Be careful to initialize this variable, since it used to be cached.
1991 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1992 ac_cv_exeext=
1993 # b.out is created by i960 compilers.
1994 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1995 do
1996 test -f "$ac_file" || continue
1997 case $ac_file in
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1999 ;;
2000 conftest.$ac_ext )
2001 # This is the source file.
2002 ;;
2003 [ab].out )
2004 # We found the default executable, but exeext='' is most
2005 # certainly right.
2006 break;;
2007 *.* )
2008 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2009 # FIXME: I believe we export ac_cv_exeext for Libtool,
2010 # but it would be cool to find out if it's true. Does anybody
2011 # maintain Libtool? --akim.
2012 export ac_cv_exeext
2013 break;;
2014 * )
2015 break;;
2016 esac
2017 done
2018 else
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: C compiler cannot create executables
2025 See \`config.log' for more details." >&2;}
2026 { (exit 77); exit 77; }; }
2027 fi
2028
2029 ac_exeext=$ac_cv_exeext
2030 echo "$as_me:$LINENO: result: $ac_file" >&5
2031 echo "${ECHO_T}$ac_file" >&6
2032
2033 # Check the compiler produces executables we can run. If not, either
2034 # the compiler is broken, or we cross compile.
2035 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2036 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2037 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2038 # If not cross compiling, check that we can run a simple program.
2039 if test "$cross_compiling" != yes; then
2040 if { ac_try='./$ac_file'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 (eval $ac_try) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2046 cross_compiling=no
2047 else
2048 if test "$cross_compiling" = maybe; then
2049 cross_compiling=yes
2050 else
2051 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2052 If you meant to cross compile, use \`--host'.
2053 See \`config.log' for more details." >&5
2054 echo "$as_me: error: cannot run C compiled programs.
2055 If you meant to cross compile, use \`--host'.
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059 fi
2060 fi
2061 echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6
2063
2064 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2065 ac_clean_files=$ac_clean_files_save
2066 # Check the compiler produces executables we can run. If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2070 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2071 echo "${ECHO_T}$cross_compiling" >&6
2072
2073 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2076 (eval $ac_link) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2083 # `rm'.
2084 for ac_file in conftest.exe conftest conftest.*; do
2085 test -f "$ac_file" || continue
2086 case $ac_file in
2087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2089 export ac_cv_exeext
2090 break;;
2091 * ) break;;
2092 esac
2093 done
2094 else
2095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2100 fi
2101
2102 rm -f conftest$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2104 echo "${ECHO_T}$ac_cv_exeext" >&6
2105
2106 rm -f conftest.$ac_ext
2107 EXEEXT=$ac_cv_exeext
2108 ac_exeext=$EXEEXT
2109 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2110 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2111 if test "${ac_cv_objext+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 cat >conftest.$ac_ext <<_ACEOF
2115 /* confdefs.h. */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2120
2121 int
2122 main ()
2123 {
2124
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 rm -f conftest.o conftest.obj
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2136 case $ac_file in
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2138 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2139 break;;
2140 esac
2141 done
2142 else
2143 echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2145
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2151 fi
2152
2153 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2154 fi
2155 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2156 echo "${ECHO_T}$ac_cv_objext" >&6
2157 OBJEXT=$ac_cv_objext
2158 ac_objext=$OBJEXT
2159 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 cat >conftest.$ac_ext <<_ACEOF
2165 /* confdefs.h. */
2166 _ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2170
2171 int
2172 main ()
2173 {
2174 #ifndef __GNUC__
2175 choke me
2176 #endif
2177
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2185 ac_status=$?
2186 grep -v '^ *+' conftest.er1 >conftest.err
2187 rm -f conftest.er1
2188 cat conftest.err >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_compiler_gnu=yes
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 ac_compiler_gnu=no
2210 fi
2211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2213
2214 fi
2215 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2216 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2217 GCC=`test $ac_compiler_gnu = yes && echo yes`
2218 ac_test_CFLAGS=${CFLAGS+set}
2219 ac_save_CFLAGS=$CFLAGS
2220 CFLAGS="-g"
2221 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2222 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2223 if test "${ac_cv_prog_cc_g+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 cat >conftest.$ac_ext <<_ACEOF
2227 /* confdefs.h. */
2228 _ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2232
2233 int
2234 main ()
2235 {
2236
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2244 ac_status=$?
2245 grep -v '^ *+' conftest.er1 >conftest.err
2246 rm -f conftest.er1
2247 cat conftest.err >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 ac_cv_prog_cc_g=yes
2264 else
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2267
2268 ac_cv_prog_cc_g=no
2269 fi
2270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2273 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2274 if test "$ac_test_CFLAGS" = set; then
2275 CFLAGS=$ac_save_CFLAGS
2276 elif test $ac_cv_prog_cc_g = yes; then
2277 if test "$GCC" = yes; then
2278 CFLAGS="-g -O2"
2279 else
2280 CFLAGS="-g"
2281 fi
2282 else
2283 if test "$GCC" = yes; then
2284 CFLAGS="-O2"
2285 else
2286 CFLAGS=
2287 fi
2288 fi
2289 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2290 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2291 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294 ac_cv_prog_cc_stdc=no
2295 ac_save_CC=$CC
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 #include <stdarg.h>
2303 #include <stdio.h>
2304 #include <sys/types.h>
2305 #include <sys/stat.h>
2306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2307 struct buf { int x; };
2308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2309 static char *e (p, i)
2310 char **p;
2311 int i;
2312 {
2313 return p[i];
2314 }
2315 static char *f (char * (*g) (char **, int), char **p, ...)
2316 {
2317 char *s;
2318 va_list v;
2319 va_start (v,p);
2320 s = g (p, va_arg (v,int));
2321 va_end (v);
2322 return s;
2323 }
2324
2325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2326 function prototypes and stuff, but not '\xHH' hex character constants.
2327 These don't provoke an error unfortunately, instead are silently treated
2328 as 'x'. The following induces an error, until -std1 is added to get
2329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2330 array size at least. It's necessary to write '\x00'==0 to get something
2331 that's true only with -std1. */
2332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2333
2334 int test (int i, double x);
2335 struct s1 {int (*f) (int a);};
2336 struct s2 {int (*f) (double a);};
2337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2338 int argc;
2339 char **argv;
2340 int
2341 main ()
2342 {
2343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 # Don't try gcc -ansi; that turns off useful extensions and
2349 # breaks some systems' header files.
2350 # AIX -qlanglvl=ansi
2351 # Ultrix and OSF/1 -std1
2352 # HP-UX 10.20 and later -Ae
2353 # HP-UX older versions -Aa -D_HPUX_SOURCE
2354 # SVR4 -Xc -D__EXTENSIONS__
2355 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2356 do
2357 CC="$ac_save_CC $ac_arg"
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>conftest.er1
2361 ac_status=$?
2362 grep -v '^ *+' conftest.er1 >conftest.err
2363 rm -f conftest.er1
2364 cat conftest.err >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -z "$ac_c_werror_flag"
2368 || test ! -s conftest.err'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; } &&
2374 { ac_try='test -s conftest.$ac_objext'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2380 ac_cv_prog_cc_stdc=$ac_arg
2381 break
2382 else
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 fi
2387 rm -f conftest.err conftest.$ac_objext
2388 done
2389 rm -f conftest.$ac_ext conftest.$ac_objext
2390 CC=$ac_save_CC
2391
2392 fi
2393
2394 case "x$ac_cv_prog_cc_stdc" in
2395 x|xno)
2396 echo "$as_me:$LINENO: result: none needed" >&5
2397 echo "${ECHO_T}none needed" >&6 ;;
2398 *)
2399 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2400 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2401 CC="$CC $ac_cv_prog_cc_stdc" ;;
2402 esac
2403
2404 # Some people use a C++ compiler to compile C. Since we use `exit',
2405 # in C++ we need to declare it. In case someone uses the same compiler
2406 # for both compiling C and C++ we need to have the C++ compiler decide
2407 # the declaration of exit, since it's the most demanding environment.
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #ifndef __cplusplus
2410 choke me
2411 #endif
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2416 ac_status=$?
2417 grep -v '^ *+' conftest.er1 >conftest.err
2418 rm -f conftest.er1
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 for ac_declaration in \
2436 '' \
2437 'extern "C" void std::exit (int) throw (); using std::exit;' \
2438 'extern "C" void std::exit (int); using std::exit;' \
2439 'extern "C" void exit (int) throw ();' \
2440 'extern "C" void exit (int);' \
2441 'void exit (int);'
2442 do
2443 cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h. */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2449 $ac_declaration
2450 #include <stdlib.h>
2451 int
2452 main ()
2453 {
2454 exit (42);
2455 ;
2456 return 0;
2457 }
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 :
2482 else
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 continue
2487 fi
2488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2495 $ac_declaration
2496 int
2497 main ()
2498 {
2499 exit (42);
2500 ;
2501 return 0;
2502 }
2503 _ACEOF
2504 rm -f conftest.$ac_objext
2505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2506 (eval $ac_compile) 2>conftest.er1
2507 ac_status=$?
2508 grep -v '^ *+' conftest.er1 >conftest.err
2509 rm -f conftest.er1
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -z "$ac_c_werror_flag"
2514 || test ! -s conftest.err'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 (eval $ac_try) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2526 break
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 fi
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 done
2534 rm -f conftest*
2535 if test -n "$ac_declaration"; then
2536 echo '#ifdef __cplusplus' >>confdefs.h
2537 echo $ac_declaration >>confdefs.h
2538 echo '#endif' >>confdefs.h
2539 fi
2540
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 fi
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552
2553 # Find a good install program. We prefer a C program (faster),
2554 # so one script is as good as another. But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2559 # AIX /bin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2567 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2568 if test -z "$INSTALL"; then
2569 if test "${ac_cv_path_install+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in
2579 ./ | .// | /cC/* | \
2580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2581 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2582 /usr/ucb/* ) ;;
2583 *)
2584 # OSF1 and SCO ODT 3.0 have their own names for install.
2585 # Don't use installbsd from OSF since it installs stuff as root
2586 # by default.
2587 for ac_prog in ginstall scoinst install; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2590 if test $ac_prog = install &&
2591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592 # AIX install. It has an incompatible calling convention.
2593 :
2594 elif test $ac_prog = install &&
2595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596 # program-specific install script used by HP pwplus--don't use.
2597 :
2598 else
2599 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2600 break 3
2601 fi
2602 fi
2603 done
2604 done
2605 ;;
2606 esac
2607 done
2608
2609
2610 fi
2611 if test "${ac_cv_path_install+set}" = set; then
2612 INSTALL=$ac_cv_path_install
2613 else
2614 # As a last resort, use the slow shell script. We don't cache a
2615 # path for INSTALL within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the path is relative.
2618 INSTALL=$ac_install_sh
2619 fi
2620 fi
2621 echo "$as_me:$LINENO: result: $INSTALL" >&5
2622 echo "${ECHO_T}$INSTALL" >&6
2623
2624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625 # It thinks the first close brace ends the variable substitution.
2626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2627
2628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2629
2630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2631
2632
2633 # Put a plausible default for CC_FOR_BUILD in Makefile.
2634 if test "x$cross_compiling" = "xno"; then
2635 CC_FOR_BUILD='$(CC)'
2636 else
2637 CC_FOR_BUILD=gcc
2638 fi
2639
2640
2641
2642
2643 AR=${AR-ar}
2644
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_RANLIB+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 if test -n "$RANLIB"; then
2654 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667 done
2668 done
2669
2670 fi
2671 fi
2672 RANLIB=$ac_cv_prog_RANLIB
2673 if test -n "$RANLIB"; then
2674 echo "$as_me:$LINENO: result: $RANLIB" >&5
2675 echo "${ECHO_T}$RANLIB" >&6
2676 else
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2679 fi
2680
2681 fi
2682 if test -z "$ac_cv_prog_RANLIB"; then
2683 ac_ct_RANLIB=$RANLIB
2684 # Extract the first word of "ranlib", so it can be a program name with args.
2685 set dummy ranlib; ac_word=$2
2686 echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2688 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 if test -n "$ac_ct_RANLIB"; then
2692 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_ac_ct_RANLIB="ranlib"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707
2708 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2709 fi
2710 fi
2711 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2712 if test -n "$ac_ct_RANLIB"; then
2713 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2714 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2715 else
2716 echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2718 fi
2719
2720 RANLIB=$ac_ct_RANLIB
2721 else
2722 RANLIB="$ac_cv_prog_RANLIB"
2723 fi
2724
2725
2726 ALL_LINGUAS=
2727 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2728 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2729 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2730 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 cat >conftest.make <<\_ACEOF
2734 all:
2735 @echo 'ac_maketemp="$(MAKE)"'
2736 _ACEOF
2737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2738 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2739 if test -n "$ac_maketemp"; then
2740 eval ac_cv_prog_make_${ac_make}_set=yes
2741 else
2742 eval ac_cv_prog_make_${ac_make}_set=no
2743 fi
2744 rm -f conftest.make
2745 fi
2746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2747 echo "$as_me:$LINENO: result: yes" >&5
2748 echo "${ECHO_T}yes" >&6
2749 SET_MAKE=
2750 else
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2753 SET_MAKE="MAKE=${MAKE-make}"
2754 fi
2755
2756
2757 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2758 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2759 if test "${ac_cv_search_strerror+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 ac_func_search_save_LIBS=$LIBS
2763 ac_cv_search_strerror=no
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770
2771 /* Override any gcc2 internal prototype to avoid an error. */
2772 #ifdef __cplusplus
2773 extern "C"
2774 #endif
2775 /* We use char because int might match the return type of a gcc2
2776 builtin and then its argument prototype would still apply. */
2777 char strerror ();
2778 int
2779 main ()
2780 {
2781 strerror ();
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext conftest$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788 (eval $ac_link) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_c_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest$ac_exeext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_search_strerror="none required"
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 fi
2814 rm -f conftest.err conftest.$ac_objext \
2815 conftest$ac_exeext conftest.$ac_ext
2816 if test "$ac_cv_search_strerror" = no; then
2817 for ac_lib in cposix; do
2818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2819 cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825
2826 /* Override any gcc2 internal prototype to avoid an error. */
2827 #ifdef __cplusplus
2828 extern "C"
2829 #endif
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2832 char strerror ();
2833 int
2834 main ()
2835 {
2836 strerror ();
2837 ;
2838 return 0;
2839 }
2840 _ACEOF
2841 rm -f conftest.$ac_objext conftest$ac_exeext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2843 (eval $ac_link) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest$ac_exeext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_search_strerror="-l$ac_lib"
2864 break
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 fi
2870 rm -f conftest.err conftest.$ac_objext \
2871 conftest$ac_exeext conftest.$ac_ext
2872 done
2873 fi
2874 LIBS=$ac_func_search_save_LIBS
2875 fi
2876 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2877 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2878 if test "$ac_cv_search_strerror" != no; then
2879 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2880
2881 fi
2882
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2892 CPP=
2893 fi
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 # Double quotes because CPP needs to be expanded
2899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2900 do
2901 ac_preproc_ok=false
2902 for ac_c_preproc_warn_flag in '' yes
2903 do
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #ifdef __STDC__
2917 # include <limits.h>
2918 #else
2919 # include <assert.h>
2920 #endif
2921 Syntax error
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 else
2935 ac_cpp_err=
2936 fi
2937 else
2938 ac_cpp_err=yes
2939 fi
2940 if test -z "$ac_cpp_err"; then
2941 :
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 # Broken: fails on valid input.
2947 continue
2948 fi
2949 rm -f conftest.err conftest.$ac_ext
2950
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 else
2973 ac_cpp_err=
2974 fi
2975 else
2976 ac_cpp_err=yes
2977 fi
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2980 continue
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 # Passes both tests.
2986 ac_preproc_ok=:
2987 break
2988 fi
2989 rm -f conftest.err conftest.$ac_ext
2990
2991 done
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.$ac_ext
2994 if $ac_preproc_ok; then
2995 break
2996 fi
2997
2998 done
2999 ac_cv_prog_CPP=$CPP
3000
3001 fi
3002 CPP=$ac_cv_prog_CPP
3003 else
3004 ac_cv_prog_CPP=$CPP
3005 fi
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3008 ac_preproc_ok=false
3009 for ac_c_preproc_warn_flag in '' yes
3010 do
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028 Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 else
3042 ac_cpp_err=
3043 fi
3044 else
3045 ac_cpp_err=yes
3046 fi
3047 if test -z "$ac_cpp_err"; then
3048 :
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Broken: fails on valid input.
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_ext
3057
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 else
3080 ac_cpp_err=
3081 fi
3082 else
3083 ac_cpp_err=yes
3084 fi
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3087 continue
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 # Passes both tests.
3093 ac_preproc_ok=:
3094 break
3095 fi
3096 rm -f conftest.err conftest.$ac_ext
3097
3098 done
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.$ac_ext
3101 if $ac_preproc_ok; then
3102 :
3103 else
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3109 fi
3110
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
3117
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3124 then ac_cv_prog_egrep='grep -E'
3125 else ac_cv_prog_egrep='egrep'
3126 fi
3127 fi
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP=$ac_cv_prog_egrep
3131
3132
3133 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3134 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3135 if test "${ac_cv_header_stdc+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 #include <stdlib.h>
3145 #include <stdarg.h>
3146 #include <string.h>
3147 #include <float.h>
3148
3149 int
3150 main ()
3151 {
3152
3153 ;
3154 return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>conftest.er1
3160 ac_status=$?
3161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -z "$ac_c_werror_flag"
3167 || test ! -s conftest.err'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 (eval $ac_try) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_cv_header_stdc=yes
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 ac_cv_header_stdc=no
3185 fi
3186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3187
3188 if test $ac_cv_header_stdc = yes; then
3189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3196 #include <string.h>
3197
3198 _ACEOF
3199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3200 $EGREP "memchr" >/dev/null 2>&1; then
3201 :
3202 else
3203 ac_cv_header_stdc=no
3204 fi
3205 rm -f conftest*
3206
3207 fi
3208
3209 if test $ac_cv_header_stdc = yes; then
3210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217 #include <stdlib.h>
3218
3219 _ACEOF
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 $EGREP "free" >/dev/null 2>&1; then
3222 :
3223 else
3224 ac_cv_header_stdc=no
3225 fi
3226 rm -f conftest*
3227
3228 fi
3229
3230 if test $ac_cv_header_stdc = yes; then
3231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3232 if test "$cross_compiling" = yes; then
3233 :
3234 else
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241 #include <ctype.h>
3242 #if ((' ' & 0x0FF) == 0x020)
3243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3245 #else
3246 # define ISLOWER(c) \
3247 (('a' <= (c) && (c) <= 'i') \
3248 || ('j' <= (c) && (c) <= 'r') \
3249 || ('s' <= (c) && (c) <= 'z'))
3250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3251 #endif
3252
3253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3254 int
3255 main ()
3256 {
3257 int i;
3258 for (i = 0; i < 256; i++)
3259 if (XOR (islower (i), ISLOWER (i))
3260 || toupper (i) != TOUPPER (i))
3261 exit(2);
3262 exit (0);
3263 }
3264 _ACEOF
3265 rm -f conftest$ac_exeext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 :
3277 else
3278 echo "$as_me: program exited with status $ac_status" >&5
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 ( exit $ac_status )
3283 ac_cv_header_stdc=no
3284 fi
3285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 fi
3288 fi
3289 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3290 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3291 if test $ac_cv_header_stdc = yes; then
3292
3293 cat >>confdefs.h <<\_ACEOF
3294 #define STDC_HEADERS 1
3295 _ACEOF
3296
3297 fi
3298
3299 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3300 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3301 if test "${ac_cv_c_const+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310
3311 int
3312 main ()
3313 {
3314 /* FIXME: Include the comments suggested by Paul. */
3315 #ifndef __cplusplus
3316 /* Ultrix mips cc rejects this. */
3317 typedef int charset[2];
3318 const charset x;
3319 /* SunOS 4.1.1 cc rejects this. */
3320 char const *const *ccp;
3321 char **p;
3322 /* NEC SVR4.0.2 mips cc rejects this. */
3323 struct point {int x, y;};
3324 static struct point const zero = {0,0};
3325 /* AIX XL C 1.02.0.0 rejects this.
3326 It does not let you subtract one const X* pointer from another in
3327 an arm of an if-expression whose if-part is not a constant
3328 expression */
3329 const char *g = "string";
3330 ccp = &g + (g ? g-g : 0);
3331 /* HPUX 7.0 cc rejects these. */
3332 ++ccp;
3333 p = (char**) ccp;
3334 ccp = (char const *const *) p;
3335 { /* SCO 3.2v4 cc rejects this. */
3336 char *t;
3337 char const *s = 0 ? (char *) 0 : (char const *) 0;
3338
3339 *t++ = 0;
3340 }
3341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3342 int x[] = {25, 17};
3343 const int *foo = &x[0];
3344 ++foo;
3345 }
3346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3347 typedef const int *iptr;
3348 iptr p = 0;
3349 ++p;
3350 }
3351 { /* AIX XL C 1.02.0.0 rejects this saying
3352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3353 struct s { int j; const int *ap[3]; };
3354 struct s *b; b->j = 5;
3355 }
3356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3357 const int foo = 10;
3358 }
3359 #endif
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 rm -f conftest.$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag"
3375 || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_cv_c_const=yes
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 ac_cv_c_const=no
3393 fi
3394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3395 fi
3396 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3397 echo "${ECHO_T}$ac_cv_c_const" >&6
3398 if test $ac_cv_c_const = no; then
3399
3400 cat >>confdefs.h <<\_ACEOF
3401 #define const
3402 _ACEOF
3403
3404 fi
3405
3406 echo "$as_me:$LINENO: checking for inline" >&5
3407 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3408 if test "${ac_cv_c_inline+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 ac_cv_c_inline=no
3412 for ac_kw in inline __inline__ __inline; do
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #ifndef __cplusplus
3420 typedef int foo_t;
3421 static $ac_kw foo_t static_foo () {return 0; }
3422 $ac_kw foo_t foo () {return 0; }
3423 #endif
3424
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_c_inline=$ac_kw; break
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 fi
3454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455 done
3456
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3459 echo "${ECHO_T}$ac_cv_c_inline" >&6
3460
3461
3462 case $ac_cv_c_inline in
3463 inline | yes) ;;
3464 *)
3465 case $ac_cv_c_inline in
3466 no) ac_val=;;
3467 *) ac_val=$ac_cv_c_inline;;
3468 esac
3469 cat >>confdefs.h <<_ACEOF
3470 #ifndef __cplusplus
3471 #define inline $ac_val
3472 #endif
3473 _ACEOF
3474 ;;
3475 esac
3476
3477 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3488 inttypes.h stdint.h unistd.h
3489 do
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 echo "$as_me:$LINENO: checking for $ac_header" >&5
3492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 $ac_includes_default
3503
3504 #include <$ac_header>
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 eval "$as_ac_Header=yes"
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 eval "$as_ac_Header=no"
3534 fi
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3540 cat >>confdefs.h <<_ACEOF
3541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3542 _ACEOF
3543
3544 fi
3545
3546 done
3547
3548
3549 echo "$as_me:$LINENO: checking for off_t" >&5
3550 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3551 if test "${ac_cv_type_off_t+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3561 int
3562 main ()
3563 {
3564 if ((off_t *) 0)
3565 return 0;
3566 if (sizeof (off_t))
3567 return 0;
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_type_off_t=yes
3595 else
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 ac_cv_type_off_t=no
3600 fi
3601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3604 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3605 if test $ac_cv_type_off_t = yes; then
3606 :
3607 else
3608
3609 cat >>confdefs.h <<_ACEOF
3610 #define off_t long
3611 _ACEOF
3612
3613 fi
3614
3615 echo "$as_me:$LINENO: checking for size_t" >&5
3616 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3617 if test "${ac_cv_type_size_t+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 $ac_includes_default
3627 int
3628 main ()
3629 {
3630 if ((size_t *) 0)
3631 return 0;
3632 if (sizeof (size_t))
3633 return 0;
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640 (eval $ac_compile) 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -z "$ac_c_werror_flag"
3648 || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 (eval $ac_try) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_type_size_t=yes
3661 else
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3664
3665 ac_cv_type_size_t=no
3666 fi
3667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3670 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3671 if test $ac_cv_type_size_t = yes; then
3672 :
3673 else
3674
3675 cat >>confdefs.h <<_ACEOF
3676 #define size_t unsigned
3677 _ACEOF
3678
3679 fi
3680
3681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3682 # for constant arguments. Useless!
3683 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3684 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3685 if test "${ac_cv_working_alloca_h+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #include <alloca.h>
3695 int
3696 main ()
3697 {
3698 char *p = (char *) alloca (2 * sizeof (int));
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_working_alloca_h=yes
3726 else
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 ac_cv_working_alloca_h=no
3731 fi
3732 rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3736 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3737 if test $ac_cv_working_alloca_h = yes; then
3738
3739 cat >>confdefs.h <<\_ACEOF
3740 #define HAVE_ALLOCA_H 1
3741 _ACEOF
3742
3743 fi
3744
3745 echo "$as_me:$LINENO: checking for alloca" >&5
3746 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3747 if test "${ac_cv_func_alloca_works+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3756 #ifdef __GNUC__
3757 # define alloca __builtin_alloca
3758 #else
3759 # ifdef _MSC_VER
3760 # include <malloc.h>
3761 # define alloca _alloca
3762 # else
3763 # if HAVE_ALLOCA_H
3764 # include <alloca.h>
3765 # else
3766 # ifdef _AIX
3767 #pragma alloca
3768 # else
3769 # ifndef alloca /* predefined by HP cc +Olibcalls */
3770 char *alloca ();
3771 # endif
3772 # endif
3773 # endif
3774 # endif
3775 #endif
3776
3777 int
3778 main ()
3779 {
3780 char *p = (char *) alloca (1);
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext conftest$ac_exeext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787 (eval $ac_link) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_func_alloca_works=yes
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 ac_cv_func_alloca_works=no
3813 fi
3814 rm -f conftest.err conftest.$ac_objext \
3815 conftest$ac_exeext conftest.$ac_ext
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3818 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3819
3820 if test $ac_cv_func_alloca_works = yes; then
3821
3822 cat >>confdefs.h <<\_ACEOF
3823 #define HAVE_ALLOCA 1
3824 _ACEOF
3825
3826 else
3827 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3828 # that cause trouble. Some versions do not even contain alloca or
3829 # contain a buggy version. If you still want to use their alloca,
3830 # use ar to extract alloca.o from them instead of compiling alloca.c.
3831
3832 ALLOCA=alloca.$ac_objext
3833
3834 cat >>confdefs.h <<\_ACEOF
3835 #define C_ALLOCA 1
3836 _ACEOF
3837
3838
3839 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3840 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3841 if test "${ac_cv_os_cray+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #if defined(CRAY) && ! defined(CRAY2)
3851 webecray
3852 #else
3853 wenotbecray
3854 #endif
3855
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "webecray" >/dev/null 2>&1; then
3859 ac_cv_os_cray=yes
3860 else
3861 ac_cv_os_cray=no
3862 fi
3863 rm -f conftest*
3864
3865 fi
3866 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3867 echo "${ECHO_T}$ac_cv_os_cray" >&6
3868 if test $ac_cv_os_cray = yes; then
3869 for ac_func in _getb67 GETB67 getb67; do
3870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3871 echo "$as_me:$LINENO: checking for $ac_func" >&5
3872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3873 if eval "test \"\${$as_ac_var+set}\" = set"; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h. */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3884 #define $ac_func innocuous_$ac_func
3885
3886 /* System header to define __stub macros and hopefully few prototypes,
3887 which can conflict with char $ac_func (); below.
3888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 <limits.h> exists even on freestanding compilers. */
3890
3891 #ifdef __STDC__
3892 # include <limits.h>
3893 #else
3894 # include <assert.h>
3895 #endif
3896
3897 #undef $ac_func
3898
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 #ifdef __cplusplus
3901 extern "C"
3902 {
3903 #endif
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3906 char $ac_func ();
3907 /* The GNU C library defines this for functions which it implements
3908 to always fail with ENOSYS. Some functions are actually named
3909 something starting with __ and the normal name is an alias. */
3910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3911 choke me
3912 #else
3913 char (*f) () = $ac_func;
3914 #endif
3915 #ifdef __cplusplus
3916 }
3917 #endif
3918
3919 int
3920 main ()
3921 {
3922 return f != $ac_func;
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest.$ac_objext conftest$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_c_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 eval "$as_ac_var=yes"
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 eval "$as_ac_var=no"
3955 fi
3956 rm -f conftest.err conftest.$ac_objext \
3957 conftest$ac_exeext conftest.$ac_ext
3958 fi
3959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3961 if test `eval echo '${'$as_ac_var'}'` = yes; then
3962
3963 cat >>confdefs.h <<_ACEOF
3964 #define CRAY_STACKSEG_END $ac_func
3965 _ACEOF
3966
3967 break
3968 fi
3969
3970 done
3971 fi
3972
3973 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3974 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3975 if test "${ac_cv_c_stack_direction+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 if test "$cross_compiling" = yes; then
3979 ac_cv_c_stack_direction=0
3980 else
3981 cat >conftest.$ac_ext <<_ACEOF
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3987 int
3988 find_stack_direction ()
3989 {
3990 static char *addr = 0;
3991 auto char dummy;
3992 if (addr == 0)
3993 {
3994 addr = &dummy;
3995 return find_stack_direction ();
3996 }
3997 else
3998 return (&dummy > addr) ? 1 : -1;
3999 }
4000
4001 int
4002 main ()
4003 {
4004 exit (find_stack_direction () < 0);
4005 }
4006 _ACEOF
4007 rm -f conftest$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_c_stack_direction=1
4019 else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 ( exit $ac_status )
4025 ac_cv_c_stack_direction=-1
4026 fi
4027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4028 fi
4029 fi
4030 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4031 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4032
4033 cat >>confdefs.h <<_ACEOF
4034 #define STACK_DIRECTION $ac_cv_c_stack_direction
4035 _ACEOF
4036
4037
4038 fi
4039
4040
4041
4042 for ac_header in stdlib.h unistd.h
4043 do
4044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4046 echo "$as_me:$LINENO: checking for $ac_header" >&5
4047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 fi
4051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4053 else
4054 # Is the header compilable?
4055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4064 #include <$ac_header>
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_c_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 ac_header_compiler=yes
4089 else
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 ac_header_compiler=no
4094 fi
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4097 echo "${ECHO_T}$ac_header_compiler" >&6
4098
4099 # Is the header present?
4100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <$ac_header>
4109 _ACEOF
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null; then
4118 if test -s conftest.err; then
4119 ac_cpp_err=$ac_c_preproc_warn_flag
4120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4121 else
4122 ac_cpp_err=
4123 fi
4124 else
4125 ac_cpp_err=yes
4126 fi
4127 if test -z "$ac_cpp_err"; then
4128 ac_header_preproc=yes
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_header_preproc=no
4134 fi
4135 rm -f conftest.err conftest.$ac_ext
4136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4137 echo "${ECHO_T}$ac_header_preproc" >&6
4138
4139 # So? What about this header?
4140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4141 yes:no: )
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4146 ac_header_preproc=yes
4147 ;;
4148 no:yes:* )
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4161 (
4162 cat <<\_ASBOX
4163 ## ------------------------------------------ ##
4164 ## Report this to the AC_PACKAGE_NAME lists. ##
4165 ## ------------------------------------------ ##
4166 _ASBOX
4167 ) |
4168 sed "s/^/$as_me: WARNING: /" >&2
4169 ;;
4170 esac
4171 echo "$as_me:$LINENO: checking for $ac_header" >&5
4172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 eval "$as_ac_Header=\$ac_header_preproc"
4177 fi
4178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4180
4181 fi
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 _ACEOF
4186
4187 fi
4188
4189 done
4190
4191
4192 for ac_func in getpagesize
4193 do
4194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4195 echo "$as_me:$LINENO: checking for $ac_func" >&5
4196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4197 if eval "test \"\${$as_ac_var+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4208 #define $ac_func innocuous_$ac_func
4209
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char $ac_func (); below.
4212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 <limits.h> exists even on freestanding compilers. */
4214
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4220
4221 #undef $ac_func
4222
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 #ifdef __cplusplus
4225 extern "C"
4226 {
4227 #endif
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4230 char $ac_func ();
4231 /* The GNU C library defines this for functions which it implements
4232 to always fail with ENOSYS. Some functions are actually named
4233 something starting with __ and the normal name is an alias. */
4234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4235 choke me
4236 #else
4237 char (*f) () = $ac_func;
4238 #endif
4239 #ifdef __cplusplus
4240 }
4241 #endif
4242
4243 int
4244 main ()
4245 {
4246 return f != $ac_func;
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -z "$ac_c_werror_flag"
4261 || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest$ac_exeext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 eval "$as_ac_var=yes"
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 eval "$as_ac_var=no"
4279 fi
4280 rm -f conftest.err conftest.$ac_objext \
4281 conftest$ac_exeext conftest.$ac_ext
4282 fi
4283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4285 if test `eval echo '${'$as_ac_var'}'` = yes; then
4286 cat >>confdefs.h <<_ACEOF
4287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4288 _ACEOF
4289
4290 fi
4291 done
4292
4293 echo "$as_me:$LINENO: checking for working mmap" >&5
4294 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4295 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 if test "$cross_compiling" = yes; then
4299 ac_cv_func_mmap_fixed_mapped=no
4300 else
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 $ac_includes_default
4308 /* malloc might have been renamed as rpl_malloc. */
4309 #undef malloc
4310
4311 /* Thanks to Mike Haertel and Jim Avera for this test.
4312 Here is a matrix of mmap possibilities:
4313 mmap private not fixed
4314 mmap private fixed at somewhere currently unmapped
4315 mmap private fixed at somewhere already mapped
4316 mmap shared not fixed
4317 mmap shared fixed at somewhere currently unmapped
4318 mmap shared fixed at somewhere already mapped
4319 For private mappings, we should verify that changes cannot be read()
4320 back from the file, nor mmap's back from the file at a different
4321 address. (There have been systems where private was not correctly
4322 implemented like the infamous i386 svr4.0, and systems where the
4323 VM page cache was not coherent with the file system buffer cache
4324 like early versions of FreeBSD and possibly contemporary NetBSD.)
4325 For shared mappings, we should conversely verify that changes get
4326 propagated back to all the places they're supposed to be.
4327
4328 Grep wants private fixed already mapped.
4329 The main things grep needs to know about mmap are:
4330 * does it exist and is it safe to write into the mmap'd area
4331 * how to use it (BSD variants) */
4332
4333 #include <fcntl.h>
4334 #include <sys/mman.h>
4335
4336 #if !STDC_HEADERS && !HAVE_STDLIB_H
4337 char *malloc ();
4338 #endif
4339
4340 /* This mess was copied from the GNU getpagesize.h. */
4341 #if !HAVE_GETPAGESIZE
4342 /* Assume that all systems that can run configure have sys/param.h. */
4343 # if !HAVE_SYS_PARAM_H
4344 # define HAVE_SYS_PARAM_H 1
4345 # endif
4346
4347 # ifdef _SC_PAGESIZE
4348 # define getpagesize() sysconf(_SC_PAGESIZE)
4349 # else /* no _SC_PAGESIZE */
4350 # if HAVE_SYS_PARAM_H
4351 # include <sys/param.h>
4352 # ifdef EXEC_PAGESIZE
4353 # define getpagesize() EXEC_PAGESIZE
4354 # else /* no EXEC_PAGESIZE */
4355 # ifdef NBPG
4356 # define getpagesize() NBPG * CLSIZE
4357 # ifndef CLSIZE
4358 # define CLSIZE 1
4359 # endif /* no CLSIZE */
4360 # else /* no NBPG */
4361 # ifdef NBPC
4362 # define getpagesize() NBPC
4363 # else /* no NBPC */
4364 # ifdef PAGESIZE
4365 # define getpagesize() PAGESIZE
4366 # endif /* PAGESIZE */
4367 # endif /* no NBPC */
4368 # endif /* no NBPG */
4369 # endif /* no EXEC_PAGESIZE */
4370 # else /* no HAVE_SYS_PARAM_H */
4371 # define getpagesize() 8192 /* punt totally */
4372 # endif /* no HAVE_SYS_PARAM_H */
4373 # endif /* no _SC_PAGESIZE */
4374
4375 #endif /* no HAVE_GETPAGESIZE */
4376
4377 int
4378 main ()
4379 {
4380 char *data, *data2, *data3;
4381 int i, pagesize;
4382 int fd;
4383
4384 pagesize = getpagesize ();
4385
4386 /* First, make a file with some known garbage in it. */
4387 data = (char *) malloc (pagesize);
4388 if (!data)
4389 exit (1);
4390 for (i = 0; i < pagesize; ++i)
4391 *(data + i) = rand ();
4392 umask (0);
4393 fd = creat ("conftest.mmap", 0600);
4394 if (fd < 0)
4395 exit (1);
4396 if (write (fd, data, pagesize) != pagesize)
4397 exit (1);
4398 close (fd);
4399
4400 /* Next, try to mmap the file at a fixed address which already has
4401 something else allocated at it. If we can, also make sure that
4402 we see the same garbage. */
4403 fd = open ("conftest.mmap", O_RDWR);
4404 if (fd < 0)
4405 exit (1);
4406 data2 = (char *) malloc (2 * pagesize);
4407 if (!data2)
4408 exit (1);
4409 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4410 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4411 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4412 exit (1);
4413 for (i = 0; i < pagesize; ++i)
4414 if (*(data + i) != *(data2 + i))
4415 exit (1);
4416
4417 /* Finally, make sure that changes to the mapped area do not
4418 percolate back to the file as seen by read(). (This is a bug on
4419 some variants of i386 svr4.0.) */
4420 for (i = 0; i < pagesize; ++i)
4421 *(data2 + i) = *(data2 + i) + 1;
4422 data3 = (char *) malloc (pagesize);
4423 if (!data3)
4424 exit (1);
4425 if (read (fd, data3, pagesize) != pagesize)
4426 exit (1);
4427 for (i = 0; i < pagesize; ++i)
4428 if (*(data + i) != *(data3 + i))
4429 exit (1);
4430 close (fd);
4431 exit (0);
4432 }
4433 _ACEOF
4434 rm -f conftest$ac_exeext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436 (eval $ac_link) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 (eval $ac_try) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_func_mmap_fixed_mapped=yes
4446 else
4447 echo "$as_me: program exited with status $ac_status" >&5
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 ( exit $ac_status )
4452 ac_cv_func_mmap_fixed_mapped=no
4453 fi
4454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4455 fi
4456 fi
4457 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4458 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4460
4461 cat >>confdefs.h <<\_ACEOF
4462 #define HAVE_MMAP 1
4463 _ACEOF
4464
4465 fi
4466 rm -f conftest.mmap
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4479 unistd.h values.h sys/param.h
4480 do
4481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4483 echo "$as_me:$LINENO: checking for $ac_header" >&5
4484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 fi
4488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4490 else
4491 # Is the header compilable?
4492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4494 cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h. */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 $ac_includes_default
4501 #include <$ac_header>
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_header_compiler=yes
4526 else
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 ac_header_compiler=no
4531 fi
4532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4534 echo "${ECHO_T}$ac_header_compiler" >&6
4535
4536 # Is the header present?
4537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 #include <$ac_header>
4546 _ACEOF
4547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev/null; then
4555 if test -s conftest.err; then
4556 ac_cpp_err=$ac_c_preproc_warn_flag
4557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4558 else
4559 ac_cpp_err=
4560 fi
4561 else
4562 ac_cpp_err=yes
4563 fi
4564 if test -z "$ac_cpp_err"; then
4565 ac_header_preproc=yes
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 ac_header_preproc=no
4571 fi
4572 rm -f conftest.err conftest.$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4574 echo "${ECHO_T}$ac_header_preproc" >&6
4575
4576 # So? What about this header?
4577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4578 yes:no: )
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4583 ac_header_preproc=yes
4584 ;;
4585 no:yes:* )
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4598 (
4599 cat <<\_ASBOX
4600 ## ------------------------------------------ ##
4601 ## Report this to the AC_PACKAGE_NAME lists. ##
4602 ## ------------------------------------------ ##
4603 _ASBOX
4604 ) |
4605 sed "s/^/$as_me: WARNING: /" >&2
4606 ;;
4607 esac
4608 echo "$as_me:$LINENO: checking for $ac_header" >&5
4609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 eval "$as_ac_Header=\$ac_header_preproc"
4614 fi
4615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4617
4618 fi
4619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4620 cat >>confdefs.h <<_ACEOF
4621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4622 _ACEOF
4623
4624 fi
4625
4626 done
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4639 __argz_count __argz_stringify __argz_next
4640 do
4641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4642 echo "$as_me:$LINENO: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_var+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4655 #define $ac_func innocuous_$ac_func
4656
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func (); below.
4659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 <limits.h> exists even on freestanding compilers. */
4661
4662 #ifdef __STDC__
4663 # include <limits.h>
4664 #else
4665 # include <assert.h>
4666 #endif
4667
4668 #undef $ac_func
4669
4670 /* Override any gcc2 internal prototype to avoid an error. */
4671 #ifdef __cplusplus
4672 extern "C"
4673 {
4674 #endif
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char $ac_func ();
4678 /* The GNU C library defines this for functions which it implements
4679 to always fail with ENOSYS. Some functions are actually named
4680 something starting with __ and the normal name is an alias. */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4682 choke me
4683 #else
4684 char (*f) () = $ac_func;
4685 #endif
4686 #ifdef __cplusplus
4687 }
4688 #endif
4689
4690 int
4691 main ()
4692 {
4693 return f != $ac_func;
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 rm -f conftest.$ac_objext conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 eval "$as_ac_var=yes"
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 eval "$as_ac_var=no"
4726 fi
4727 rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4729 fi
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4732 if test `eval echo '${'$as_ac_var'}'` = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735 _ACEOF
4736
4737 fi
4738 done
4739
4740
4741 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4742
4743 for ac_func in stpcpy
4744 do
4745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4746 echo "$as_me:$LINENO: checking for $ac_func" >&5
4747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4748 if eval "test \"\${$as_ac_var+set}\" = set"; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4759 #define $ac_func innocuous_$ac_func
4760
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func (); below.
4763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764 <limits.h> exists even on freestanding compilers. */
4765
4766 #ifdef __STDC__
4767 # include <limits.h>
4768 #else
4769 # include <assert.h>
4770 #endif
4771
4772 #undef $ac_func
4773
4774 /* Override any gcc2 internal prototype to avoid an error. */
4775 #ifdef __cplusplus
4776 extern "C"
4777 {
4778 #endif
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4781 char $ac_func ();
4782 /* The GNU C library defines this for functions which it implements
4783 to always fail with ENOSYS. Some functions are actually named
4784 something starting with __ and the normal name is an alias. */
4785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4786 choke me
4787 #else
4788 char (*f) () = $ac_func;
4789 #endif
4790 #ifdef __cplusplus
4791 }
4792 #endif
4793
4794 int
4795 main ()
4796 {
4797 return f != $ac_func;
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext conftest$ac_exeext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4804 (eval $ac_link) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest$ac_exeext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_var=yes"
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 eval "$as_ac_var=no"
4830 fi
4831 rm -f conftest.err conftest.$ac_objext \
4832 conftest$ac_exeext conftest.$ac_ext
4833 fi
4834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4836 if test `eval echo '${'$as_ac_var'}'` = yes; then
4837 cat >>confdefs.h <<_ACEOF
4838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4839 _ACEOF
4840
4841 fi
4842 done
4843
4844 fi
4845 if test "${ac_cv_func_stpcpy}" = "yes"; then
4846
4847 cat >>confdefs.h <<\_ACEOF
4848 #define HAVE_STPCPY 1
4849 _ACEOF
4850
4851 fi
4852
4853 if test $ac_cv_header_locale_h = yes; then
4854 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4855 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4856 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <locale.h>
4866 int
4867 main ()
4868 {
4869 return LC_MESSAGES
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest.$ac_objext conftest$ac_exeext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4876 (eval $ac_link) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest$ac_exeext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 am_cv_val_LC_MESSAGES=yes
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 am_cv_val_LC_MESSAGES=no
4902 fi
4903 rm -f conftest.err conftest.$ac_objext \
4904 conftest$ac_exeext conftest.$ac_ext
4905 fi
4906 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4907 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4908 if test $am_cv_val_LC_MESSAGES = yes; then
4909
4910 cat >>confdefs.h <<\_ACEOF
4911 #define HAVE_LC_MESSAGES 1
4912 _ACEOF
4913
4914 fi
4915 fi
4916 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4917 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4918 # Check whether --enable-nls or --disable-nls was given.
4919 if test "${enable_nls+set}" = set; then
4920 enableval="$enable_nls"
4921 USE_NLS=$enableval
4922 else
4923 USE_NLS=yes
4924 fi;
4925 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4926 echo "${ECHO_T}$USE_NLS" >&6
4927
4928
4929 USE_INCLUDED_LIBINTL=no
4930
4931 if test "$USE_NLS" = "yes"; then
4932 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4933 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4934
4935 # Check whether --with-included-gettext or --without-included-gettext was given.
4936 if test "${with_included_gettext+set}" = set; then
4937 withval="$with_included_gettext"
4938 nls_cv_force_use_gnu_gettext=$withval
4939 else
4940 nls_cv_force_use_gnu_gettext=no
4941 fi;
4942 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4943 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4944
4945 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4946 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4947 nls_cv_header_intl=
4948 nls_cv_header_libgt=
4949 CATOBJEXT=
4950
4951 if test "${ac_cv_header_libintl_h+set}" = set; then
4952 echo "$as_me:$LINENO: checking for libintl.h" >&5
4953 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4954 if test "${ac_cv_header_libintl_h+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 fi
4957 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4958 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4959 else
4960 # Is the header compilable?
4961 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4962 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4970 #include <libintl.h>
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_header_compiler=yes
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 ac_header_compiler=no
5000 fi
5001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5003 echo "${ECHO_T}$ac_header_compiler" >&6
5004
5005 # Is the header present?
5006 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5007 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 #include <libintl.h>
5015 _ACEOF
5016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null; then
5024 if test -s conftest.err; then
5025 ac_cpp_err=$ac_c_preproc_warn_flag
5026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5027 else
5028 ac_cpp_err=
5029 fi
5030 else
5031 ac_cpp_err=yes
5032 fi
5033 if test -z "$ac_cpp_err"; then
5034 ac_header_preproc=yes
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5038
5039 ac_header_preproc=no
5040 fi
5041 rm -f conftest.err conftest.$ac_ext
5042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5043 echo "${ECHO_T}$ac_header_preproc" >&6
5044
5045 # So? What about this header?
5046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5047 yes:no: )
5048 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5049 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5050 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5051 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5052 ac_header_preproc=yes
5053 ;;
5054 no:yes:* )
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5056 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5057 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5058 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5060 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5062 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5064 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5066 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5067 (
5068 cat <<\_ASBOX
5069 ## ------------------------------------------ ##
5070 ## Report this to the AC_PACKAGE_NAME lists. ##
5071 ## ------------------------------------------ ##
5072 _ASBOX
5073 ) |
5074 sed "s/^/$as_me: WARNING: /" >&2
5075 ;;
5076 esac
5077 echo "$as_me:$LINENO: checking for libintl.h" >&5
5078 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5079 if test "${ac_cv_header_libintl_h+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082 ac_cv_header_libintl_h=$ac_header_preproc
5083 fi
5084 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5085 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5086
5087 fi
5088 if test $ac_cv_header_libintl_h = yes; then
5089 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5090 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5091 if test "${gt_cv_func_gettext_libc+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 #include <libintl.h>
5101 int
5102 main ()
5103 {
5104 return (int) gettext ("")
5105 ;
5106 return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -z "$ac_c_werror_flag"
5119 || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest$ac_exeext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 (eval $ac_try) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 gt_cv_func_gettext_libc=yes
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 gt_cv_func_gettext_libc=no
5137 fi
5138 rm -f conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 fi
5141 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5142 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5143
5144 if test "$gt_cv_func_gettext_libc" != "yes"; then
5145 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5146 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5147 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 ac_check_lib_save_LIBS=$LIBS
5151 LIBS="-lintl $LIBS"
5152 cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h. */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 #ifdef __cplusplus
5161 extern "C"
5162 #endif
5163 /* We use char because int might match the return type of a gcc2
5164 builtin and then its argument prototype would still apply. */
5165 char bindtextdomain ();
5166 int
5167 main ()
5168 {
5169 bindtextdomain ();
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_lib_intl_bindtextdomain=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 ac_cv_lib_intl_bindtextdomain=no
5202 fi
5203 rm -f conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5206 fi
5207 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5208 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5209 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5210 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5211 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5212 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221
5222 int
5223 main ()
5224 {
5225 return (int) gettext ("")
5226 ;
5227 return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag"
5240 || test ! -s conftest.err'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 (eval $ac_try) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; } &&
5246 { ac_try='test -s conftest$ac_exeext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 gt_cv_func_gettext_libintl=yes
5253 else
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 gt_cv_func_gettext_libintl=no
5258 fi
5259 rm -f conftest.err conftest.$ac_objext \
5260 conftest$ac_exeext conftest.$ac_ext
5261 fi
5262 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5263 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5264 fi
5265
5266 fi
5267
5268 if test "$gt_cv_func_gettext_libc" = "yes" \
5269 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5270
5271 cat >>confdefs.h <<\_ACEOF
5272 #define HAVE_GETTEXT 1
5273 _ACEOF
5274
5275 # Extract the first word of "msgfmt", so it can be a program name with args.
5276 set dummy msgfmt; ac_word=$2
5277 echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5279 if test "${ac_cv_path_MSGFMT+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 case "$MSGFMT" in
5283 /*)
5284 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5285 ;;
5286 *)
5287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5288 for ac_dir in $PATH; do
5289 test -z "$ac_dir" && ac_dir=.
5290 if test -f $ac_dir/$ac_word; then
5291 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5292 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5293 break
5294 fi
5295 fi
5296 done
5297 IFS="$ac_save_ifs"
5298 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5299 ;;
5300 esac
5301 fi
5302 MSGFMT="$ac_cv_path_MSGFMT"
5303 if test -n "$MSGFMT"; then
5304 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5305 echo "${ECHO_T}$MSGFMT" >&6
5306 else
5307 echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5309 fi
5310 if test "$MSGFMT" != "no"; then
5311
5312 for ac_func in dcgettext
5313 do
5314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5315 echo "$as_me:$LINENO: checking for $ac_func" >&5
5316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5317 if eval "test \"\${$as_ac_var+set}\" = set"; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5328 #define $ac_func innocuous_$ac_func
5329
5330 /* System header to define __stub macros and hopefully few prototypes,
5331 which can conflict with char $ac_func (); below.
5332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333 <limits.h> exists even on freestanding compilers. */
5334
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340
5341 #undef $ac_func
5342
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 #ifdef __cplusplus
5345 extern "C"
5346 {
5347 #endif
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5350 char $ac_func ();
5351 /* The GNU C library defines this for functions which it implements
5352 to always fail with ENOSYS. Some functions are actually named
5353 something starting with __ and the normal name is an alias. */
5354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5355 choke me
5356 #else
5357 char (*f) () = $ac_func;
5358 #endif
5359 #ifdef __cplusplus
5360 }
5361 #endif
5362
5363 int
5364 main ()
5365 {
5366 return f != $ac_func;
5367 ;
5368 return 0;
5369 }
5370 _ACEOF
5371 rm -f conftest.$ac_objext conftest$ac_exeext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5373 (eval $ac_link) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_c_werror_flag"
5381 || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 eval "$as_ac_var=yes"
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 eval "$as_ac_var=no"
5399 fi
5400 rm -f conftest.err conftest.$ac_objext \
5401 conftest$ac_exeext conftest.$ac_ext
5402 fi
5403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5405 if test `eval echo '${'$as_ac_var'}'` = yes; then
5406 cat >>confdefs.h <<_ACEOF
5407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5408 _ACEOF
5409
5410 fi
5411 done
5412
5413 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5414 set dummy gmsgfmt; ac_word=$2
5415 echo "$as_me:$LINENO: checking for $ac_word" >&5
5416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 case $GMSGFMT in
5421 [\\/]* | ?:[\\/]*)
5422 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5423 ;;
5424 *)
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5435 fi
5436 done
5437 done
5438
5439 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5440 ;;
5441 esac
5442 fi
5443 GMSGFMT=$ac_cv_path_GMSGFMT
5444
5445 if test -n "$GMSGFMT"; then
5446 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5447 echo "${ECHO_T}$GMSGFMT" >&6
5448 else
5449 echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5451 fi
5452
5453 # Extract the first word of "xgettext", so it can be a program name with args.
5454 set dummy xgettext; ac_word=$2
5455 echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5457 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 case "$XGETTEXT" in
5461 /*)
5462 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5463 ;;
5464 *)
5465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5466 for ac_dir in $PATH; do
5467 test -z "$ac_dir" && ac_dir=.
5468 if test -f $ac_dir/$ac_word; then
5469 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5470 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5471 break
5472 fi
5473 fi
5474 done
5475 IFS="$ac_save_ifs"
5476 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5477 ;;
5478 esac
5479 fi
5480 XGETTEXT="$ac_cv_path_XGETTEXT"
5481 if test -n "$XGETTEXT"; then
5482 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5483 echo "${ECHO_T}$XGETTEXT" >&6
5484 else
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5487 fi
5488
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495
5496 int
5497 main ()
5498 {
5499 extern int _nl_msg_cat_cntr;
5500 return _nl_msg_cat_cntr
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 rm -f conftest.$ac_objext conftest$ac_exeext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5507 (eval $ac_link) 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } &&
5514 { ac_try='test -z "$ac_c_werror_flag"
5515 || test ! -s conftest.err'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 CATOBJEXT=.gmo
5528 DATADIRNAME=share
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 CATOBJEXT=.mo
5534 DATADIRNAME=lib
5535 fi
5536 rm -f conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5538 INSTOBJEXT=.mo
5539 fi
5540 fi
5541
5542 fi
5543
5544
5545
5546
5547 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5548 # Neither gettext nor catgets in included in the C library.
5549 # Fall back on GNU gettext library (assuming it is present).
5550 nls_cv_use_gnu_gettext=yes
5551 fi
5552 fi
5553
5554 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5555 INTLOBJS="\$(GETTOBJS)"
5556 # Extract the first word of "msgfmt", so it can be a program name with args.
5557 set dummy msgfmt; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_path_MSGFMT+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 case "$MSGFMT" in
5564 /*)
5565 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5566 ;;
5567 *)
5568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5569 for ac_dir in $PATH; do
5570 test -z "$ac_dir" && ac_dir=.
5571 if test -f $ac_dir/$ac_word; then
5572 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5573 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5574 break
5575 fi
5576 fi
5577 done
5578 IFS="$ac_save_ifs"
5579 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5580 ;;
5581 esac
5582 fi
5583 MSGFMT="$ac_cv_path_MSGFMT"
5584 if test -n "$MSGFMT"; then
5585 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5586 echo "${ECHO_T}$MSGFMT" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590 fi
5591
5592 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5593 set dummy gmsgfmt; ac_word=$2
5594 echo "$as_me:$LINENO: checking for $ac_word" >&5
5595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5596 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 case $GMSGFMT in
5600 [\\/]* | ?:[\\/]*)
5601 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5602 ;;
5603 *)
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615 done
5616 done
5617
5618 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5619 ;;
5620 esac
5621 fi
5622 GMSGFMT=$ac_cv_path_GMSGFMT
5623
5624 if test -n "$GMSGFMT"; then
5625 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5626 echo "${ECHO_T}$GMSGFMT" >&6
5627 else
5628 echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6
5630 fi
5631
5632 # Extract the first word of "xgettext", so it can be a program name with args.
5633 set dummy xgettext; ac_word=$2
5634 echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 case "$XGETTEXT" in
5640 /*)
5641 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5642 ;;
5643 *)
5644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5645 for ac_dir in $PATH; do
5646 test -z "$ac_dir" && ac_dir=.
5647 if test -f $ac_dir/$ac_word; then
5648 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5649 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5650 break
5651 fi
5652 fi
5653 done
5654 IFS="$ac_save_ifs"
5655 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5656 ;;
5657 esac
5658 fi
5659 XGETTEXT="$ac_cv_path_XGETTEXT"
5660 if test -n "$XGETTEXT"; then
5661 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5662 echo "${ECHO_T}$XGETTEXT" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 fi
5667
5668
5669 USE_INCLUDED_LIBINTL=yes
5670 CATOBJEXT=.gmo
5671 INSTOBJEXT=.mo
5672 DATADIRNAME=share
5673 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5674 INTLLIBS=$INTLDEPS
5675 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5676 nls_cv_header_intl=libintl.h
5677 nls_cv_header_libgt=libgettext.h
5678 fi
5679
5680 if test "$XGETTEXT" != ":"; then
5681 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5682 : ;
5683 else
5684 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5685 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5686 XGETTEXT=":"
5687 fi
5688 fi
5689
5690 # We need to process the po/ directory.
5691 POSUB=po
5692 else
5693 DATADIRNAME=share
5694 nls_cv_header_intl=libintl.h
5695 nls_cv_header_libgt=libgettext.h
5696 fi
5697
5698 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5699 # because some of the sources are only built for this goal.
5700 if test "$PACKAGE" = gettext; then
5701 USE_NLS=yes
5702 USE_INCLUDED_LIBINTL=yes
5703 fi
5704
5705 for lang in $ALL_LINGUAS; do
5706 GMOFILES="$GMOFILES $lang.gmo"
5707 POFILES="$POFILES $lang.po"
5708 done
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721 if test "x$CATOBJEXT" != "x"; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define ENABLE_NLS 1
5725 _ACEOF
5726
5727 fi
5728
5729
5730 if test "x$CATOBJEXT" != "x"; then
5731 if test "x$ALL_LINGUAS" = "x"; then
5732 LINGUAS=
5733 else
5734 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5735 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5736 NEW_LINGUAS=
5737 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5738 case "$ALL_LINGUAS" in
5739 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5740 esac
5741 done
5742 LINGUAS=$NEW_LINGUAS
5743 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5744 echo "${ECHO_T}$LINGUAS" >&6
5745 fi
5746
5747 if test -n "$LINGUAS"; then
5748 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5749 fi
5750 fi
5751
5752 if test $ac_cv_header_locale_h = yes; then
5753 INCLUDE_LOCALE_H="#include <locale.h>"
5754 else
5755 INCLUDE_LOCALE_H="\
5756 /* The system does not provide the header <locale.h>. Take care yourself. */"
5757 fi
5758
5759
5760 if test -f $srcdir/po2tbl.sed.in; then
5761 if test "$CATOBJEXT" = ".cat"; then
5762 if test "${ac_cv_header_linux_version_h+set}" = set; then
5763 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5764 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5765 if test "${ac_cv_header_linux_version_h+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 fi
5768 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5769 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5770 else
5771 # Is the header compilable?
5772 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5773 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 $ac_includes_default
5781 #include <linux/version.h>
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_header_compiler=yes
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 ac_header_compiler=no
5811 fi
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6
5815
5816 # Is the header present?
5817 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5818 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <linux/version.h>
5826 _ACEOF
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null; then
5835 if test -s conftest.err; then
5836 ac_cpp_err=$ac_c_preproc_warn_flag
5837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5838 else
5839 ac_cpp_err=
5840 fi
5841 else
5842 ac_cpp_err=yes
5843 fi
5844 if test -z "$ac_cpp_err"; then
5845 ac_header_preproc=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 ac_header_preproc=no
5851 fi
5852 rm -f conftest.err conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5854 echo "${ECHO_T}$ac_header_preproc" >&6
5855
5856 # So? What about this header?
5857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5858 yes:no: )
5859 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5860 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5862 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5863 ac_header_preproc=yes
5864 ;;
5865 no:yes:* )
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5867 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5869 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5871 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5873 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5875 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5877 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5878 (
5879 cat <<\_ASBOX
5880 ## ------------------------------------------ ##
5881 ## Report this to the AC_PACKAGE_NAME lists. ##
5882 ## ------------------------------------------ ##
5883 _ASBOX
5884 ) |
5885 sed "s/^/$as_me: WARNING: /" >&2
5886 ;;
5887 esac
5888 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5889 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5890 if test "${ac_cv_header_linux_version_h+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 ac_cv_header_linux_version_h=$ac_header_preproc
5894 fi
5895 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5896 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5897
5898 fi
5899 if test $ac_cv_header_linux_version_h = yes; then
5900 msgformat=linux
5901 else
5902 msgformat=xopen
5903 fi
5904
5905
5906
5907 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5908 fi
5909 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5910 $srcdir/po2tbl.sed.in > po2tbl.sed
5911 fi
5912
5913 if test "$PACKAGE" = "gettext"; then
5914 GT_NO="#NO#"
5915 GT_YES=
5916 else
5917 GT_NO=
5918 GT_YES="#YES#"
5919 fi
5920
5921
5922
5923 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5924
5925
5926 l=
5927
5928
5929 if test -f $srcdir/po/POTFILES.in; then
5930 test -d po || mkdir po
5931 if test "x$srcdir" != "x."; then
5932 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5933 posrcprefix="$srcdir/"
5934 else
5935 posrcprefix="../$srcdir/"
5936 fi
5937 else
5938 posrcprefix="../"
5939 fi
5940 rm -f po/POTFILES
5941 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5942 < $srcdir/po/POTFILES.in > po/POTFILES
5943 fi
5944
5945
5946 # Check for common headers.
5947 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5948 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5949
5950
5951
5952
5953
5954 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5955 do
5956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958 echo "$as_me:$LINENO: checking for $ac_header" >&5
5959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 fi
5963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965 else
5966 # Is the header compilable?
5967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 $ac_includes_default
5976 #include <$ac_header>
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_header_compiler=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_header_compiler=no
6006 fi
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6009 echo "${ECHO_T}$ac_header_compiler" >&6
6010
6011 # Is the header present?
6012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <$ac_header>
6021 _ACEOF
6022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } >/dev/null; then
6030 if test -s conftest.err; then
6031 ac_cpp_err=$ac_c_preproc_warn_flag
6032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 else
6034 ac_cpp_err=
6035 fi
6036 else
6037 ac_cpp_err=yes
6038 fi
6039 if test -z "$ac_cpp_err"; then
6040 ac_header_preproc=yes
6041 else
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6044
6045 ac_header_preproc=no
6046 fi
6047 rm -f conftest.err conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6049 echo "${ECHO_T}$ac_header_preproc" >&6
6050
6051 # So? What about this header?
6052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6053 yes:no: )
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6058 ac_header_preproc=yes
6059 ;;
6060 no:yes:* )
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6073 (
6074 cat <<\_ASBOX
6075 ## ------------------------------------------ ##
6076 ## Report this to the AC_PACKAGE_NAME lists. ##
6077 ## ------------------------------------------ ##
6078 _ASBOX
6079 ) |
6080 sed "s/^/$as_me: WARNING: /" >&2
6081 ;;
6082 esac
6083 echo "$as_me:$LINENO: checking for $ac_header" >&5
6084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088 eval "$as_ac_Header=\$ac_header_preproc"
6089 fi
6090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6092
6093 fi
6094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6095 cat >>confdefs.h <<_ACEOF
6096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6097 _ACEOF
6098
6099 fi
6100
6101 done
6102
6103
6104
6105 for ac_header in sys/time.h sys/resource.h
6106 do
6107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6109 echo "$as_me:$LINENO: checking for $ac_header" >&5
6110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 fi
6114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 else
6117 # Is the header compilable?
6118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6127 #include <$ac_header>
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_header_compiler=yes
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 ac_header_compiler=no
6157 fi
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6
6161
6162 # Is the header present?
6163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <$ac_header>
6172 _ACEOF
6173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } >/dev/null; then
6181 if test -s conftest.err; then
6182 ac_cpp_err=$ac_c_preproc_warn_flag
6183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184 else
6185 ac_cpp_err=
6186 fi
6187 else
6188 ac_cpp_err=yes
6189 fi
6190 if test -z "$ac_cpp_err"; then
6191 ac_header_preproc=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_header_preproc=no
6197 fi
6198 rm -f conftest.err conftest.$ac_ext
6199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6200 echo "${ECHO_T}$ac_header_preproc" >&6
6201
6202 # So? What about this header?
6203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6204 yes:no: )
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6209 ac_header_preproc=yes
6210 ;;
6211 no:yes:* )
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6224 (
6225 cat <<\_ASBOX
6226 ## ------------------------------------------ ##
6227 ## Report this to the AC_PACKAGE_NAME lists. ##
6228 ## ------------------------------------------ ##
6229 _ASBOX
6230 ) |
6231 sed "s/^/$as_me: WARNING: /" >&2
6232 ;;
6233 esac
6234 echo "$as_me:$LINENO: checking for $ac_header" >&5
6235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 eval "$as_ac_Header=\$ac_header_preproc"
6240 fi
6241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6243
6244 fi
6245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 _ACEOF
6249
6250 fi
6251
6252 done
6253
6254
6255
6256 for ac_header in fcntl.h fpu_control.h
6257 do
6258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6260 echo "$as_me:$LINENO: checking for $ac_header" >&5
6261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 fi
6265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6267 else
6268 # Is the header compilable?
6269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6278 #include <$ac_header>
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_header_compiler=yes
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_header_compiler=no
6308 fi
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6311 echo "${ECHO_T}$ac_header_compiler" >&6
6312
6313 # Is the header present?
6314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <$ac_header>
6323 _ACEOF
6324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } >/dev/null; then
6332 if test -s conftest.err; then
6333 ac_cpp_err=$ac_c_preproc_warn_flag
6334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6335 else
6336 ac_cpp_err=
6337 fi
6338 else
6339 ac_cpp_err=yes
6340 fi
6341 if test -z "$ac_cpp_err"; then
6342 ac_header_preproc=yes
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 ac_header_preproc=no
6348 fi
6349 rm -f conftest.err conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6351 echo "${ECHO_T}$ac_header_preproc" >&6
6352
6353 # So? What about this header?
6354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6355 yes:no: )
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6360 ac_header_preproc=yes
6361 ;;
6362 no:yes:* )
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6375 (
6376 cat <<\_ASBOX
6377 ## ------------------------------------------ ##
6378 ## Report this to the AC_PACKAGE_NAME lists. ##
6379 ## ------------------------------------------ ##
6380 _ASBOX
6381 ) |
6382 sed "s/^/$as_me: WARNING: /" >&2
6383 ;;
6384 esac
6385 echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 eval "$as_ac_Header=\$ac_header_preproc"
6391 fi
6392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6394
6395 fi
6396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399 _ACEOF
6400
6401 fi
6402
6403 done
6404
6405
6406
6407
6408 for ac_header in dlfcn.h errno.h sys/stat.h
6409 do
6410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo "$as_me:$LINENO: checking for $ac_header" >&5
6413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 fi
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419 else
6420 # Is the header compilable?
6421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6430 #include <$ac_header>
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_header_compiler=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_header_compiler=no
6460 fi
6461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6463 echo "${ECHO_T}$ac_header_compiler" >&6
6464
6465 # Is the header present?
6466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 #include <$ac_header>
6475 _ACEOF
6476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } >/dev/null; then
6484 if test -s conftest.err; then
6485 ac_cpp_err=$ac_c_preproc_warn_flag
6486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487 else
6488 ac_cpp_err=
6489 fi
6490 else
6491 ac_cpp_err=yes
6492 fi
6493 if test -z "$ac_cpp_err"; then
6494 ac_header_preproc=yes
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 ac_header_preproc=no
6500 fi
6501 rm -f conftest.err conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6503 echo "${ECHO_T}$ac_header_preproc" >&6
6504
6505 # So? What about this header?
6506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6507 yes:no: )
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6512 ac_header_preproc=yes
6513 ;;
6514 no:yes:* )
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6527 (
6528 cat <<\_ASBOX
6529 ## ------------------------------------------ ##
6530 ## Report this to the AC_PACKAGE_NAME lists. ##
6531 ## ------------------------------------------ ##
6532 _ASBOX
6533 ) |
6534 sed "s/^/$as_me: WARNING: /" >&2
6535 ;;
6536 esac
6537 echo "$as_me:$LINENO: checking for $ac_header" >&5
6538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 eval "$as_ac_Header=\$ac_header_preproc"
6543 fi
6544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546
6547 fi
6548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549 cat >>confdefs.h <<_ACEOF
6550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 _ACEOF
6552
6553 fi
6554
6555 done
6556
6557
6558
6559
6560
6561 for ac_func in getrusage time sigaction __setfpucw
6562 do
6563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6564 echo "$as_me:$LINENO: checking for $ac_func" >&5
6565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6566 if eval "test \"\${$as_ac_var+set}\" = set"; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6577 #define $ac_func innocuous_$ac_func
6578
6579 /* System header to define __stub macros and hopefully few prototypes,
6580 which can conflict with char $ac_func (); below.
6581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6582 <limits.h> exists even on freestanding compilers. */
6583
6584 #ifdef __STDC__
6585 # include <limits.h>
6586 #else
6587 # include <assert.h>
6588 #endif
6589
6590 #undef $ac_func
6591
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 #ifdef __cplusplus
6594 extern "C"
6595 {
6596 #endif
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6599 char $ac_func ();
6600 /* The GNU C library defines this for functions which it implements
6601 to always fail with ENOSYS. Some functions are actually named
6602 something starting with __ and the normal name is an alias. */
6603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6604 choke me
6605 #else
6606 char (*f) () = $ac_func;
6607 #endif
6608 #ifdef __cplusplus
6609 }
6610 #endif
6611
6612 int
6613 main ()
6614 {
6615 return f != $ac_func;
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 rm -f conftest.$ac_objext conftest$ac_exeext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6622 (eval $ac_link) 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -z "$ac_c_werror_flag"
6630 || test ! -s conftest.err'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; } &&
6636 { ac_try='test -s conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 eval "$as_ac_var=yes"
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 eval "$as_ac_var=no"
6648 fi
6649 rm -f conftest.err conftest.$ac_objext \
6650 conftest$ac_exeext conftest.$ac_ext
6651 fi
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6654 if test `eval echo '${'$as_ac_var'}'` = yes; then
6655 cat >>confdefs.h <<_ACEOF
6656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6657 _ACEOF
6658
6659 fi
6660 done
6661
6662
6663 # Check for socket libraries
6664
6665 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6666 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6667 if test "${ac_cv_lib_socket_bind+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 ac_check_lib_save_LIBS=$LIBS
6671 LIBS="-lsocket $LIBS"
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 #ifdef __cplusplus
6681 extern "C"
6682 #endif
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685 char bind ();
6686 int
6687 main ()
6688 {
6689 bind ();
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag"
6704 || test ! -s conftest.err'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_lib_socket_bind=yes
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_cv_lib_socket_bind=no
6722 fi
6723 rm -f conftest.err conftest.$ac_objext \
6724 conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_check_lib_save_LIBS
6726 fi
6727 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6728 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6729 if test $ac_cv_lib_socket_bind = yes; then
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_LIBSOCKET 1
6732 _ACEOF
6733
6734 LIBS="-lsocket $LIBS"
6735
6736 fi
6737
6738
6739 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6740 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6741 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 ac_check_lib_save_LIBS=$LIBS
6745 LIBS="-lnsl $LIBS"
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char gethostbyname ();
6760 int
6761 main ()
6762 {
6763 gethostbyname ();
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_c_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try='test -s conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_lib_nsl_gethostbyname=yes
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ac_cv_lib_nsl_gethostbyname=no
6796 fi
6797 rm -f conftest.err conftest.$ac_objext \
6798 conftest$ac_exeext conftest.$ac_ext
6799 LIBS=$ac_check_lib_save_LIBS
6800 fi
6801 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6802 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6803 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6804 cat >>confdefs.h <<_ACEOF
6805 #define HAVE_LIBNSL 1
6806 _ACEOF
6807
6808 LIBS="-lnsl $LIBS"
6809
6810 fi
6811
6812
6813 . ${srcdir}/../../bfd/configure.host
6814
6815
6816
6817 USE_MAINTAINER_MODE=no
6818 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6819 if test "${enable_maintainer_mode+set}" = set; then
6820 enableval="$enable_maintainer_mode"
6821 case "${enableval}" in
6822 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6823 no) MAINT="#" ;;
6824 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6825 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6826 { (exit 1); exit 1; }; }; MAINT="#" ;;
6827 esac
6828 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6829 echo "Setting maintainer mode" 6>&1
6830 fi
6831 else
6832 MAINT="#"
6833 fi;
6834
6835
6836 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6837 if test "${enable_sim_bswap+set}" = set; then
6838 enableval="$enable_sim_bswap"
6839 case "${enableval}" in
6840 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6841 no) sim_bswap="-DWITH_BSWAP=0";;
6842 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6843 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6844 { (exit 1); exit 1; }; }; sim_bswap="";;
6845 esac
6846 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6847 echo "Setting bswap flags = $sim_bswap" 6>&1
6848 fi
6849 else
6850 sim_bswap=""
6851 fi;
6852
6853
6854 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6855 if test "${enable_sim_cflags+set}" = set; then
6856 enableval="$enable_sim_cflags"
6857 case "${enableval}" in
6858 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6859 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6860 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6861 { (exit 1); exit 1; }; }; sim_cflags="";;
6862 no) sim_cflags="";;
6863 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6864 esac
6865 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6866 echo "Setting sim cflags = $sim_cflags" 6>&1
6867 fi
6868 else
6869 sim_cflags=""
6870 fi;
6871
6872
6873 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6874 if test "${enable_sim_debug+set}" = set; then
6875 enableval="$enable_sim_debug"
6876 case "${enableval}" in
6877 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6878 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6879 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6880 esac
6881 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6882 echo "Setting sim debug = $sim_debug" 6>&1
6883 fi
6884 else
6885 sim_debug=""
6886 fi;
6887
6888
6889 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6890 if test "${enable_sim_stdio+set}" = set; then
6891 enableval="$enable_sim_stdio"
6892 case "${enableval}" in
6893 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6894 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6895 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6896 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6897 { (exit 1); exit 1; }; }; sim_stdio="";;
6898 esac
6899 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6900 echo "Setting stdio flags = $sim_stdio" 6>&1
6901 fi
6902 else
6903 sim_stdio=""
6904 fi;
6905
6906
6907 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6908 if test "${enable_sim_trace+set}" = set; then
6909 enableval="$enable_sim_trace"
6910 case "${enableval}" in
6911 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6912 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6913 [-0-9]*)
6914 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6915 [a-z]*)
6916 sim_trace=""
6917 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6918 if test x"$sim_trace" = x; then
6919 sim_trace="-DWITH_TRACE='(TRACE_$x"
6920 else
6921 sim_trace="${sim_trace}|TRACE_$x"
6922 fi
6923 done
6924 sim_trace="$sim_trace)'" ;;
6925 esac
6926 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6927 echo "Setting sim trace = $sim_trace" 6>&1
6928 fi
6929 else
6930 sim_trace=""
6931 fi;
6932
6933
6934 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6935 if test "${enable_sim_profile+set}" = set; then
6936 enableval="$enable_sim_profile"
6937 case "${enableval}" in
6938 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6939 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6940 [-0-9]*)
6941 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6942 [a-z]*)
6943 sim_profile=""
6944 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6945 if test x"$sim_profile" = x; then
6946 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6947 else
6948 sim_profile="${sim_profile}|PROFILE_$x"
6949 fi
6950 done
6951 sim_profile="$sim_profile)'" ;;
6952 esac
6953 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6954 echo "Setting sim profile = $sim_profile" 6>&1
6955 fi
6956 else
6957 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6958 fi;
6959
6960
6961 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6962 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6963 if test "${ac_cv_type_signal+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6973 #include <signal.h>
6974 #ifdef signal
6975 # undef signal
6976 #endif
6977 #ifdef __cplusplus
6978 extern "C" void (*signal (int, void (*)(int)))(int);
6979 #else
6980 void (*signal ()) ();
6981 #endif
6982
6983 int
6984 main ()
6985 {
6986 int i;
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag"
7001 || test ! -s conftest.err'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; } &&
7007 { ac_try='test -s conftest.$ac_objext'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 ac_cv_type_signal=void
7014 else
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018 ac_cv_type_signal=int
7019 fi
7020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7021 fi
7022 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7023 echo "${ECHO_T}$ac_cv_type_signal" >&6
7024
7025 cat >>confdefs.h <<_ACEOF
7026 #define RETSIGTYPE $ac_cv_type_signal
7027 _ACEOF
7028
7029
7030
7031
7032
7033 sim_link_files=
7034 sim_link_links=
7035
7036 sim_link_links=tconfig.h
7037 if test -f ${srcdir}/tconfig.in
7038 then
7039 sim_link_files=tconfig.in
7040 else
7041 sim_link_files=../common/tconfig.in
7042 fi
7043
7044 # targ-vals.def points to the libc macro description file.
7045 case "${target}" in
7046 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
7047 esac
7048 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
7049 sim_link_links="${sim_link_links} targ-vals.def"
7050
7051
7052
7053 default_sim_inline=""
7054 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7055 if test "${enable_sim_inline+set}" = set; then
7056 enableval="$enable_sim_inline"
7057 sim_inline=""
7058 case "$enableval" in
7059 no) sim_inline="-DDEFAULT_INLINE=0";;
7060 0) sim_inline="-DDEFAULT_INLINE=0";;
7061 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
7062 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
7063 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
7064 new_flag=""
7065 case "$x" in
7066 *_INLINE=*) new_flag="-D$x";;
7067 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7068 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
7069 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
7070 esac
7071 if test x"$sim_inline" = x""; then
7072 sim_inline="$new_flag"
7073 else
7074 sim_inline="$sim_inline $new_flag"
7075 fi
7076 done;;
7077 esac
7078 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
7079 echo "Setting inline flags = $sim_inline" 6>&1
7080 fi
7081 else
7082
7083 if test "x$cross_compiling" = "xno"; then
7084 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
7085 sim_inline="${default_sim_inline}"
7086 if test x"$silent" != x"yes"; then
7087 echo "Setting inline flags = $sim_inline" 6>&1
7088 fi
7089 else
7090 sim_inline=""
7091 fi
7092 else
7093 sim_inline="-DDEFAULT_INLINE=0"
7094 fi
7095 fi;
7096 wire_alignment="NONSTRICT_ALIGNMENT"
7097 default_alignment=""
7098
7099 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7100 if test "${enable_sim_alignment+set}" = set; then
7101 enableval="$enable_sim_alignment"
7102 case "${enableval}" in
7103 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7104 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7105 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7106 yes) if test x"$wire_alignment" != x; then
7107 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
7108 else
7109 if test x"$default_alignment" != x; then
7110 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
7111 else
7112 echo "No hard-wired alignment for target $target" 1>&6
7113 sim_alignment="-DWITH_ALIGNMENT=0"
7114 fi
7115 fi;;
7116 no) if test x"$default_alignment" != x; then
7117 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7118 else
7119 if test x"$wire_alignment" != x; then
7120 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7121 else
7122 echo "No default alignment for target $target" 1>&6
7123 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
7124 fi
7125 fi;;
7126 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7127 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7128 { (exit 1); exit 1; }; }; sim_alignment="";;
7129 esac
7130 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
7131 echo "Setting alignment flags = $sim_alignment" 6>&1
7132 fi
7133 else
7134 if test x"$default_alignment" != x; then
7135 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7136 else
7137 if test x"$wire_alignment" != x; then
7138 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
7139 else
7140 sim_alignment=
7141 fi
7142 fi
7143 fi;
7144
7145 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7146 if test "${enable_sim_hostendian+set}" = set; then
7147 enableval="$enable_sim_hostendian"
7148 case "${enableval}" in
7149 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
7150 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7151 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7152 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7153 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7154 { (exit 1); exit 1; }; }; sim_hostendian="";;
7155 esac
7156 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
7157 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7158 fi
7159 else
7160
7161 if test "x$cross_compiling" = "xno"; then
7162 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7163 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7164 if test "${ac_cv_c_bigendian+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 # See if sys/param.h defines the BYTE_ORDER macro.
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <sys/types.h>
7175 #include <sys/param.h>
7176
7177 int
7178 main ()
7179 {
7180 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7181 bogus endian macros
7182 #endif
7183
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 # It does; now see whether it defined to BIG_ENDIAN or not.
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <sys/types.h>
7218 #include <sys/param.h>
7219
7220 int
7221 main ()
7222 {
7223 #if BYTE_ORDER != BIG_ENDIAN
7224 not big endian
7225 #endif
7226
7227 ;
7228 return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233 (eval $ac_compile) 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag"
7241 || test ! -s conftest.err'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; } &&
7247 { ac_try='test -s conftest.$ac_objext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_cv_c_bigendian=yes
7254 else
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7257
7258 ac_cv_c_bigendian=no
7259 fi
7260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7261 else
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 # It does not; compile a test program.
7266 if test "$cross_compiling" = yes; then
7267 # try to guess the endianness by grepping values into an object file
7268 ac_cv_c_bigendian=unknown
7269 cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h. */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7276 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7277 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7278 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7279 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7280 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7281 int
7282 main ()
7283 {
7284 _ascii (); _ebcdic ();
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -z "$ac_c_werror_flag"
7299 || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7312 ac_cv_c_bigendian=yes
7313 fi
7314 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7315 if test "$ac_cv_c_bigendian" = unknown; then
7316 ac_cv_c_bigendian=no
7317 else
7318 # finding both strings is unlikely to happen, but who knows?
7319 ac_cv_c_bigendian=unknown
7320 fi
7321 fi
7322 else
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326 fi
7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328 else
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 int
7336 main ()
7337 {
7338 /* Are we little or big endian? From Harbison&Steele. */
7339 union
7340 {
7341 long l;
7342 char c[sizeof (long)];
7343 } u;
7344 u.l = 1;
7345 exit (u.c[sizeof (long) - 1] == 1);
7346 }
7347 _ACEOF
7348 rm -f conftest$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; }; then
7359 ac_cv_c_bigendian=no
7360 else
7361 echo "$as_me: program exited with status $ac_status" >&5
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ( exit $ac_status )
7366 ac_cv_c_bigendian=yes
7367 fi
7368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 fi
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372 fi
7373 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7374 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7375 case $ac_cv_c_bigendian in
7376 yes)
7377
7378 cat >>confdefs.h <<\_ACEOF
7379 #define WORDS_BIGENDIAN 1
7380 _ACEOF
7381 ;;
7382 no)
7383 ;;
7384 *)
7385 { { echo "$as_me:$LINENO: error: unknown endianness
7386 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7387 echo "$as_me: error: unknown endianness
7388 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7389 { (exit 1); exit 1; }; } ;;
7390 esac
7391
7392 if test $ac_cv_c_bigendian = yes; then
7393 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7394 else
7395 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7396 fi
7397 else
7398 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7399 fi
7400 fi;
7401
7402 # NOTE: Don't add -Wall or -Wunused, they both include
7403 # -Wunused-parameter which reports bogus warnings.
7404 # NOTE: If you add to this list, remember to update
7405 # gdb/doc/gdbint.texinfo.
7406 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7407 -Wformat -Wparentheses -Wpointer-arith"
7408 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7409 if test x${CFLAGS+set} = xset; then
7410 case "${CFLAGS}" in
7411 *"-O0"* ) ;;
7412 *"-O"* )
7413 build_warnings="${build_warnings} -Wuninitialized"
7414 ;;
7415 esac
7416 else
7417 build_warnings="${build_warnings} -Wuninitialized"
7418 fi
7419 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7420 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7421 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7422 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7423 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7424 # -Woverloaded-virtual -Winline -Werror"
7425 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7426 if test "${enable_build_warnings+set}" = set; then
7427 enableval="$enable_build_warnings"
7428 case "${enableval}" in
7429 yes) ;;
7430 no) build_warnings="-w";;
7431 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7432 build_warnings="${build_warnings} ${t}";;
7433 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7434 build_warnings="${t} ${build_warnings}";;
7435 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7436 esac
7437 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7438 echo "Setting compiler warning flags = $build_warnings" 6>&1
7439 fi
7440 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7441 if test "${enable_sim_build_warnings+set}" = set; then
7442 enableval="$enable_sim_build_warnings"
7443 case "${enableval}" in
7444 yes) ;;
7445 no) build_warnings="-w";;
7446 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7447 build_warnings="${build_warnings} ${t}";;
7448 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7449 build_warnings="${t} ${build_warnings}";;
7450 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7451 esac
7452 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7453 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7454 fi
7455 fi; WARN_CFLAGS=""
7456 WERROR_CFLAGS=""
7457 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7458 then
7459 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7460 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7461 # Separate out the -Werror flag as some files just cannot be
7462 # compiled with it enabled.
7463 for w in ${build_warnings}; do
7464 case $w in
7465 -Werr*) WERROR_CFLAGS=-Werror ;;
7466 *) # Check that GCC accepts it
7467 saved_CFLAGS="$CFLAGS"
7468 CFLAGS="$CFLAGS $w"
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475
7476 int
7477 main ()
7478 {
7479
7480 ;
7481 return 0;
7482 }
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } &&
7493 { ac_try='test -z "$ac_c_werror_flag"
7494 || test ! -s conftest.err'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; } &&
7500 { ac_try='test -s conftest.$ac_objext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 WARN_CFLAGS="${WARN_CFLAGS} $w"
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7510
7511 fi
7512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513 CFLAGS="$saved_CFLAGS"
7514 esac
7515 done
7516 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7517 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7518 fi
7519
7520
7521 default_sim_reserved_bits="1"
7522 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7523 if test "${enable_sim_reserved_bits+set}" = set; then
7524 enableval="$enable_sim_reserved_bits"
7525 case "${enableval}" in
7526 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
7527 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
7528 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7529 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7530 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
7531 esac
7532 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
7533 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7534 fi
7535 else
7536 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7537 fi;
7538
7539 # DEPRECATED
7540 #
7541 # Instead of defining a `subtarget' macro, code should be checking
7542 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
7543 # in question.
7544 #
7545 case "${target}" in
7546 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
7547 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
7548 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7549 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7550 *) SIM_SUBTARGET="";;
7551 esac
7552
7553
7554
7555
7556 #
7557 # Select the byte order of the target
7558 #
7559 mips_endian=
7560 default_endian=
7561 case "${target}" in
7562 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7563 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
7564 mips64*-*-*) default_endian=BIG_ENDIAN ;;
7565 mips16*-*-*) default_endian=BIG_ENDIAN ;;
7566 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
7567 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
7568 mips*-*-*) default_endian=BIG_ENDIAN ;;
7569 *) default_endian=BIG_ENDIAN ;;
7570 esac
7571
7572 wire_endian="$mips_endian"
7573 default_endian="$default_endian"
7574 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7575 if test "${enable_sim_endian+set}" = set; then
7576 enableval="$enable_sim_endian"
7577 case "${enableval}" in
7578 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7579 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7580 yes) if test x"$wire_endian" != x; then
7581 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7582 else
7583 if test x"$default_endian" != x; then
7584 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7585 else
7586 echo "No hard-wired endian for target $target" 1>&6
7587 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
7588 fi
7589 fi;;
7590 no) if test x"$default_endian" != x; then
7591 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7592 else
7593 if test x"$wire_endian" != x; then
7594 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7595 else
7596 echo "No default endian for target $target" 1>&6
7597 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7598 fi
7599 fi;;
7600 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7601 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7602 { (exit 1); exit 1; }; }; sim_endian="";;
7603 esac
7604 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
7605 echo "Setting endian flags = $sim_endian" 6>&1
7606 fi
7607 else
7608 if test x"$default_endian" != x; then
7609 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7610 else
7611 if test x"$wire_endian" != x; then
7612 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7613 else
7614 sim_endian=
7615 fi
7616 fi
7617 fi;
7618
7619
7620
7621 #
7622 # Select the bitsize of the target
7623 #
7624 mips_addr_bitsize=
7625 case "${target}" in
7626 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7627 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7628 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7629 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7630 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7631 *) mips_bitsize=64 ; mips_msb=63 ;;
7632 esac
7633 wire_word_bitsize="$mips_bitsize"
7634 wire_word_msb="$mips_msb"
7635 wire_address_bitsize="$mips_addr_bitsize"
7636 wire_cell_bitsize=""
7637 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7638 if test "${enable_sim_bitsize+set}" = set; then
7639 enableval="$enable_sim_bitsize"
7640 sim_bitsize=
7641 case "${enableval}" in
7642 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7643 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7644 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7645 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7646 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7647 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7648 else
7649 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7650 fi ;;
7651 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7652 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7653 else
7654 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7655 fi ;;
7656 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7657 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7658 { (exit 1); exit 1; }; } ;;
7659 esac
7660 # address bitsize
7661 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7662 case x"${tmp}" in
7663 x ) ;;
7664 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7665 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7666 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7667 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7668 { (exit 1); exit 1; }; } ;;
7669 esac
7670 # cell bitsize
7671 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7672 case x"${tmp}" in
7673 x ) ;;
7674 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7675 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7676 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7677 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7678 { (exit 1); exit 1; }; } ;;
7679 esac
7680 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
7681 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7682 fi
7683 else
7684 sim_bitsize=""
7685 if test x"$wire_word_bitsize" != x; then
7686 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7687 fi
7688 if test x"$wire_word_msb" != x; then
7689 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7690 fi
7691 if test x"$wire_address_bitsize" != x; then
7692 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7693 fi
7694 if test x"$wire_cell_bitsize" != x; then
7695 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7696 fi
7697 fi;
7698
7699
7700
7701 #
7702 # Select the floating hardware support of the target
7703 #
7704 mips_fpu=HARDWARE_FLOATING_POINT
7705 mips_fpu_bitsize=
7706 case "${target}" in
7707 mips*tx39*) mips_fpu=HARD_FLOATING_POINT
7708 mips_fpu_bitsize=32
7709 ;;
7710 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
7711 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
7712 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7713 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7714 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
7715 *) mips_fpu=HARD_FLOATING_POINT ;;
7716 esac
7717
7718 default_sim_float="$mips_fpu"
7719 default_sim_float_bitsize="$mips_fpu_bitsize"
7720 # Check whether --enable-sim-float or --disable-sim-float was given.
7721 if test "${enable_sim_float+set}" = set; then
7722 enableval="$enable_sim_float"
7723 case "${enableval}" in
7724 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
7725 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
7726 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
7727 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
7728 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
7729 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
7730 { (exit 1); exit 1; }; }; sim_float="";;
7731 esac
7732 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
7733 echo "Setting float flags = $sim_float" 6>&1
7734 fi
7735 else
7736
7737 sim_float=
7738 if test x"${default_sim_float}" != x""; then
7739 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
7740 fi
7741 if test x"${default_sim_float_bitsize}" != x""; then
7742 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
7743 fi
7744
7745 fi;
7746
7747
7748
7749 #
7750 # Select the level of SMP support
7751 #
7752 case "${target}" in
7753 *) mips_smp=0 ;;
7754 esac
7755
7756 default_sim_smp="$mips_smp"
7757 # Check whether --enable-sim-smp or --disable-sim-smp was given.
7758 if test "${enable_sim_smp+set}" = set; then
7759 enableval="$enable_sim_smp"
7760 case "${enableval}" in
7761 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
7762 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
7763 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
7764 esac
7765 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
7766 echo "Setting smp flags = $sim_smp" 6>&1
7767 fi
7768 else
7769 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
7770 if test x"$silent" != x"yes"; then
7771 echo "Setting smp flags = $sim_smp" 6>&1
7772 fi
7773 fi;
7774
7775
7776
7777 #
7778 # Select the IGEN architecture
7779 #
7780 sim_gen=IGEN
7781 sim_igen_machine="-M mipsIV"
7782 sim_m16_machine="-M mips16,mipsIII"
7783 sim_igen_filter="32,64,f"
7784 sim_m16_filter="16"
7785 sim_mach_default="mips8000"
7786
7787 case "${target}" in
7788 mips*tx39*) sim_gen=IGEN
7789 sim_igen_filter="32,f"
7790 sim_igen_machine="-M r3900"
7791 ;;
7792 mips64vr43*-*-*) sim_gen=IGEN
7793 sim_igen_machine="-M mipsIV"
7794 sim_mach_default="mips8000"
7795 ;;
7796 mips64vr5*-*-*) sim_gen=IGEN
7797 sim_igen_machine="-M vr5000"
7798 sim_mach_default="mips5000"
7799 ;;
7800 mips64vr41*) sim_gen=M16
7801 sim_igen_machine="-M vr4100"
7802 sim_m16_machine="-M vr4100"
7803 sim_igen_filter="32,64,f"
7804 sim_m16_filter="16"
7805 sim_mach_default="mips4100"
7806 ;;
7807 mips64vr-*-* | mips64vrel-*-*)
7808 sim_gen=MULTI
7809 sim_multi_configs="\
7810 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
7811 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
7812 vr5000:mipsIV:32,64,f:mips4300,mips5000\
7813 vr5400:mipsIV,vr5400:32,64,f:mips5400\
7814 vr5500:mipsIV,vr5500:32,64,f:mips5500"
7815 sim_multi_default=mips5000
7816 ;;
7817 mips64*-*-*) sim_igen_filter="32,64,f"
7818 sim_gen=IGEN
7819 ;;
7820 mips16*-*-*) sim_gen=M16
7821 sim_igen_filter="32,64,f"
7822 sim_m16_filter="16"
7823 ;;
7824 mipsisa32r2*-*-*) sim_gen=M16
7825 sim_igen_machine="-M mips32r2,mips16,mips16e,dsp"
7826 sim_m16_machine="-M mips16,mips16e,mips32r2"
7827 sim_igen_filter="32,f"
7828 sim_mach_default="mipsisa32r2"
7829 ;;
7830 mipsisa32*-*-*) sim_gen=M16
7831 sim_igen_machine="-M mips32,mips16,mips16e,dsp"
7832 sim_m16_machine="-M mips16,mips16e,mips32"
7833 sim_igen_filter="32,f"
7834 sim_mach_default="mipsisa32"
7835 ;;
7836 mipsisa64r2*-*-*) sim_gen=M16
7837 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,dsp"
7838 sim_m16_machine="-M mips16,mips16e,mips64r2"
7839 sim_igen_filter="32,64,f"
7840 sim_mach_default="mipsisa64r2"
7841 ;;
7842 mipsisa64sb1*-*-*) sim_gen=IGEN
7843 sim_igen_machine="-M mips64,mips3d,sb1"
7844 sim_igen_filter="32,64,f"
7845 sim_mach_default="mips_sb1"
7846 ;;
7847 mipsisa64*-*-*) sim_gen=M16
7848 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,dsp"
7849 sim_m16_machine="-M mips16,mips16e,mips64"
7850 sim_igen_filter="32,64,f"
7851 sim_mach_default="mipsisa64"
7852 ;;
7853 mips*lsi*) sim_gen=M16
7854 sim_igen_machine="-M mipsIII,mips16"
7855 sim_m16_machine="-M mips16,mipsIII"
7856 sim_igen_filter="32,f"
7857 sim_m16_filter="16"
7858 sim_mach_default="mips4000"
7859 ;;
7860 mips*-*-*) sim_gen=IGEN
7861 sim_igen_filter="32,f"
7862 ;;
7863 esac
7864
7865 # The MULTI generator can combine several simulation engines into one.
7866 # executable. A configuration which uses the MULTI should set two
7867 # variables: ${sim_multi_configs} and ${sim_multi_default}.
7868 #
7869 # ${sim_multi_configs} is the list of engines to build. Each
7870 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
7871 # where:
7872 #
7873 # - NAME is a C-compatible prefix for the engine,
7874 # - MACHINE is a -M argument,
7875 # - FILTER is a -F argument, and
7876 # - BFDMACHS is a comma-separated list of bfd machines that the
7877 # simulator can run.
7878 #
7879 # Each entry will have a separate simulation engine whose prefix is
7880 # m32<NAME>. If the machine list includes "mips16", there will also
7881 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
7882 # generated using the same machine list as the 32-bit version,
7883 # but the filter will be "16" instead of FILTER.
7884 #
7885 # The simulator compares the bfd mach against BFDMACHS to decide
7886 # which engine to use. Entries in BFDMACHS should be bfd_mach
7887 # values with "bfd_mach_" removed. ${sim_multi_default} says
7888 # which entry should be the default.
7889 if test ${sim_gen} = MULTI; then
7890
7891 # Simple sanity check.
7892 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
7893 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
7894 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
7895 { (exit 1); exit 1; }; }
7896 fi
7897
7898 # Start in a known state.
7899 rm -f multi-include.h multi-run.c
7900 sim_multi_flags=
7901 sim_multi_src=
7902 sim_multi_obj=multi-run.o
7903 sim_multi_igen_configs=
7904 sim_seen_default=no
7905
7906 cat << __EOF__ > multi-run.c
7907 /* Main entry point for MULTI simulators.
7908 Copyright (C) 2003 Free Software Foundation, Inc.
7909
7910 This program is free software; you can redistribute it and/or modify
7911 it under the terms of the GNU General Public License as published by
7912 the Free Software Foundation; either version 2 of the License, or
7913 (at your option) any later version.
7914
7915 This program is distributed in the hope that it will be useful,
7916 but WITHOUT ANY WARRANTY; without even the implied warranty of
7917 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7918 GNU General Public License for more details.
7919
7920 You should have received a copy of the GNU General Public License
7921 along with this program; if not, write to the Free Software
7922 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7923
7924 --
7925
7926 This file was generated by sim/mips/configure. */
7927
7928 #include "sim-main.h"
7929 #include "multi-include.h"
7930
7931 #define SD sd
7932 #define CPU cpu
7933
7934 void
7935 sim_engine_run (SIM_DESC sd,
7936 int next_cpu_nr,
7937 int nr_cpus,
7938 int signal) /* ignore */
7939 {
7940 int mach;
7941
7942 if (STATE_ARCHITECTURE (sd) == NULL)
7943 mach = bfd_mach_${sim_multi_default};
7944 else
7945 mach = STATE_ARCHITECTURE (SD)->mach;
7946
7947 switch (mach)
7948 {
7949 __EOF__
7950
7951 for fc in ${sim_multi_configs}; do
7952
7953 # Split up the entry. ${c} contains the first three elements.
7954 # Note: outer sqaure brackets are m4 quotes.
7955 c=`echo ${fc} | sed 's/:[^:]*$//'`
7956 bfdmachs=`echo ${fc} | sed 's/.*://'`
7957 name=`echo ${c} | sed 's/:.*//'`
7958 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
7959 filter=`echo ${c} | sed 's/.*://'`
7960
7961 # Build the following lists:
7962 #
7963 # sim_multi_flags: all -M and -F flags used by the simulator
7964 # sim_multi_src: all makefile-generated source files
7965 # sim_multi_obj: the objects for ${sim_multi_src}
7966 # sim_multi_igen_configs: igen configuration strings.
7967 #
7968 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
7969 # or m16) followed by the NAME, MACHINE and FILTER part of
7970 # the ${sim_multi_configs} entry.
7971 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
7972
7973 # Check whether mips16 handling is needed.
7974 case ${c} in
7975 *:*mips16*:*)
7976 # Run igen twice, once for normal mode and once for mips16.
7977 ws="m32 m16"
7978
7979 # The top-level function for the mips16 simulator is
7980 # in a file m16${name}_run.c, generated by the
7981 # tmp-run-multi Makefile rule.
7982 sim_multi_src="${sim_multi_src} m16${name}_run.c"
7983 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
7984 sim_multi_flags="${sim_multi_flags} -F 16"
7985 ;;
7986 *)
7987 ws=m32
7988 ;;
7989 esac
7990
7991 # Now add the list of igen-generated files to ${sim_multi_src}
7992 # and ${sim_multi_obj}.
7993 for w in ${ws}; do
7994 for base in engine icache idecode model semantics support; do
7995 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
7996 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
7997 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
7998 done
7999 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
8000 done
8001
8002 # Add an include for the engine.h file. This file declares the
8003 # top-level foo_engine_run() function.
8004 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
8005
8006 # Add case statements for this engine to sim_engine_run().
8007 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
8008 echo " case bfd_mach_${mach}:" >> multi-run.c
8009 if test ${mach} = ${sim_multi_default}; then
8010 echo " default:" >> multi-run.c
8011 sim_seen_default=yes
8012 fi
8013 done
8014 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
8015 >> multi-run.c
8016 echo " break;" >> multi-run.c
8017 done
8018
8019 # Check whether we added a 'default:' label.
8020 if test ${sim_seen_default} = no; then
8021 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
8022 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
8023 { (exit 1); exit 1; }; }
8024 fi
8025
8026 cat << __EOF__ >> multi-run.c
8027 }
8028 }
8029
8030 int
8031 mips_mach_multi (SIM_DESC sd)
8032 {
8033 if (STATE_ARCHITECTURE (sd) == NULL)
8034 return bfd_mach_${sim_multi_default};
8035
8036 switch (STATE_ARCHITECTURE (SD)->mach)
8037 {
8038 __EOF__
8039
8040 # Add case statements for this engine to mips_mach_multi().
8041 for fc in ${sim_multi_configs}; do
8042
8043 # Split up the entry. ${c} contains the first three elements.
8044 # Note: outer sqaure brackets are m4 quotes.
8045 c=`echo ${fc} | sed 's/:[^:]*$//'`
8046 bfdmachs=`echo ${fc} | sed 's/.*://'`
8047
8048 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
8049 echo " case bfd_mach_${mach}:" >> multi-run.c
8050 done
8051 done
8052
8053 cat << __EOF__ >> multi-run.c
8054 return (STATE_ARCHITECTURE (SD)->mach);
8055 default:
8056 return bfd_mach_${sim_multi_default};
8057 }
8058 }
8059 __EOF__
8060
8061 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
8062 else
8063 # For clean-extra
8064 sim_multi_src=doesnt-exist.c
8065
8066 if test x"${sim_mach_default}" = x""; then
8067 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_mach_default} not defined" >&5
8068 echo "$as_me: error: Error in configure.in: \${sim_mach_default} not defined" >&2;}
8069 { (exit 1); exit 1; }; }
8070 fi
8071 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
8072 fi
8073 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
8074 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084 #
8085 # Add simulated hardware devices
8086 #
8087 hw_enabled=no
8088 case "${target}" in
8089 mips*tx39*)
8090 hw_enabled=yes
8091 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
8092 mips_extra_objs="dv-sockser.o"
8093 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
8094 ;;
8095 *)
8096 mips_extra_objs=""
8097 ;;
8098 esac
8099
8100 if test x"$hw_enabled" = x"yes"; then
8101 sim_hw_p=yes
8102 else
8103 sim_hw_p=no
8104 fi
8105 if test "$hw_devices"; then
8106 hardware="core pal glue"
8107 else
8108 hardware="core pal glue $hw_extra_devices"
8109 fi
8110 sim_hw_cflags="-DWITH_HW=1"
8111 sim_hw="$hardware"
8112 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
8113 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
8114 if test "${enable_sim_hardware+set}" = set; then
8115 enableval="$enable_sim_hardware"
8116
8117 case "${enableval}" in
8118 yes) sim_hw_p=yes;;
8119 no) sim_hw_p=no;;
8120 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
8121 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
8122 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
8123 esac
8124 if test "$sim_hw_p" != yes; then
8125 sim_hw_objs=
8126 sim_hw_cflags="-DWITH_HW=0"
8127 sim_hw=
8128 else
8129 sim_hw_cflags="-DWITH_HW=1"
8130 # remove duplicates
8131 sim_hw=""
8132 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
8133 for i in $hardware ; do
8134 case " $sim_hw " in
8135 *" $i "*) ;;
8136 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
8137 esac
8138 done
8139 fi
8140 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
8141 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
8142 fi
8143 else
8144
8145 if test "$sim_hw_p" != yes; then
8146 sim_hw_objs=
8147 sim_hw_cflags="-DWITH_HW=0"
8148 sim_hw=
8149 fi
8150 if test x"$silent" != x"yes"; then
8151 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
8152 fi
8153 fi;
8154
8155
8156
8157 # Choose simulator engine
8158 case "${target}" in
8159 *) mips_igen_engine="engine.o"
8160 ;;
8161 esac
8162
8163
8164
8165 echo "$as_me:$LINENO: checking for X" >&5
8166 echo $ECHO_N "checking for X... $ECHO_C" >&6
8167
8168
8169 # Check whether --with-x or --without-x was given.
8170 if test "${with_x+set}" = set; then
8171 withval="$with_x"
8172
8173 fi;
8174 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8175 if test "x$with_x" = xno; then
8176 # The user explicitly disabled X.
8177 have_x=disabled
8178 else
8179 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8180 # Both variables are already set.
8181 have_x=yes
8182 else
8183 if test "${ac_cv_have_x+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 # One or both of the vars are not set, and there is no cached value.
8187 ac_x_includes=no ac_x_libraries=no
8188 rm -fr conftest.dir
8189 if mkdir conftest.dir; then
8190 cd conftest.dir
8191 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8192 cat >Imakefile <<'_ACEOF'
8193 acfindx:
8194 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8195 _ACEOF
8196 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8197 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8198 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8199 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8200 for ac_extension in a so sl; do
8201 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8202 test -f $ac_im_libdir/libX11.$ac_extension; then
8203 ac_im_usrlibdir=$ac_im_libdir; break
8204 fi
8205 done
8206 # Screen out bogus values from the imake configuration. They are
8207 # bogus both because they are the default anyway, and because
8208 # using them would break gcc on systems where it needs fixed includes.
8209 case $ac_im_incroot in
8210 /usr/include) ;;
8211 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8212 esac
8213 case $ac_im_usrlibdir in
8214 /usr/lib | /lib) ;;
8215 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8216 esac
8217 fi
8218 cd ..
8219 rm -fr conftest.dir
8220 fi
8221
8222 # Standard set of common directories for X headers.
8223 # Check X11 before X11Rn because it is often a symlink to the current release.
8224 ac_x_header_dirs='
8225 /usr/X11/include
8226 /usr/X11R6/include
8227 /usr/X11R5/include
8228 /usr/X11R4/include
8229
8230 /usr/include/X11
8231 /usr/include/X11R6
8232 /usr/include/X11R5
8233 /usr/include/X11R4
8234
8235 /usr/local/X11/include
8236 /usr/local/X11R6/include
8237 /usr/local/X11R5/include
8238 /usr/local/X11R4/include
8239
8240 /usr/local/include/X11
8241 /usr/local/include/X11R6
8242 /usr/local/include/X11R5
8243 /usr/local/include/X11R4
8244
8245 /usr/X386/include
8246 /usr/x386/include
8247 /usr/XFree86/include/X11
8248
8249 /usr/include
8250 /usr/local/include
8251 /usr/unsupported/include
8252 /usr/athena/include
8253 /usr/local/x11r5/include
8254 /usr/lpp/Xamples/include
8255
8256 /usr/openwin/include
8257 /usr/openwin/share/include'
8258
8259 if test "$ac_x_includes" = no; then
8260 # Guess where to find include files, by looking for Intrinsic.h.
8261 # First, try using that file with no special directory specified.
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 #include <X11/Intrinsic.h>
8269 _ACEOF
8270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } >/dev/null; then
8278 if test -s conftest.err; then
8279 ac_cpp_err=$ac_c_preproc_warn_flag
8280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8281 else
8282 ac_cpp_err=
8283 fi
8284 else
8285 ac_cpp_err=yes
8286 fi
8287 if test -z "$ac_cpp_err"; then
8288 # We can compile using X headers with no special include directory.
8289 ac_x_includes=
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 for ac_dir in $ac_x_header_dirs; do
8295 if test -r "$ac_dir/X11/Intrinsic.h"; then
8296 ac_x_includes=$ac_dir
8297 break
8298 fi
8299 done
8300 fi
8301 rm -f conftest.err conftest.$ac_ext
8302 fi # $ac_x_includes = no
8303
8304 if test "$ac_x_libraries" = no; then
8305 # Check for the libraries.
8306 # See if we find them without any special options.
8307 # Don't add to $LIBS permanently.
8308 ac_save_LIBS=$LIBS
8309 LIBS="-lXt $LIBS"
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 #include <X11/Intrinsic.h>
8317 int
8318 main ()
8319 {
8320 XtMalloc (0)
8321 ;
8322 return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag"
8335 || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest$ac_exeext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 LIBS=$ac_save_LIBS
8348 # We can link X programs with no special library path.
8349 ac_x_libraries=
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354 LIBS=$ac_save_LIBS
8355 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8356 do
8357 # Don't even attempt the hair of trying to link an X program!
8358 for ac_extension in a so sl; do
8359 if test -r $ac_dir/libXt.$ac_extension; then
8360 ac_x_libraries=$ac_dir
8361 break 2
8362 fi
8363 done
8364 done
8365 fi
8366 rm -f conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8368 fi # $ac_x_libraries = no
8369
8370 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8371 # Didn't find X anywhere. Cache the known absence of X.
8372 ac_cv_have_x="have_x=no"
8373 else
8374 # Record where we found X for the cache.
8375 ac_cv_have_x="have_x=yes \
8376 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8377 fi
8378 fi
8379
8380 fi
8381 eval "$ac_cv_have_x"
8382 fi # $with_x != no
8383
8384 if test "$have_x" != yes; then
8385 echo "$as_me:$LINENO: result: $have_x" >&5
8386 echo "${ECHO_T}$have_x" >&6
8387 no_x=yes
8388 else
8389 # If each of the values was on the command line, it overrides each guess.
8390 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8391 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8392 # Update the cache value to reflect the command line values.
8393 ac_cv_have_x="have_x=yes \
8394 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8395 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8396 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8397 fi
8398
8399 mips_extra_libs=""
8400
8401
8402
8403
8404
8405
8406 for ac_header in string.h strings.h stdlib.h stdlib.h
8407 do
8408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo "$as_me:$LINENO: checking for $ac_header" >&5
8411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 fi
8415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8417 else
8418 # Is the header compilable?
8419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #include <$ac_header>
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag"
8440 || test ! -s conftest.err'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try='test -s conftest.$ac_objext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_header_compiler=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 ac_header_compiler=no
8458 fi
8459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8461 echo "${ECHO_T}$ac_header_compiler" >&6
8462
8463 # Is the header present?
8464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 #include <$ac_header>
8473 _ACEOF
8474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev/null; then
8482 if test -s conftest.err; then
8483 ac_cpp_err=$ac_c_preproc_warn_flag
8484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8485 else
8486 ac_cpp_err=
8487 fi
8488 else
8489 ac_cpp_err=yes
8490 fi
8491 if test -z "$ac_cpp_err"; then
8492 ac_header_preproc=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 ac_header_preproc=no
8498 fi
8499 rm -f conftest.err conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8501 echo "${ECHO_T}$ac_header_preproc" >&6
8502
8503 # So? What about this header?
8504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8505 yes:no: )
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8510 ac_header_preproc=yes
8511 ;;
8512 no:yes:* )
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8525 (
8526 cat <<\_ASBOX
8527 ## ------------------------------------------ ##
8528 ## Report this to the AC_PACKAGE_NAME lists. ##
8529 ## ------------------------------------------ ##
8530 _ASBOX
8531 ) |
8532 sed "s/^/$as_me: WARNING: /" >&2
8533 ;;
8534 esac
8535 echo "$as_me:$LINENO: checking for $ac_header" >&5
8536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 eval "$as_ac_Header=\$ac_header_preproc"
8541 fi
8542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8544
8545 fi
8546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8547 cat >>confdefs.h <<_ACEOF
8548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8549 _ACEOF
8550
8551 fi
8552
8553 done
8554
8555
8556 echo "$as_me:$LINENO: checking for fabs in -lm" >&5
8557 echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
8558 if test "${ac_cv_lib_m_fabs+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561 ac_check_lib_save_LIBS=$LIBS
8562 LIBS="-lm $LIBS"
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569
8570 /* Override any gcc2 internal prototype to avoid an error. */
8571 #ifdef __cplusplus
8572 extern "C"
8573 #endif
8574 /* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8576 char fabs ();
8577 int
8578 main ()
8579 {
8580 fabs ();
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_cv_lib_m_fabs=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_cv_lib_m_fabs=no
8613 fi
8614 rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 LIBS=$ac_check_lib_save_LIBS
8617 fi
8618 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
8619 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
8620 if test $ac_cv_lib_m_fabs = yes; then
8621 cat >>confdefs.h <<_ACEOF
8622 #define HAVE_LIBM 1
8623 _ACEOF
8624
8625 LIBS="-lm $LIBS"
8626
8627 fi
8628
8629
8630
8631
8632 for ac_func in aint anint sqrt
8633 do
8634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8635 echo "$as_me:$LINENO: checking for $ac_func" >&5
8636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_var+set}\" = set"; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8648 #define $ac_func innocuous_$ac_func
8649
8650 /* System header to define __stub macros and hopefully few prototypes,
8651 which can conflict with char $ac_func (); below.
8652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8653 <limits.h> exists even on freestanding compilers. */
8654
8655 #ifdef __STDC__
8656 # include <limits.h>
8657 #else
8658 # include <assert.h>
8659 #endif
8660
8661 #undef $ac_func
8662
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 {
8667 #endif
8668 /* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8670 char $ac_func ();
8671 /* The GNU C library defines this for functions which it implements
8672 to always fail with ENOSYS. Some functions are actually named
8673 something starting with __ and the normal name is an alias. */
8674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8675 choke me
8676 #else
8677 char (*f) () = $ac_func;
8678 #endif
8679 #ifdef __cplusplus
8680 }
8681 #endif
8682
8683 int
8684 main ()
8685 {
8686 return f != $ac_func;
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693 (eval $ac_link) 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag"
8701 || test ! -s conftest.err'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest$ac_exeext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 eval "$as_ac_var=yes"
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718 eval "$as_ac_var=no"
8719 fi
8720 rm -f conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8722 fi
8723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8725 if test `eval echo '${'$as_ac_var'}'` = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8728 _ACEOF
8729
8730 fi
8731 done
8732
8733
8734
8735 ac_sources="$sim_link_files"
8736 ac_dests="$sim_link_links"
8737 while test -n "$ac_sources"; do
8738 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8739 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8740 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
8741 done
8742 ac_config_links="$ac_config_links $ac_config_links_1"
8743
8744 cgen_breaks=""
8745 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
8746 cgen_breaks="break cgen_rtx_error";
8747 fi
8748
8749 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
8750
8751 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
8752
8753 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
8754
8755 ac_config_commands="$ac_config_commands Makefile"
8756
8757 ac_config_commands="$ac_config_commands stamp-h"
8758
8759 cat >confcache <<\_ACEOF
8760 # This file is a shell script that caches the results of configure
8761 # tests run on this system so they can be shared between configure
8762 # scripts and configure runs, see configure's option --config-cache.
8763 # It is not useful on other systems. If it contains results you don't
8764 # want to keep, you may remove or edit it.
8765 #
8766 # config.status only pays attention to the cache file if you give it
8767 # the --recheck option to rerun configure.
8768 #
8769 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8771 # following values.
8772
8773 _ACEOF
8774
8775 # The following way of writing the cache mishandles newlines in values,
8776 # but we know of no workaround that is simple, portable, and efficient.
8777 # So, don't put newlines in cache variables' values.
8778 # Ultrix sh set writes to stderr and can't be redirected directly,
8779 # and sets the high bit in the cache file unless we assign to the vars.
8780 {
8781 (set) 2>&1 |
8782 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8783 *ac_space=\ *)
8784 # `set' does not quote correctly, so add quotes (double-quote
8785 # substitution turns \\\\ into \\, and sed turns \\ into \).
8786 sed -n \
8787 "s/'/'\\\\''/g;
8788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8789 ;;
8790 *)
8791 # `set' quotes correctly as required by POSIX, so do not add quotes.
8792 sed -n \
8793 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8794 ;;
8795 esac;
8796 } |
8797 sed '
8798 t clear
8799 : clear
8800 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8801 t end
8802 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8803 : end' >>confcache
8804 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8805 if test -w $cache_file; then
8806 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8807 cat confcache >$cache_file
8808 else
8809 echo "not updating unwritable cache $cache_file"
8810 fi
8811 fi
8812 rm -f confcache
8813
8814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8815 # Let make expand exec_prefix.
8816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8817
8818 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8819 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8820 # trailing colons and then remove the whole line if VPATH becomes empty
8821 # (actually we leave an empty line to preserve line numbers).
8822 if test "x$srcdir" = x.; then
8823 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8824 s/:*\$(srcdir):*/:/;
8825 s/:*\${srcdir}:*/:/;
8826 s/:*@srcdir@:*/:/;
8827 s/^\([^=]*=[ ]*\):*/\1/;
8828 s/:*$//;
8829 s/^[^=]*=[ ]*$//;
8830 }'
8831 fi
8832
8833 DEFS=-DHAVE_CONFIG_H
8834
8835 ac_libobjs=
8836 ac_ltlibobjs=
8837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8838 # 1. Remove the extension, and $U if already installed.
8839 ac_i=`echo "$ac_i" |
8840 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8841 # 2. Add them.
8842 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8843 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8844 done
8845 LIBOBJS=$ac_libobjs
8846
8847 LTLIBOBJS=$ac_ltlibobjs
8848
8849
8850
8851 : ${CONFIG_STATUS=./config.status}
8852 ac_clean_files_save=$ac_clean_files
8853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8854 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8855 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8856 cat >$CONFIG_STATUS <<_ACEOF
8857 #! $SHELL
8858 # Generated by $as_me.
8859 # Run this file to recreate the current configuration.
8860 # Compiler output produced by configure, useful for debugging
8861 # configure, is in config.log if it exists.
8862
8863 debug=false
8864 ac_cs_recheck=false
8865 ac_cs_silent=false
8866 SHELL=\${CONFIG_SHELL-$SHELL}
8867 _ACEOF
8868
8869 cat >>$CONFIG_STATUS <<\_ACEOF
8870 ## --------------------- ##
8871 ## M4sh Initialization. ##
8872 ## --------------------- ##
8873
8874 # Be Bourne compatible
8875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8876 emulate sh
8877 NULLCMD=:
8878 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8879 # is contrary to our usage. Disable this feature.
8880 alias -g '${1+"$@"}'='"$@"'
8881 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8882 set -o posix
8883 fi
8884 DUALCASE=1; export DUALCASE # for MKS sh
8885
8886 # Support unset when possible.
8887 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8888 as_unset=unset
8889 else
8890 as_unset=false
8891 fi
8892
8893
8894 # Work around bugs in pre-3.0 UWIN ksh.
8895 $as_unset ENV MAIL MAILPATH
8896 PS1='$ '
8897 PS2='> '
8898 PS4='+ '
8899
8900 # NLS nuisances.
8901 for as_var in \
8902 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8903 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8904 LC_TELEPHONE LC_TIME
8905 do
8906 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8907 eval $as_var=C; export $as_var
8908 else
8909 $as_unset $as_var
8910 fi
8911 done
8912
8913 # Required to use basename.
8914 if expr a : '\(a\)' >/dev/null 2>&1; then
8915 as_expr=expr
8916 else
8917 as_expr=false
8918 fi
8919
8920 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8921 as_basename=basename
8922 else
8923 as_basename=false
8924 fi
8925
8926
8927 # Name of the executable.
8928 as_me=`$as_basename "$0" ||
8929 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8930 X"$0" : 'X\(//\)$' \| \
8931 X"$0" : 'X\(/\)$' \| \
8932 . : '\(.\)' 2>/dev/null ||
8933 echo X/"$0" |
8934 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8935 /^X\/\(\/\/\)$/{ s//\1/; q; }
8936 /^X\/\(\/\).*/{ s//\1/; q; }
8937 s/.*/./; q'`
8938
8939
8940 # PATH needs CR, and LINENO needs CR and PATH.
8941 # Avoid depending upon Character Ranges.
8942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8945 as_cr_digits='0123456789'
8946 as_cr_alnum=$as_cr_Letters$as_cr_digits
8947
8948 # The user is always right.
8949 if test "${PATH_SEPARATOR+set}" != set; then
8950 echo "#! /bin/sh" >conf$$.sh
8951 echo "exit 0" >>conf$$.sh
8952 chmod +x conf$$.sh
8953 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8954 PATH_SEPARATOR=';'
8955 else
8956 PATH_SEPARATOR=:
8957 fi
8958 rm -f conf$$.sh
8959 fi
8960
8961
8962 as_lineno_1=$LINENO
8963 as_lineno_2=$LINENO
8964 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8965 test "x$as_lineno_1" != "x$as_lineno_2" &&
8966 test "x$as_lineno_3" = "x$as_lineno_2" || {
8967 # Find who we are. Look in the path if we contain no path at all
8968 # relative or not.
8969 case $0 in
8970 *[\\/]* ) as_myself=$0 ;;
8971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8977 done
8978
8979 ;;
8980 esac
8981 # We did not find ourselves, most probably we were run as `sh COMMAND'
8982 # in which case we are not to be found in the path.
8983 if test "x$as_myself" = x; then
8984 as_myself=$0
8985 fi
8986 if test ! -f "$as_myself"; then
8987 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8988 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8989 { (exit 1); exit 1; }; }
8990 fi
8991 case $CONFIG_SHELL in
8992 '')
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8995 do
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for as_base in sh bash ksh sh5; do
8999 case $as_dir in
9000 /*)
9001 if ("$as_dir/$as_base" -c '
9002 as_lineno_1=$LINENO
9003 as_lineno_2=$LINENO
9004 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9005 test "x$as_lineno_1" != "x$as_lineno_2" &&
9006 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9007 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9008 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9009 CONFIG_SHELL=$as_dir/$as_base
9010 export CONFIG_SHELL
9011 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9012 fi;;
9013 esac
9014 done
9015 done
9016 ;;
9017 esac
9018
9019 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9020 # uniformly replaced by the line number. The first 'sed' inserts a
9021 # line-number line before each line; the second 'sed' does the real
9022 # work. The second script uses 'N' to pair each line-number line
9023 # with the numbered line, and appends trailing '-' during
9024 # substitution so that $LINENO is not a special case at line end.
9025 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9026 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9027 sed '=' <$as_myself |
9028 sed '
9029 N
9030 s,$,-,
9031 : loop
9032 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9033 t loop
9034 s,-$,,
9035 s,^['$as_cr_digits']*\n,,
9036 ' >$as_me.lineno &&
9037 chmod +x $as_me.lineno ||
9038 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9039 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9040 { (exit 1); exit 1; }; }
9041
9042 # Don't try to exec as it changes $[0], causing all sort of problems
9043 # (the dirname of $[0] is not the place where we might find the
9044 # original and so on. Autoconf is especially sensible to this).
9045 . ./$as_me.lineno
9046 # Exit status is that of the last command.
9047 exit
9048 }
9049
9050
9051 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9052 *c*,-n*) ECHO_N= ECHO_C='
9053 ' ECHO_T=' ' ;;
9054 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9055 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9056 esac
9057
9058 if expr a : '\(a\)' >/dev/null 2>&1; then
9059 as_expr=expr
9060 else
9061 as_expr=false
9062 fi
9063
9064 rm -f conf$$ conf$$.exe conf$$.file
9065 echo >conf$$.file
9066 if ln -s conf$$.file conf$$ 2>/dev/null; then
9067 # We could just check for DJGPP; but this test a) works b) is more generic
9068 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9069 if test -f conf$$.exe; then
9070 # Don't use ln at all; we don't have any links
9071 as_ln_s='cp -p'
9072 else
9073 as_ln_s='ln -s'
9074 fi
9075 elif ln conf$$.file conf$$ 2>/dev/null; then
9076 as_ln_s=ln
9077 else
9078 as_ln_s='cp -p'
9079 fi
9080 rm -f conf$$ conf$$.exe conf$$.file
9081
9082 if mkdir -p . 2>/dev/null; then
9083 as_mkdir_p=:
9084 else
9085 test -d ./-p && rmdir ./-p
9086 as_mkdir_p=false
9087 fi
9088
9089 as_executable_p="test -f"
9090
9091 # Sed expression to map a string onto a valid CPP name.
9092 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9093
9094 # Sed expression to map a string onto a valid variable name.
9095 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9096
9097
9098 # IFS
9099 # We need space, tab and new line, in precisely that order.
9100 as_nl='
9101 '
9102 IFS=" $as_nl"
9103
9104 # CDPATH.
9105 $as_unset CDPATH
9106
9107 exec 6>&1
9108
9109 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9110 # report actual input values of CONFIG_FILES etc. instead of their
9111 # values after options handling. Logging --version etc. is OK.
9112 exec 5>>config.log
9113 {
9114 echo
9115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9116 ## Running $as_me. ##
9117 _ASBOX
9118 } >&5
9119 cat >&5 <<_CSEOF
9120
9121 This file was extended by $as_me, which was
9122 generated by GNU Autoconf 2.59. Invocation command line was
9123
9124 CONFIG_FILES = $CONFIG_FILES
9125 CONFIG_HEADERS = $CONFIG_HEADERS
9126 CONFIG_LINKS = $CONFIG_LINKS
9127 CONFIG_COMMANDS = $CONFIG_COMMANDS
9128 $ $0 $@
9129
9130 _CSEOF
9131 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9132 echo >&5
9133 _ACEOF
9134
9135 # Files that config.status was made for.
9136 if test -n "$ac_config_files"; then
9137 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9138 fi
9139
9140 if test -n "$ac_config_headers"; then
9141 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9142 fi
9143
9144 if test -n "$ac_config_links"; then
9145 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9146 fi
9147
9148 if test -n "$ac_config_commands"; then
9149 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9150 fi
9151
9152 cat >>$CONFIG_STATUS <<\_ACEOF
9153
9154 ac_cs_usage="\
9155 \`$as_me' instantiates files from templates according to the
9156 current configuration.
9157
9158 Usage: $0 [OPTIONS] [FILE]...
9159
9160 -h, --help print this help, then exit
9161 -V, --version print version number, then exit
9162 -q, --quiet do not print progress messages
9163 -d, --debug don't remove temporary files
9164 --recheck update $as_me by reconfiguring in the same conditions
9165 --file=FILE[:TEMPLATE]
9166 instantiate the configuration file FILE
9167 --header=FILE[:TEMPLATE]
9168 instantiate the configuration header FILE
9169
9170 Configuration files:
9171 $config_files
9172
9173 Configuration headers:
9174 $config_headers
9175
9176 Configuration links:
9177 $config_links
9178
9179 Configuration commands:
9180 $config_commands
9181
9182 Report bugs to <bug-autoconf@gnu.org>."
9183 _ACEOF
9184
9185 cat >>$CONFIG_STATUS <<_ACEOF
9186 ac_cs_version="\\
9187 config.status
9188 configured by $0, generated by GNU Autoconf 2.59,
9189 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9190
9191 Copyright (C) 2003 Free Software Foundation, Inc.
9192 This config.status script is free software; the Free Software Foundation
9193 gives unlimited permission to copy, distribute and modify it."
9194 srcdir=$srcdir
9195 INSTALL="$INSTALL"
9196 _ACEOF
9197
9198 cat >>$CONFIG_STATUS <<\_ACEOF
9199 # If no file are specified by the user, then we need to provide default
9200 # value. By we need to know if files were specified by the user.
9201 ac_need_defaults=:
9202 while test $# != 0
9203 do
9204 case $1 in
9205 --*=*)
9206 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9207 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9208 ac_shift=:
9209 ;;
9210 -*)
9211 ac_option=$1
9212 ac_optarg=$2
9213 ac_shift=shift
9214 ;;
9215 *) # This is not an option, so the user has probably given explicit
9216 # arguments.
9217 ac_option=$1
9218 ac_need_defaults=false;;
9219 esac
9220
9221 case $ac_option in
9222 # Handling of the options.
9223 _ACEOF
9224 cat >>$CONFIG_STATUS <<\_ACEOF
9225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9226 ac_cs_recheck=: ;;
9227 --version | --vers* | -V )
9228 echo "$ac_cs_version"; exit 0 ;;
9229 --he | --h)
9230 # Conflict between --help and --header
9231 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9232 Try \`$0 --help' for more information." >&5
9233 echo "$as_me: error: ambiguous option: $1
9234 Try \`$0 --help' for more information." >&2;}
9235 { (exit 1); exit 1; }; };;
9236 --help | --hel | -h )
9237 echo "$ac_cs_usage"; exit 0 ;;
9238 --debug | --d* | -d )
9239 debug=: ;;
9240 --file | --fil | --fi | --f )
9241 $ac_shift
9242 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9243 ac_need_defaults=false;;
9244 --header | --heade | --head | --hea )
9245 $ac_shift
9246 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9247 ac_need_defaults=false;;
9248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9249 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9250 ac_cs_silent=: ;;
9251
9252 # This is an error.
9253 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9254 Try \`$0 --help' for more information." >&5
9255 echo "$as_me: error: unrecognized option: $1
9256 Try \`$0 --help' for more information." >&2;}
9257 { (exit 1); exit 1; }; } ;;
9258
9259 *) ac_config_targets="$ac_config_targets $1" ;;
9260
9261 esac
9262 shift
9263 done
9264
9265 ac_configure_extra_args=
9266
9267 if $ac_cs_silent; then
9268 exec 6>/dev/null
9269 ac_configure_extra_args="$ac_configure_extra_args --silent"
9270 fi
9271
9272 _ACEOF
9273 cat >>$CONFIG_STATUS <<_ACEOF
9274 if \$ac_cs_recheck; then
9275 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9276 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9277 fi
9278
9279 _ACEOF
9280
9281
9282
9283
9284
9285 cat >>$CONFIG_STATUS <<\_ACEOF
9286 for ac_config_target in $ac_config_targets
9287 do
9288 case "$ac_config_target" in
9289 # Handling of arguments.
9290 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
9291 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
9292 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
9293 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
9294 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
9295 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9296 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9297 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9298 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9299 { (exit 1); exit 1; }; };;
9300 esac
9301 done
9302
9303 # If the user did not use the arguments to specify the items to instantiate,
9304 # then the envvar interface is used. Set only those that are not.
9305 # We use the long form for the default assignment because of an extremely
9306 # bizarre bug on SunOS 4.1.3.
9307 if $ac_need_defaults; then
9308 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9309 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9310 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9311 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9312 fi
9313
9314 # Have a temporary directory for convenience. Make it in the build tree
9315 # simply because there is no reason to put it here, and in addition,
9316 # creating and moving files from /tmp can sometimes cause problems.
9317 # Create a temporary directory, and hook for its removal unless debugging.
9318 $debug ||
9319 {
9320 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9321 trap '{ (exit 1); exit 1; }' 1 2 13 15
9322 }
9323
9324 # Create a (secure) tmp directory for tmp files.
9325
9326 {
9327 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9328 test -n "$tmp" && test -d "$tmp"
9329 } ||
9330 {
9331 tmp=./confstat$$-$RANDOM
9332 (umask 077 && mkdir $tmp)
9333 } ||
9334 {
9335 echo "$me: cannot create a temporary directory in ." >&2
9336 { (exit 1); exit 1; }
9337 }
9338
9339 _ACEOF
9340
9341 cat >>$CONFIG_STATUS <<_ACEOF
9342
9343 #
9344 # CONFIG_FILES section.
9345 #
9346
9347 # No need to generate the scripts if there are no CONFIG_FILES.
9348 # This happens for instance when ./config.status config.h
9349 if test -n "\$CONFIG_FILES"; then
9350 # Protect against being on the right side of a sed subst in config.status.
9351 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9352 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9353 s,@SHELL@,$SHELL,;t t
9354 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9355 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9356 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9357 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9358 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9359 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9360 s,@exec_prefix@,$exec_prefix,;t t
9361 s,@prefix@,$prefix,;t t
9362 s,@program_transform_name@,$program_transform_name,;t t
9363 s,@bindir@,$bindir,;t t
9364 s,@sbindir@,$sbindir,;t t
9365 s,@libexecdir@,$libexecdir,;t t
9366 s,@datadir@,$datadir,;t t
9367 s,@sysconfdir@,$sysconfdir,;t t
9368 s,@sharedstatedir@,$sharedstatedir,;t t
9369 s,@localstatedir@,$localstatedir,;t t
9370 s,@libdir@,$libdir,;t t
9371 s,@includedir@,$includedir,;t t
9372 s,@oldincludedir@,$oldincludedir,;t t
9373 s,@infodir@,$infodir,;t t
9374 s,@mandir@,$mandir,;t t
9375 s,@build_alias@,$build_alias,;t t
9376 s,@host_alias@,$host_alias,;t t
9377 s,@target_alias@,$target_alias,;t t
9378 s,@DEFS@,$DEFS,;t t
9379 s,@ECHO_C@,$ECHO_C,;t t
9380 s,@ECHO_N@,$ECHO_N,;t t
9381 s,@ECHO_T@,$ECHO_T,;t t
9382 s,@LIBS@,$LIBS,;t t
9383 s,@sim_environment@,$sim_environment,;t t
9384 s,@sim_alignment@,$sim_alignment,;t t
9385 s,@sim_assert@,$sim_assert,;t t
9386 s,@sim_bitsize@,$sim_bitsize,;t t
9387 s,@sim_endian@,$sim_endian,;t t
9388 s,@sim_hostendian@,$sim_hostendian,;t t
9389 s,@sim_float@,$sim_float,;t t
9390 s,@sim_scache@,$sim_scache,;t t
9391 s,@sim_default_model@,$sim_default_model,;t t
9392 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9393 s,@sim_hw_objs@,$sim_hw_objs,;t t
9394 s,@sim_hw@,$sim_hw,;t t
9395 s,@sim_inline@,$sim_inline,;t t
9396 s,@sim_packages@,$sim_packages,;t t
9397 s,@sim_regparm@,$sim_regparm,;t t
9398 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9399 s,@sim_smp@,$sim_smp,;t t
9400 s,@sim_stdcall@,$sim_stdcall,;t t
9401 s,@sim_xor_endian@,$sim_xor_endian,;t t
9402 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9403 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9404 s,@build@,$build,;t t
9405 s,@build_cpu@,$build_cpu,;t t
9406 s,@build_vendor@,$build_vendor,;t t
9407 s,@build_os@,$build_os,;t t
9408 s,@host@,$host,;t t
9409 s,@host_cpu@,$host_cpu,;t t
9410 s,@host_vendor@,$host_vendor,;t t
9411 s,@host_os@,$host_os,;t t
9412 s,@target@,$target,;t t
9413 s,@target_cpu@,$target_cpu,;t t
9414 s,@target_vendor@,$target_vendor,;t t
9415 s,@target_os@,$target_os,;t t
9416 s,@CC@,$CC,;t t
9417 s,@CFLAGS@,$CFLAGS,;t t
9418 s,@LDFLAGS@,$LDFLAGS,;t t
9419 s,@CPPFLAGS@,$CPPFLAGS,;t t
9420 s,@ac_ct_CC@,$ac_ct_CC,;t t
9421 s,@EXEEXT@,$EXEEXT,;t t
9422 s,@OBJEXT@,$OBJEXT,;t t
9423 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9424 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9425 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9426 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9427 s,@HDEFINES@,$HDEFINES,;t t
9428 s,@AR@,$AR,;t t
9429 s,@RANLIB@,$RANLIB,;t t
9430 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9431 s,@SET_MAKE@,$SET_MAKE,;t t
9432 s,@CPP@,$CPP,;t t
9433 s,@EGREP@,$EGREP,;t t
9434 s,@ALLOCA@,$ALLOCA,;t t
9435 s,@USE_NLS@,$USE_NLS,;t t
9436 s,@MSGFMT@,$MSGFMT,;t t
9437 s,@GMSGFMT@,$GMSGFMT,;t t
9438 s,@XGETTEXT@,$XGETTEXT,;t t
9439 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9440 s,@CATALOGS@,$CATALOGS,;t t
9441 s,@CATOBJEXT@,$CATOBJEXT,;t t
9442 s,@DATADIRNAME@,$DATADIRNAME,;t t
9443 s,@GMOFILES@,$GMOFILES,;t t
9444 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9445 s,@INTLDEPS@,$INTLDEPS,;t t
9446 s,@INTLLIBS@,$INTLLIBS,;t t
9447 s,@INTLOBJS@,$INTLOBJS,;t t
9448 s,@POFILES@,$POFILES,;t t
9449 s,@POSUB@,$POSUB,;t t
9450 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9451 s,@GT_NO@,$GT_NO,;t t
9452 s,@GT_YES@,$GT_YES,;t t
9453 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9454 s,@l@,$l,;t t
9455 s,@MAINT@,$MAINT,;t t
9456 s,@sim_bswap@,$sim_bswap,;t t
9457 s,@sim_cflags@,$sim_cflags,;t t
9458 s,@sim_debug@,$sim_debug,;t t
9459 s,@sim_stdio@,$sim_stdio,;t t
9460 s,@sim_trace@,$sim_trace,;t t
9461 s,@sim_profile@,$sim_profile,;t t
9462 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
9463 s,@sim_igen_flags@,$sim_igen_flags,;t t
9464 s,@sim_m16_flags@,$sim_m16_flags,;t t
9465 s,@sim_gen@,$sim_gen,;t t
9466 s,@sim_multi_flags@,$sim_multi_flags,;t t
9467 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
9468 s,@sim_multi_src@,$sim_multi_src,;t t
9469 s,@sim_multi_obj@,$sim_multi_obj,;t t
9470 s,@mips_extra_objs@,$mips_extra_objs,;t t
9471 s,@mips_igen_engine@,$mips_igen_engine,;t t
9472 s,@mips_extra_libs@,$mips_extra_libs,;t t
9473 s,@cgen_breaks@,$cgen_breaks,;t t
9474 s,@LIBOBJS@,$LIBOBJS,;t t
9475 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9476 CEOF
9477
9478 _ACEOF
9479
9480 cat >>$CONFIG_STATUS <<\_ACEOF
9481 # Split the substitutions into bite-sized pieces for seds with
9482 # small command number limits, like on Digital OSF/1 and HP-UX.
9483 ac_max_sed_lines=48
9484 ac_sed_frag=1 # Number of current file.
9485 ac_beg=1 # First line for current file.
9486 ac_end=$ac_max_sed_lines # Line after last line for current file.
9487 ac_more_lines=:
9488 ac_sed_cmds=
9489 while $ac_more_lines; do
9490 if test $ac_beg -gt 1; then
9491 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9492 else
9493 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9494 fi
9495 if test ! -s $tmp/subs.frag; then
9496 ac_more_lines=false
9497 else
9498 # The purpose of the label and of the branching condition is to
9499 # speed up the sed processing (if there are no `@' at all, there
9500 # is no need to browse any of the substitutions).
9501 # These are the two extra sed commands mentioned above.
9502 (echo ':t
9503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9504 if test -z "$ac_sed_cmds"; then
9505 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9506 else
9507 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9508 fi
9509 ac_sed_frag=`expr $ac_sed_frag + 1`
9510 ac_beg=$ac_end
9511 ac_end=`expr $ac_end + $ac_max_sed_lines`
9512 fi
9513 done
9514 if test -z "$ac_sed_cmds"; then
9515 ac_sed_cmds=cat
9516 fi
9517 fi # test -n "$CONFIG_FILES"
9518
9519 _ACEOF
9520 cat >>$CONFIG_STATUS <<\_ACEOF
9521 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9523 case $ac_file in
9524 - | *:- | *:-:* ) # input from stdin
9525 cat >$tmp/stdin
9526 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9528 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9530 * ) ac_file_in=$ac_file.in ;;
9531 esac
9532
9533 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9534 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9536 X"$ac_file" : 'X\(//\)[^/]' \| \
9537 X"$ac_file" : 'X\(//\)$' \| \
9538 X"$ac_file" : 'X\(/\)' \| \
9539 . : '\(.\)' 2>/dev/null ||
9540 echo X"$ac_file" |
9541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9543 /^X\(\/\/\)$/{ s//\1/; q; }
9544 /^X\(\/\).*/{ s//\1/; q; }
9545 s/.*/./; q'`
9546 { if $as_mkdir_p; then
9547 mkdir -p "$ac_dir"
9548 else
9549 as_dir="$ac_dir"
9550 as_dirs=
9551 while test ! -d "$as_dir"; do
9552 as_dirs="$as_dir $as_dirs"
9553 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9555 X"$as_dir" : 'X\(//\)[^/]' \| \
9556 X"$as_dir" : 'X\(//\)$' \| \
9557 X"$as_dir" : 'X\(/\)' \| \
9558 . : '\(.\)' 2>/dev/null ||
9559 echo X"$as_dir" |
9560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9562 /^X\(\/\/\)$/{ s//\1/; q; }
9563 /^X\(\/\).*/{ s//\1/; q; }
9564 s/.*/./; q'`
9565 done
9566 test ! -n "$as_dirs" || mkdir $as_dirs
9567 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9568 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9569 { (exit 1); exit 1; }; }; }
9570
9571 ac_builddir=.
9572
9573 if test "$ac_dir" != .; then
9574 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9575 # A "../" for each directory in $ac_dir_suffix.
9576 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9577 else
9578 ac_dir_suffix= ac_top_builddir=
9579 fi
9580
9581 case $srcdir in
9582 .) # No --srcdir option. We are building in place.
9583 ac_srcdir=.
9584 if test -z "$ac_top_builddir"; then
9585 ac_top_srcdir=.
9586 else
9587 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9588 fi ;;
9589 [\\/]* | ?:[\\/]* ) # Absolute path.
9590 ac_srcdir=$srcdir$ac_dir_suffix;
9591 ac_top_srcdir=$srcdir ;;
9592 *) # Relative path.
9593 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9594 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9595 esac
9596
9597 # Do not use `cd foo && pwd` to compute absolute paths, because
9598 # the directories may not exist.
9599 case `pwd` in
9600 .) ac_abs_builddir="$ac_dir";;
9601 *)
9602 case "$ac_dir" in
9603 .) ac_abs_builddir=`pwd`;;
9604 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9605 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9606 esac;;
9607 esac
9608 case $ac_abs_builddir in
9609 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9610 *)
9611 case ${ac_top_builddir}. in
9612 .) ac_abs_top_builddir=$ac_abs_builddir;;
9613 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9614 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9615 esac;;
9616 esac
9617 case $ac_abs_builddir in
9618 .) ac_abs_srcdir=$ac_srcdir;;
9619 *)
9620 case $ac_srcdir in
9621 .) ac_abs_srcdir=$ac_abs_builddir;;
9622 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9623 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9624 esac;;
9625 esac
9626 case $ac_abs_builddir in
9627 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9628 *)
9629 case $ac_top_srcdir in
9630 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9631 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9632 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9633 esac;;
9634 esac
9635
9636
9637 case $INSTALL in
9638 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9639 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9640 esac
9641
9642 if test x"$ac_file" != x-; then
9643 { echo "$as_me:$LINENO: creating $ac_file" >&5
9644 echo "$as_me: creating $ac_file" >&6;}
9645 rm -f "$ac_file"
9646 fi
9647 # Let's still pretend it is `configure' which instantiates (i.e., don't
9648 # use $as_me), people would be surprised to read:
9649 # /* config.h. Generated by config.status. */
9650 if test x"$ac_file" = x-; then
9651 configure_input=
9652 else
9653 configure_input="$ac_file. "
9654 fi
9655 configure_input=$configure_input"Generated from `echo $ac_file_in |
9656 sed 's,.*/,,'` by configure."
9657
9658 # First look for the input files in the build tree, otherwise in the
9659 # src tree.
9660 ac_file_inputs=`IFS=:
9661 for f in $ac_file_in; do
9662 case $f in
9663 -) echo $tmp/stdin ;;
9664 [\\/$]*)
9665 # Absolute (can't be DOS-style, as IFS=:)
9666 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9667 echo "$as_me: error: cannot find input file: $f" >&2;}
9668 { (exit 1); exit 1; }; }
9669 echo "$f";;
9670 *) # Relative
9671 if test -f "$f"; then
9672 # Build tree
9673 echo "$f"
9674 elif test -f "$srcdir/$f"; then
9675 # Source tree
9676 echo "$srcdir/$f"
9677 else
9678 # /dev/null tree
9679 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9680 echo "$as_me: error: cannot find input file: $f" >&2;}
9681 { (exit 1); exit 1; }; }
9682 fi;;
9683 esac
9684 done` || { (exit 1); exit 1; }
9685 _ACEOF
9686 cat >>$CONFIG_STATUS <<_ACEOF
9687 sed "$ac_vpsub
9688 $extrasub
9689 _ACEOF
9690 cat >>$CONFIG_STATUS <<\_ACEOF
9691 :t
9692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9693 s,@configure_input@,$configure_input,;t t
9694 s,@srcdir@,$ac_srcdir,;t t
9695 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9696 s,@top_srcdir@,$ac_top_srcdir,;t t
9697 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9698 s,@builddir@,$ac_builddir,;t t
9699 s,@abs_builddir@,$ac_abs_builddir,;t t
9700 s,@top_builddir@,$ac_top_builddir,;t t
9701 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9702 s,@INSTALL@,$ac_INSTALL,;t t
9703 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9704 rm -f $tmp/stdin
9705 if test x"$ac_file" != x-; then
9706 mv $tmp/out $ac_file
9707 else
9708 cat $tmp/out
9709 rm -f $tmp/out
9710 fi
9711
9712 done
9713 _ACEOF
9714 cat >>$CONFIG_STATUS <<\_ACEOF
9715
9716 #
9717 # CONFIG_HEADER section.
9718 #
9719
9720 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9721 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9722 #
9723 # ac_d sets the value in "#define NAME VALUE" lines.
9724 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9725 ac_dB='[ ].*$,\1#\2'
9726 ac_dC=' '
9727 ac_dD=',;t'
9728 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9729 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9730 ac_uB='$,\1#\2define\3'
9731 ac_uC=' '
9732 ac_uD=',;t'
9733
9734 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9735 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9736 case $ac_file in
9737 - | *:- | *:-:* ) # input from stdin
9738 cat >$tmp/stdin
9739 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9741 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9743 * ) ac_file_in=$ac_file.in ;;
9744 esac
9745
9746 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9747 echo "$as_me: creating $ac_file" >&6;}
9748
9749 # First look for the input files in the build tree, otherwise in the
9750 # src tree.
9751 ac_file_inputs=`IFS=:
9752 for f in $ac_file_in; do
9753 case $f in
9754 -) echo $tmp/stdin ;;
9755 [\\/$]*)
9756 # Absolute (can't be DOS-style, as IFS=:)
9757 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9758 echo "$as_me: error: cannot find input file: $f" >&2;}
9759 { (exit 1); exit 1; }; }
9760 # Do quote $f, to prevent DOS paths from being IFS'd.
9761 echo "$f";;
9762 *) # Relative
9763 if test -f "$f"; then
9764 # Build tree
9765 echo "$f"
9766 elif test -f "$srcdir/$f"; then
9767 # Source tree
9768 echo "$srcdir/$f"
9769 else
9770 # /dev/null tree
9771 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9772 echo "$as_me: error: cannot find input file: $f" >&2;}
9773 { (exit 1); exit 1; }; }
9774 fi;;
9775 esac
9776 done` || { (exit 1); exit 1; }
9777 # Remove the trailing spaces.
9778 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9779
9780 _ACEOF
9781
9782 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9783 # `conftest.undefs', that substitutes the proper values into
9784 # config.h.in to produce config.h. The first handles `#define'
9785 # templates, and the second `#undef' templates.
9786 # And first: Protect against being on the right side of a sed subst in
9787 # config.status. Protect against being in an unquoted here document
9788 # in config.status.
9789 rm -f conftest.defines conftest.undefs
9790 # Using a here document instead of a string reduces the quoting nightmare.
9791 # Putting comments in sed scripts is not portable.
9792 #
9793 # `end' is used to avoid that the second main sed command (meant for
9794 # 0-ary CPP macros) applies to n-ary macro definitions.
9795 # See the Autoconf documentation for `clear'.
9796 cat >confdef2sed.sed <<\_ACEOF
9797 s/[\\&,]/\\&/g
9798 s,[\\$`],\\&,g
9799 t clear
9800 : clear
9801 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9802 t end
9803 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9804 : end
9805 _ACEOF
9806 # If some macros were called several times there might be several times
9807 # the same #defines, which is useless. Nevertheless, we may not want to
9808 # sort them, since we want the *last* AC-DEFINE to be honored.
9809 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9810 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9811 rm -f confdef2sed.sed
9812
9813 # This sed command replaces #undef with comments. This is necessary, for
9814 # example, in the case of _POSIX_SOURCE, which is predefined and required
9815 # on some systems where configure will not decide to define it.
9816 cat >>conftest.undefs <<\_ACEOF
9817 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9818 _ACEOF
9819
9820 # Break up conftest.defines because some shells have a limit on the size
9821 # of here documents, and old seds have small limits too (100 cmds).
9822 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9823 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9824 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9825 echo ' :' >>$CONFIG_STATUS
9826 rm -f conftest.tail
9827 while grep . conftest.defines >/dev/null
9828 do
9829 # Write a limited-size here document to $tmp/defines.sed.
9830 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9831 # Speed up: don't consider the non `#define' lines.
9832 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9833 # Work around the forget-to-reset-the-flag bug.
9834 echo 't clr' >>$CONFIG_STATUS
9835 echo ': clr' >>$CONFIG_STATUS
9836 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9837 echo 'CEOF
9838 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9839 rm -f $tmp/in
9840 mv $tmp/out $tmp/in
9841 ' >>$CONFIG_STATUS
9842 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9843 rm -f conftest.defines
9844 mv conftest.tail conftest.defines
9845 done
9846 rm -f conftest.defines
9847 echo ' fi # grep' >>$CONFIG_STATUS
9848 echo >>$CONFIG_STATUS
9849
9850 # Break up conftest.undefs because some shells have a limit on the size
9851 # of here documents, and old seds have small limits too (100 cmds).
9852 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9853 rm -f conftest.tail
9854 while grep . conftest.undefs >/dev/null
9855 do
9856 # Write a limited-size here document to $tmp/undefs.sed.
9857 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9858 # Speed up: don't consider the non `#undef'
9859 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9860 # Work around the forget-to-reset-the-flag bug.
9861 echo 't clr' >>$CONFIG_STATUS
9862 echo ': clr' >>$CONFIG_STATUS
9863 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9864 echo 'CEOF
9865 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9866 rm -f $tmp/in
9867 mv $tmp/out $tmp/in
9868 ' >>$CONFIG_STATUS
9869 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9870 rm -f conftest.undefs
9871 mv conftest.tail conftest.undefs
9872 done
9873 rm -f conftest.undefs
9874
9875 cat >>$CONFIG_STATUS <<\_ACEOF
9876 # Let's still pretend it is `configure' which instantiates (i.e., don't
9877 # use $as_me), people would be surprised to read:
9878 # /* config.h. Generated by config.status. */
9879 if test x"$ac_file" = x-; then
9880 echo "/* Generated by configure. */" >$tmp/config.h
9881 else
9882 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9883 fi
9884 cat $tmp/in >>$tmp/config.h
9885 rm -f $tmp/in
9886 if test x"$ac_file" != x-; then
9887 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9888 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9889 echo "$as_me: $ac_file is unchanged" >&6;}
9890 else
9891 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9893 X"$ac_file" : 'X\(//\)[^/]' \| \
9894 X"$ac_file" : 'X\(//\)$' \| \
9895 X"$ac_file" : 'X\(/\)' \| \
9896 . : '\(.\)' 2>/dev/null ||
9897 echo X"$ac_file" |
9898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9900 /^X\(\/\/\)$/{ s//\1/; q; }
9901 /^X\(\/\).*/{ s//\1/; q; }
9902 s/.*/./; q'`
9903 { if $as_mkdir_p; then
9904 mkdir -p "$ac_dir"
9905 else
9906 as_dir="$ac_dir"
9907 as_dirs=
9908 while test ! -d "$as_dir"; do
9909 as_dirs="$as_dir $as_dirs"
9910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9912 X"$as_dir" : 'X\(//\)[^/]' \| \
9913 X"$as_dir" : 'X\(//\)$' \| \
9914 X"$as_dir" : 'X\(/\)' \| \
9915 . : '\(.\)' 2>/dev/null ||
9916 echo X"$as_dir" |
9917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9919 /^X\(\/\/\)$/{ s//\1/; q; }
9920 /^X\(\/\).*/{ s//\1/; q; }
9921 s/.*/./; q'`
9922 done
9923 test ! -n "$as_dirs" || mkdir $as_dirs
9924 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9926 { (exit 1); exit 1; }; }; }
9927
9928 rm -f $ac_file
9929 mv $tmp/config.h $ac_file
9930 fi
9931 else
9932 cat $tmp/config.h
9933 rm -f $tmp/config.h
9934 fi
9935 done
9936 _ACEOF
9937 cat >>$CONFIG_STATUS <<\_ACEOF
9938
9939 #
9940 # CONFIG_LINKS section.
9941 #
9942
9943 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9944 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9945 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9946
9947 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9948 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9949
9950 if test ! -r $srcdir/$ac_source; then
9951 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9952 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9953 { (exit 1); exit 1; }; }
9954 fi
9955 rm -f $ac_dest
9956
9957 # Make relative symlinks.
9958 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9959 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9960 X"$ac_dest" : 'X\(//\)[^/]' \| \
9961 X"$ac_dest" : 'X\(//\)$' \| \
9962 X"$ac_dest" : 'X\(/\)' \| \
9963 . : '\(.\)' 2>/dev/null ||
9964 echo X"$ac_dest" |
9965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9967 /^X\(\/\/\)$/{ s//\1/; q; }
9968 /^X\(\/\).*/{ s//\1/; q; }
9969 s/.*/./; q'`
9970 { if $as_mkdir_p; then
9971 mkdir -p "$ac_dest_dir"
9972 else
9973 as_dir="$ac_dest_dir"
9974 as_dirs=
9975 while test ! -d "$as_dir"; do
9976 as_dirs="$as_dir $as_dirs"
9977 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9979 X"$as_dir" : 'X\(//\)[^/]' \| \
9980 X"$as_dir" : 'X\(//\)$' \| \
9981 X"$as_dir" : 'X\(/\)' \| \
9982 . : '\(.\)' 2>/dev/null ||
9983 echo X"$as_dir" |
9984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9986 /^X\(\/\/\)$/{ s//\1/; q; }
9987 /^X\(\/\).*/{ s//\1/; q; }
9988 s/.*/./; q'`
9989 done
9990 test ! -n "$as_dirs" || mkdir $as_dirs
9991 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9992 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9993 { (exit 1); exit 1; }; }; }
9994
9995 ac_builddir=.
9996
9997 if test "$ac_dest_dir" != .; then
9998 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9999 # A "../" for each directory in $ac_dir_suffix.
10000 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10001 else
10002 ac_dir_suffix= ac_top_builddir=
10003 fi
10004
10005 case $srcdir in
10006 .) # No --srcdir option. We are building in place.
10007 ac_srcdir=.
10008 if test -z "$ac_top_builddir"; then
10009 ac_top_srcdir=.
10010 else
10011 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10012 fi ;;
10013 [\\/]* | ?:[\\/]* ) # Absolute path.
10014 ac_srcdir=$srcdir$ac_dir_suffix;
10015 ac_top_srcdir=$srcdir ;;
10016 *) # Relative path.
10017 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10018 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10019 esac
10020
10021 # Do not use `cd foo && pwd` to compute absolute paths, because
10022 # the directories may not exist.
10023 case `pwd` in
10024 .) ac_abs_builddir="$ac_dest_dir";;
10025 *)
10026 case "$ac_dest_dir" in
10027 .) ac_abs_builddir=`pwd`;;
10028 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
10029 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
10030 esac;;
10031 esac
10032 case $ac_abs_builddir in
10033 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10034 *)
10035 case ${ac_top_builddir}. in
10036 .) ac_abs_top_builddir=$ac_abs_builddir;;
10037 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10038 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10039 esac;;
10040 esac
10041 case $ac_abs_builddir in
10042 .) ac_abs_srcdir=$ac_srcdir;;
10043 *)
10044 case $ac_srcdir in
10045 .) ac_abs_srcdir=$ac_abs_builddir;;
10046 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10047 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10048 esac;;
10049 esac
10050 case $ac_abs_builddir in
10051 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10052 *)
10053 case $ac_top_srcdir in
10054 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10055 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10056 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10057 esac;;
10058 esac
10059
10060
10061 case $srcdir in
10062 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10063 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10064 esac
10065
10066 # Try a symlink, then a hard link, then a copy.
10067 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10068 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10069 cp -p $srcdir/$ac_source $ac_dest ||
10070 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10071 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10072 { (exit 1); exit 1; }; }
10073 done
10074 _ACEOF
10075 cat >>$CONFIG_STATUS <<\_ACEOF
10076
10077 #
10078 # CONFIG_COMMANDS section.
10079 #
10080 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10081 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10082 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10083 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10084 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10085 X"$ac_dest" : 'X\(//\)[^/]' \| \
10086 X"$ac_dest" : 'X\(//\)$' \| \
10087 X"$ac_dest" : 'X\(/\)' \| \
10088 . : '\(.\)' 2>/dev/null ||
10089 echo X"$ac_dest" |
10090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10092 /^X\(\/\/\)$/{ s//\1/; q; }
10093 /^X\(\/\).*/{ s//\1/; q; }
10094 s/.*/./; q'`
10095 { if $as_mkdir_p; then
10096 mkdir -p "$ac_dir"
10097 else
10098 as_dir="$ac_dir"
10099 as_dirs=
10100 while test ! -d "$as_dir"; do
10101 as_dirs="$as_dir $as_dirs"
10102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10104 X"$as_dir" : 'X\(//\)[^/]' \| \
10105 X"$as_dir" : 'X\(//\)$' \| \
10106 X"$as_dir" : 'X\(/\)' \| \
10107 . : '\(.\)' 2>/dev/null ||
10108 echo X"$as_dir" |
10109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10111 /^X\(\/\/\)$/{ s//\1/; q; }
10112 /^X\(\/\).*/{ s//\1/; q; }
10113 s/.*/./; q'`
10114 done
10115 test ! -n "$as_dirs" || mkdir $as_dirs
10116 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10117 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10118 { (exit 1); exit 1; }; }; }
10119
10120 ac_builddir=.
10121
10122 if test "$ac_dir" != .; then
10123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10124 # A "../" for each directory in $ac_dir_suffix.
10125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10126 else
10127 ac_dir_suffix= ac_top_builddir=
10128 fi
10129
10130 case $srcdir in
10131 .) # No --srcdir option. We are building in place.
10132 ac_srcdir=.
10133 if test -z "$ac_top_builddir"; then
10134 ac_top_srcdir=.
10135 else
10136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10137 fi ;;
10138 [\\/]* | ?:[\\/]* ) # Absolute path.
10139 ac_srcdir=$srcdir$ac_dir_suffix;
10140 ac_top_srcdir=$srcdir ;;
10141 *) # Relative path.
10142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10144 esac
10145
10146 # Do not use `cd foo && pwd` to compute absolute paths, because
10147 # the directories may not exist.
10148 case `pwd` in
10149 .) ac_abs_builddir="$ac_dir";;
10150 *)
10151 case "$ac_dir" in
10152 .) ac_abs_builddir=`pwd`;;
10153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10155 esac;;
10156 esac
10157 case $ac_abs_builddir in
10158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10159 *)
10160 case ${ac_top_builddir}. in
10161 .) ac_abs_top_builddir=$ac_abs_builddir;;
10162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10164 esac;;
10165 esac
10166 case $ac_abs_builddir in
10167 .) ac_abs_srcdir=$ac_srcdir;;
10168 *)
10169 case $ac_srcdir in
10170 .) ac_abs_srcdir=$ac_abs_builddir;;
10171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10173 esac;;
10174 esac
10175 case $ac_abs_builddir in
10176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10177 *)
10178 case $ac_top_srcdir in
10179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10182 esac;;
10183 esac
10184
10185
10186 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10187 echo "$as_me: executing $ac_dest commands" >&6;}
10188 case $ac_dest in
10189 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
10190 rm -f Makesim1.tmp Makesim2.tmp Makefile
10191 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
10192 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
10193 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
10194 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
10195 <Makefile.sim >Makefile
10196 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
10197 ;;
10198 stamp-h ) echo > stamp-h ;;
10199 esac
10200 done
10201 _ACEOF
10202
10203 cat >>$CONFIG_STATUS <<\_ACEOF
10204
10205 { (exit 0); exit 0; }
10206 _ACEOF
10207 chmod +x $CONFIG_STATUS
10208 ac_clean_files=$ac_clean_files_save
10209
10210
10211 # configure is writing to config.log, and then calls config.status.
10212 # config.status does its own redirection, appending to config.log.
10213 # Unfortunately, on DOS this fails, as config.log is still kept open
10214 # by configure, so config.status won't be able to write to it; its
10215 # output is simply discarded. So we exec the FD to /dev/null,
10216 # effectively closing config.log, so it can be properly (re)opened and
10217 # appended to by config.status. When coming back to configure, we
10218 # need to make the FD available again.
10219 if test "$no_create" != yes; then
10220 ac_cs_success=:
10221 ac_config_status_args=
10222 test "$silent" = yes &&
10223 ac_config_status_args="$ac_config_status_args --quiet"
10224 exec 5>/dev/null
10225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10226 exec 5>>config.log
10227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10228 # would make configure fail if this is the last instruction.
10229 $ac_cs_success || { (exit 1); exit 1; }
10230 fi
10231
10232