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