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