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