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