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