15971c78864b877b4003cc29a228b9ec9f738df6
[deliverable/binutils-gdb.git] / sim / m68hc11 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 m68hc11_extra_objs cgen_breaks LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-inline=inlines Specify which functions should be inlined.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-build-warnings Enable build-time compiler warnings if gcc is used
865 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
866 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
867
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-included-gettext use the GNU gettext library included here
872
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900 ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956 esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
973 cd $ac_popdir
974 done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979 cat <<\_ACEOF
980
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984 _ACEOF
985 exit 0
986 fi
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
991
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59. Invocation command line was
994
995 $ $0 $@
996
997 _ACEOF
998 {
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1003
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021 _ASUNAME
1022
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1025 do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029 done
1030
1031 } >&5
1032
1033 cat >&5 <<_ACEOF
1034
1035
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1039
1040 _ACEOF
1041
1042
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_configure_args=
1049 ac_configure_args0=
1050 ac_configure_args1=
1051 ac_sep=
1052 ac_must_keep_next=false
1053 for ac_pass in 1 2
1054 do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090 done
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log. We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1108 _ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111 {
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124 }
1125 echo
1126
1127 cat <<\_ASBOX
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1131 _ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142 ## ------------- ##
1143 ## Output files. ##
1144 ## ------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157 ## ----------- ##
1158 ## confdefs.h. ##
1159 ## ----------- ##
1160 _ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173 for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 done
1176 ac_signal=0
1177
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 echo >confdefs.h
1182
1183 # Predefined preprocessor variables.
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 _ACEOF
1208
1209
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218 fi
1219 for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226 done
1227
1228 if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239 else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243 fi
1244
1245 # Check that the precious variables saved in the cache have kept the same
1246 # value.
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269 echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271 echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287 done
1288 if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294 fi
1295
1296 ac_ext=c
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321 ac_aux_dir=
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1326 break
1327 elif test -f $ac_dir/install.sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1330 break
1331 elif test -f $ac_dir/shtool; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 break
1335 fi
1336 done
1337 if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1341 fi
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346 # Make sure we can run config.sub.
1347 $ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1351
1352 echo "$as_me:$LINENO: checking build system type" >&5
1353 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354 if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 else
1357 ac_cv_build_alias=$build_alias
1358 test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360 test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369 fi
1370 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371 echo "${ECHO_T}$ac_cv_build" >&6
1372 build=$ac_cv_build
1373 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378 echo "$as_me:$LINENO: checking host system type" >&5
1379 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380 if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383 ac_cv_host_alias=$host_alias
1384 test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1390
1391 fi
1392 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393 echo "${ECHO_T}$ac_cv_host" >&6
1394 host=$ac_cv_host
1395 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1401 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1402 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1403 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 cat >conftest.make <<\_ACEOF
1407 all:
1408 @echo 'ac_maketemp="$(MAKE)"'
1409 _ACEOF
1410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1411 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1412 if test -n "$ac_maketemp"; then
1413 eval ac_cv_prog_make_${ac_make}_set=yes
1414 else
1415 eval ac_cv_prog_make_${ac_make}_set=no
1416 fi
1417 rm -f conftest.make
1418 fi
1419 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1420 echo "$as_me:$LINENO: result: yes" >&5
1421 echo "${ECHO_T}yes" >&6
1422 SET_MAKE=
1423 else
1424 echo "$as_me:$LINENO: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1426 SET_MAKE="MAKE=${MAKE-make}"
1427 fi
1428
1429
1430 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1431 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1432 if test "${ac_cv_search_strerror+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 ac_func_search_save_LIBS=$LIBS
1436 ac_cv_search_strerror=no
1437 cat >conftest.$ac_ext <<_ACEOF
1438 /* confdefs.h. */
1439 _ACEOF
1440 cat confdefs.h >>conftest.$ac_ext
1441 cat >>conftest.$ac_ext <<_ACEOF
1442 /* end confdefs.h. */
1443
1444 /* Override any gcc2 internal prototype to avoid an error. */
1445 #ifdef __cplusplus
1446 extern "C"
1447 #endif
1448 /* We use char because int might match the return type of a gcc2
1449 builtin and then its argument prototype would still apply. */
1450 char strerror ();
1451 int
1452 main ()
1453 {
1454 strerror ();
1455 ;
1456 return 0;
1457 }
1458 _ACEOF
1459 rm -f conftest.$ac_objext conftest$ac_exeext
1460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1461 (eval $ac_link) 2>conftest.er1
1462 ac_status=$?
1463 grep -v '^ *+' conftest.er1 >conftest.err
1464 rm -f conftest.er1
1465 cat conftest.err >&5
1466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1467 (exit $ac_status); } &&
1468 { ac_try='test -z "$ac_c_werror_flag"
1469 || test ! -s conftest.err'
1470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1471 (eval $ac_try) 2>&5
1472 ac_status=$?
1473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1474 (exit $ac_status); }; } &&
1475 { ac_try='test -s conftest$ac_exeext'
1476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1477 (eval $ac_try) 2>&5
1478 ac_status=$?
1479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1480 (exit $ac_status); }; }; then
1481 ac_cv_search_strerror="none required"
1482 else
1483 echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1485
1486 fi
1487 rm -f conftest.err conftest.$ac_objext \
1488 conftest$ac_exeext conftest.$ac_ext
1489 if test "$ac_cv_search_strerror" = no; then
1490 for ac_lib in cposix; do
1491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1492 cat >conftest.$ac_ext <<_ACEOF
1493 /* confdefs.h. */
1494 _ACEOF
1495 cat confdefs.h >>conftest.$ac_ext
1496 cat >>conftest.$ac_ext <<_ACEOF
1497 /* end confdefs.h. */
1498
1499 /* Override any gcc2 internal prototype to avoid an error. */
1500 #ifdef __cplusplus
1501 extern "C"
1502 #endif
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1505 char strerror ();
1506 int
1507 main ()
1508 {
1509 strerror ();
1510 ;
1511 return 0;
1512 }
1513 _ACEOF
1514 rm -f conftest.$ac_objext conftest$ac_exeext
1515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1516 (eval $ac_link) 2>conftest.er1
1517 ac_status=$?
1518 grep -v '^ *+' conftest.er1 >conftest.err
1519 rm -f conftest.er1
1520 cat conftest.err >&5
1521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1522 (exit $ac_status); } &&
1523 { ac_try='test -z "$ac_c_werror_flag"
1524 || test ! -s conftest.err'
1525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1526 (eval $ac_try) 2>&5
1527 ac_status=$?
1528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1529 (exit $ac_status); }; } &&
1530 { ac_try='test -s conftest$ac_exeext'
1531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1532 (eval $ac_try) 2>&5
1533 ac_status=$?
1534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1535 (exit $ac_status); }; }; then
1536 ac_cv_search_strerror="-l$ac_lib"
1537 break
1538 else
1539 echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1541
1542 fi
1543 rm -f conftest.err conftest.$ac_objext \
1544 conftest$ac_exeext conftest.$ac_ext
1545 done
1546 fi
1547 LIBS=$ac_func_search_save_LIBS
1548 fi
1549 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1550 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1551 if test "$ac_cv_search_strerror" != no; then
1552 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1553
1554 fi
1555
1556 ac_ext=c
1557 ac_cpp='$CPP $CPPFLAGS'
1558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1561 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1563 # On Suns, sometimes $CPP names a directory.
1564 if test -n "$CPP" && test -d "$CPP"; then
1565 CPP=
1566 fi
1567 if test -z "$CPP"; then
1568 if test "${ac_cv_prog_CPP+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571 # Double quotes because CPP needs to be expanded
1572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1573 do
1574 ac_preproc_ok=false
1575 for ac_c_preproc_warn_flag in '' yes
1576 do
1577 # Use a header file that comes with gcc, so configuring glibc
1578 # with a fresh cross-compiler works.
1579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1580 # <limits.h> exists even on freestanding compilers.
1581 # On the NeXT, cc -E runs the code through the compiler's parser,
1582 # not just through cpp. "Syntax error" is here to catch this case.
1583 cat >conftest.$ac_ext <<_ACEOF
1584 /* confdefs.h. */
1585 _ACEOF
1586 cat confdefs.h >>conftest.$ac_ext
1587 cat >>conftest.$ac_ext <<_ACEOF
1588 /* end confdefs.h. */
1589 #ifdef __STDC__
1590 # include <limits.h>
1591 #else
1592 # include <assert.h>
1593 #endif
1594 Syntax error
1595 _ACEOF
1596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1598 ac_status=$?
1599 grep -v '^ *+' conftest.er1 >conftest.err
1600 rm -f conftest.er1
1601 cat conftest.err >&5
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); } >/dev/null; then
1604 if test -s conftest.err; then
1605 ac_cpp_err=$ac_c_preproc_warn_flag
1606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1607 else
1608 ac_cpp_err=
1609 fi
1610 else
1611 ac_cpp_err=yes
1612 fi
1613 if test -z "$ac_cpp_err"; then
1614 :
1615 else
1616 echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 # Broken: fails on valid input.
1620 continue
1621 fi
1622 rm -f conftest.err conftest.$ac_ext
1623
1624 # OK, works on sane cases. Now check whether non-existent headers
1625 # can be detected and how.
1626 cat >conftest.$ac_ext <<_ACEOF
1627 /* confdefs.h. */
1628 _ACEOF
1629 cat confdefs.h >>conftest.$ac_ext
1630 cat >>conftest.$ac_ext <<_ACEOF
1631 /* end confdefs.h. */
1632 #include <ac_nonexistent.h>
1633 _ACEOF
1634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1636 ac_status=$?
1637 grep -v '^ *+' conftest.er1 >conftest.err
1638 rm -f conftest.er1
1639 cat conftest.err >&5
1640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641 (exit $ac_status); } >/dev/null; then
1642 if test -s conftest.err; then
1643 ac_cpp_err=$ac_c_preproc_warn_flag
1644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1645 else
1646 ac_cpp_err=
1647 fi
1648 else
1649 ac_cpp_err=yes
1650 fi
1651 if test -z "$ac_cpp_err"; then
1652 # Broken: success on invalid input.
1653 continue
1654 else
1655 echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 # Passes both tests.
1659 ac_preproc_ok=:
1660 break
1661 fi
1662 rm -f conftest.err conftest.$ac_ext
1663
1664 done
1665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1666 rm -f conftest.err conftest.$ac_ext
1667 if $ac_preproc_ok; then
1668 break
1669 fi
1670
1671 done
1672 ac_cv_prog_CPP=$CPP
1673
1674 fi
1675 CPP=$ac_cv_prog_CPP
1676 else
1677 ac_cv_prog_CPP=$CPP
1678 fi
1679 echo "$as_me:$LINENO: result: $CPP" >&5
1680 echo "${ECHO_T}$CPP" >&6
1681 ac_preproc_ok=false
1682 for ac_c_preproc_warn_flag in '' yes
1683 do
1684 # Use a header file that comes with gcc, so configuring glibc
1685 # with a fresh cross-compiler works.
1686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1687 # <limits.h> exists even on freestanding compilers.
1688 # On the NeXT, cc -E runs the code through the compiler's parser,
1689 # not just through cpp. "Syntax error" is here to catch this case.
1690 cat >conftest.$ac_ext <<_ACEOF
1691 /* confdefs.h. */
1692 _ACEOF
1693 cat confdefs.h >>conftest.$ac_ext
1694 cat >>conftest.$ac_ext <<_ACEOF
1695 /* end confdefs.h. */
1696 #ifdef __STDC__
1697 # include <limits.h>
1698 #else
1699 # include <assert.h>
1700 #endif
1701 Syntax error
1702 _ACEOF
1703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1705 ac_status=$?
1706 grep -v '^ *+' conftest.er1 >conftest.err
1707 rm -f conftest.er1
1708 cat conftest.err >&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); } >/dev/null; then
1711 if test -s conftest.err; then
1712 ac_cpp_err=$ac_c_preproc_warn_flag
1713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1714 else
1715 ac_cpp_err=
1716 fi
1717 else
1718 ac_cpp_err=yes
1719 fi
1720 if test -z "$ac_cpp_err"; then
1721 :
1722 else
1723 echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 # Broken: fails on valid input.
1727 continue
1728 fi
1729 rm -f conftest.err conftest.$ac_ext
1730
1731 # OK, works on sane cases. Now check whether non-existent headers
1732 # can be detected and how.
1733 cat >conftest.$ac_ext <<_ACEOF
1734 /* confdefs.h. */
1735 _ACEOF
1736 cat confdefs.h >>conftest.$ac_ext
1737 cat >>conftest.$ac_ext <<_ACEOF
1738 /* end confdefs.h. */
1739 #include <ac_nonexistent.h>
1740 _ACEOF
1741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1743 ac_status=$?
1744 grep -v '^ *+' conftest.er1 >conftest.err
1745 rm -f conftest.er1
1746 cat conftest.err >&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); } >/dev/null; then
1749 if test -s conftest.err; then
1750 ac_cpp_err=$ac_c_preproc_warn_flag
1751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1752 else
1753 ac_cpp_err=
1754 fi
1755 else
1756 ac_cpp_err=yes
1757 fi
1758 if test -z "$ac_cpp_err"; then
1759 # Broken: success on invalid input.
1760 continue
1761 else
1762 echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 # Passes both tests.
1766 ac_preproc_ok=:
1767 break
1768 fi
1769 rm -f conftest.err conftest.$ac_ext
1770
1771 done
1772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1773 rm -f conftest.err conftest.$ac_ext
1774 if $ac_preproc_ok; then
1775 :
1776 else
1777 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1782 fi
1783
1784 ac_ext=c
1785 ac_cpp='$CPP $CPPFLAGS'
1786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789
1790
1791 echo "$as_me:$LINENO: checking for egrep" >&5
1792 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1793 if test "${ac_cv_prog_egrep+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1797 then ac_cv_prog_egrep='grep -E'
1798 else ac_cv_prog_egrep='egrep'
1799 fi
1800 fi
1801 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1802 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1803 EGREP=$ac_cv_prog_egrep
1804
1805
1806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1808 if test "${ac_cv_header_stdc+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 cat >conftest.$ac_ext <<_ACEOF
1812 /* confdefs.h. */
1813 _ACEOF
1814 cat confdefs.h >>conftest.$ac_ext
1815 cat >>conftest.$ac_ext <<_ACEOF
1816 /* end confdefs.h. */
1817 #include <stdlib.h>
1818 #include <stdarg.h>
1819 #include <string.h>
1820 #include <float.h>
1821
1822 int
1823 main ()
1824 {
1825
1826 ;
1827 return 0;
1828 }
1829 _ACEOF
1830 rm -f conftest.$ac_objext
1831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1832 (eval $ac_compile) 2>conftest.er1
1833 ac_status=$?
1834 grep -v '^ *+' conftest.er1 >conftest.err
1835 rm -f conftest.er1
1836 cat conftest.err >&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); } &&
1839 { ac_try='test -z "$ac_c_werror_flag"
1840 || test ! -s conftest.err'
1841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842 (eval $ac_try) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; } &&
1846 { ac_try='test -s conftest.$ac_objext'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 ac_cv_header_stdc=yes
1853 else
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_cv_header_stdc=no
1858 fi
1859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1860
1861 if test $ac_cv_header_stdc = yes; then
1862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1863 cat >conftest.$ac_ext <<_ACEOF
1864 /* confdefs.h. */
1865 _ACEOF
1866 cat confdefs.h >>conftest.$ac_ext
1867 cat >>conftest.$ac_ext <<_ACEOF
1868 /* end confdefs.h. */
1869 #include <string.h>
1870
1871 _ACEOF
1872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1873 $EGREP "memchr" >/dev/null 2>&1; then
1874 :
1875 else
1876 ac_cv_header_stdc=no
1877 fi
1878 rm -f conftest*
1879
1880 fi
1881
1882 if test $ac_cv_header_stdc = yes; then
1883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1884 cat >conftest.$ac_ext <<_ACEOF
1885 /* confdefs.h. */
1886 _ACEOF
1887 cat confdefs.h >>conftest.$ac_ext
1888 cat >>conftest.$ac_ext <<_ACEOF
1889 /* end confdefs.h. */
1890 #include <stdlib.h>
1891
1892 _ACEOF
1893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1894 $EGREP "free" >/dev/null 2>&1; then
1895 :
1896 else
1897 ac_cv_header_stdc=no
1898 fi
1899 rm -f conftest*
1900
1901 fi
1902
1903 if test $ac_cv_header_stdc = yes; then
1904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1905 if test "$cross_compiling" = yes; then
1906 :
1907 else
1908 cat >conftest.$ac_ext <<_ACEOF
1909 /* confdefs.h. */
1910 _ACEOF
1911 cat confdefs.h >>conftest.$ac_ext
1912 cat >>conftest.$ac_ext <<_ACEOF
1913 /* end confdefs.h. */
1914 #include <ctype.h>
1915 #if ((' ' & 0x0FF) == 0x020)
1916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1918 #else
1919 # define ISLOWER(c) \
1920 (('a' <= (c) && (c) <= 'i') \
1921 || ('j' <= (c) && (c) <= 'r') \
1922 || ('s' <= (c) && (c) <= 'z'))
1923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1924 #endif
1925
1926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1927 int
1928 main ()
1929 {
1930 int i;
1931 for (i = 0; i < 256; i++)
1932 if (XOR (islower (i), ISLOWER (i))
1933 || toupper (i) != TOUPPER (i))
1934 exit(2);
1935 exit (0);
1936 }
1937 _ACEOF
1938 rm -f conftest$ac_exeext
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1940 (eval $ac_link) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 :
1950 else
1951 echo "$as_me: program exited with status $ac_status" >&5
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ( exit $ac_status )
1956 ac_cv_header_stdc=no
1957 fi
1958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1959 fi
1960 fi
1961 fi
1962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1964 if test $ac_cv_header_stdc = yes; then
1965
1966 cat >>confdefs.h <<\_ACEOF
1967 #define STDC_HEADERS 1
1968 _ACEOF
1969
1970 fi
1971
1972 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1973 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1974 if test "${ac_cv_c_const+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h. */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1983
1984 int
1985 main ()
1986 {
1987 /* FIXME: Include the comments suggested by Paul. */
1988 #ifndef __cplusplus
1989 /* Ultrix mips cc rejects this. */
1990 typedef int charset[2];
1991 const charset x;
1992 /* SunOS 4.1.1 cc rejects this. */
1993 char const *const *ccp;
1994 char **p;
1995 /* NEC SVR4.0.2 mips cc rejects this. */
1996 struct point {int x, y;};
1997 static struct point const zero = {0,0};
1998 /* AIX XL C 1.02.0.0 rejects this.
1999 It does not let you subtract one const X* pointer from another in
2000 an arm of an if-expression whose if-part is not a constant
2001 expression */
2002 const char *g = "string";
2003 ccp = &g + (g ? g-g : 0);
2004 /* HPUX 7.0 cc rejects these. */
2005 ++ccp;
2006 p = (char**) ccp;
2007 ccp = (char const *const *) p;
2008 { /* SCO 3.2v4 cc rejects this. */
2009 char *t;
2010 char const *s = 0 ? (char *) 0 : (char const *) 0;
2011
2012 *t++ = 0;
2013 }
2014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2015 int x[] = {25, 17};
2016 const int *foo = &x[0];
2017 ++foo;
2018 }
2019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2020 typedef const int *iptr;
2021 iptr p = 0;
2022 ++p;
2023 }
2024 { /* AIX XL C 1.02.0.0 rejects this saying
2025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2026 struct s { int j; const int *ap[3]; };
2027 struct s *b; b->j = 5;
2028 }
2029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2030 const int foo = 10;
2031 }
2032 #endif
2033
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>conftest.er1
2041 ac_status=$?
2042 grep -v '^ *+' conftest.er1 >conftest.err
2043 rm -f conftest.er1
2044 cat conftest.err >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -z "$ac_c_werror_flag"
2048 || test ! -s conftest.err'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 (eval $ac_try) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 (eval $ac_try) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2060 ac_cv_c_const=yes
2061 else
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065 ac_cv_c_const=no
2066 fi
2067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2070 echo "${ECHO_T}$ac_cv_c_const" >&6
2071 if test $ac_cv_c_const = no; then
2072
2073 cat >>confdefs.h <<\_ACEOF
2074 #define const
2075 _ACEOF
2076
2077 fi
2078
2079 echo "$as_me:$LINENO: checking for inline" >&5
2080 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2081 if test "${ac_cv_c_inline+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 ac_cv_c_inline=no
2085 for ac_kw in inline __inline__ __inline; do
2086 cat >conftest.$ac_ext <<_ACEOF
2087 /* confdefs.h. */
2088 _ACEOF
2089 cat confdefs.h >>conftest.$ac_ext
2090 cat >>conftest.$ac_ext <<_ACEOF
2091 /* end confdefs.h. */
2092 #ifndef __cplusplus
2093 typedef int foo_t;
2094 static $ac_kw foo_t static_foo () {return 0; }
2095 $ac_kw foo_t foo () {return 0; }
2096 #endif
2097
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2102 ac_status=$?
2103 grep -v '^ *+' conftest.er1 >conftest.err
2104 rm -f conftest.er1
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 ac_cv_c_inline=$ac_kw; break
2122 else
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 fi
2127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2128 done
2129
2130 fi
2131 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2132 echo "${ECHO_T}$ac_cv_c_inline" >&6
2133
2134
2135 case $ac_cv_c_inline in
2136 inline | yes) ;;
2137 *)
2138 case $ac_cv_c_inline in
2139 no) ac_val=;;
2140 *) ac_val=$ac_cv_c_inline;;
2141 esac
2142 cat >>confdefs.h <<_ACEOF
2143 #ifndef __cplusplus
2144 #define inline $ac_val
2145 #endif
2146 _ACEOF
2147 ;;
2148 esac
2149
2150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2161 inttypes.h stdint.h unistd.h
2162 do
2163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2164 echo "$as_me:$LINENO: checking for $ac_header" >&5
2165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 cat >conftest.$ac_ext <<_ACEOF
2170 /* confdefs.h. */
2171 _ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2175 $ac_includes_default
2176
2177 #include <$ac_header>
2178 _ACEOF
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2182 ac_status=$?
2183 grep -v '^ *+' conftest.er1 >conftest.err
2184 rm -f conftest.er1
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag"
2189 || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 eval "$as_ac_Header=yes"
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 eval "$as_ac_Header=no"
2207 fi
2208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2213 cat >>confdefs.h <<_ACEOF
2214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2215 _ACEOF
2216
2217 fi
2218
2219 done
2220
2221
2222 echo "$as_me:$LINENO: checking for off_t" >&5
2223 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2224 if test "${ac_cv_type_off_t+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233 $ac_includes_default
2234 int
2235 main ()
2236 {
2237 if ((off_t *) 0)
2238 return 0;
2239 if (sizeof (off_t))
2240 return 0;
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 ac_cv_type_off_t=yes
2268 else
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 ac_cv_type_off_t=no
2273 fi
2274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2277 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2278 if test $ac_cv_type_off_t = yes; then
2279 :
2280 else
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define off_t long
2284 _ACEOF
2285
2286 fi
2287
2288 echo "$as_me:$LINENO: checking for size_t" >&5
2289 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2290 if test "${ac_cv_type_size_t+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2299 $ac_includes_default
2300 int
2301 main ()
2302 {
2303 if ((size_t *) 0)
2304 return 0;
2305 if (sizeof (size_t))
2306 return 0;
2307 ;
2308 return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 ac_cv_type_size_t=yes
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 ac_cv_type_size_t=no
2339 fi
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2343 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2344 if test $ac_cv_type_size_t = yes; then
2345 :
2346 else
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define size_t unsigned
2350 _ACEOF
2351
2352 fi
2353
2354 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2355 # for constant arguments. Useless!
2356 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2357 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2358 if test "${ac_cv_working_alloca_h+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2367 #include <alloca.h>
2368 int
2369 main ()
2370 {
2371 char *p = (char *) alloca (2 * sizeof (int));
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext conftest$ac_exeext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2378 (eval $ac_link) 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest$ac_exeext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 ac_cv_working_alloca_h=yes
2399 else
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_cv_working_alloca_h=no
2404 fi
2405 rm -f conftest.err conftest.$ac_objext \
2406 conftest$ac_exeext conftest.$ac_ext
2407 fi
2408 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2409 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2410 if test $ac_cv_working_alloca_h = yes; then
2411
2412 cat >>confdefs.h <<\_ACEOF
2413 #define HAVE_ALLOCA_H 1
2414 _ACEOF
2415
2416 fi
2417
2418 echo "$as_me:$LINENO: checking for alloca" >&5
2419 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2420 if test "${ac_cv_func_alloca_works+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2429 #ifdef __GNUC__
2430 # define alloca __builtin_alloca
2431 #else
2432 # ifdef _MSC_VER
2433 # include <malloc.h>
2434 # define alloca _alloca
2435 # else
2436 # if HAVE_ALLOCA_H
2437 # include <alloca.h>
2438 # else
2439 # ifdef _AIX
2440 #pragma alloca
2441 # else
2442 # ifndef alloca /* predefined by HP cc +Olibcalls */
2443 char *alloca ();
2444 # endif
2445 # endif
2446 # endif
2447 # endif
2448 #endif
2449
2450 int
2451 main ()
2452 {
2453 char *p = (char *) alloca (1);
2454 ;
2455 return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest$ac_exeext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_func_alloca_works=yes
2481 else
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 ac_cv_func_alloca_works=no
2486 fi
2487 rm -f conftest.err conftest.$ac_objext \
2488 conftest$ac_exeext conftest.$ac_ext
2489 fi
2490 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2491 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2492
2493 if test $ac_cv_func_alloca_works = yes; then
2494
2495 cat >>confdefs.h <<\_ACEOF
2496 #define HAVE_ALLOCA 1
2497 _ACEOF
2498
2499 else
2500 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2501 # that cause trouble. Some versions do not even contain alloca or
2502 # contain a buggy version. If you still want to use their alloca,
2503 # use ar to extract alloca.o from them instead of compiling alloca.c.
2504
2505 ALLOCA=alloca.$ac_objext
2506
2507 cat >>confdefs.h <<\_ACEOF
2508 #define C_ALLOCA 1
2509 _ACEOF
2510
2511
2512 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2513 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2514 if test "${ac_cv_os_cray+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #if defined(CRAY) && ! defined(CRAY2)
2524 webecray
2525 #else
2526 wenotbecray
2527 #endif
2528
2529 _ACEOF
2530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2531 $EGREP "webecray" >/dev/null 2>&1; then
2532 ac_cv_os_cray=yes
2533 else
2534 ac_cv_os_cray=no
2535 fi
2536 rm -f conftest*
2537
2538 fi
2539 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2540 echo "${ECHO_T}$ac_cv_os_cray" >&6
2541 if test $ac_cv_os_cray = yes; then
2542 for ac_func in _getb67 GETB67 getb67; do
2543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2544 echo "$as_me:$LINENO: checking for $ac_func" >&5
2545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2546 if eval "test \"\${$as_ac_var+set}\" = set"; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $ac_func innocuous_$ac_func
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $ac_func (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $ac_func
2571
2572 /* Override any gcc2 internal prototype to avoid an error. */
2573 #ifdef __cplusplus
2574 extern "C"
2575 {
2576 #endif
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2579 char $ac_func ();
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2584 choke me
2585 #else
2586 char (*f) () = $ac_func;
2587 #endif
2588 #ifdef __cplusplus
2589 }
2590 #endif
2591
2592 int
2593 main ()
2594 {
2595 return f != $ac_func;
2596 ;
2597 return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext conftest$ac_exeext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602 (eval $ac_link) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest$ac_exeext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 eval "$as_ac_var=yes"
2623 else
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 eval "$as_ac_var=no"
2628 fi
2629 rm -f conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2631 fi
2632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2634 if test `eval echo '${'$as_ac_var'}'` = yes; then
2635
2636 cat >>confdefs.h <<_ACEOF
2637 #define CRAY_STACKSEG_END $ac_func
2638 _ACEOF
2639
2640 break
2641 fi
2642
2643 done
2644 fi
2645
2646 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2647 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2648 if test "${ac_cv_c_stack_direction+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651 if test "$cross_compiling" = yes; then
2652 ac_cv_c_stack_direction=0
2653 else
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2660 int
2661 find_stack_direction ()
2662 {
2663 static char *addr = 0;
2664 auto char dummy;
2665 if (addr == 0)
2666 {
2667 addr = &dummy;
2668 return find_stack_direction ();
2669 }
2670 else
2671 return (&dummy > addr) ? 1 : -1;
2672 }
2673
2674 int
2675 main ()
2676 {
2677 exit (find_stack_direction () < 0);
2678 }
2679 _ACEOF
2680 rm -f conftest$ac_exeext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2682 (eval $ac_link) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_c_stack_direction=1
2692 else
2693 echo "$as_me: program exited with status $ac_status" >&5
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 ( exit $ac_status )
2698 ac_cv_c_stack_direction=-1
2699 fi
2700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2701 fi
2702 fi
2703 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2704 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define STACK_DIRECTION $ac_cv_c_stack_direction
2708 _ACEOF
2709
2710
2711 fi
2712
2713
2714
2715 for ac_header in stdlib.h unistd.h
2716 do
2717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2719 echo "$as_me:$LINENO: checking for $ac_header" >&5
2720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 fi
2724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2726 else
2727 # Is the header compilable?
2728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h. */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 $ac_includes_default
2737 #include <$ac_header>
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_header_compiler=yes
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 ac_header_compiler=no
2767 fi
2768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2770 echo "${ECHO_T}$ac_header_compiler" >&6
2771
2772 # Is the header present?
2773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h. */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2781 #include <$ac_header>
2782 _ACEOF
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_c_preproc_warn_flag
2793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2794 else
2795 ac_cpp_err=
2796 fi
2797 else
2798 ac_cpp_err=yes
2799 fi
2800 if test -z "$ac_cpp_err"; then
2801 ac_header_preproc=yes
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 ac_header_preproc=no
2807 fi
2808 rm -f conftest.err conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2810 echo "${ECHO_T}$ac_header_preproc" >&6
2811
2812 # So? What about this header?
2813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2814 yes:no: )
2815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2819 ac_header_preproc=yes
2820 ;;
2821 no:yes:* )
2822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2834 (
2835 cat <<\_ASBOX
2836 ## ------------------------------------------ ##
2837 ## Report this to the AC_PACKAGE_NAME lists. ##
2838 ## ------------------------------------------ ##
2839 _ASBOX
2840 ) |
2841 sed "s/^/$as_me: WARNING: /" >&2
2842 ;;
2843 esac
2844 echo "$as_me:$LINENO: checking for $ac_header" >&5
2845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 eval "$as_ac_Header=\$ac_header_preproc"
2850 fi
2851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2853
2854 fi
2855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2856 cat >>confdefs.h <<_ACEOF
2857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2858 _ACEOF
2859
2860 fi
2861
2862 done
2863
2864
2865 for ac_func in getpagesize
2866 do
2867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2868 echo "$as_me:$LINENO: checking for $ac_func" >&5
2869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2870 if eval "test \"\${$as_ac_var+set}\" = set"; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2881 #define $ac_func innocuous_$ac_func
2882
2883 /* System header to define __stub macros and hopefully few prototypes,
2884 which can conflict with char $ac_func (); below.
2885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 <limits.h> exists even on freestanding compilers. */
2887
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893
2894 #undef $ac_func
2895
2896 /* Override any gcc2 internal prototype to avoid an error. */
2897 #ifdef __cplusplus
2898 extern "C"
2899 {
2900 #endif
2901 /* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2903 char $ac_func ();
2904 /* The GNU C library defines this for functions which it implements
2905 to always fail with ENOSYS. Some functions are actually named
2906 something starting with __ and the normal name is an alias. */
2907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2908 choke me
2909 #else
2910 char (*f) () = $ac_func;
2911 #endif
2912 #ifdef __cplusplus
2913 }
2914 #endif
2915
2916 int
2917 main ()
2918 {
2919 return f != $ac_func;
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest$ac_exeext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 eval "$as_ac_var=yes"
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 eval "$as_ac_var=no"
2952 fi
2953 rm -f conftest.err conftest.$ac_objext \
2954 conftest$ac_exeext conftest.$ac_ext
2955 fi
2956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2958 if test `eval echo '${'$as_ac_var'}'` = yes; then
2959 cat >>confdefs.h <<_ACEOF
2960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2961 _ACEOF
2962
2963 fi
2964 done
2965
2966 echo "$as_me:$LINENO: checking for working mmap" >&5
2967 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2968 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test "$cross_compiling" = yes; then
2972 ac_cv_func_mmap_fixed_mapped=no
2973 else
2974 cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h. */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 $ac_includes_default
2981 /* malloc might have been renamed as rpl_malloc. */
2982 #undef malloc
2983
2984 /* Thanks to Mike Haertel and Jim Avera for this test.
2985 Here is a matrix of mmap possibilities:
2986 mmap private not fixed
2987 mmap private fixed at somewhere currently unmapped
2988 mmap private fixed at somewhere already mapped
2989 mmap shared not fixed
2990 mmap shared fixed at somewhere currently unmapped
2991 mmap shared fixed at somewhere already mapped
2992 For private mappings, we should verify that changes cannot be read()
2993 back from the file, nor mmap's back from the file at a different
2994 address. (There have been systems where private was not correctly
2995 implemented like the infamous i386 svr4.0, and systems where the
2996 VM page cache was not coherent with the file system buffer cache
2997 like early versions of FreeBSD and possibly contemporary NetBSD.)
2998 For shared mappings, we should conversely verify that changes get
2999 propagated back to all the places they're supposed to be.
3000
3001 Grep wants private fixed already mapped.
3002 The main things grep needs to know about mmap are:
3003 * does it exist and is it safe to write into the mmap'd area
3004 * how to use it (BSD variants) */
3005
3006 #include <fcntl.h>
3007 #include <sys/mman.h>
3008
3009 #if !STDC_HEADERS && !HAVE_STDLIB_H
3010 char *malloc ();
3011 #endif
3012
3013 /* This mess was copied from the GNU getpagesize.h. */
3014 #if !HAVE_GETPAGESIZE
3015 /* Assume that all systems that can run configure have sys/param.h. */
3016 # if !HAVE_SYS_PARAM_H
3017 # define HAVE_SYS_PARAM_H 1
3018 # endif
3019
3020 # ifdef _SC_PAGESIZE
3021 # define getpagesize() sysconf(_SC_PAGESIZE)
3022 # else /* no _SC_PAGESIZE */
3023 # if HAVE_SYS_PARAM_H
3024 # include <sys/param.h>
3025 # ifdef EXEC_PAGESIZE
3026 # define getpagesize() EXEC_PAGESIZE
3027 # else /* no EXEC_PAGESIZE */
3028 # ifdef NBPG
3029 # define getpagesize() NBPG * CLSIZE
3030 # ifndef CLSIZE
3031 # define CLSIZE 1
3032 # endif /* no CLSIZE */
3033 # else /* no NBPG */
3034 # ifdef NBPC
3035 # define getpagesize() NBPC
3036 # else /* no NBPC */
3037 # ifdef PAGESIZE
3038 # define getpagesize() PAGESIZE
3039 # endif /* PAGESIZE */
3040 # endif /* no NBPC */
3041 # endif /* no NBPG */
3042 # endif /* no EXEC_PAGESIZE */
3043 # else /* no HAVE_SYS_PARAM_H */
3044 # define getpagesize() 8192 /* punt totally */
3045 # endif /* no HAVE_SYS_PARAM_H */
3046 # endif /* no _SC_PAGESIZE */
3047
3048 #endif /* no HAVE_GETPAGESIZE */
3049
3050 int
3051 main ()
3052 {
3053 char *data, *data2, *data3;
3054 int i, pagesize;
3055 int fd;
3056
3057 pagesize = getpagesize ();
3058
3059 /* First, make a file with some known garbage in it. */
3060 data = (char *) malloc (pagesize);
3061 if (!data)
3062 exit (1);
3063 for (i = 0; i < pagesize; ++i)
3064 *(data + i) = rand ();
3065 umask (0);
3066 fd = creat ("conftest.mmap", 0600);
3067 if (fd < 0)
3068 exit (1);
3069 if (write (fd, data, pagesize) != pagesize)
3070 exit (1);
3071 close (fd);
3072
3073 /* Next, try to mmap the file at a fixed address which already has
3074 something else allocated at it. If we can, also make sure that
3075 we see the same garbage. */
3076 fd = open ("conftest.mmap", O_RDWR);
3077 if (fd < 0)
3078 exit (1);
3079 data2 = (char *) malloc (2 * pagesize);
3080 if (!data2)
3081 exit (1);
3082 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3083 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3084 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3085 exit (1);
3086 for (i = 0; i < pagesize; ++i)
3087 if (*(data + i) != *(data2 + i))
3088 exit (1);
3089
3090 /* Finally, make sure that changes to the mapped area do not
3091 percolate back to the file as seen by read(). (This is a bug on
3092 some variants of i386 svr4.0.) */
3093 for (i = 0; i < pagesize; ++i)
3094 *(data2 + i) = *(data2 + i) + 1;
3095 data3 = (char *) malloc (pagesize);
3096 if (!data3)
3097 exit (1);
3098 if (read (fd, data3, pagesize) != pagesize)
3099 exit (1);
3100 for (i = 0; i < pagesize; ++i)
3101 if (*(data + i) != *(data3 + i))
3102 exit (1);
3103 close (fd);
3104 exit (0);
3105 }
3106 _ACEOF
3107 rm -f conftest$ac_exeext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_cv_func_mmap_fixed_mapped=yes
3119 else
3120 echo "$as_me: program exited with status $ac_status" >&5
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 ( exit $ac_status )
3125 ac_cv_func_mmap_fixed_mapped=no
3126 fi
3127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3128 fi
3129 fi
3130 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3131 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3132 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3133
3134 cat >>confdefs.h <<\_ACEOF
3135 #define HAVE_MMAP 1
3136 _ACEOF
3137
3138 fi
3139 rm -f conftest.mmap
3140
3141
3142 # autoconf.info says this should be called right after AC_INIT.
3143 ac_config_headers="$ac_config_headers config.h:config.in"
3144
3145 echo "$as_me:$LINENO: checking target system type" >&5
3146 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3147 if test "${ac_cv_target+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 ac_cv_target_alias=$target_alias
3151 test "x$ac_cv_target_alias" = "x" &&
3152 ac_cv_target_alias=$ac_cv_host_alias
3153 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3155 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3156 { (exit 1); exit 1; }; }
3157
3158 fi
3159 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3160 echo "${ECHO_T}$ac_cv_target" >&6
3161 target=$ac_cv_target
3162 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3163 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3164 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3165
3166
3167 # The aliases save the names the user supplied, while $host etc.
3168 # will get canonicalized.
3169 test -n "$target_alias" &&
3170 test "$program_prefix$program_suffix$program_transform_name" = \
3171 NONENONEs,x,x, &&
3172 program_prefix=${target_alias}-
3173 test "$program_prefix" != NONE &&
3174 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3175 # Use a double $ so make ignores it.
3176 test "$program_suffix" != NONE &&
3177 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3178 # Double any \ or $. echo might interpret backslashes.
3179 # By default was `s,x,x', remove it if useless.
3180 cat <<\_ACEOF >conftest.sed
3181 s/[\\$]/&&/g;s/;s,x,x,$//
3182 _ACEOF
3183 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3184 rm conftest.sed
3185
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3194 echo "$as_me:$LINENO: checking for $ac_word" >&5
3195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196 if test "${ac_cv_prog_CC+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215
3216 fi
3217 fi
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220 echo "$as_me:$LINENO: result: $CC" >&5
3221 echo "${ECHO_T}$CC" >&6
3222 else
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3225 fi
3226
3227 fi
3228 if test -z "$ac_cv_prog_CC"; then
3229 ac_ct_CC=$CC
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_ac_ct_CC="gcc"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3250 fi
3251 done
3252 done
3253
3254 fi
3255 fi
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3259 echo "${ECHO_T}$ac_ct_CC" >&6
3260 else
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3263 fi
3264
3265 CC=$ac_ct_CC
3266 else
3267 CC="$ac_cv_prog_CC"
3268 fi
3269
3270 if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}cc; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}cc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6
3302 else
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3305 fi
3306
3307 fi
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "cc", so it can be a program name with args.
3311 set dummy cc; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="cc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339 echo "${ECHO_T}$ac_ct_CC" >&6
3340 else
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345 CC=$ac_ct_CC
3346 else
3347 CC="$ac_cv_prog_CC"
3348 fi
3349
3350 fi
3351 if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 ac_prog_rejected=no
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371 ac_prog_rejected=yes
3372 continue
3373 fi
3374 ac_cv_prog_CC="cc"
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380
3381 if test $ac_prog_rejected = yes; then
3382 # We found a bogon in the path, so make sure we never use it.
3383 set dummy $ac_cv_prog_CC
3384 shift
3385 if test $# != 0; then
3386 # We chose a different compiler from the bogus one.
3387 # However, it has the same basename, so the bogon will be chosen
3388 # first if we set CC to just the basename; use the full file name.
3389 shift
3390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3391 fi
3392 fi
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 echo "$as_me:$LINENO: result: $CC" >&5
3398 echo "${ECHO_T}$CC" >&6
3399 else
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404 fi
3405 if test -z "$CC"; then
3406 if test -n "$ac_tool_prefix"; then
3407 for ac_prog in cl
3408 do
3409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_CC+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3429 fi
3430 done
3431 done
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 echo "$as_me:$LINENO: result: $CC" >&5
3438 echo "${ECHO_T}$CC" >&6
3439 else
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3442 fi
3443
3444 test -n "$CC" && break
3445 done
3446 fi
3447 if test -z "$CC"; then
3448 ac_ct_CC=$CC
3449 for ac_prog in cl
3450 do
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if test -n "$ac_ct_CC"; then
3459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_ac_ct_CC="$ac_prog"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474
3475 fi
3476 fi
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3480 echo "${ECHO_T}$ac_ct_CC" >&6
3481 else
3482 echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6
3484 fi
3485
3486 test -n "$ac_ct_CC" && break
3487 done
3488
3489 CC=$ac_ct_CC
3490 fi
3491
3492 fi
3493
3494
3495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." >&5
3497 echo "$as_me: error: no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." >&2;}
3499 { (exit 1); exit 1; }; }
3500
3501 # Provide some information about the compiler.
3502 echo "$as_me:$LINENO:" \
3503 "checking for C compiler version" >&5
3504 ac_compiler=`set X $ac_compile; echo $2`
3505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3506 (eval $ac_compiler --version </dev/null >&5) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }
3510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3511 (eval $ac_compiler -v </dev/null >&5) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }
3515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3516 (eval $ac_compiler -V </dev/null >&5) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }
3520
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527
3528 int
3529 main ()
3530 {
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 ac_clean_files_save=$ac_clean_files
3537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3538 # Try to create an executable without -o first, disregard a.out.
3539 # It will help us diagnose broken compilers, and finding out an intuition
3540 # of exeext.
3541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3545 (eval $ac_link_default) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; then
3549 # Find the output, starting from the most likely. This scheme is
3550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3551 # resort.
3552
3553 # Be careful to initialize this variable, since it used to be cached.
3554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3555 ac_cv_exeext=
3556 # b.out is created by i960 compilers.
3557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3558 do
3559 test -f "$ac_file" || continue
3560 case $ac_file in
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3562 ;;
3563 conftest.$ac_ext )
3564 # This is the source file.
3565 ;;
3566 [ab].out )
3567 # We found the default executable, but exeext='' is most
3568 # certainly right.
3569 break;;
3570 *.* )
3571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 # FIXME: I believe we export ac_cv_exeext for Libtool,
3573 # but it would be cool to find out if it's true. Does anybody
3574 # maintain Libtool? --akim.
3575 export ac_cv_exeext
3576 break;;
3577 * )
3578 break;;
3579 esac
3580 done
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3586 See \`config.log' for more details." >&5
3587 echo "$as_me: error: C compiler cannot create executables
3588 See \`config.log' for more details." >&2;}
3589 { (exit 77); exit 77; }; }
3590 fi
3591
3592 ac_exeext=$ac_cv_exeext
3593 echo "$as_me:$LINENO: result: $ac_file" >&5
3594 echo "${ECHO_T}$ac_file" >&6
3595
3596 # Check the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3601 # If not cross compiling, check that we can run a simple program.
3602 if test "$cross_compiling" != yes; then
3603 if { ac_try='./$ac_file'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 cross_compiling=no
3610 else
3611 if test "$cross_compiling" = maybe; then
3612 cross_compiling=yes
3613 else
3614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }
3621 fi
3622 fi
3623 fi
3624 echo "$as_me:$LINENO: result: yes" >&5
3625 echo "${ECHO_T}yes" >&6
3626
3627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 echo "${ECHO_T}$cross_compiling" >&6
3635
3636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639 (eval $ac_link) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; then
3643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3645 # work properly (i.e., refer to `conftest.exe'), while it won't with
3646 # `rm'.
3647 for ac_file in conftest.exe conftest conftest.*; do
3648 test -f "$ac_file" || continue
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3652 export ac_cv_exeext
3653 break;;
3654 * ) break;;
3655 esac
3656 done
3657 else
3658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3659 See \`config.log' for more details." >&5
3660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3661 See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }
3663 fi
3664
3665 rm -f conftest$ac_cv_exeext
3666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3667 echo "${ECHO_T}$ac_cv_exeext" >&6
3668
3669 rm -f conftest.$ac_ext
3670 EXEEXT=$ac_cv_exeext
3671 ac_exeext=$EXEEXT
3672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3674 if test "${ac_cv_objext+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; then
3698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3699 case $ac_file in
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3702 break;;
3703 esac
3704 done
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3710 See \`config.log' for more details." >&5
3711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3712 See \`config.log' for more details." >&2;}
3713 { (exit 1); exit 1; }; }
3714 fi
3715
3716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 fi
3718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3719 echo "${ECHO_T}$ac_cv_objext" >&6
3720 OBJEXT=$ac_cv_objext
3721 ac_objext=$OBJEXT
3722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733
3734 int
3735 main ()
3736 {
3737 #ifndef __GNUC__
3738 choke me
3739 #endif
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 { ac_try='test -z "$ac_c_werror_flag"
3755 || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
3761 { ac_try='test -s conftest.$ac_objext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 ac_compiler_gnu=yes
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 ac_compiler_gnu=no
3773 fi
3774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3776
3777 fi
3778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3780 GCC=`test $ac_compiler_gnu = yes && echo yes`
3781 ac_test_CFLAGS=${CFLAGS+set}
3782 ac_save_CFLAGS=$CFLAGS
3783 CFLAGS="-g"
3784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3786 if test "${ac_cv_prog_cc_g+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_prog_cc_g=yes
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 ac_cv_prog_cc_g=no
3832 fi
3833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3837 if test "$ac_test_CFLAGS" = set; then
3838 CFLAGS=$ac_save_CFLAGS
3839 elif test $ac_cv_prog_cc_g = yes; then
3840 if test "$GCC" = yes; then
3841 CFLAGS="-g -O2"
3842 else
3843 CFLAGS="-g"
3844 fi
3845 else
3846 if test "$GCC" = yes; then
3847 CFLAGS="-O2"
3848 else
3849 CFLAGS=
3850 fi
3851 fi
3852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 ac_cv_prog_cc_stdc=no
3858 ac_save_CC=$CC
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <stdarg.h>
3866 #include <stdio.h>
3867 #include <sys/types.h>
3868 #include <sys/stat.h>
3869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3870 struct buf { int x; };
3871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3872 static char *e (p, i)
3873 char **p;
3874 int i;
3875 {
3876 return p[i];
3877 }
3878 static char *f (char * (*g) (char **, int), char **p, ...)
3879 {
3880 char *s;
3881 va_list v;
3882 va_start (v,p);
3883 s = g (p, va_arg (v,int));
3884 va_end (v);
3885 return s;
3886 }
3887
3888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3889 function prototypes and stuff, but not '\xHH' hex character constants.
3890 These don't provoke an error unfortunately, instead are silently treated
3891 as 'x'. The following induces an error, until -std1 is added to get
3892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3893 array size at least. It's necessary to write '\x00'==0 to get something
3894 that's true only with -std1. */
3895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896
3897 int test (int i, double x);
3898 struct s1 {int (*f) (int a);};
3899 struct s2 {int (*f) (double a);};
3900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901 int argc;
3902 char **argv;
3903 int
3904 main ()
3905 {
3906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 # Don't try gcc -ansi; that turns off useful extensions and
3912 # breaks some systems' header files.
3913 # AIX -qlanglvl=ansi
3914 # Ultrix and OSF/1 -std1
3915 # HP-UX 10.20 and later -Ae
3916 # HP-UX older versions -Aa -D_HPUX_SOURCE
3917 # SVR4 -Xc -D__EXTENSIONS__
3918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3919 do
3920 CC="$ac_save_CC $ac_arg"
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3943 ac_cv_prog_cc_stdc=$ac_arg
3944 break
3945 else
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 fi
3950 rm -f conftest.err conftest.$ac_objext
3951 done
3952 rm -f conftest.$ac_ext conftest.$ac_objext
3953 CC=$ac_save_CC
3954
3955 fi
3956
3957 case "x$ac_cv_prog_cc_stdc" in
3958 x|xno)
3959 echo "$as_me:$LINENO: result: none needed" >&5
3960 echo "${ECHO_T}none needed" >&6 ;;
3961 *)
3962 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3964 CC="$CC $ac_cv_prog_cc_stdc" ;;
3965 esac
3966
3967 # Some people use a C++ compiler to compile C. Since we use `exit',
3968 # in C++ we need to declare it. In case someone uses the same compiler
3969 # for both compiling C and C++ we need to have the C++ compiler decide
3970 # the declaration of exit, since it's the most demanding environment.
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #ifndef __cplusplus
3973 choke me
3974 #endif
3975 _ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_c_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 for ac_declaration in \
3999 '' \
4000 'extern "C" void std::exit (int) throw (); using std::exit;' \
4001 'extern "C" void std::exit (int); using std::exit;' \
4002 'extern "C" void exit (int) throw ();' \
4003 'extern "C" void exit (int);' \
4004 'void exit (int);'
4005 do
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_declaration
4013 #include <stdlib.h>
4014 int
4015 main ()
4016 {
4017 exit (42);
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_c_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 :
4045 else
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 continue
4050 fi
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_declaration
4059 int
4060 main ()
4061 {
4062 exit (42);
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 break
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 fi
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 done
4097 rm -f conftest*
4098 if test -n "$ac_declaration"; then
4099 echo '#ifdef __cplusplus' >>confdefs.h
4100 echo $ac_declaration >>confdefs.h
4101 echo '#endif' >>confdefs.h
4102 fi
4103
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 fi
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116 # Find a good install program. We prefer a C program (faster),
4117 # so one script is as good as another. But avoid the broken or
4118 # incompatible versions:
4119 # SysV /etc/install, /usr/sbin/install
4120 # SunOS /usr/etc/install
4121 # IRIX /sbin/install
4122 # AIX /bin/install
4123 # AmigaOS /C/install, which installs bootblocks on floppy discs
4124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4127 # OS/2's system install, which has a completely different semantic
4128 # ./install, which can be erroneously created by make from ./install.sh.
4129 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4130 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4131 if test -z "$INSTALL"; then
4132 if test "${ac_cv_path_install+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 # Account for people who put trailing slashes in PATH elements.
4141 case $as_dir/ in
4142 ./ | .// | /cC/* | \
4143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4144 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4145 /usr/ucb/* ) ;;
4146 *)
4147 # OSF1 and SCO ODT 3.0 have their own names for install.
4148 # Don't use installbsd from OSF since it installs stuff as root
4149 # by default.
4150 for ac_prog in ginstall scoinst install; do
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4153 if test $ac_prog = install &&
4154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4155 # AIX install. It has an incompatible calling convention.
4156 :
4157 elif test $ac_prog = install &&
4158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4159 # program-specific install script used by HP pwplus--don't use.
4160 :
4161 else
4162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4163 break 3
4164 fi
4165 fi
4166 done
4167 done
4168 ;;
4169 esac
4170 done
4171
4172
4173 fi
4174 if test "${ac_cv_path_install+set}" = set; then
4175 INSTALL=$ac_cv_path_install
4176 else
4177 # As a last resort, use the slow shell script. We don't cache a
4178 # path for INSTALL within a source directory, because that will
4179 # break other packages using the cache if that directory is
4180 # removed, or if the path is relative.
4181 INSTALL=$ac_install_sh
4182 fi
4183 fi
4184 echo "$as_me:$LINENO: result: $INSTALL" >&5
4185 echo "${ECHO_T}$INSTALL" >&6
4186
4187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4188 # It thinks the first close brace ends the variable substitution.
4189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4190
4191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4192
4193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4194
4195
4196 # Put a plausible default for CC_FOR_BUILD in Makefile.
4197 if test "x$cross_compiling" = "xno"; then
4198 CC_FOR_BUILD='$(CC)'
4199 else
4200 CC_FOR_BUILD=gcc
4201 fi
4202
4203
4204
4205
4206 AR=${AR-ar}
4207
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4211 echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4213 if test "${ac_cv_prog_RANLIB+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test -n "$RANLIB"; then
4217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232
4233 fi
4234 fi
4235 RANLIB=$ac_cv_prog_RANLIB
4236 if test -n "$RANLIB"; then
4237 echo "$as_me:$LINENO: result: $RANLIB" >&5
4238 echo "${ECHO_T}$RANLIB" >&6
4239 else
4240 echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4242 fi
4243
4244 fi
4245 if test -z "$ac_cv_prog_RANLIB"; then
4246 ac_ct_RANLIB=$RANLIB
4247 # Extract the first word of "ranlib", so it can be a program name with args.
4248 set dummy ranlib; ac_word=$2
4249 echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 if test -n "$ac_ct_RANLIB"; then
4255 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_ac_ct_RANLIB="ranlib"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268 done
4269 done
4270
4271 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4272 fi
4273 fi
4274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4275 if test -n "$ac_ct_RANLIB"; then
4276 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4277 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4278 else
4279 echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4281 fi
4282
4283 RANLIB=$ac_ct_RANLIB
4284 else
4285 RANLIB="$ac_cv_prog_RANLIB"
4286 fi
4287
4288
4289 ALL_LINGUAS=
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4301 unistd.h values.h sys/param.h
4302 do
4303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305 echo "$as_me:$LINENO: checking for $ac_header" >&5
4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 fi
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4312 else
4313 # Is the header compilable?
4314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4323 #include <$ac_header>
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>conftest.er1
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_header_compiler=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ac_header_compiler=no
4353 fi
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4356 echo "${ECHO_T}$ac_header_compiler" >&6
4357
4358 # Is the header present?
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <$ac_header>
4368 _ACEOF
4369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } >/dev/null; then
4377 if test -s conftest.err; then
4378 ac_cpp_err=$ac_c_preproc_warn_flag
4379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4380 else
4381 ac_cpp_err=
4382 fi
4383 else
4384 ac_cpp_err=yes
4385 fi
4386 if test -z "$ac_cpp_err"; then
4387 ac_header_preproc=yes
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 ac_header_preproc=no
4393 fi
4394 rm -f conftest.err conftest.$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4396 echo "${ECHO_T}$ac_header_preproc" >&6
4397
4398 # So? What about this header?
4399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4400 yes:no: )
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4405 ac_header_preproc=yes
4406 ;;
4407 no:yes:* )
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4420 (
4421 cat <<\_ASBOX
4422 ## ------------------------------------------ ##
4423 ## Report this to the AC_PACKAGE_NAME lists. ##
4424 ## ------------------------------------------ ##
4425 _ASBOX
4426 ) |
4427 sed "s/^/$as_me: WARNING: /" >&2
4428 ;;
4429 esac
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 eval "$as_ac_Header=\$ac_header_preproc"
4436 fi
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439
4440 fi
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4442 cat >>confdefs.h <<_ACEOF
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444 _ACEOF
4445
4446 fi
4447
4448 done
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4461 __argz_count __argz_stringify __argz_next
4462 do
4463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4464 echo "$as_me:$LINENO: checking for $ac_func" >&5
4465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4466 if eval "test \"\${$as_ac_var+set}\" = set"; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4477 #define $ac_func innocuous_$ac_func
4478
4479 /* System header to define __stub macros and hopefully few prototypes,
4480 which can conflict with char $ac_func (); below.
4481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 <limits.h> exists even on freestanding compilers. */
4483
4484 #ifdef __STDC__
4485 # include <limits.h>
4486 #else
4487 # include <assert.h>
4488 #endif
4489
4490 #undef $ac_func
4491
4492 /* Override any gcc2 internal prototype to avoid an error. */
4493 #ifdef __cplusplus
4494 extern "C"
4495 {
4496 #endif
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4499 char $ac_func ();
4500 /* The GNU C library defines this for functions which it implements
4501 to always fail with ENOSYS. Some functions are actually named
4502 something starting with __ and the normal name is an alias. */
4503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4504 choke me
4505 #else
4506 char (*f) () = $ac_func;
4507 #endif
4508 #ifdef __cplusplus
4509 }
4510 #endif
4511
4512 int
4513 main ()
4514 {
4515 return f != $ac_func;
4516 ;
4517 return 0;
4518 }
4519 _ACEOF
4520 rm -f conftest.$ac_objext conftest$ac_exeext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522 (eval $ac_link) 2>conftest.er1
4523 ac_status=$?
4524 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -z "$ac_c_werror_flag"
4530 || test ! -s conftest.err'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; } &&
4536 { ac_try='test -s conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 eval "$as_ac_var=yes"
4543 else
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 eval "$as_ac_var=no"
4548 fi
4549 rm -f conftest.err conftest.$ac_objext \
4550 conftest$ac_exeext conftest.$ac_ext
4551 fi
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4554 if test `eval echo '${'$as_ac_var'}'` = yes; then
4555 cat >>confdefs.h <<_ACEOF
4556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4557 _ACEOF
4558
4559 fi
4560 done
4561
4562
4563 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4564
4565 for ac_func in stpcpy
4566 do
4567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4568 echo "$as_me:$LINENO: checking for $ac_func" >&5
4569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_var+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h. */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4581 #define $ac_func innocuous_$ac_func
4582
4583 /* System header to define __stub macros and hopefully few prototypes,
4584 which can conflict with char $ac_func (); below.
4585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4586 <limits.h> exists even on freestanding compilers. */
4587
4588 #ifdef __STDC__
4589 # include <limits.h>
4590 #else
4591 # include <assert.h>
4592 #endif
4593
4594 #undef $ac_func
4595
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 #ifdef __cplusplus
4598 extern "C"
4599 {
4600 #endif
4601 /* We use char because int might match the return type of a gcc2
4602 builtin and then its argument prototype would still apply. */
4603 char $ac_func ();
4604 /* The GNU C library defines this for functions which it implements
4605 to always fail with ENOSYS. Some functions are actually named
4606 something starting with __ and the normal name is an alias. */
4607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4608 choke me
4609 #else
4610 char (*f) () = $ac_func;
4611 #endif
4612 #ifdef __cplusplus
4613 }
4614 #endif
4615
4616 int
4617 main ()
4618 {
4619 return f != $ac_func;
4620 ;
4621 return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest$ac_exeext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 eval "$as_ac_var=yes"
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 eval "$as_ac_var=no"
4652 fi
4653 rm -f conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4655 fi
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4658 if test `eval echo '${'$as_ac_var'}'` = yes; then
4659 cat >>confdefs.h <<_ACEOF
4660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4661 _ACEOF
4662
4663 fi
4664 done
4665
4666 fi
4667 if test "${ac_cv_func_stpcpy}" = "yes"; then
4668 cat >>confdefs.h <<\_ACEOF
4669 #define HAVE_STPCPY 1
4670 _ACEOF
4671
4672 fi
4673
4674 if test $ac_cv_header_locale_h = yes; then
4675 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4676 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4677 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <locale.h>
4687 int
4688 main ()
4689 {
4690 return LC_MESSAGES
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 am_cv_val_LC_MESSAGES=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 am_cv_val_LC_MESSAGES=no
4723 fi
4724 rm -f conftest.err conftest.$ac_objext \
4725 conftest$ac_exeext conftest.$ac_ext
4726 fi
4727 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4728 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4729 if test $am_cv_val_LC_MESSAGES = yes; then
4730 cat >>confdefs.h <<\_ACEOF
4731 #define HAVE_LC_MESSAGES 1
4732 _ACEOF
4733
4734 fi
4735 fi
4736 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4737 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4738 # Check whether --enable-nls or --disable-nls was given.
4739 if test "${enable_nls+set}" = set; then
4740 enableval="$enable_nls"
4741 USE_NLS=$enableval
4742 else
4743 USE_NLS=yes
4744 fi;
4745 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4746 echo "${ECHO_T}$USE_NLS" >&6
4747
4748
4749 USE_INCLUDED_LIBINTL=no
4750
4751 if test "$USE_NLS" = "yes"; then
4752 cat >>confdefs.h <<\_ACEOF
4753 #define ENABLE_NLS 1
4754 _ACEOF
4755
4756 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4757 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4758
4759 # Check whether --with-included-gettext or --without-included-gettext was given.
4760 if test "${with_included_gettext+set}" = set; then
4761 withval="$with_included_gettext"
4762 nls_cv_force_use_gnu_gettext=$withval
4763 else
4764 nls_cv_force_use_gnu_gettext=no
4765 fi;
4766 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4767 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4768
4769 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4770 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4771 nls_cv_header_intl=
4772 nls_cv_header_libgt=
4773 CATOBJEXT=NONE
4774
4775 if test "${ac_cv_header_libintl_h+set}" = set; then
4776 echo "$as_me:$LINENO: checking for libintl.h" >&5
4777 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4778 if test "${ac_cv_header_libintl_h+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 fi
4781 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4782 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4783 else
4784 # Is the header compilable?
4785 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4786 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 #include <libintl.h>
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4818 ac_header_compiler=yes
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_header_compiler=no
4824 fi
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4827 echo "${ECHO_T}$ac_header_compiler" >&6
4828
4829 # Is the header present?
4830 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4831 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #include <libintl.h>
4839 _ACEOF
4840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null; then
4848 if test -s conftest.err; then
4849 ac_cpp_err=$ac_c_preproc_warn_flag
4850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4851 else
4852 ac_cpp_err=
4853 fi
4854 else
4855 ac_cpp_err=yes
4856 fi
4857 if test -z "$ac_cpp_err"; then
4858 ac_header_preproc=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 ac_header_preproc=no
4864 fi
4865 rm -f conftest.err conftest.$ac_ext
4866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4867 echo "${ECHO_T}$ac_header_preproc" >&6
4868
4869 # So? What about this header?
4870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4871 yes:no: )
4872 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4873 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4875 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4876 ac_header_preproc=yes
4877 ;;
4878 no:yes:* )
4879 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4880 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4882 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4884 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4886 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4888 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4890 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4891 (
4892 cat <<\_ASBOX
4893 ## ------------------------------------------ ##
4894 ## Report this to the AC_PACKAGE_NAME lists. ##
4895 ## ------------------------------------------ ##
4896 _ASBOX
4897 ) |
4898 sed "s/^/$as_me: WARNING: /" >&2
4899 ;;
4900 esac
4901 echo "$as_me:$LINENO: checking for libintl.h" >&5
4902 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4903 if test "${ac_cv_header_libintl_h+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 ac_cv_header_libintl_h=$ac_header_preproc
4907 fi
4908 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4909 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4910
4911 fi
4912 if test $ac_cv_header_libintl_h = yes; then
4913 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4914 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4915 if test "${gt_cv_func_gettext_libc+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 #include <libintl.h>
4925 int
4926 main ()
4927 {
4928 return (int) gettext ("")
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext conftest$ac_exeext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 gt_cv_func_gettext_libc=yes
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 gt_cv_func_gettext_libc=no
4961 fi
4962 rm -f conftest.err conftest.$ac_objext \
4963 conftest$ac_exeext conftest.$ac_ext
4964 fi
4965 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4966 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4967
4968 if test "$gt_cv_func_gettext_libc" != "yes"; then
4969 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4970 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4971 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 ac_check_lib_save_LIBS=$LIBS
4975 LIBS="-lintl $LIBS"
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 #ifdef __cplusplus
4985 extern "C"
4986 #endif
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4989 char bindtextdomain ();
4990 int
4991 main ()
4992 {
4993 bindtextdomain ();
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 rm -f conftest.$ac_objext conftest$ac_exeext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5000 (eval $ac_link) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest$ac_exeext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_lib_intl_bindtextdomain=yes
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 ac_cv_lib_intl_bindtextdomain=no
5026 fi
5027 rm -f conftest.err conftest.$ac_objext \
5028 conftest$ac_exeext conftest.$ac_ext
5029 LIBS=$ac_check_lib_save_LIBS
5030 fi
5031 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5032 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5033 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5034 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5035 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5036 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045
5046 int
5047 main ()
5048 {
5049 return (int) gettext ("")
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056 (eval $ac_link) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag"
5064 || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest$ac_exeext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 gt_cv_func_gettext_libintl=yes
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 gt_cv_func_gettext_libintl=no
5082 fi
5083 rm -f conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5085 fi
5086 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5087 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5088 fi
5089
5090 fi
5091
5092 if test "$gt_cv_func_gettext_libc" = "yes" \
5093 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5094 cat >>confdefs.h <<\_ACEOF
5095 #define HAVE_GETTEXT 1
5096 _ACEOF
5097
5098 # Extract the first word of "msgfmt", so it can be a program name with args.
5099 set dummy msgfmt; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_MSGFMT+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 case "$MSGFMT" in
5106 /*)
5107 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5108 ;;
5109 *)
5110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5111 for ac_dir in $PATH; do
5112 test -z "$ac_dir" && ac_dir=.
5113 if test -f $ac_dir/$ac_word; then
5114 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5115 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5116 break
5117 fi
5118 fi
5119 done
5120 IFS="$ac_save_ifs"
5121 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5122 ;;
5123 esac
5124 fi
5125 MSGFMT="$ac_cv_path_MSGFMT"
5126 if test -n "$MSGFMT"; then
5127 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5128 echo "${ECHO_T}$MSGFMT" >&6
5129 else
5130 echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132 fi
5133 if test "$MSGFMT" != "no"; then
5134
5135 for ac_func in dcgettext
5136 do
5137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5138 echo "$as_me:$LINENO: checking for $ac_func" >&5
5139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5140 if eval "test \"\${$as_ac_var+set}\" = set"; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5151 #define $ac_func innocuous_$ac_func
5152
5153 /* System header to define __stub macros and hopefully few prototypes,
5154 which can conflict with char $ac_func (); below.
5155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156 <limits.h> exists even on freestanding compilers. */
5157
5158 #ifdef __STDC__
5159 # include <limits.h>
5160 #else
5161 # include <assert.h>
5162 #endif
5163
5164 #undef $ac_func
5165
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 #ifdef __cplusplus
5168 extern "C"
5169 {
5170 #endif
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5173 char $ac_func ();
5174 /* The GNU C library defines this for functions which it implements
5175 to always fail with ENOSYS. Some functions are actually named
5176 something starting with __ and the normal name is an alias. */
5177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 choke me
5179 #else
5180 char (*f) () = $ac_func;
5181 #endif
5182 #ifdef __cplusplus
5183 }
5184 #endif
5185
5186 int
5187 main ()
5188 {
5189 return f != $ac_func;
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.$ac_objext conftest$ac_exeext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>conftest.er1
5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 (eval $ac_try) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest$ac_exeext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 eval "$as_ac_var=yes"
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 eval "$as_ac_var=no"
5222 fi
5223 rm -f conftest.err conftest.$ac_objext \
5224 conftest$ac_exeext conftest.$ac_ext
5225 fi
5226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5228 if test `eval echo '${'$as_ac_var'}'` = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5231 _ACEOF
5232
5233 fi
5234 done
5235
5236 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5237 set dummy gmsgfmt; ac_word=$2
5238 echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 case $GMSGFMT in
5244 [\\/]* | ?:[\\/]*)
5245 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5246 ;;
5247 *)
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261
5262 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5263 ;;
5264 esac
5265 fi
5266 GMSGFMT=$ac_cv_path_GMSGFMT
5267
5268 if test -n "$GMSGFMT"; then
5269 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5270 echo "${ECHO_T}$GMSGFMT" >&6
5271 else
5272 echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6
5274 fi
5275
5276 # Extract the first word of "xgettext", so it can be a program name with args.
5277 set dummy xgettext; ac_word=$2
5278 echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 case "$XGETTEXT" in
5284 /*)
5285 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5286 ;;
5287 *)
5288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5289 for ac_dir in $PATH; do
5290 test -z "$ac_dir" && ac_dir=.
5291 if test -f $ac_dir/$ac_word; then
5292 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5293 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5294 break
5295 fi
5296 fi
5297 done
5298 IFS="$ac_save_ifs"
5299 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5300 ;;
5301 esac
5302 fi
5303 XGETTEXT="$ac_cv_path_XGETTEXT"
5304 if test -n "$XGETTEXT"; then
5305 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5306 echo "${ECHO_T}$XGETTEXT" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5310 fi
5311
5312 cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h. */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318
5319 int
5320 main ()
5321 {
5322 extern int _nl_msg_cat_cntr;
5323 return _nl_msg_cat_cntr
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext conftest$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330 (eval $ac_link) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag"
5338 || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest$ac_exeext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 CATOBJEXT=.gmo
5351 DATADIRNAME=share
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 CATOBJEXT=.mo
5357 DATADIRNAME=lib
5358 fi
5359 rm -f conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 INSTOBJEXT=.mo
5362 fi
5363 fi
5364
5365 fi
5366
5367
5368
5369
5370 if test "$CATOBJEXT" = "NONE"; then
5371 nls_cv_use_gnu_gettext=yes
5372 fi
5373 fi
5374
5375 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5376 INTLOBJS="\$(GETTOBJS)"
5377 # Extract the first word of "msgfmt", so it can be a program name with args.
5378 set dummy msgfmt; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_path_MSGFMT+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 case "$MSGFMT" in
5385 /*)
5386 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5387 ;;
5388 *)
5389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5390 for ac_dir in $PATH; do
5391 test -z "$ac_dir" && ac_dir=.
5392 if test -f $ac_dir/$ac_word; then
5393 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5394 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5395 break
5396 fi
5397 fi
5398 done
5399 IFS="$ac_save_ifs"
5400 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5401 ;;
5402 esac
5403 fi
5404 MSGFMT="$ac_cv_path_MSGFMT"
5405 if test -n "$MSGFMT"; then
5406 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5407 echo "${ECHO_T}$MSGFMT" >&6
5408 else
5409 echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6
5411 fi
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
5490 USE_INCLUDED_LIBINTL=yes
5491 CATOBJEXT=.gmo
5492 INSTOBJEXT=.mo
5493 DATADIRNAME=share
5494 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5495 INTLLIBS=$INTLDEPS
5496 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5497 nls_cv_header_intl=libintl.h
5498 nls_cv_header_libgt=libgettext.h
5499 fi
5500
5501 if test "$XGETTEXT" != ":"; then
5502 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5503 : ;
5504 else
5505 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5506 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5507 XGETTEXT=":"
5508 fi
5509 fi
5510
5511 # We need to process the po/ directory.
5512 POSUB=po
5513 else
5514 DATADIRNAME=share
5515 nls_cv_header_intl=libintl.h
5516 nls_cv_header_libgt=libgettext.h
5517 fi
5518
5519 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5520 # because some of the sources are only built for this goal.
5521 if test "$PACKAGE" = gettext; then
5522 USE_NLS=yes
5523 USE_INCLUDED_LIBINTL=yes
5524 fi
5525
5526 for lang in $ALL_LINGUAS; do
5527 GMOFILES="$GMOFILES $lang.gmo"
5528 POFILES="$POFILES $lang.po"
5529 done
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 if test "x$CATOBJEXT" != "x"; then
5545 if test "x$ALL_LINGUAS" = "x"; then
5546 LINGUAS=
5547 else
5548 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5549 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5550 NEW_LINGUAS=
5551 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5552 case "$ALL_LINGUAS" in
5553 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5554 esac
5555 done
5556 LINGUAS=$NEW_LINGUAS
5557 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5558 echo "${ECHO_T}$LINGUAS" >&6
5559 fi
5560
5561 if test -n "$LINGUAS"; then
5562 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5563 fi
5564 fi
5565
5566 if test $ac_cv_header_locale_h = yes; then
5567 INCLUDE_LOCALE_H="#include <locale.h>"
5568 else
5569 INCLUDE_LOCALE_H="\
5570 /* The system does not provide the header <locale.h>. Take care yourself. */"
5571 fi
5572
5573
5574 if test -f $srcdir/po2tbl.sed.in; then
5575 if test "$CATOBJEXT" = ".cat"; then
5576 if test "${ac_cv_header_linux_version_h+set}" = set; then
5577 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5578 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5579 if test "${ac_cv_header_linux_version_h+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 fi
5582 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5583 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5584 else
5585 # Is the header compilable?
5586 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5587 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h. */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 $ac_includes_default
5595 #include <linux/version.h>
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -z "$ac_c_werror_flag"
5607 || test ! -s conftest.err'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_header_compiler=yes
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624 ac_header_compiler=no
5625 fi
5626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5628 echo "${ECHO_T}$ac_header_compiler" >&6
5629
5630 # Is the header present?
5631 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5632 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5633 cat >conftest.$ac_ext <<_ACEOF
5634 /* confdefs.h. */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 #include <linux/version.h>
5640 _ACEOF
5641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } >/dev/null; then
5649 if test -s conftest.err; then
5650 ac_cpp_err=$ac_c_preproc_warn_flag
5651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5652 else
5653 ac_cpp_err=
5654 fi
5655 else
5656 ac_cpp_err=yes
5657 fi
5658 if test -z "$ac_cpp_err"; then
5659 ac_header_preproc=yes
5660 else
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 ac_header_preproc=no
5665 fi
5666 rm -f conftest.err conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5668 echo "${ECHO_T}$ac_header_preproc" >&6
5669
5670 # So? What about this header?
5671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5672 yes:no: )
5673 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5674 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5676 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5677 ac_header_preproc=yes
5678 ;;
5679 no:yes:* )
5680 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5681 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5682 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5683 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5684 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5685 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5687 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5689 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5691 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5692 (
5693 cat <<\_ASBOX
5694 ## ------------------------------------------ ##
5695 ## Report this to the AC_PACKAGE_NAME lists. ##
5696 ## ------------------------------------------ ##
5697 _ASBOX
5698 ) |
5699 sed "s/^/$as_me: WARNING: /" >&2
5700 ;;
5701 esac
5702 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5703 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5704 if test "${ac_cv_header_linux_version_h+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 ac_cv_header_linux_version_h=$ac_header_preproc
5708 fi
5709 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5710 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5711
5712 fi
5713 if test $ac_cv_header_linux_version_h = yes; then
5714 msgformat=linux
5715 else
5716 msgformat=xopen
5717 fi
5718
5719
5720
5721 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5722 fi
5723 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5724 $srcdir/po2tbl.sed.in > po2tbl.sed
5725 fi
5726
5727 if test "$PACKAGE" = "gettext"; then
5728 GT_NO="#NO#"
5729 GT_YES=
5730 else
5731 GT_NO=
5732 GT_YES="#YES#"
5733 fi
5734
5735
5736
5737 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5738
5739
5740 l=
5741
5742
5743 if test -d $srcdir/po; then
5744 test -d po || mkdir po
5745 if test "x$srcdir" != "x."; then
5746 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5747 posrcprefix="$srcdir/"
5748 else
5749 posrcprefix="../$srcdir/"
5750 fi
5751 else
5752 posrcprefix="../"
5753 fi
5754 rm -f po/POTFILES
5755 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5756 < $srcdir/po/POTFILES.in > po/POTFILES
5757 fi
5758
5759
5760 # Check for common headers.
5761 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5762 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5763
5764
5765
5766
5767
5768 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5769 do
5770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5772 echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 fi
5777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5779 else
5780 # Is the header compilable?
5781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5790 #include <$ac_header>
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_c_werror_flag"
5802 || test ! -s conftest.err'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 ac_header_compiler=yes
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819 ac_header_compiler=no
5820 fi
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5823 echo "${ECHO_T}$ac_header_compiler" >&6
5824
5825 # Is the header present?
5826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <$ac_header>
5835 _ACEOF
5836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null; then
5844 if test -s conftest.err; then
5845 ac_cpp_err=$ac_c_preproc_warn_flag
5846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5847 else
5848 ac_cpp_err=
5849 fi
5850 else
5851 ac_cpp_err=yes
5852 fi
5853 if test -z "$ac_cpp_err"; then
5854 ac_header_preproc=yes
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 ac_header_preproc=no
5860 fi
5861 rm -f conftest.err conftest.$ac_ext
5862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5863 echo "${ECHO_T}$ac_header_preproc" >&6
5864
5865 # So? What about this header?
5866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5867 yes:no: )
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5872 ac_header_preproc=yes
5873 ;;
5874 no:yes:* )
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5887 (
5888 cat <<\_ASBOX
5889 ## ------------------------------------------ ##
5890 ## Report this to the AC_PACKAGE_NAME lists. ##
5891 ## ------------------------------------------ ##
5892 _ASBOX
5893 ) |
5894 sed "s/^/$as_me: WARNING: /" >&2
5895 ;;
5896 esac
5897 echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 eval "$as_ac_Header=\$ac_header_preproc"
5903 fi
5904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5906
5907 fi
5908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5909 cat >>confdefs.h <<_ACEOF
5910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911 _ACEOF
5912
5913 fi
5914
5915 done
5916
5917
5918
5919 for ac_header in sys/time.h sys/resource.h
5920 do
5921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923 echo "$as_me:$LINENO: checking for $ac_header" >&5
5924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 fi
5928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5930 else
5931 # Is the header compilable?
5932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 #include <$ac_header>
5942 _ACEOF
5943 rm -f conftest.$ac_objext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945 (eval $ac_compile) 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_header_compiler=yes
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 ac_header_compiler=no
5971 fi
5972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5974 echo "${ECHO_T}$ac_header_compiler" >&6
5975
5976 # Is the header present?
5977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <$ac_header>
5986 _ACEOF
5987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null; then
5995 if test -s conftest.err; then
5996 ac_cpp_err=$ac_c_preproc_warn_flag
5997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5998 else
5999 ac_cpp_err=
6000 fi
6001 else
6002 ac_cpp_err=yes
6003 fi
6004 if test -z "$ac_cpp_err"; then
6005 ac_header_preproc=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_header_preproc=no
6011 fi
6012 rm -f conftest.err conftest.$ac_ext
6013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6014 echo "${ECHO_T}$ac_header_preproc" >&6
6015
6016 # So? What about this header?
6017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6018 yes:no: )
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6023 ac_header_preproc=yes
6024 ;;
6025 no:yes:* )
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6038 (
6039 cat <<\_ASBOX
6040 ## ------------------------------------------ ##
6041 ## Report this to the AC_PACKAGE_NAME lists. ##
6042 ## ------------------------------------------ ##
6043 _ASBOX
6044 ) |
6045 sed "s/^/$as_me: WARNING: /" >&2
6046 ;;
6047 esac
6048 echo "$as_me:$LINENO: checking for $ac_header" >&5
6049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 eval "$as_ac_Header=\$ac_header_preproc"
6054 fi
6055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6057
6058 fi
6059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6060 cat >>confdefs.h <<_ACEOF
6061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6062 _ACEOF
6063
6064 fi
6065
6066 done
6067
6068
6069
6070 for ac_header in fcntl.h fpu_control.h
6071 do
6072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo "$as_me:$LINENO: checking for $ac_header" >&5
6075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 fi
6079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6081 else
6082 # Is the header compilable?
6083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 $ac_includes_default
6092 #include <$ac_header>
6093 _ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096 (eval $ac_compile) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag"
6104 || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_header_compiler=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 ac_header_compiler=no
6122 fi
6123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6125 echo "${ECHO_T}$ac_header_compiler" >&6
6126
6127 # Is the header present?
6128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <$ac_header>
6137 _ACEOF
6138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } >/dev/null; then
6146 if test -s conftest.err; then
6147 ac_cpp_err=$ac_c_preproc_warn_flag
6148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6149 else
6150 ac_cpp_err=
6151 fi
6152 else
6153 ac_cpp_err=yes
6154 fi
6155 if test -z "$ac_cpp_err"; then
6156 ac_header_preproc=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_header_preproc=no
6162 fi
6163 rm -f conftest.err conftest.$ac_ext
6164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6165 echo "${ECHO_T}$ac_header_preproc" >&6
6166
6167 # So? What about this header?
6168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6169 yes:no: )
6170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6174 ac_header_preproc=yes
6175 ;;
6176 no:yes:* )
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6189 (
6190 cat <<\_ASBOX
6191 ## ------------------------------------------ ##
6192 ## Report this to the AC_PACKAGE_NAME lists. ##
6193 ## ------------------------------------------ ##
6194 _ASBOX
6195 ) |
6196 sed "s/^/$as_me: WARNING: /" >&2
6197 ;;
6198 esac
6199 echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 eval "$as_ac_Header=\$ac_header_preproc"
6205 fi
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208
6209 fi
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213 _ACEOF
6214
6215 fi
6216
6217 done
6218
6219
6220
6221
6222 for ac_header in dlfcn.h errno.h sys/stat.h
6223 do
6224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 fi
6231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233 else
6234 # Is the header compilable?
6235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6237 cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h. */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 $ac_includes_default
6244 #include <$ac_header>
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_header_compiler=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_header_compiler=no
6274 fi
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6277 echo "${ECHO_T}$ac_header_compiler" >&6
6278
6279 # Is the header present?
6280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <$ac_header>
6289 _ACEOF
6290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } >/dev/null; then
6298 if test -s conftest.err; then
6299 ac_cpp_err=$ac_c_preproc_warn_flag
6300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6301 else
6302 ac_cpp_err=
6303 fi
6304 else
6305 ac_cpp_err=yes
6306 fi
6307 if test -z "$ac_cpp_err"; then
6308 ac_header_preproc=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 ac_header_preproc=no
6314 fi
6315 rm -f conftest.err conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6317 echo "${ECHO_T}$ac_header_preproc" >&6
6318
6319 # So? What about this header?
6320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6321 yes:no: )
6322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6326 ac_header_preproc=yes
6327 ;;
6328 no:yes:* )
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6341 (
6342 cat <<\_ASBOX
6343 ## ------------------------------------------ ##
6344 ## Report this to the AC_PACKAGE_NAME lists. ##
6345 ## ------------------------------------------ ##
6346 _ASBOX
6347 ) |
6348 sed "s/^/$as_me: WARNING: /" >&2
6349 ;;
6350 esac
6351 echo "$as_me:$LINENO: checking for $ac_header" >&5
6352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 eval "$as_ac_Header=\$ac_header_preproc"
6357 fi
6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6360
6361 fi
6362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6363 cat >>confdefs.h <<_ACEOF
6364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6365 _ACEOF
6366
6367 fi
6368
6369 done
6370
6371
6372
6373
6374
6375 for ac_func in getrusage time sigaction __setfpucw
6376 do
6377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6378 echo "$as_me:$LINENO: checking for $ac_func" >&5
6379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6380 if eval "test \"\${$as_ac_var+set}\" = set"; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6391 #define $ac_func innocuous_$ac_func
6392
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func (); below.
6395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6396 <limits.h> exists even on freestanding compilers. */
6397
6398 #ifdef __STDC__
6399 # include <limits.h>
6400 #else
6401 # include <assert.h>
6402 #endif
6403
6404 #undef $ac_func
6405
6406 /* Override any gcc2 internal prototype to avoid an error. */
6407 #ifdef __cplusplus
6408 extern "C"
6409 {
6410 #endif
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char $ac_func ();
6414 /* The GNU C library defines this for functions which it implements
6415 to always fail with ENOSYS. Some functions are actually named
6416 something starting with __ and the normal name is an alias. */
6417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6418 choke me
6419 #else
6420 char (*f) () = $ac_func;
6421 #endif
6422 #ifdef __cplusplus
6423 }
6424 #endif
6425
6426 int
6427 main ()
6428 {
6429 return f != $ac_func;
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_c_werror_flag"
6444 || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest$ac_exeext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 eval "$as_ac_var=yes"
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 eval "$as_ac_var=no"
6462 fi
6463 rm -f conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext conftest.$ac_ext
6465 fi
6466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6468 if test `eval echo '${'$as_ac_var'}'` = yes; then
6469 cat >>confdefs.h <<_ACEOF
6470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6471 _ACEOF
6472
6473 fi
6474 done
6475
6476
6477 # Check for socket libraries
6478
6479 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6480 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6481 if test "${ac_cv_lib_socket_bind+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 ac_check_lib_save_LIBS=$LIBS
6485 LIBS="-lsocket $LIBS"
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char bind ();
6500 int
6501 main ()
6502 {
6503 bind ();
6504 ;
6505 return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510 (eval $ac_link) 2>conftest.er1
6511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 ac_cv_lib_socket_bind=yes
6531 else
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_cv_lib_socket_bind=no
6536 fi
6537 rm -f conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 LIBS=$ac_check_lib_save_LIBS
6540 fi
6541 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6542 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6543 if test $ac_cv_lib_socket_bind = yes; then
6544 cat >>confdefs.h <<_ACEOF
6545 #define HAVE_LIBSOCKET 1
6546 _ACEOF
6547
6548 LIBS="-lsocket $LIBS"
6549
6550 fi
6551
6552
6553 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6554 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6555 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 ac_check_lib_save_LIBS=$LIBS
6559 LIBS="-lnsl $LIBS"
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 #ifdef __cplusplus
6569 extern "C"
6570 #endif
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6573 char gethostbyname ();
6574 int
6575 main ()
6576 {
6577 gethostbyname ();
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584 (eval $ac_link) 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest$ac_exeext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_lib_nsl_gethostbyname=yes
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 ac_cv_lib_nsl_gethostbyname=no
6610 fi
6611 rm -f conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 LIBS=$ac_check_lib_save_LIBS
6614 fi
6615 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6616 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6617 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6618 cat >>confdefs.h <<_ACEOF
6619 #define HAVE_LIBNSL 1
6620 _ACEOF
6621
6622 LIBS="-lnsl $LIBS"
6623
6624 fi
6625
6626
6627 . ${srcdir}/../../bfd/configure.host
6628
6629
6630
6631 USE_MAINTAINER_MODE=no
6632 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6633 if test "${enable_maintainer_mode+set}" = set; then
6634 enableval="$enable_maintainer_mode"
6635 case "${enableval}" in
6636 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6637 no) MAINT="#" ;;
6638 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6639 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6640 { (exit 1); exit 1; }; }; MAINT="#" ;;
6641 esac
6642 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6643 echo "Setting maintainer mode" 6>&1
6644 fi
6645 else
6646 MAINT="#"
6647 fi;
6648
6649
6650 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6651 if test "${enable_sim_bswap+set}" = set; then
6652 enableval="$enable_sim_bswap"
6653 case "${enableval}" in
6654 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6655 no) sim_bswap="-DWITH_BSWAP=0";;
6656 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6657 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6658 { (exit 1); exit 1; }; }; sim_bswap="";;
6659 esac
6660 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6661 echo "Setting bswap flags = $sim_bswap" 6>&1
6662 fi
6663 else
6664 sim_bswap=""
6665 fi;
6666
6667
6668 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6669 if test "${enable_sim_cflags+set}" = set; then
6670 enableval="$enable_sim_cflags"
6671 case "${enableval}" in
6672 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6673 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6674 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6675 { (exit 1); exit 1; }; }; sim_cflags="";;
6676 no) sim_cflags="";;
6677 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6678 esac
6679 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6680 echo "Setting sim cflags = $sim_cflags" 6>&1
6681 fi
6682 else
6683 sim_cflags=""
6684 fi;
6685
6686
6687 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6688 if test "${enable_sim_debug+set}" = set; then
6689 enableval="$enable_sim_debug"
6690 case "${enableval}" in
6691 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6692 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6693 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6694 esac
6695 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6696 echo "Setting sim debug = $sim_debug" 6>&1
6697 fi
6698 else
6699 sim_debug=""
6700 fi;
6701
6702
6703 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6704 if test "${enable_sim_stdio+set}" = set; then
6705 enableval="$enable_sim_stdio"
6706 case "${enableval}" in
6707 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6708 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6709 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6710 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6711 { (exit 1); exit 1; }; }; sim_stdio="";;
6712 esac
6713 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6714 echo "Setting stdio flags = $sim_stdio" 6>&1
6715 fi
6716 else
6717 sim_stdio=""
6718 fi;
6719
6720
6721 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6722 if test "${enable_sim_trace+set}" = set; then
6723 enableval="$enable_sim_trace"
6724 case "${enableval}" in
6725 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6726 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6727 [-0-9]*)
6728 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6729 [a-z]*)
6730 sim_trace=""
6731 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6732 if test x"$sim_trace" = x; then
6733 sim_trace="-DWITH_TRACE='(TRACE_$x"
6734 else
6735 sim_trace="${sim_trace}|TRACE_$x"
6736 fi
6737 done
6738 sim_trace="$sim_trace)'" ;;
6739 esac
6740 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6741 echo "Setting sim trace = $sim_trace" 6>&1
6742 fi
6743 else
6744 sim_trace=""
6745 fi;
6746
6747
6748 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6749 if test "${enable_sim_profile+set}" = set; then
6750 enableval="$enable_sim_profile"
6751 case "${enableval}" in
6752 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6753 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6754 [-0-9]*)
6755 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6756 [a-z]*)
6757 sim_profile=""
6758 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6759 if test x"$sim_profile" = x; then
6760 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6761 else
6762 sim_profile="${sim_profile}|PROFILE_$x"
6763 fi
6764 done
6765 sim_profile="$sim_profile)'" ;;
6766 esac
6767 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6768 echo "Setting sim profile = $sim_profile" 6>&1
6769 fi
6770 else
6771 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6772 fi;
6773
6774
6775 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6776 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6777 if test "${ac_cv_type_signal+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6787 #include <signal.h>
6788 #ifdef signal
6789 # undef signal
6790 #endif
6791 #ifdef __cplusplus
6792 extern "C" void (*signal (int, void (*)(int)))(int);
6793 #else
6794 void (*signal ()) ();
6795 #endif
6796
6797 int
6798 main ()
6799 {
6800 int i;
6801 ;
6802 return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6807 (eval $ac_compile) 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag"
6815 || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest.$ac_objext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_type_signal=void
6828 else
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832 ac_cv_type_signal=int
6833 fi
6834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6835 fi
6836 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6837 echo "${ECHO_T}$ac_cv_type_signal" >&6
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define RETSIGTYPE $ac_cv_type_signal
6841 _ACEOF
6842
6843
6844
6845
6846
6847 sim_link_files=
6848 sim_link_links=
6849
6850 sim_link_links=tconfig.h
6851 if test -f ${srcdir}/tconfig.in
6852 then
6853 sim_link_files=tconfig.in
6854 else
6855 sim_link_files=../common/tconfig.in
6856 fi
6857
6858 # targ-vals.def points to the libc macro description file.
6859 case "${target}" in
6860 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6861 esac
6862 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6863 sim_link_links="${sim_link_links} targ-vals.def"
6864
6865
6866
6867
6868 default_sim_inline=""
6869 # Check whether --enable-sim-inline or --disable-sim-inline was given.
6870 if test "${enable_sim_inline+set}" = set; then
6871 enableval="$enable_sim_inline"
6872 sim_inline=""
6873 case "$enableval" in
6874 no) sim_inline="-DDEFAULT_INLINE=0";;
6875 0) sim_inline="-DDEFAULT_INLINE=0";;
6876 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
6877 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
6878 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6879 new_flag=""
6880 case "$x" in
6881 *_INLINE=*) new_flag="-D$x";;
6882 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6883 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
6884 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
6885 esac
6886 if test x"$sim_inline" = x""; then
6887 sim_inline="$new_flag"
6888 else
6889 sim_inline="$sim_inline $new_flag"
6890 fi
6891 done;;
6892 esac
6893 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6894 echo "Setting inline flags = $sim_inline" 6>&1
6895 fi
6896 else
6897
6898 if test "x$cross_compiling" = "xno"; then
6899 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
6900 sim_inline="${default_sim_inline}"
6901 if test x"$silent" != x"yes"; then
6902 echo "Setting inline flags = $sim_inline" 6>&1
6903 fi
6904 else
6905 sim_inline=""
6906 fi
6907 else
6908 sim_inline="-DDEFAULT_INLINE=0"
6909 fi
6910 fi;
6911 wire_alignment="NONSTRICT_ALIGNMENT"
6912 default_alignment=""
6913
6914 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6915 if test "${enable_sim_alignment+set}" = set; then
6916 enableval="$enable_sim_alignment"
6917 case "${enableval}" in
6918 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6919 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6920 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6921 yes) if test x"$wire_alignment" != x; then
6922 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6923 else
6924 if test x"$default_alignment" != x; then
6925 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6926 else
6927 echo "No hard-wired alignment for target $target" 1>&6
6928 sim_alignment="-DWITH_ALIGNMENT=0"
6929 fi
6930 fi;;
6931 no) if test x"$default_alignment" != x; then
6932 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6933 else
6934 if test x"$wire_alignment" != x; then
6935 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6936 else
6937 echo "No default alignment for target $target" 1>&6
6938 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6939 fi
6940 fi;;
6941 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6942 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6943 { (exit 1); exit 1; }; }; sim_alignment="";;
6944 esac
6945 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6946 echo "Setting alignment flags = $sim_alignment" 6>&1
6947 fi
6948 else
6949 if test x"$default_alignment" != x; then
6950 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6951 else
6952 if test x"$wire_alignment" != x; then
6953 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6954 else
6955 sim_alignment=
6956 fi
6957 fi
6958 fi;
6959
6960 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6961 if test "${enable_sim_hostendian+set}" = set; then
6962 enableval="$enable_sim_hostendian"
6963 case "${enableval}" in
6964 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6965 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6966 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6967 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6968 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6969 { (exit 1); exit 1; }; }; sim_hostendian="";;
6970 esac
6971 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6972 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6973 fi
6974 else
6975
6976 if test "x$cross_compiling" = "xno"; then
6977 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6978 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6979 if test "${ac_cv_c_bigendian+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 # See if sys/param.h defines the BYTE_ORDER macro.
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/param.h>
6991
6992 int
6993 main ()
6994 {
6995 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6996 bogus endian macros
6997 #endif
6998
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest.$ac_objext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 # It does; now see whether it defined to BIG_ENDIAN or not.
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <sys/types.h>
7033 #include <sys/param.h>
7034
7035 int
7036 main ()
7037 {
7038 #if BYTE_ORDER != BIG_ENDIAN
7039 not big endian
7040 #endif
7041
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_c_bigendian=yes
7069 else
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7072
7073 ac_cv_c_bigendian=no
7074 fi
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 # It does not; compile a test program.
7081 if test "$cross_compiling" = yes; then
7082 # try to guess the endianness by grepping values into an object file
7083 ac_cv_c_bigendian=unknown
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h. */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7091 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7092 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7093 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7094 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7095 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7096 int
7097 main ()
7098 {
7099 _ascii (); _ebcdic ();
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag"
7114 || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7127 ac_cv_c_bigendian=yes
7128 fi
7129 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7130 if test "$ac_cv_c_bigendian" = unknown; then
7131 ac_cv_c_bigendian=no
7132 else
7133 # finding both strings is unlikely to happen, but who knows?
7134 ac_cv_c_bigendian=unknown
7135 fi
7136 fi
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7140
7141 fi
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 int
7151 main ()
7152 {
7153 /* Are we little or big endian? From Harbison&Steele. */
7154 union
7155 {
7156 long l;
7157 char c[sizeof (long)];
7158 } u;
7159 u.l = 1;
7160 exit (u.c[sizeof (long) - 1] == 1);
7161 }
7162 _ACEOF
7163 rm -f conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_c_bigendian=no
7175 else
7176 echo "$as_me: program exited with status $ac_status" >&5
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ( exit $ac_status )
7181 ac_cv_c_bigendian=yes
7182 fi
7183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7184 fi
7185 fi
7186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 fi
7188 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7189 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7190 case $ac_cv_c_bigendian in
7191 yes)
7192
7193 cat >>confdefs.h <<\_ACEOF
7194 #define WORDS_BIGENDIAN 1
7195 _ACEOF
7196 ;;
7197 no)
7198 ;;
7199 *)
7200 { { echo "$as_me:$LINENO: error: unknown endianness
7201 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7202 echo "$as_me: error: unknown endianness
7203 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7204 { (exit 1); exit 1; }; } ;;
7205 esac
7206
7207 if test $ac_cv_c_bigendian = yes; then
7208 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7209 else
7210 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7211 fi
7212 else
7213 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7214 fi
7215 fi;
7216
7217 # NOTE: Don't add -Wall or -Wunused, they both include
7218 # -Wunused-parameter which reports bogus warnings.
7219 # NOTE: If you add to this list, remember to update
7220 # gdb/doc/gdbint.texinfo.
7221 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7222 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7223 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7224 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7225 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7226 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7227 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7228 # -Woverloaded-virtual -Winline -Werror"
7229 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7230 if test "${enable_build_warnings+set}" = set; then
7231 enableval="$enable_build_warnings"
7232 case "${enableval}" in
7233 yes) ;;
7234 no) build_warnings="-w";;
7235 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7236 build_warnings="${build_warnings} ${t}";;
7237 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7238 build_warnings="${t} ${build_warnings}";;
7239 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7240 esac
7241 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7242 echo "Setting compiler warning flags = $build_warnings" 6>&1
7243 fi
7244 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7245 if test "${enable_sim_build_warnings+set}" = set; then
7246 enableval="$enable_sim_build_warnings"
7247 case "${enableval}" in
7248 yes) ;;
7249 no) build_warnings="-w";;
7250 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7251 build_warnings="${build_warnings} ${t}";;
7252 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7253 build_warnings="${t} ${build_warnings}";;
7254 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7255 esac
7256 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7257 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7258 fi
7259 fi; WARN_CFLAGS=""
7260 WERROR_CFLAGS=""
7261 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7262 then
7263 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7264 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7265 # Separate out the -Werror flag as some files just cannot be
7266 # compiled with it enabled.
7267 for w in ${build_warnings}; do
7268 case $w in
7269 -Werr*) WERROR_CFLAGS=-Werror ;;
7270 *) # Check that GCC accepts it
7271 saved_CFLAGS="$CFLAGS"
7272 CFLAGS="$CFLAGS $w"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279
7280 int
7281 main ()
7282 {
7283
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290 (eval $ac_compile) 2>conftest.er1
7291 ac_status=$?
7292 grep -v '^ *+' conftest.er1 >conftest.err
7293 rm -f conftest.er1
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -z "$ac_c_werror_flag"
7298 || test ! -s conftest.err'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; } &&
7304 { ac_try='test -s conftest.$ac_objext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 WARN_CFLAGS="${WARN_CFLAGS} $w"
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 fi
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317 CFLAGS="$saved_CFLAGS"
7318 esac
7319 done
7320 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7321 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7322 fi
7323
7324
7325 #
7326 # Add simulated hardware devices
7327 #
7328 hw_enabled=no
7329 case "${target}" in
7330 m68hc11-*-*|m6811-*-*)
7331 hw_enabled=yes
7332 hw_extra_devices="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
7333 m68hc11_extra_objs="dv-sockser.o"
7334 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_M68HC11=1"
7335 ;;
7336 *)
7337 m68hc11_extra_objs=""
7338 ;;
7339 esac
7340
7341 if test x"$hw_enabled" = x"yes"; then
7342 sim_hw_p=yes
7343 else
7344 sim_hw_p=no
7345 fi
7346 if test "$hw_devices"; then
7347 hardware="core pal glue"
7348 else
7349 hardware="core pal glue $hw_extra_devices"
7350 fi
7351 sim_hw_cflags="-DWITH_HW=1"
7352 sim_hw="$hardware"
7353 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7354 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7355 if test "${enable_sim_hardware+set}" = set; then
7356 enableval="$enable_sim_hardware"
7357
7358 case "${enableval}" in
7359 yes) sim_hw_p=yes;;
7360 no) sim_hw_p=no;;
7361 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7362 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7363 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7364 esac
7365 if test "$sim_hw_p" != yes; then
7366 sim_hw_objs=
7367 sim_hw_cflags="-DWITH_HW=0"
7368 sim_hw=
7369 else
7370 sim_hw_cflags="-DWITH_HW=1"
7371 # remove duplicates
7372 sim_hw=""
7373 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7374 for i in x $hardware ; do
7375 case " $f " in
7376 x) ;;
7377 *" $i "*) ;;
7378 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7379 esac
7380 done
7381 fi
7382 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7383 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7384 fi
7385 else
7386
7387 if test "$sim_hw_p" != yes; then
7388 sim_hw_objs=
7389 sim_hw_cflags="-DWITH_HW=0"
7390 sim_hw=
7391 fi
7392 if test x"$silent" != x"yes"; then
7393 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7394 fi
7395 fi;
7396
7397
7398
7399
7400
7401
7402 for ac_header in string.h strings.h stdlib.h stdlib.h fcntl.h
7403 do
7404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406 echo "$as_me:$LINENO: checking for $ac_header" >&5
7407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 fi
7411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7413 else
7414 # Is the header compilable?
7415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7424 #include <$ac_header>
7425 _ACEOF
7426 rm -f conftest.$ac_objext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest.$ac_objext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_header_compiler=yes
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ac_header_compiler=no
7454 fi
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6
7458
7459 # Is the header present?
7460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <$ac_header>
7469 _ACEOF
7470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } >/dev/null; then
7478 if test -s conftest.err; then
7479 ac_cpp_err=$ac_c_preproc_warn_flag
7480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7481 else
7482 ac_cpp_err=
7483 fi
7484 else
7485 ac_cpp_err=yes
7486 fi
7487 if test -z "$ac_cpp_err"; then
7488 ac_header_preproc=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493 ac_header_preproc=no
7494 fi
7495 rm -f conftest.err conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7497 echo "${ECHO_T}$ac_header_preproc" >&6
7498
7499 # So? What about this header?
7500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7501 yes:no: )
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7506 ac_header_preproc=yes
7507 ;;
7508 no:yes:* )
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7521 (
7522 cat <<\_ASBOX
7523 ## ------------------------------------------ ##
7524 ## Report this to the AC_PACKAGE_NAME lists. ##
7525 ## ------------------------------------------ ##
7526 _ASBOX
7527 ) |
7528 sed "s/^/$as_me: WARNING: /" >&2
7529 ;;
7530 esac
7531 echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 eval "$as_ac_Header=\$ac_header_preproc"
7537 fi
7538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7540
7541 fi
7542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7543 cat >>confdefs.h <<_ACEOF
7544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7545 _ACEOF
7546
7547 fi
7548
7549 done
7550
7551
7552
7553
7554
7555 ac_sources="$sim_link_files"
7556 ac_dests="$sim_link_links"
7557 while test -n "$ac_sources"; do
7558 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7559 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7560 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7561 done
7562 ac_config_links="$ac_config_links $ac_config_links_1"
7563
7564 cgen_breaks=""
7565 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7566 cgen_breaks="break cgen_rtx_error";
7567 fi
7568
7569 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7570
7571 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7572
7573 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7574
7575 ac_config_commands="$ac_config_commands Makefile"
7576
7577 ac_config_commands="$ac_config_commands stamp-h"
7578
7579 cat >confcache <<\_ACEOF
7580 # This file is a shell script that caches the results of configure
7581 # tests run on this system so they can be shared between configure
7582 # scripts and configure runs, see configure's option --config-cache.
7583 # It is not useful on other systems. If it contains results you don't
7584 # want to keep, you may remove or edit it.
7585 #
7586 # config.status only pays attention to the cache file if you give it
7587 # the --recheck option to rerun configure.
7588 #
7589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7591 # following values.
7592
7593 _ACEOF
7594
7595 # The following way of writing the cache mishandles newlines in values,
7596 # but we know of no workaround that is simple, portable, and efficient.
7597 # So, don't put newlines in cache variables' values.
7598 # Ultrix sh set writes to stderr and can't be redirected directly,
7599 # and sets the high bit in the cache file unless we assign to the vars.
7600 {
7601 (set) 2>&1 |
7602 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7603 *ac_space=\ *)
7604 # `set' does not quote correctly, so add quotes (double-quote
7605 # substitution turns \\\\ into \\, and sed turns \\ into \).
7606 sed -n \
7607 "s/'/'\\\\''/g;
7608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7609 ;;
7610 *)
7611 # `set' quotes correctly as required by POSIX, so do not add quotes.
7612 sed -n \
7613 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7614 ;;
7615 esac;
7616 } |
7617 sed '
7618 t clear
7619 : clear
7620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7621 t end
7622 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7623 : end' >>confcache
7624 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7625 if test -w $cache_file; then
7626 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7627 cat confcache >$cache_file
7628 else
7629 echo "not updating unwritable cache $cache_file"
7630 fi
7631 fi
7632 rm -f confcache
7633
7634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7635 # Let make expand exec_prefix.
7636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7637
7638 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7639 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7640 # trailing colons and then remove the whole line if VPATH becomes empty
7641 # (actually we leave an empty line to preserve line numbers).
7642 if test "x$srcdir" = x.; then
7643 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7644 s/:*\$(srcdir):*/:/;
7645 s/:*\${srcdir}:*/:/;
7646 s/:*@srcdir@:*/:/;
7647 s/^\([^=]*=[ ]*\):*/\1/;
7648 s/:*$//;
7649 s/^[^=]*=[ ]*$//;
7650 }'
7651 fi
7652
7653 DEFS=-DHAVE_CONFIG_H
7654
7655 ac_libobjs=
7656 ac_ltlibobjs=
7657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7658 # 1. Remove the extension, and $U if already installed.
7659 ac_i=`echo "$ac_i" |
7660 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7661 # 2. Add them.
7662 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7663 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7664 done
7665 LIBOBJS=$ac_libobjs
7666
7667 LTLIBOBJS=$ac_ltlibobjs
7668
7669
7670
7671 : ${CONFIG_STATUS=./config.status}
7672 ac_clean_files_save=$ac_clean_files
7673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7676 cat >$CONFIG_STATUS <<_ACEOF
7677 #! $SHELL
7678 # Generated by $as_me.
7679 # Run this file to recreate the current configuration.
7680 # Compiler output produced by configure, useful for debugging
7681 # configure, is in config.log if it exists.
7682
7683 debug=false
7684 ac_cs_recheck=false
7685 ac_cs_silent=false
7686 SHELL=\${CONFIG_SHELL-$SHELL}
7687 _ACEOF
7688
7689 cat >>$CONFIG_STATUS <<\_ACEOF
7690 ## --------------------- ##
7691 ## M4sh Initialization. ##
7692 ## --------------------- ##
7693
7694 # Be Bourne compatible
7695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7696 emulate sh
7697 NULLCMD=:
7698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7699 # is contrary to our usage. Disable this feature.
7700 alias -g '${1+"$@"}'='"$@"'
7701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7702 set -o posix
7703 fi
7704 DUALCASE=1; export DUALCASE # for MKS sh
7705
7706 # Support unset when possible.
7707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7708 as_unset=unset
7709 else
7710 as_unset=false
7711 fi
7712
7713
7714 # Work around bugs in pre-3.0 UWIN ksh.
7715 $as_unset ENV MAIL MAILPATH
7716 PS1='$ '
7717 PS2='> '
7718 PS4='+ '
7719
7720 # NLS nuisances.
7721 for as_var in \
7722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7724 LC_TELEPHONE LC_TIME
7725 do
7726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7727 eval $as_var=C; export $as_var
7728 else
7729 $as_unset $as_var
7730 fi
7731 done
7732
7733 # Required to use basename.
7734 if expr a : '\(a\)' >/dev/null 2>&1; then
7735 as_expr=expr
7736 else
7737 as_expr=false
7738 fi
7739
7740 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7741 as_basename=basename
7742 else
7743 as_basename=false
7744 fi
7745
7746
7747 # Name of the executable.
7748 as_me=`$as_basename "$0" ||
7749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7750 X"$0" : 'X\(//\)$' \| \
7751 X"$0" : 'X\(/\)$' \| \
7752 . : '\(.\)' 2>/dev/null ||
7753 echo X/"$0" |
7754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7755 /^X\/\(\/\/\)$/{ s//\1/; q; }
7756 /^X\/\(\/\).*/{ s//\1/; q; }
7757 s/.*/./; q'`
7758
7759
7760 # PATH needs CR, and LINENO needs CR and PATH.
7761 # Avoid depending upon Character Ranges.
7762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7765 as_cr_digits='0123456789'
7766 as_cr_alnum=$as_cr_Letters$as_cr_digits
7767
7768 # The user is always right.
7769 if test "${PATH_SEPARATOR+set}" != set; then
7770 echo "#! /bin/sh" >conf$$.sh
7771 echo "exit 0" >>conf$$.sh
7772 chmod +x conf$$.sh
7773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7774 PATH_SEPARATOR=';'
7775 else
7776 PATH_SEPARATOR=:
7777 fi
7778 rm -f conf$$.sh
7779 fi
7780
7781
7782 as_lineno_1=$LINENO
7783 as_lineno_2=$LINENO
7784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7785 test "x$as_lineno_1" != "x$as_lineno_2" &&
7786 test "x$as_lineno_3" = "x$as_lineno_2" || {
7787 # Find who we are. Look in the path if we contain no path at all
7788 # relative or not.
7789 case $0 in
7790 *[\\/]* ) as_myself=$0 ;;
7791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7797 done
7798
7799 ;;
7800 esac
7801 # We did not find ourselves, most probably we were run as `sh COMMAND'
7802 # in which case we are not to be found in the path.
7803 if test "x$as_myself" = x; then
7804 as_myself=$0
7805 fi
7806 if test ! -f "$as_myself"; then
7807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7808 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7809 { (exit 1); exit 1; }; }
7810 fi
7811 case $CONFIG_SHELL in
7812 '')
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7815 do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for as_base in sh bash ksh sh5; do
7819 case $as_dir in
7820 /*)
7821 if ("$as_dir/$as_base" -c '
7822 as_lineno_1=$LINENO
7823 as_lineno_2=$LINENO
7824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7825 test "x$as_lineno_1" != "x$as_lineno_2" &&
7826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7829 CONFIG_SHELL=$as_dir/$as_base
7830 export CONFIG_SHELL
7831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7832 fi;;
7833 esac
7834 done
7835 done
7836 ;;
7837 esac
7838
7839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7840 # uniformly replaced by the line number. The first 'sed' inserts a
7841 # line-number line before each line; the second 'sed' does the real
7842 # work. The second script uses 'N' to pair each line-number line
7843 # with the numbered line, and appends trailing '-' during
7844 # substitution so that $LINENO is not a special case at line end.
7845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7847 sed '=' <$as_myself |
7848 sed '
7849 N
7850 s,$,-,
7851 : loop
7852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7853 t loop
7854 s,-$,,
7855 s,^['$as_cr_digits']*\n,,
7856 ' >$as_me.lineno &&
7857 chmod +x $as_me.lineno ||
7858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7860 { (exit 1); exit 1; }; }
7861
7862 # Don't try to exec as it changes $[0], causing all sort of problems
7863 # (the dirname of $[0] is not the place where we might find the
7864 # original and so on. Autoconf is especially sensible to this).
7865 . ./$as_me.lineno
7866 # Exit status is that of the last command.
7867 exit
7868 }
7869
7870
7871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7872 *c*,-n*) ECHO_N= ECHO_C='
7873 ' ECHO_T=' ' ;;
7874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7876 esac
7877
7878 if expr a : '\(a\)' >/dev/null 2>&1; then
7879 as_expr=expr
7880 else
7881 as_expr=false
7882 fi
7883
7884 rm -f conf$$ conf$$.exe conf$$.file
7885 echo >conf$$.file
7886 if ln -s conf$$.file conf$$ 2>/dev/null; then
7887 # We could just check for DJGPP; but this test a) works b) is more generic
7888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7889 if test -f conf$$.exe; then
7890 # Don't use ln at all; we don't have any links
7891 as_ln_s='cp -p'
7892 else
7893 as_ln_s='ln -s'
7894 fi
7895 elif ln conf$$.file conf$$ 2>/dev/null; then
7896 as_ln_s=ln
7897 else
7898 as_ln_s='cp -p'
7899 fi
7900 rm -f conf$$ conf$$.exe conf$$.file
7901
7902 if mkdir -p . 2>/dev/null; then
7903 as_mkdir_p=:
7904 else
7905 test -d ./-p && rmdir ./-p
7906 as_mkdir_p=false
7907 fi
7908
7909 as_executable_p="test -f"
7910
7911 # Sed expression to map a string onto a valid CPP name.
7912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7913
7914 # Sed expression to map a string onto a valid variable name.
7915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7916
7917
7918 # IFS
7919 # We need space, tab and new line, in precisely that order.
7920 as_nl='
7921 '
7922 IFS=" $as_nl"
7923
7924 # CDPATH.
7925 $as_unset CDPATH
7926
7927 exec 6>&1
7928
7929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7930 # report actual input values of CONFIG_FILES etc. instead of their
7931 # values after options handling. Logging --version etc. is OK.
7932 exec 5>>config.log
7933 {
7934 echo
7935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7936 ## Running $as_me. ##
7937 _ASBOX
7938 } >&5
7939 cat >&5 <<_CSEOF
7940
7941 This file was extended by $as_me, which was
7942 generated by GNU Autoconf 2.59. Invocation command line was
7943
7944 CONFIG_FILES = $CONFIG_FILES
7945 CONFIG_HEADERS = $CONFIG_HEADERS
7946 CONFIG_LINKS = $CONFIG_LINKS
7947 CONFIG_COMMANDS = $CONFIG_COMMANDS
7948 $ $0 $@
7949
7950 _CSEOF
7951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7952 echo >&5
7953 _ACEOF
7954
7955 # Files that config.status was made for.
7956 if test -n "$ac_config_files"; then
7957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7958 fi
7959
7960 if test -n "$ac_config_headers"; then
7961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7962 fi
7963
7964 if test -n "$ac_config_links"; then
7965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7966 fi
7967
7968 if test -n "$ac_config_commands"; then
7969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7970 fi
7971
7972 cat >>$CONFIG_STATUS <<\_ACEOF
7973
7974 ac_cs_usage="\
7975 \`$as_me' instantiates files from templates according to the
7976 current configuration.
7977
7978 Usage: $0 [OPTIONS] [FILE]...
7979
7980 -h, --help print this help, then exit
7981 -V, --version print version number, then exit
7982 -q, --quiet do not print progress messages
7983 -d, --debug don't remove temporary files
7984 --recheck update $as_me by reconfiguring in the same conditions
7985 --file=FILE[:TEMPLATE]
7986 instantiate the configuration file FILE
7987 --header=FILE[:TEMPLATE]
7988 instantiate the configuration header FILE
7989
7990 Configuration files:
7991 $config_files
7992
7993 Configuration headers:
7994 $config_headers
7995
7996 Configuration links:
7997 $config_links
7998
7999 Configuration commands:
8000 $config_commands
8001
8002 Report bugs to <bug-autoconf@gnu.org>."
8003 _ACEOF
8004
8005 cat >>$CONFIG_STATUS <<_ACEOF
8006 ac_cs_version="\\
8007 config.status
8008 configured by $0, generated by GNU Autoconf 2.59,
8009 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8010
8011 Copyright (C) 2003 Free Software Foundation, Inc.
8012 This config.status script is free software; the Free Software Foundation
8013 gives unlimited permission to copy, distribute and modify it."
8014 srcdir=$srcdir
8015 INSTALL="$INSTALL"
8016 _ACEOF
8017
8018 cat >>$CONFIG_STATUS <<\_ACEOF
8019 # If no file are specified by the user, then we need to provide default
8020 # value. By we need to know if files were specified by the user.
8021 ac_need_defaults=:
8022 while test $# != 0
8023 do
8024 case $1 in
8025 --*=*)
8026 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8027 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8028 ac_shift=:
8029 ;;
8030 -*)
8031 ac_option=$1
8032 ac_optarg=$2
8033 ac_shift=shift
8034 ;;
8035 *) # This is not an option, so the user has probably given explicit
8036 # arguments.
8037 ac_option=$1
8038 ac_need_defaults=false;;
8039 esac
8040
8041 case $ac_option in
8042 # Handling of the options.
8043 _ACEOF
8044 cat >>$CONFIG_STATUS <<\_ACEOF
8045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8046 ac_cs_recheck=: ;;
8047 --version | --vers* | -V )
8048 echo "$ac_cs_version"; exit 0 ;;
8049 --he | --h)
8050 # Conflict between --help and --header
8051 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8052 Try \`$0 --help' for more information." >&5
8053 echo "$as_me: error: ambiguous option: $1
8054 Try \`$0 --help' for more information." >&2;}
8055 { (exit 1); exit 1; }; };;
8056 --help | --hel | -h )
8057 echo "$ac_cs_usage"; exit 0 ;;
8058 --debug | --d* | -d )
8059 debug=: ;;
8060 --file | --fil | --fi | --f )
8061 $ac_shift
8062 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8063 ac_need_defaults=false;;
8064 --header | --heade | --head | --hea )
8065 $ac_shift
8066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8067 ac_need_defaults=false;;
8068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8070 ac_cs_silent=: ;;
8071
8072 # This is an error.
8073 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8074 Try \`$0 --help' for more information." >&5
8075 echo "$as_me: error: unrecognized option: $1
8076 Try \`$0 --help' for more information." >&2;}
8077 { (exit 1); exit 1; }; } ;;
8078
8079 *) ac_config_targets="$ac_config_targets $1" ;;
8080
8081 esac
8082 shift
8083 done
8084
8085 ac_configure_extra_args=
8086
8087 if $ac_cs_silent; then
8088 exec 6>/dev/null
8089 ac_configure_extra_args="$ac_configure_extra_args --silent"
8090 fi
8091
8092 _ACEOF
8093 cat >>$CONFIG_STATUS <<_ACEOF
8094 if \$ac_cs_recheck; then
8095 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8096 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8097 fi
8098
8099 _ACEOF
8100
8101
8102
8103
8104
8105 cat >>$CONFIG_STATUS <<\_ACEOF
8106 for ac_config_target in $ac_config_targets
8107 do
8108 case "$ac_config_target" in
8109 # Handling of arguments.
8110 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8111 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8112 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8113 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
8114 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
8115 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
8116 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8117 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8118 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8119 { (exit 1); exit 1; }; };;
8120 esac
8121 done
8122
8123 # If the user did not use the arguments to specify the items to instantiate,
8124 # then the envvar interface is used. Set only those that are not.
8125 # We use the long form for the default assignment because of an extremely
8126 # bizarre bug on SunOS 4.1.3.
8127 if $ac_need_defaults; then
8128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8132 fi
8133
8134 # Have a temporary directory for convenience. Make it in the build tree
8135 # simply because there is no reason to put it here, and in addition,
8136 # creating and moving files from /tmp can sometimes cause problems.
8137 # Create a temporary directory, and hook for its removal unless debugging.
8138 $debug ||
8139 {
8140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8141 trap '{ (exit 1); exit 1; }' 1 2 13 15
8142 }
8143
8144 # Create a (secure) tmp directory for tmp files.
8145
8146 {
8147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8148 test -n "$tmp" && test -d "$tmp"
8149 } ||
8150 {
8151 tmp=./confstat$$-$RANDOM
8152 (umask 077 && mkdir $tmp)
8153 } ||
8154 {
8155 echo "$me: cannot create a temporary directory in ." >&2
8156 { (exit 1); exit 1; }
8157 }
8158
8159 _ACEOF
8160
8161 cat >>$CONFIG_STATUS <<_ACEOF
8162
8163 #
8164 # CONFIG_FILES section.
8165 #
8166
8167 # No need to generate the scripts if there are no CONFIG_FILES.
8168 # This happens for instance when ./config.status config.h
8169 if test -n "\$CONFIG_FILES"; then
8170 # Protect against being on the right side of a sed subst in config.status.
8171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8173 s,@sim_environment@,$sim_environment,;t t
8174 s,@sim_alignment@,$sim_alignment,;t t
8175 s,@sim_assert@,$sim_assert,;t t
8176 s,@sim_bitsize@,$sim_bitsize,;t t
8177 s,@sim_endian@,$sim_endian,;t t
8178 s,@sim_hostendian@,$sim_hostendian,;t t
8179 s,@sim_float@,$sim_float,;t t
8180 s,@sim_scache@,$sim_scache,;t t
8181 s,@sim_default_model@,$sim_default_model,;t t
8182 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8183 s,@sim_hw_objs@,$sim_hw_objs,;t t
8184 s,@sim_hw@,$sim_hw,;t t
8185 s,@sim_inline@,$sim_inline,;t t
8186 s,@sim_packages@,$sim_packages,;t t
8187 s,@sim_regparm@,$sim_regparm,;t t
8188 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8189 s,@sim_smp@,$sim_smp,;t t
8190 s,@sim_stdcall@,$sim_stdcall,;t t
8191 s,@sim_xor_endian@,$sim_xor_endian,;t t
8192 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8193 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8194 s,@SHELL@,$SHELL,;t t
8195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8196 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8197 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8198 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8199 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8200 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8201 s,@exec_prefix@,$exec_prefix,;t t
8202 s,@prefix@,$prefix,;t t
8203 s,@program_transform_name@,$program_transform_name,;t t
8204 s,@bindir@,$bindir,;t t
8205 s,@sbindir@,$sbindir,;t t
8206 s,@libexecdir@,$libexecdir,;t t
8207 s,@datadir@,$datadir,;t t
8208 s,@sysconfdir@,$sysconfdir,;t t
8209 s,@sharedstatedir@,$sharedstatedir,;t t
8210 s,@localstatedir@,$localstatedir,;t t
8211 s,@libdir@,$libdir,;t t
8212 s,@includedir@,$includedir,;t t
8213 s,@oldincludedir@,$oldincludedir,;t t
8214 s,@infodir@,$infodir,;t t
8215 s,@mandir@,$mandir,;t t
8216 s,@build_alias@,$build_alias,;t t
8217 s,@host_alias@,$host_alias,;t t
8218 s,@target_alias@,$target_alias,;t t
8219 s,@DEFS@,$DEFS,;t t
8220 s,@ECHO_C@,$ECHO_C,;t t
8221 s,@ECHO_N@,$ECHO_N,;t t
8222 s,@ECHO_T@,$ECHO_T,;t t
8223 s,@LIBS@,$LIBS,;t t
8224 s,@build@,$build,;t t
8225 s,@build_cpu@,$build_cpu,;t t
8226 s,@build_vendor@,$build_vendor,;t t
8227 s,@build_os@,$build_os,;t t
8228 s,@host@,$host,;t t
8229 s,@host_cpu@,$host_cpu,;t t
8230 s,@host_vendor@,$host_vendor,;t t
8231 s,@host_os@,$host_os,;t t
8232 s,@target@,$target,;t t
8233 s,@target_cpu@,$target_cpu,;t t
8234 s,@target_vendor@,$target_vendor,;t t
8235 s,@target_os@,$target_os,;t t
8236 s,@CC@,$CC,;t t
8237 s,@CFLAGS@,$CFLAGS,;t t
8238 s,@LDFLAGS@,$LDFLAGS,;t t
8239 s,@CPPFLAGS@,$CPPFLAGS,;t t
8240 s,@ac_ct_CC@,$ac_ct_CC,;t t
8241 s,@EXEEXT@,$EXEEXT,;t t
8242 s,@OBJEXT@,$OBJEXT,;t t
8243 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8244 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8245 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8246 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8247 s,@HDEFINES@,$HDEFINES,;t t
8248 s,@AR@,$AR,;t t
8249 s,@RANLIB@,$RANLIB,;t t
8250 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8251 s,@SET_MAKE@,$SET_MAKE,;t t
8252 s,@CPP@,$CPP,;t t
8253 s,@EGREP@,$EGREP,;t t
8254 s,@ALLOCA@,$ALLOCA,;t t
8255 s,@USE_NLS@,$USE_NLS,;t t
8256 s,@MSGFMT@,$MSGFMT,;t t
8257 s,@GMSGFMT@,$GMSGFMT,;t t
8258 s,@XGETTEXT@,$XGETTEXT,;t t
8259 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8260 s,@CATALOGS@,$CATALOGS,;t t
8261 s,@CATOBJEXT@,$CATOBJEXT,;t t
8262 s,@DATADIRNAME@,$DATADIRNAME,;t t
8263 s,@GMOFILES@,$GMOFILES,;t t
8264 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8265 s,@INTLDEPS@,$INTLDEPS,;t t
8266 s,@INTLLIBS@,$INTLLIBS,;t t
8267 s,@INTLOBJS@,$INTLOBJS,;t t
8268 s,@POFILES@,$POFILES,;t t
8269 s,@POSUB@,$POSUB,;t t
8270 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8271 s,@GT_NO@,$GT_NO,;t t
8272 s,@GT_YES@,$GT_YES,;t t
8273 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8274 s,@l@,$l,;t t
8275 s,@MAINT@,$MAINT,;t t
8276 s,@sim_bswap@,$sim_bswap,;t t
8277 s,@sim_cflags@,$sim_cflags,;t t
8278 s,@sim_debug@,$sim_debug,;t t
8279 s,@sim_stdio@,$sim_stdio,;t t
8280 s,@sim_trace@,$sim_trace,;t t
8281 s,@sim_profile@,$sim_profile,;t t
8282 s,@m68hc11_extra_objs@,$m68hc11_extra_objs,;t t
8283 s,@cgen_breaks@,$cgen_breaks,;t t
8284 s,@LIBOBJS@,$LIBOBJS,;t t
8285 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8286 CEOF
8287
8288 _ACEOF
8289
8290 cat >>$CONFIG_STATUS <<\_ACEOF
8291 # Split the substitutions into bite-sized pieces for seds with
8292 # small command number limits, like on Digital OSF/1 and HP-UX.
8293 ac_max_sed_lines=48
8294 ac_sed_frag=1 # Number of current file.
8295 ac_beg=1 # First line for current file.
8296 ac_end=$ac_max_sed_lines # Line after last line for current file.
8297 ac_more_lines=:
8298 ac_sed_cmds=
8299 while $ac_more_lines; do
8300 if test $ac_beg -gt 1; then
8301 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8302 else
8303 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8304 fi
8305 if test ! -s $tmp/subs.frag; then
8306 ac_more_lines=false
8307 else
8308 # The purpose of the label and of the branching condition is to
8309 # speed up the sed processing (if there are no `@' at all, there
8310 # is no need to browse any of the substitutions).
8311 # These are the two extra sed commands mentioned above.
8312 (echo ':t
8313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8314 if test -z "$ac_sed_cmds"; then
8315 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8316 else
8317 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8318 fi
8319 ac_sed_frag=`expr $ac_sed_frag + 1`
8320 ac_beg=$ac_end
8321 ac_end=`expr $ac_end + $ac_max_sed_lines`
8322 fi
8323 done
8324 if test -z "$ac_sed_cmds"; then
8325 ac_sed_cmds=cat
8326 fi
8327 fi # test -n "$CONFIG_FILES"
8328
8329 _ACEOF
8330 cat >>$CONFIG_STATUS <<\_ACEOF
8331 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8333 case $ac_file in
8334 - | *:- | *:-:* ) # input from stdin
8335 cat >$tmp/stdin
8336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8340 * ) ac_file_in=$ac_file.in ;;
8341 esac
8342
8343 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8344 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8346 X"$ac_file" : 'X\(//\)[^/]' \| \
8347 X"$ac_file" : 'X\(//\)$' \| \
8348 X"$ac_file" : 'X\(/\)' \| \
8349 . : '\(.\)' 2>/dev/null ||
8350 echo X"$ac_file" |
8351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8353 /^X\(\/\/\)$/{ s//\1/; q; }
8354 /^X\(\/\).*/{ s//\1/; q; }
8355 s/.*/./; q'`
8356 { if $as_mkdir_p; then
8357 mkdir -p "$ac_dir"
8358 else
8359 as_dir="$ac_dir"
8360 as_dirs=
8361 while test ! -d "$as_dir"; do
8362 as_dirs="$as_dir $as_dirs"
8363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8365 X"$as_dir" : 'X\(//\)[^/]' \| \
8366 X"$as_dir" : 'X\(//\)$' \| \
8367 X"$as_dir" : 'X\(/\)' \| \
8368 . : '\(.\)' 2>/dev/null ||
8369 echo X"$as_dir" |
8370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8372 /^X\(\/\/\)$/{ s//\1/; q; }
8373 /^X\(\/\).*/{ s//\1/; q; }
8374 s/.*/./; q'`
8375 done
8376 test ! -n "$as_dirs" || mkdir $as_dirs
8377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8378 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8379 { (exit 1); exit 1; }; }; }
8380
8381 ac_builddir=.
8382
8383 if test "$ac_dir" != .; then
8384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8385 # A "../" for each directory in $ac_dir_suffix.
8386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8387 else
8388 ac_dir_suffix= ac_top_builddir=
8389 fi
8390
8391 case $srcdir in
8392 .) # No --srcdir option. We are building in place.
8393 ac_srcdir=.
8394 if test -z "$ac_top_builddir"; then
8395 ac_top_srcdir=.
8396 else
8397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8398 fi ;;
8399 [\\/]* | ?:[\\/]* ) # Absolute path.
8400 ac_srcdir=$srcdir$ac_dir_suffix;
8401 ac_top_srcdir=$srcdir ;;
8402 *) # Relative path.
8403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8405 esac
8406
8407 # Do not use `cd foo && pwd` to compute absolute paths, because
8408 # the directories may not exist.
8409 case `pwd` in
8410 .) ac_abs_builddir="$ac_dir";;
8411 *)
8412 case "$ac_dir" in
8413 .) ac_abs_builddir=`pwd`;;
8414 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8415 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8416 esac;;
8417 esac
8418 case $ac_abs_builddir in
8419 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8420 *)
8421 case ${ac_top_builddir}. in
8422 .) ac_abs_top_builddir=$ac_abs_builddir;;
8423 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8424 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8425 esac;;
8426 esac
8427 case $ac_abs_builddir in
8428 .) ac_abs_srcdir=$ac_srcdir;;
8429 *)
8430 case $ac_srcdir in
8431 .) ac_abs_srcdir=$ac_abs_builddir;;
8432 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8433 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8434 esac;;
8435 esac
8436 case $ac_abs_builddir in
8437 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8438 *)
8439 case $ac_top_srcdir in
8440 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8441 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8442 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8443 esac;;
8444 esac
8445
8446
8447 case $INSTALL in
8448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8449 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8450 esac
8451
8452 if test x"$ac_file" != x-; then
8453 { echo "$as_me:$LINENO: creating $ac_file" >&5
8454 echo "$as_me: creating $ac_file" >&6;}
8455 rm -f "$ac_file"
8456 fi
8457 # Let's still pretend it is `configure' which instantiates (i.e., don't
8458 # use $as_me), people would be surprised to read:
8459 # /* config.h. Generated by config.status. */
8460 if test x"$ac_file" = x-; then
8461 configure_input=
8462 else
8463 configure_input="$ac_file. "
8464 fi
8465 configure_input=$configure_input"Generated from `echo $ac_file_in |
8466 sed 's,.*/,,'` by configure."
8467
8468 # First look for the input files in the build tree, otherwise in the
8469 # src tree.
8470 ac_file_inputs=`IFS=:
8471 for f in $ac_file_in; do
8472 case $f in
8473 -) echo $tmp/stdin ;;
8474 [\\/$]*)
8475 # Absolute (can't be DOS-style, as IFS=:)
8476 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8477 echo "$as_me: error: cannot find input file: $f" >&2;}
8478 { (exit 1); exit 1; }; }
8479 echo "$f";;
8480 *) # Relative
8481 if test -f "$f"; then
8482 # Build tree
8483 echo "$f"
8484 elif test -f "$srcdir/$f"; then
8485 # Source tree
8486 echo "$srcdir/$f"
8487 else
8488 # /dev/null tree
8489 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8490 echo "$as_me: error: cannot find input file: $f" >&2;}
8491 { (exit 1); exit 1; }; }
8492 fi;;
8493 esac
8494 done` || { (exit 1); exit 1; }
8495 _ACEOF
8496 cat >>$CONFIG_STATUS <<_ACEOF
8497 sed "$ac_vpsub
8498 $extrasub
8499 _ACEOF
8500 cat >>$CONFIG_STATUS <<\_ACEOF
8501 :t
8502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8503 s,@configure_input@,$configure_input,;t t
8504 s,@srcdir@,$ac_srcdir,;t t
8505 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8506 s,@top_srcdir@,$ac_top_srcdir,;t t
8507 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8508 s,@builddir@,$ac_builddir,;t t
8509 s,@abs_builddir@,$ac_abs_builddir,;t t
8510 s,@top_builddir@,$ac_top_builddir,;t t
8511 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8512 s,@INSTALL@,$ac_INSTALL,;t t
8513 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8514 rm -f $tmp/stdin
8515 if test x"$ac_file" != x-; then
8516 mv $tmp/out $ac_file
8517 else
8518 cat $tmp/out
8519 rm -f $tmp/out
8520 fi
8521
8522 done
8523 _ACEOF
8524 cat >>$CONFIG_STATUS <<\_ACEOF
8525
8526 #
8527 # CONFIG_HEADER section.
8528 #
8529
8530 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8531 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8532 #
8533 # ac_d sets the value in "#define NAME VALUE" lines.
8534 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8535 ac_dB='[ ].*$,\1#\2'
8536 ac_dC=' '
8537 ac_dD=',;t'
8538 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8539 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8540 ac_uB='$,\1#\2define\3'
8541 ac_uC=' '
8542 ac_uD=',;t'
8543
8544 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8546 case $ac_file in
8547 - | *:- | *:-:* ) # input from stdin
8548 cat >$tmp/stdin
8549 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8551 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8553 * ) ac_file_in=$ac_file.in ;;
8554 esac
8555
8556 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8557 echo "$as_me: creating $ac_file" >&6;}
8558
8559 # First look for the input files in the build tree, otherwise in the
8560 # src tree.
8561 ac_file_inputs=`IFS=:
8562 for f in $ac_file_in; do
8563 case $f in
8564 -) echo $tmp/stdin ;;
8565 [\\/$]*)
8566 # Absolute (can't be DOS-style, as IFS=:)
8567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8568 echo "$as_me: error: cannot find input file: $f" >&2;}
8569 { (exit 1); exit 1; }; }
8570 # Do quote $f, to prevent DOS paths from being IFS'd.
8571 echo "$f";;
8572 *) # Relative
8573 if test -f "$f"; then
8574 # Build tree
8575 echo "$f"
8576 elif test -f "$srcdir/$f"; then
8577 # Source tree
8578 echo "$srcdir/$f"
8579 else
8580 # /dev/null tree
8581 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8582 echo "$as_me: error: cannot find input file: $f" >&2;}
8583 { (exit 1); exit 1; }; }
8584 fi;;
8585 esac
8586 done` || { (exit 1); exit 1; }
8587 # Remove the trailing spaces.
8588 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8589
8590 _ACEOF
8591
8592 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8593 # `conftest.undefs', that substitutes the proper values into
8594 # config.h.in to produce config.h. The first handles `#define'
8595 # templates, and the second `#undef' templates.
8596 # And first: Protect against being on the right side of a sed subst in
8597 # config.status. Protect against being in an unquoted here document
8598 # in config.status.
8599 rm -f conftest.defines conftest.undefs
8600 # Using a here document instead of a string reduces the quoting nightmare.
8601 # Putting comments in sed scripts is not portable.
8602 #
8603 # `end' is used to avoid that the second main sed command (meant for
8604 # 0-ary CPP macros) applies to n-ary macro definitions.
8605 # See the Autoconf documentation for `clear'.
8606 cat >confdef2sed.sed <<\_ACEOF
8607 s/[\\&,]/\\&/g
8608 s,[\\$`],\\&,g
8609 t clear
8610 : clear
8611 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8612 t end
8613 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8614 : end
8615 _ACEOF
8616 # If some macros were called several times there might be several times
8617 # the same #defines, which is useless. Nevertheless, we may not want to
8618 # sort them, since we want the *last* AC-DEFINE to be honored.
8619 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8620 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8621 rm -f confdef2sed.sed
8622
8623 # This sed command replaces #undef with comments. This is necessary, for
8624 # example, in the case of _POSIX_SOURCE, which is predefined and required
8625 # on some systems where configure will not decide to define it.
8626 cat >>conftest.undefs <<\_ACEOF
8627 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8628 _ACEOF
8629
8630 # Break up conftest.defines because some shells have a limit on the size
8631 # of here documents, and old seds have small limits too (100 cmds).
8632 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8633 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8634 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8635 echo ' :' >>$CONFIG_STATUS
8636 rm -f conftest.tail
8637 while grep . conftest.defines >/dev/null
8638 do
8639 # Write a limited-size here document to $tmp/defines.sed.
8640 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8641 # Speed up: don't consider the non `#define' lines.
8642 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8643 # Work around the forget-to-reset-the-flag bug.
8644 echo 't clr' >>$CONFIG_STATUS
8645 echo ': clr' >>$CONFIG_STATUS
8646 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8647 echo 'CEOF
8648 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8649 rm -f $tmp/in
8650 mv $tmp/out $tmp/in
8651 ' >>$CONFIG_STATUS
8652 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8653 rm -f conftest.defines
8654 mv conftest.tail conftest.defines
8655 done
8656 rm -f conftest.defines
8657 echo ' fi # grep' >>$CONFIG_STATUS
8658 echo >>$CONFIG_STATUS
8659
8660 # Break up conftest.undefs because some shells have a limit on the size
8661 # of here documents, and old seds have small limits too (100 cmds).
8662 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8663 rm -f conftest.tail
8664 while grep . conftest.undefs >/dev/null
8665 do
8666 # Write a limited-size here document to $tmp/undefs.sed.
8667 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8668 # Speed up: don't consider the non `#undef'
8669 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8670 # Work around the forget-to-reset-the-flag bug.
8671 echo 't clr' >>$CONFIG_STATUS
8672 echo ': clr' >>$CONFIG_STATUS
8673 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8674 echo 'CEOF
8675 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8676 rm -f $tmp/in
8677 mv $tmp/out $tmp/in
8678 ' >>$CONFIG_STATUS
8679 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8680 rm -f conftest.undefs
8681 mv conftest.tail conftest.undefs
8682 done
8683 rm -f conftest.undefs
8684
8685 cat >>$CONFIG_STATUS <<\_ACEOF
8686 # Let's still pretend it is `configure' which instantiates (i.e., don't
8687 # use $as_me), people would be surprised to read:
8688 # /* config.h. Generated by config.status. */
8689 if test x"$ac_file" = x-; then
8690 echo "/* Generated by configure. */" >$tmp/config.h
8691 else
8692 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8693 fi
8694 cat $tmp/in >>$tmp/config.h
8695 rm -f $tmp/in
8696 if test x"$ac_file" != x-; then
8697 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8698 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8699 echo "$as_me: $ac_file is unchanged" >&6;}
8700 else
8701 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8703 X"$ac_file" : 'X\(//\)[^/]' \| \
8704 X"$ac_file" : 'X\(//\)$' \| \
8705 X"$ac_file" : 'X\(/\)' \| \
8706 . : '\(.\)' 2>/dev/null ||
8707 echo X"$ac_file" |
8708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8710 /^X\(\/\/\)$/{ s//\1/; q; }
8711 /^X\(\/\).*/{ s//\1/; q; }
8712 s/.*/./; q'`
8713 { if $as_mkdir_p; then
8714 mkdir -p "$ac_dir"
8715 else
8716 as_dir="$ac_dir"
8717 as_dirs=
8718 while test ! -d "$as_dir"; do
8719 as_dirs="$as_dir $as_dirs"
8720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8722 X"$as_dir" : 'X\(//\)[^/]' \| \
8723 X"$as_dir" : 'X\(//\)$' \| \
8724 X"$as_dir" : 'X\(/\)' \| \
8725 . : '\(.\)' 2>/dev/null ||
8726 echo X"$as_dir" |
8727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8729 /^X\(\/\/\)$/{ s//\1/; q; }
8730 /^X\(\/\).*/{ s//\1/; q; }
8731 s/.*/./; q'`
8732 done
8733 test ! -n "$as_dirs" || mkdir $as_dirs
8734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8735 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8736 { (exit 1); exit 1; }; }; }
8737
8738 rm -f $ac_file
8739 mv $tmp/config.h $ac_file
8740 fi
8741 else
8742 cat $tmp/config.h
8743 rm -f $tmp/config.h
8744 fi
8745 done
8746 _ACEOF
8747 cat >>$CONFIG_STATUS <<\_ACEOF
8748
8749 #
8750 # CONFIG_LINKS section.
8751 #
8752
8753 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8754 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8755 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8756
8757 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8758 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8759
8760 if test ! -r $srcdir/$ac_source; then
8761 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8762 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8763 { (exit 1); exit 1; }; }
8764 fi
8765 rm -f $ac_dest
8766
8767 # Make relative symlinks.
8768 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8769 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8770 X"$ac_dest" : 'X\(//\)[^/]' \| \
8771 X"$ac_dest" : 'X\(//\)$' \| \
8772 X"$ac_dest" : 'X\(/\)' \| \
8773 . : '\(.\)' 2>/dev/null ||
8774 echo X"$ac_dest" |
8775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8777 /^X\(\/\/\)$/{ s//\1/; q; }
8778 /^X\(\/\).*/{ s//\1/; q; }
8779 s/.*/./; q'`
8780 { if $as_mkdir_p; then
8781 mkdir -p "$ac_dest_dir"
8782 else
8783 as_dir="$ac_dest_dir"
8784 as_dirs=
8785 while test ! -d "$as_dir"; do
8786 as_dirs="$as_dir $as_dirs"
8787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8789 X"$as_dir" : 'X\(//\)[^/]' \| \
8790 X"$as_dir" : 'X\(//\)$' \| \
8791 X"$as_dir" : 'X\(/\)' \| \
8792 . : '\(.\)' 2>/dev/null ||
8793 echo X"$as_dir" |
8794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8796 /^X\(\/\/\)$/{ s//\1/; q; }
8797 /^X\(\/\).*/{ s//\1/; q; }
8798 s/.*/./; q'`
8799 done
8800 test ! -n "$as_dirs" || mkdir $as_dirs
8801 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8802 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8803 { (exit 1); exit 1; }; }; }
8804
8805 ac_builddir=.
8806
8807 if test "$ac_dest_dir" != .; then
8808 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8809 # A "../" for each directory in $ac_dir_suffix.
8810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8811 else
8812 ac_dir_suffix= ac_top_builddir=
8813 fi
8814
8815 case $srcdir in
8816 .) # No --srcdir option. We are building in place.
8817 ac_srcdir=.
8818 if test -z "$ac_top_builddir"; then
8819 ac_top_srcdir=.
8820 else
8821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8822 fi ;;
8823 [\\/]* | ?:[\\/]* ) # Absolute path.
8824 ac_srcdir=$srcdir$ac_dir_suffix;
8825 ac_top_srcdir=$srcdir ;;
8826 *) # Relative path.
8827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8829 esac
8830
8831 # Do not use `cd foo && pwd` to compute absolute paths, because
8832 # the directories may not exist.
8833 case `pwd` in
8834 .) ac_abs_builddir="$ac_dest_dir";;
8835 *)
8836 case "$ac_dest_dir" in
8837 .) ac_abs_builddir=`pwd`;;
8838 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8839 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8840 esac;;
8841 esac
8842 case $ac_abs_builddir in
8843 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8844 *)
8845 case ${ac_top_builddir}. in
8846 .) ac_abs_top_builddir=$ac_abs_builddir;;
8847 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8848 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8849 esac;;
8850 esac
8851 case $ac_abs_builddir in
8852 .) ac_abs_srcdir=$ac_srcdir;;
8853 *)
8854 case $ac_srcdir in
8855 .) ac_abs_srcdir=$ac_abs_builddir;;
8856 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8857 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8858 esac;;
8859 esac
8860 case $ac_abs_builddir in
8861 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8862 *)
8863 case $ac_top_srcdir in
8864 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8865 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8866 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8867 esac;;
8868 esac
8869
8870
8871 case $srcdir in
8872 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8873 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8874 esac
8875
8876 # Try a symlink, then a hard link, then a copy.
8877 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8878 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8879 cp -p $srcdir/$ac_source $ac_dest ||
8880 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8881 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8882 { (exit 1); exit 1; }; }
8883 done
8884 _ACEOF
8885 cat >>$CONFIG_STATUS <<\_ACEOF
8886
8887 #
8888 # CONFIG_COMMANDS section.
8889 #
8890 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8891 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8892 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8893 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8894 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8895 X"$ac_dest" : 'X\(//\)[^/]' \| \
8896 X"$ac_dest" : 'X\(//\)$' \| \
8897 X"$ac_dest" : 'X\(/\)' \| \
8898 . : '\(.\)' 2>/dev/null ||
8899 echo X"$ac_dest" |
8900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8902 /^X\(\/\/\)$/{ s//\1/; q; }
8903 /^X\(\/\).*/{ s//\1/; q; }
8904 s/.*/./; q'`
8905 { if $as_mkdir_p; then
8906 mkdir -p "$ac_dir"
8907 else
8908 as_dir="$ac_dir"
8909 as_dirs=
8910 while test ! -d "$as_dir"; do
8911 as_dirs="$as_dir $as_dirs"
8912 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8914 X"$as_dir" : 'X\(//\)[^/]' \| \
8915 X"$as_dir" : 'X\(//\)$' \| \
8916 X"$as_dir" : 'X\(/\)' \| \
8917 . : '\(.\)' 2>/dev/null ||
8918 echo X"$as_dir" |
8919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8921 /^X\(\/\/\)$/{ s//\1/; q; }
8922 /^X\(\/\).*/{ s//\1/; q; }
8923 s/.*/./; q'`
8924 done
8925 test ! -n "$as_dirs" || mkdir $as_dirs
8926 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8928 { (exit 1); exit 1; }; }; }
8929
8930 ac_builddir=.
8931
8932 if test "$ac_dir" != .; then
8933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8934 # A "../" for each directory in $ac_dir_suffix.
8935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8936 else
8937 ac_dir_suffix= ac_top_builddir=
8938 fi
8939
8940 case $srcdir in
8941 .) # No --srcdir option. We are building in place.
8942 ac_srcdir=.
8943 if test -z "$ac_top_builddir"; then
8944 ac_top_srcdir=.
8945 else
8946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8947 fi ;;
8948 [\\/]* | ?:[\\/]* ) # Absolute path.
8949 ac_srcdir=$srcdir$ac_dir_suffix;
8950 ac_top_srcdir=$srcdir ;;
8951 *) # Relative path.
8952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8954 esac
8955
8956 # Do not use `cd foo && pwd` to compute absolute paths, because
8957 # the directories may not exist.
8958 case `pwd` in
8959 .) ac_abs_builddir="$ac_dir";;
8960 *)
8961 case "$ac_dir" in
8962 .) ac_abs_builddir=`pwd`;;
8963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8965 esac;;
8966 esac
8967 case $ac_abs_builddir in
8968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8969 *)
8970 case ${ac_top_builddir}. in
8971 .) ac_abs_top_builddir=$ac_abs_builddir;;
8972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8974 esac;;
8975 esac
8976 case $ac_abs_builddir in
8977 .) ac_abs_srcdir=$ac_srcdir;;
8978 *)
8979 case $ac_srcdir in
8980 .) ac_abs_srcdir=$ac_abs_builddir;;
8981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8983 esac;;
8984 esac
8985 case $ac_abs_builddir in
8986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8987 *)
8988 case $ac_top_srcdir in
8989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8992 esac;;
8993 esac
8994
8995
8996 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8997 echo "$as_me: executing $ac_dest commands" >&6;}
8998 case $ac_dest in
8999 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9000 rm -f Makesim1.tmp Makesim2.tmp Makefile
9001 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9002 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9003 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9004 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9005 <Makefile.sim >Makefile
9006 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9007 ;;
9008 stamp-h ) echo > stamp-h ;;
9009 esac
9010 done
9011 _ACEOF
9012
9013 cat >>$CONFIG_STATUS <<\_ACEOF
9014
9015 { (exit 0); exit 0; }
9016 _ACEOF
9017 chmod +x $CONFIG_STATUS
9018 ac_clean_files=$ac_clean_files_save
9019
9020
9021 # configure is writing to config.log, and then calls config.status.
9022 # config.status does its own redirection, appending to config.log.
9023 # Unfortunately, on DOS this fails, as config.log is still kept open
9024 # by configure, so config.status won't be able to write to it; its
9025 # output is simply discarded. So we exec the FD to /dev/null,
9026 # effectively closing config.log, so it can be properly (re)opened and
9027 # appended to by config.status. When coming back to configure, we
9028 # need to make the FD available again.
9029 if test "$no_create" != yes; then
9030 ac_cs_success=:
9031 ac_config_status_args=
9032 test "$silent" = yes &&
9033 ac_config_status_args="$ac_config_status_args --quiet"
9034 exec 5>/dev/null
9035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9036 exec 5>>config.log
9037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9038 # would make configure fail if this is the last instruction.
9039 $ac_cs_success || { (exit 1); exit 1; }
9040 fi
9041
9042
This page took 0.243216 seconds and 4 git commands to generate.