Index: m32r/ChangeLog
[external/binutils.git] / sim / mips / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 X features:
840   --x-includes=DIR    X include files are in DIR
841   --x-libraries=DIR   X library files are in DIR
842
843 System types:
844   --build=BUILD     configure for building on BUILD [guessed]
845   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
846   --target=TARGET   configure for building compilers for TARGET [HOST]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852   cat <<\_ACEOF
853
854 Optional Features:
855   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
856   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
857   --disable-nls           do not use Native Language Support
858   --enable-maintainer-mode              Enable developer functionality.
859   --enable-sim-bswap                    Use Host specific BSWAP instruction.
860   --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
861   --enable-sim-debug=opts               Enable debugging flags
862   --enable-sim-stdio                    Specify whether to use stdio for console input/output.
863   --enable-sim-trace=opts               Enable tracing flags
864   --enable-sim-profile=opts             Enable profiling flags
865   --enable-sim-inline=inlines           Specify which functions should be inlined.
866   --enable-sim-alignment=align          Specify strict,  nonstrict or forced alignment of memory accesses.
867   --enable-sim-hostendian=end           Specify host byte endian orientation.
868   --enable-build-warnings Enable build-time compiler warnings if gcc is used
869   --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
870   --enable-sim-reserved-bits            Specify whether to check reserved bits in instruction.
871   --enable-sim-endian=endian            Specify target byte endian orientation.
872   --enable-sim-bitsize=N                Specify target bitsize (32 or 64).
873   --enable-sim-float                    Specify that the target processor has floating point hardware.
874   --enable-sim-smp=n                    Specify number of processors to configure for (default ${default_sim_smp}).
875   --enable-sim-hardware=LIST            Specify the hardware to be included in the build.
876
877 Optional Packages:
878   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880   --with-included-gettext use the GNU gettext library included here
881   --with-x                use the X Window System
882
883 Some influential environment variables:
884   CC          C compiler command
885   CFLAGS      C compiler flags
886   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887               nonstandard directory <lib dir>
888   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889               headers in a nonstandard directory <include dir>
890   CPP         C preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 _ACEOF
896 fi
897
898 if test "$ac_init_help" = "recursive"; then
899   # If there are subdirs, report their specific --help.
900   ac_popdir=`pwd`
901   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902     test -d $ac_dir || continue
903     ac_builddir=.
904
905 if test "$ac_dir" != .; then
906   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907   # A "../" for each directory in $ac_dir_suffix.
908   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910   ac_dir_suffix= ac_top_builddir=
911 fi
912
913 case $srcdir in
914   .)  # No --srcdir option.  We are building in place.
915     ac_srcdir=.
916     if test -z "$ac_top_builddir"; then
917        ac_top_srcdir=.
918     else
919        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920     fi ;;
921   [\\/]* | ?:[\\/]* )  # Absolute path.
922     ac_srcdir=$srcdir$ac_dir_suffix;
923     ac_top_srcdir=$srcdir ;;
924   *) # Relative path.
925     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926     ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
931 case `pwd` in
932 .) ac_abs_builddir="$ac_dir";;
933 *)
934   case "$ac_dir" in
935   .) ac_abs_builddir=`pwd`;;
936   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937   *) ac_abs_builddir=`pwd`/"$ac_dir";;
938   esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *)
943   case ${ac_top_builddir}. in
944   .) ac_abs_top_builddir=$ac_abs_builddir;;
945   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947   esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
951 *)
952   case $ac_srcdir in
953   .) ac_abs_srcdir=$ac_abs_builddir;;
954   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956   esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *)
961   case $ac_top_srcdir in
962   .) ac_abs_top_srcdir=$ac_abs_builddir;;
963   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965   esac;;
966 esac
967
968     cd $ac_dir
969     # Check for guested configure; otherwise get Cygnus style configure.
970     if test -f $ac_srcdir/configure.gnu; then
971       echo
972       $SHELL $ac_srcdir/configure.gnu  --help=recursive
973     elif test -f $ac_srcdir/configure; then
974       echo
975       $SHELL $ac_srcdir/configure  --help=recursive
976     elif test -f $ac_srcdir/configure.ac ||
977            test -f $ac_srcdir/configure.in; then
978       echo
979       $ac_configure --help
980     else
981       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982     fi
983     cd $ac_popdir
984   done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989   cat <<\_ACEOF
990
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995   exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59.  Invocation command line was
1004
1005   $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036   IFS=$as_save_IFS
1037   test -z "$as_dir" && as_dir=.
1038   echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065   for ac_arg
1066   do
1067     case $ac_arg in
1068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070     | -silent | --silent | --silen | --sile | --sil)
1071       continue ;;
1072     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074     esac
1075     case $ac_pass in
1076     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077     2)
1078       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079       if test $ac_must_keep_next = true; then
1080         ac_must_keep_next=false # Got value, back to normal.
1081       else
1082         case $ac_arg in
1083           *=* | --config-cache | -C | -disable-* | --disable-* \
1084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086           | -with-* | --with-* | -without-* | --without-* | --x)
1087             case "$ac_configure_args0 " in
1088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089             esac
1090             ;;
1091           -* ) ac_must_keep_next=true ;;
1092         esac
1093       fi
1094       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095       # Get rid of the leading space.
1096       ac_sep=" "
1097       ;;
1098     esac
1099   done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log.  We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110   # Save into config.log some information that might help in debugging.
1111   {
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119     echo
1120     # The following way of writing the cache mishandles newlines in values,
1121 {
1122   (set) 2>&1 |
1123     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124     *ac_space=\ *)
1125       sed -n \
1126         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128       ;;
1129     *)
1130       sed -n \
1131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132       ;;
1133     esac;
1134 }
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142     echo
1143     for ac_var in $ac_subst_vars
1144     do
1145       eval ac_val=$`echo $ac_var`
1146       echo "$ac_var='"'"'$ac_val'"'"'"
1147     done | sort
1148     echo
1149
1150     if test -n "$ac_subst_files"; then
1151       cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156       echo
1157       for ac_var in $ac_subst_files
1158       do
1159         eval ac_val=$`echo $ac_var`
1160         echo "$ac_var='"'"'$ac_val'"'"'"
1161       done | sort
1162       echo
1163     fi
1164
1165     if test -s confdefs.h; then
1166       cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171       echo
1172       sed "/^$/d" confdefs.h | sort
1173       echo
1174     fi
1175     test "$ac_signal" != 0 &&
1176       echo "$as_me: caught signal $ac_signal"
1177     echo "$as_me: exit $exit_status"
1178   } >&5
1179   rm -f core *.core &&
1180   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181     exit $exit_status
1182      ' 0
1183 for ac_signal in 1 2 13 15; do
1184   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223   if test "x$prefix" != xNONE; then
1224     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225   else
1226     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227   fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230   if test -r "$ac_site_file"; then
1231     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233     sed 's/^/| /' "$ac_site_file" >&5
1234     . "$ac_site_file"
1235   fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239   # Some versions of bash will fail to source /dev/null (special
1240   # files actually), so we avoid doing that.
1241   if test -f "$cache_file"; then
1242     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244     case $cache_file in
1245       [\\/]* | ?:[\\/]* ) . $cache_file;;
1246       *)                      . ./$cache_file;;
1247     esac
1248   fi
1249 else
1250   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252   >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261   eval ac_new_set=\$ac_env_${ac_var}_set
1262   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263   eval ac_new_val="\$ac_env_${ac_var}_value"
1264   case $ac_old_set,$ac_new_set in
1265     set,)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,set)
1270       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272       ac_cache_corrupted=: ;;
1273     ,);;
1274     *)
1275       if test "x$ac_old_val" != "x$ac_new_val"; then
1276         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279 echo "$as_me:   former value:  $ac_old_val" >&2;}
1280         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281 echo "$as_me:   current value: $ac_new_val" >&2;}
1282         ac_cache_corrupted=:
1283       fi;;
1284   esac
1285   # Pass precious variables to config.status.
1286   if test "$ac_new_set" = set; then
1287     case $ac_new_val in
1288     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290     *) ac_arg=$ac_var=$ac_new_val ;;
1291     esac
1292     case " $ac_configure_args " in
1293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295     esac
1296   fi
1297 done
1298 if $ac_cache_corrupted; then
1299   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 ac_aux_dir=
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333   if test -f $ac_dir/install-sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install-sh -c"
1336     break
1337   elif test -f $ac_dir/install.sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install.sh -c"
1340     break
1341   elif test -f $ac_dir/shtool; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/shtool install -c"
1344     break
1345   fi
1346 done
1347 if test -z "$ac_aux_dir"; then
1348   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350    { (exit 1); exit 1; }; }
1351 fi
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355
1356 # Make sure we can run config.sub.
1357 $ac_config_sub sun4 >/dev/null 2>&1 ||
1358   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1359 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1360    { (exit 1); exit 1; }; }
1361
1362 echo "$as_me:$LINENO: checking build system type" >&5
1363 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1364 if test "${ac_cv_build+set}" = set; then
1365   echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367   ac_cv_build_alias=$build_alias
1368 test -z "$ac_cv_build_alias" &&
1369   ac_cv_build_alias=`$ac_config_guess`
1370 test -z "$ac_cv_build_alias" &&
1371   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1372 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1373    { (exit 1); exit 1; }; }
1374 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1375   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1377    { (exit 1); exit 1; }; }
1378
1379 fi
1380 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1381 echo "${ECHO_T}$ac_cv_build" >&6
1382 build=$ac_cv_build
1383 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386
1387
1388 echo "$as_me:$LINENO: checking host system type" >&5
1389 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1390 if test "${ac_cv_host+set}" = set; then
1391   echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393   ac_cv_host_alias=$host_alias
1394 test -z "$ac_cv_host_alias" &&
1395   ac_cv_host_alias=$ac_cv_build_alias
1396 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1397   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1398 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 fi
1402 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1403 echo "${ECHO_T}$ac_cv_host" >&6
1404 host=$ac_cv_host
1405 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408
1409
1410 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1411 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1412 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1413 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1414   echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416   cat >conftest.make <<\_ACEOF
1417 all:
1418         @echo 'ac_maketemp="$(MAKE)"'
1419 _ACEOF
1420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1421 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1422 if test -n "$ac_maketemp"; then
1423   eval ac_cv_prog_make_${ac_make}_set=yes
1424 else
1425   eval ac_cv_prog_make_${ac_make}_set=no
1426 fi
1427 rm -f conftest.make
1428 fi
1429 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1430   echo "$as_me:$LINENO: result: yes" >&5
1431 echo "${ECHO_T}yes" >&6
1432   SET_MAKE=
1433 else
1434   echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436   SET_MAKE="MAKE=${MAKE-make}"
1437 fi
1438
1439
1440 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1441 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1442 if test "${ac_cv_search_strerror+set}" = set; then
1443   echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445   ac_func_search_save_LIBS=$LIBS
1446 ac_cv_search_strerror=no
1447 cat >conftest.$ac_ext <<_ACEOF
1448 /* confdefs.h.  */
1449 _ACEOF
1450 cat confdefs.h >>conftest.$ac_ext
1451 cat >>conftest.$ac_ext <<_ACEOF
1452 /* end confdefs.h.  */
1453
1454 /* Override any gcc2 internal prototype to avoid an error.  */
1455 #ifdef __cplusplus
1456 extern "C"
1457 #endif
1458 /* We use char because int might match the return type of a gcc2
1459    builtin and then its argument prototype would still apply.  */
1460 char strerror ();
1461 int
1462 main ()
1463 {
1464 strerror ();
1465   ;
1466   return 0;
1467 }
1468 _ACEOF
1469 rm -f conftest.$ac_objext conftest$ac_exeext
1470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1471   (eval $ac_link) 2>conftest.er1
1472   ac_status=$?
1473   grep -v '^ *+' conftest.er1 >conftest.err
1474   rm -f conftest.er1
1475   cat conftest.err >&5
1476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1477   (exit $ac_status); } &&
1478          { ac_try='test -z "$ac_c_werror_flag"
1479                          || test ! -s conftest.err'
1480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1481   (eval $ac_try) 2>&5
1482   ac_status=$?
1483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1484   (exit $ac_status); }; } &&
1485          { ac_try='test -s conftest$ac_exeext'
1486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1487   (eval $ac_try) 2>&5
1488   ac_status=$?
1489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1490   (exit $ac_status); }; }; then
1491   ac_cv_search_strerror="none required"
1492 else
1493   echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1495
1496 fi
1497 rm -f conftest.err conftest.$ac_objext \
1498       conftest$ac_exeext conftest.$ac_ext
1499 if test "$ac_cv_search_strerror" = no; then
1500   for ac_lib in cposix; do
1501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1502     cat >conftest.$ac_ext <<_ACEOF
1503 /* confdefs.h.  */
1504 _ACEOF
1505 cat confdefs.h >>conftest.$ac_ext
1506 cat >>conftest.$ac_ext <<_ACEOF
1507 /* end confdefs.h.  */
1508
1509 /* Override any gcc2 internal prototype to avoid an error.  */
1510 #ifdef __cplusplus
1511 extern "C"
1512 #endif
1513 /* We use char because int might match the return type of a gcc2
1514    builtin and then its argument prototype would still apply.  */
1515 char strerror ();
1516 int
1517 main ()
1518 {
1519 strerror ();
1520   ;
1521   return 0;
1522 }
1523 _ACEOF
1524 rm -f conftest.$ac_objext conftest$ac_exeext
1525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1526   (eval $ac_link) 2>conftest.er1
1527   ac_status=$?
1528   grep -v '^ *+' conftest.er1 >conftest.err
1529   rm -f conftest.er1
1530   cat conftest.err >&5
1531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1532   (exit $ac_status); } &&
1533          { ac_try='test -z "$ac_c_werror_flag"
1534                          || test ! -s conftest.err'
1535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1536   (eval $ac_try) 2>&5
1537   ac_status=$?
1538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1539   (exit $ac_status); }; } &&
1540          { ac_try='test -s conftest$ac_exeext'
1541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1542   (eval $ac_try) 2>&5
1543   ac_status=$?
1544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1545   (exit $ac_status); }; }; then
1546   ac_cv_search_strerror="-l$ac_lib"
1547 break
1548 else
1549   echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 fi
1553 rm -f conftest.err conftest.$ac_objext \
1554       conftest$ac_exeext conftest.$ac_ext
1555   done
1556 fi
1557 LIBS=$ac_func_search_save_LIBS
1558 fi
1559 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1560 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1561 if test "$ac_cv_search_strerror" != no; then
1562   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1563
1564 fi
1565
1566 ac_ext=c
1567 ac_cpp='$CPP $CPPFLAGS'
1568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1571 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1572 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1573 # On Suns, sometimes $CPP names a directory.
1574 if test -n "$CPP" && test -d "$CPP"; then
1575   CPP=
1576 fi
1577 if test -z "$CPP"; then
1578   if test "${ac_cv_prog_CPP+set}" = set; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581       # Double quotes because CPP needs to be expanded
1582     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1583     do
1584       ac_preproc_ok=false
1585 for ac_c_preproc_warn_flag in '' yes
1586 do
1587   # Use a header file that comes with gcc, so configuring glibc
1588   # with a fresh cross-compiler works.
1589   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1590   # <limits.h> exists even on freestanding compilers.
1591   # On the NeXT, cc -E runs the code through the compiler's parser,
1592   # not just through cpp. "Syntax error" is here to catch this case.
1593   cat >conftest.$ac_ext <<_ACEOF
1594 /* confdefs.h.  */
1595 _ACEOF
1596 cat confdefs.h >>conftest.$ac_ext
1597 cat >>conftest.$ac_ext <<_ACEOF
1598 /* end confdefs.h.  */
1599 #ifdef __STDC__
1600 # include <limits.h>
1601 #else
1602 # include <assert.h>
1603 #endif
1604                      Syntax error
1605 _ACEOF
1606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1607   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1608   ac_status=$?
1609   grep -v '^ *+' conftest.er1 >conftest.err
1610   rm -f conftest.er1
1611   cat conftest.err >&5
1612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613   (exit $ac_status); } >/dev/null; then
1614   if test -s conftest.err; then
1615     ac_cpp_err=$ac_c_preproc_warn_flag
1616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1617   else
1618     ac_cpp_err=
1619   fi
1620 else
1621   ac_cpp_err=yes
1622 fi
1623 if test -z "$ac_cpp_err"; then
1624   :
1625 else
1626   echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629   # Broken: fails on valid input.
1630 continue
1631 fi
1632 rm -f conftest.err conftest.$ac_ext
1633
1634   # OK, works on sane cases.  Now check whether non-existent headers
1635   # can be detected and how.
1636   cat >conftest.$ac_ext <<_ACEOF
1637 /* confdefs.h.  */
1638 _ACEOF
1639 cat confdefs.h >>conftest.$ac_ext
1640 cat >>conftest.$ac_ext <<_ACEOF
1641 /* end confdefs.h.  */
1642 #include <ac_nonexistent.h>
1643 _ACEOF
1644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1646   ac_status=$?
1647   grep -v '^ *+' conftest.er1 >conftest.err
1648   rm -f conftest.er1
1649   cat conftest.err >&5
1650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651   (exit $ac_status); } >/dev/null; then
1652   if test -s conftest.err; then
1653     ac_cpp_err=$ac_c_preproc_warn_flag
1654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1655   else
1656     ac_cpp_err=
1657   fi
1658 else
1659   ac_cpp_err=yes
1660 fi
1661 if test -z "$ac_cpp_err"; then
1662   # Broken: success on invalid input.
1663 continue
1664 else
1665   echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668   # Passes both tests.
1669 ac_preproc_ok=:
1670 break
1671 fi
1672 rm -f conftest.err conftest.$ac_ext
1673
1674 done
1675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1676 rm -f conftest.err conftest.$ac_ext
1677 if $ac_preproc_ok; then
1678   break
1679 fi
1680
1681     done
1682     ac_cv_prog_CPP=$CPP
1683
1684 fi
1685   CPP=$ac_cv_prog_CPP
1686 else
1687   ac_cv_prog_CPP=$CPP
1688 fi
1689 echo "$as_me:$LINENO: result: $CPP" >&5
1690 echo "${ECHO_T}$CPP" >&6
1691 ac_preproc_ok=false
1692 for ac_c_preproc_warn_flag in '' yes
1693 do
1694   # Use a header file that comes with gcc, so configuring glibc
1695   # with a fresh cross-compiler works.
1696   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1697   # <limits.h> exists even on freestanding compilers.
1698   # On the NeXT, cc -E runs the code through the compiler's parser,
1699   # not just through cpp. "Syntax error" is here to catch this case.
1700   cat >conftest.$ac_ext <<_ACEOF
1701 /* confdefs.h.  */
1702 _ACEOF
1703 cat confdefs.h >>conftest.$ac_ext
1704 cat >>conftest.$ac_ext <<_ACEOF
1705 /* end confdefs.h.  */
1706 #ifdef __STDC__
1707 # include <limits.h>
1708 #else
1709 # include <assert.h>
1710 #endif
1711                      Syntax error
1712 _ACEOF
1713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1715   ac_status=$?
1716   grep -v '^ *+' conftest.er1 >conftest.err
1717   rm -f conftest.er1
1718   cat conftest.err >&5
1719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720   (exit $ac_status); } >/dev/null; then
1721   if test -s conftest.err; then
1722     ac_cpp_err=$ac_c_preproc_warn_flag
1723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1724   else
1725     ac_cpp_err=
1726   fi
1727 else
1728   ac_cpp_err=yes
1729 fi
1730 if test -z "$ac_cpp_err"; then
1731   :
1732 else
1733   echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736   # Broken: fails on valid input.
1737 continue
1738 fi
1739 rm -f conftest.err conftest.$ac_ext
1740
1741   # OK, works on sane cases.  Now check whether non-existent headers
1742   # can be detected and how.
1743   cat >conftest.$ac_ext <<_ACEOF
1744 /* confdefs.h.  */
1745 _ACEOF
1746 cat confdefs.h >>conftest.$ac_ext
1747 cat >>conftest.$ac_ext <<_ACEOF
1748 /* end confdefs.h.  */
1749 #include <ac_nonexistent.h>
1750 _ACEOF
1751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1753   ac_status=$?
1754   grep -v '^ *+' conftest.er1 >conftest.err
1755   rm -f conftest.er1
1756   cat conftest.err >&5
1757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758   (exit $ac_status); } >/dev/null; then
1759   if test -s conftest.err; then
1760     ac_cpp_err=$ac_c_preproc_warn_flag
1761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1762   else
1763     ac_cpp_err=
1764   fi
1765 else
1766   ac_cpp_err=yes
1767 fi
1768 if test -z "$ac_cpp_err"; then
1769   # Broken: success on invalid input.
1770 continue
1771 else
1772   echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775   # Passes both tests.
1776 ac_preproc_ok=:
1777 break
1778 fi
1779 rm -f conftest.err conftest.$ac_ext
1780
1781 done
1782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1783 rm -f conftest.err conftest.$ac_ext
1784 if $ac_preproc_ok; then
1785   :
1786 else
1787   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1790 See \`config.log' for more details." >&2;}
1791    { (exit 1); exit 1; }; }
1792 fi
1793
1794 ac_ext=c
1795 ac_cpp='$CPP $CPPFLAGS'
1796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799
1800
1801 echo "$as_me:$LINENO: checking for egrep" >&5
1802 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1803 if test "${ac_cv_prog_egrep+set}" = set; then
1804   echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1807     then ac_cv_prog_egrep='grep -E'
1808     else ac_cv_prog_egrep='egrep'
1809     fi
1810 fi
1811 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1812 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1813  EGREP=$ac_cv_prog_egrep
1814
1815
1816 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1818 if test "${ac_cv_header_stdc+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   cat >conftest.$ac_ext <<_ACEOF
1822 /* confdefs.h.  */
1823 _ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h.  */
1827 #include <stdlib.h>
1828 #include <stdarg.h>
1829 #include <string.h>
1830 #include <float.h>
1831
1832 int
1833 main ()
1834 {
1835
1836   ;
1837   return 0;
1838 }
1839 _ACEOF
1840 rm -f conftest.$ac_objext
1841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1842   (eval $ac_compile) 2>conftest.er1
1843   ac_status=$?
1844   grep -v '^ *+' conftest.er1 >conftest.err
1845   rm -f conftest.er1
1846   cat conftest.err >&5
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); } &&
1849          { ac_try='test -z "$ac_c_werror_flag"
1850                          || test ! -s conftest.err'
1851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852   (eval $ac_try) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }; } &&
1856          { ac_try='test -s conftest.$ac_objext'
1857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1858   (eval $ac_try) 2>&5
1859   ac_status=$?
1860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861   (exit $ac_status); }; }; then
1862   ac_cv_header_stdc=yes
1863 else
1864   echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_cv_header_stdc=no
1868 fi
1869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1870
1871 if test $ac_cv_header_stdc = yes; then
1872   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1873   cat >conftest.$ac_ext <<_ACEOF
1874 /* confdefs.h.  */
1875 _ACEOF
1876 cat confdefs.h >>conftest.$ac_ext
1877 cat >>conftest.$ac_ext <<_ACEOF
1878 /* end confdefs.h.  */
1879 #include <string.h>
1880
1881 _ACEOF
1882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1883   $EGREP "memchr" >/dev/null 2>&1; then
1884   :
1885 else
1886   ac_cv_header_stdc=no
1887 fi
1888 rm -f conftest*
1889
1890 fi
1891
1892 if test $ac_cv_header_stdc = yes; then
1893   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1894   cat >conftest.$ac_ext <<_ACEOF
1895 /* confdefs.h.  */
1896 _ACEOF
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h.  */
1900 #include <stdlib.h>
1901
1902 _ACEOF
1903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1904   $EGREP "free" >/dev/null 2>&1; then
1905   :
1906 else
1907   ac_cv_header_stdc=no
1908 fi
1909 rm -f conftest*
1910
1911 fi
1912
1913 if test $ac_cv_header_stdc = yes; then
1914   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1915   if test "$cross_compiling" = yes; then
1916   :
1917 else
1918   cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h.  */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h.  */
1924 #include <ctype.h>
1925 #if ((' ' & 0x0FF) == 0x020)
1926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1928 #else
1929 # define ISLOWER(c) \
1930                    (('a' <= (c) && (c) <= 'i') \
1931                      || ('j' <= (c) && (c) <= 'r') \
1932                      || ('s' <= (c) && (c) <= 'z'))
1933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1934 #endif
1935
1936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1937 int
1938 main ()
1939 {
1940   int i;
1941   for (i = 0; i < 256; i++)
1942     if (XOR (islower (i), ISLOWER (i))
1943         || toupper (i) != TOUPPER (i))
1944       exit(2);
1945   exit (0);
1946 }
1947 _ACEOF
1948 rm -f conftest$ac_exeext
1949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1950   (eval $ac_link) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955   (eval $ac_try) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }; }; then
1959   :
1960 else
1961   echo "$as_me: program exited with status $ac_status" >&5
1962 echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ( exit $ac_status )
1966 ac_cv_header_stdc=no
1967 fi
1968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 fi
1971 fi
1972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1974 if test $ac_cv_header_stdc = yes; then
1975
1976 cat >>confdefs.h <<\_ACEOF
1977 #define STDC_HEADERS 1
1978 _ACEOF
1979
1980 fi
1981
1982 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1983 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1984 if test "${ac_cv_c_const+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   cat >conftest.$ac_ext <<_ACEOF
1988 /* confdefs.h.  */
1989 _ACEOF
1990 cat confdefs.h >>conftest.$ac_ext
1991 cat >>conftest.$ac_ext <<_ACEOF
1992 /* end confdefs.h.  */
1993
1994 int
1995 main ()
1996 {
1997 /* FIXME: Include the comments suggested by Paul. */
1998 #ifndef __cplusplus
1999   /* Ultrix mips cc rejects this.  */
2000   typedef int charset[2];
2001   const charset x;
2002   /* SunOS 4.1.1 cc rejects this.  */
2003   char const *const *ccp;
2004   char **p;
2005   /* NEC SVR4.0.2 mips cc rejects this.  */
2006   struct point {int x, y;};
2007   static struct point const zero = {0,0};
2008   /* AIX XL C 1.02.0.0 rejects this.
2009      It does not let you subtract one const X* pointer from another in
2010      an arm of an if-expression whose if-part is not a constant
2011      expression */
2012   const char *g = "string";
2013   ccp = &g + (g ? g-g : 0);
2014   /* HPUX 7.0 cc rejects these. */
2015   ++ccp;
2016   p = (char**) ccp;
2017   ccp = (char const *const *) p;
2018   { /* SCO 3.2v4 cc rejects this.  */
2019     char *t;
2020     char const *s = 0 ? (char *) 0 : (char const *) 0;
2021
2022     *t++ = 0;
2023   }
2024   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2025     int x[] = {25, 17};
2026     const int *foo = &x[0];
2027     ++foo;
2028   }
2029   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2030     typedef const int *iptr;
2031     iptr p = 0;
2032     ++p;
2033   }
2034   { /* AIX XL C 1.02.0.0 rejects this saying
2035        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2036     struct s { int j; const int *ap[3]; };
2037     struct s *b; b->j = 5;
2038   }
2039   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2040     const int foo = 10;
2041   }
2042 #endif
2043
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050   (eval $ac_compile) 2>conftest.er1
2051   ac_status=$?
2052   grep -v '^ *+' conftest.er1 >conftest.err
2053   rm -f conftest.er1
2054   cat conftest.err >&5
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); } &&
2057          { ac_try='test -z "$ac_c_werror_flag"
2058                          || test ! -s conftest.err'
2059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060   (eval $ac_try) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; } &&
2064          { ac_try='test -s conftest.$ac_objext'
2065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066   (eval $ac_try) 2>&5
2067   ac_status=$?
2068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069   (exit $ac_status); }; }; then
2070   ac_cv_c_const=yes
2071 else
2072   echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_cv_c_const=no
2076 fi
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 fi
2079 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2080 echo "${ECHO_T}$ac_cv_c_const" >&6
2081 if test $ac_cv_c_const = no; then
2082
2083 cat >>confdefs.h <<\_ACEOF
2084 #define const
2085 _ACEOF
2086
2087 fi
2088
2089 echo "$as_me:$LINENO: checking for inline" >&5
2090 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2091 if test "${ac_cv_c_inline+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   ac_cv_c_inline=no
2095 for ac_kw in inline __inline__ __inline; do
2096   cat >conftest.$ac_ext <<_ACEOF
2097 /* confdefs.h.  */
2098 _ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h.  */
2102 #ifndef __cplusplus
2103 typedef int foo_t;
2104 static $ac_kw foo_t static_foo () {return 0; }
2105 $ac_kw foo_t foo () {return 0; }
2106 #endif
2107
2108 _ACEOF
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111   (eval $ac_compile) 2>conftest.er1
2112   ac_status=$?
2113   grep -v '^ *+' conftest.er1 >conftest.err
2114   rm -f conftest.er1
2115   cat conftest.err >&5
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); } &&
2118          { ac_try='test -z "$ac_c_werror_flag"
2119                          || test ! -s conftest.err'
2120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121   (eval $ac_try) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }; } &&
2125          { ac_try='test -s conftest.$ac_objext'
2126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127   (eval $ac_try) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }; }; then
2131   ac_cv_c_inline=$ac_kw; break
2132 else
2133   echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 fi
2137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139
2140 fi
2141 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2142 echo "${ECHO_T}$ac_cv_c_inline" >&6
2143
2144
2145 case $ac_cv_c_inline in
2146   inline | yes) ;;
2147   *)
2148     case $ac_cv_c_inline in
2149       no) ac_val=;;
2150       *) ac_val=$ac_cv_c_inline;;
2151     esac
2152     cat >>confdefs.h <<_ACEOF
2153 #ifndef __cplusplus
2154 #define inline $ac_val
2155 #endif
2156 _ACEOF
2157     ;;
2158 esac
2159
2160 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2171                   inttypes.h stdint.h unistd.h
2172 do
2173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2174 echo "$as_me:$LINENO: checking for $ac_header" >&5
2175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   cat >conftest.$ac_ext <<_ACEOF
2180 /* confdefs.h.  */
2181 _ACEOF
2182 cat confdefs.h >>conftest.$ac_ext
2183 cat >>conftest.$ac_ext <<_ACEOF
2184 /* end confdefs.h.  */
2185 $ac_includes_default
2186
2187 #include <$ac_header>
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191   (eval $ac_compile) 2>conftest.er1
2192   ac_status=$?
2193   grep -v '^ *+' conftest.er1 >conftest.err
2194   rm -f conftest.er1
2195   cat conftest.err >&5
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); } &&
2198          { ac_try='test -z "$ac_c_werror_flag"
2199                          || test ! -s conftest.err'
2200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201   (eval $ac_try) 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }; } &&
2205          { ac_try='test -s conftest.$ac_objext'
2206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207   (eval $ac_try) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; }; then
2211   eval "$as_ac_Header=yes"
2212 else
2213   echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 eval "$as_ac_Header=no"
2217 fi
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 fi
2220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2223   cat >>confdefs.h <<_ACEOF
2224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2225 _ACEOF
2226
2227 fi
2228
2229 done
2230
2231
2232 echo "$as_me:$LINENO: checking for off_t" >&5
2233 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2234 if test "${ac_cv_type_off_t+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h.  */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h.  */
2243 $ac_includes_default
2244 int
2245 main ()
2246 {
2247 if ((off_t *) 0)
2248   return 0;
2249 if (sizeof (off_t))
2250   return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257   (eval $ac_compile) 2>conftest.er1
2258   ac_status=$?
2259   grep -v '^ *+' conftest.er1 >conftest.err
2260   rm -f conftest.er1
2261   cat conftest.err >&5
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -z "$ac_c_werror_flag"
2265                          || test ! -s conftest.err'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   ac_cv_type_off_t=yes
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_cv_type_off_t=no
2283 fi
2284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2287 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2288 if test $ac_cv_type_off_t = yes; then
2289   :
2290 else
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define off_t long
2294 _ACEOF
2295
2296 fi
2297
2298 echo "$as_me:$LINENO: checking for size_t" >&5
2299 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2300 if test "${ac_cv_type_size_t+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 if ((size_t *) 0)
2314   return 0;
2315 if (sizeof (size_t))
2316   return 0;
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323   (eval $ac_compile) 2>conftest.er1
2324   ac_status=$?
2325   grep -v '^ *+' conftest.er1 >conftest.err
2326   rm -f conftest.er1
2327   cat conftest.err >&5
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); } &&
2330          { ac_try='test -z "$ac_c_werror_flag"
2331                          || test ! -s conftest.err'
2332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333   (eval $ac_try) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; } &&
2337          { ac_try='test -s conftest.$ac_objext'
2338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339   (eval $ac_try) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; }; then
2343   ac_cv_type_size_t=yes
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 ac_cv_type_size_t=no
2349 fi
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 fi
2352 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2353 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2354 if test $ac_cv_type_size_t = yes; then
2355   :
2356 else
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define size_t unsigned
2360 _ACEOF
2361
2362 fi
2363
2364 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2365 # for constant arguments.  Useless!
2366 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2367 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2368 if test "${ac_cv_working_alloca_h+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377 #include <alloca.h>
2378 int
2379 main ()
2380 {
2381 char *p = (char *) alloca (2 * sizeof (int));
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2388   (eval $ac_link) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag"
2396                          || test ! -s conftest.err'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; } &&
2402          { ac_try='test -s conftest$ac_exeext'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_cv_working_alloca_h=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_cv_working_alloca_h=no
2414 fi
2415 rm -f conftest.err conftest.$ac_objext \
2416       conftest$ac_exeext conftest.$ac_ext
2417 fi
2418 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2419 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2420 if test $ac_cv_working_alloca_h = yes; then
2421
2422 cat >>confdefs.h <<\_ACEOF
2423 #define HAVE_ALLOCA_H 1
2424 _ACEOF
2425
2426 fi
2427
2428 echo "$as_me:$LINENO: checking for alloca" >&5
2429 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2430 if test "${ac_cv_func_alloca_works+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439 #ifdef __GNUC__
2440 # define alloca __builtin_alloca
2441 #else
2442 # ifdef _MSC_VER
2443 #  include <malloc.h>
2444 #  define alloca _alloca
2445 # else
2446 #  if HAVE_ALLOCA_H
2447 #   include <alloca.h>
2448 #  else
2449 #   ifdef _AIX
2450  #pragma alloca
2451 #   else
2452 #    ifndef alloca /* predefined by HP cc +Olibcalls */
2453 char *alloca ();
2454 #    endif
2455 #   endif
2456 #  endif
2457 # endif
2458 #endif
2459
2460 int
2461 main ()
2462 {
2463 char *p = (char *) alloca (1);
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2470   (eval $ac_link) 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag"
2478                          || test ! -s conftest.err'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; } &&
2484          { ac_try='test -s conftest$ac_exeext'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_cv_func_alloca_works=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 ac_cv_func_alloca_works=no
2496 fi
2497 rm -f conftest.err conftest.$ac_objext \
2498       conftest$ac_exeext conftest.$ac_ext
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2501 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2502
2503 if test $ac_cv_func_alloca_works = yes; then
2504
2505 cat >>confdefs.h <<\_ACEOF
2506 #define HAVE_ALLOCA 1
2507 _ACEOF
2508
2509 else
2510   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2511 # that cause trouble.  Some versions do not even contain alloca or
2512 # contain a buggy version.  If you still want to use their alloca,
2513 # use ar to extract alloca.o from them instead of compiling alloca.c.
2514
2515 ALLOCA=alloca.$ac_objext
2516
2517 cat >>confdefs.h <<\_ACEOF
2518 #define C_ALLOCA 1
2519 _ACEOF
2520
2521
2522 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2523 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2524 if test "${ac_cv_os_cray+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533 #if defined(CRAY) && ! defined(CRAY2)
2534 webecray
2535 #else
2536 wenotbecray
2537 #endif
2538
2539 _ACEOF
2540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2541   $EGREP "webecray" >/dev/null 2>&1; then
2542   ac_cv_os_cray=yes
2543 else
2544   ac_cv_os_cray=no
2545 fi
2546 rm -f conftest*
2547
2548 fi
2549 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2550 echo "${ECHO_T}$ac_cv_os_cray" >&6
2551 if test $ac_cv_os_cray = yes; then
2552   for ac_func in _getb67 GETB67 getb67; do
2553     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2554 echo "$as_me:$LINENO: checking for $ac_func" >&5
2555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2556 if eval "test \"\${$as_ac_var+set}\" = set"; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2567 #define $ac_func innocuous_$ac_func
2568
2569 /* System header to define __stub macros and hopefully few prototypes,
2570     which can conflict with char $ac_func (); below.
2571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2572     <limits.h> exists even on freestanding compilers.  */
2573
2574 #ifdef __STDC__
2575 # include <limits.h>
2576 #else
2577 # include <assert.h>
2578 #endif
2579
2580 #undef $ac_func
2581
2582 /* Override any gcc2 internal prototype to avoid an error.  */
2583 #ifdef __cplusplus
2584 extern "C"
2585 {
2586 #endif
2587 /* We use char because int might match the return type of a gcc2
2588    builtin and then its argument prototype would still apply.  */
2589 char $ac_func ();
2590 /* The GNU C library defines this for functions which it implements
2591     to always fail with ENOSYS.  Some functions are actually named
2592     something starting with __ and the normal name is an alias.  */
2593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2594 choke me
2595 #else
2596 char (*f) () = $ac_func;
2597 #endif
2598 #ifdef __cplusplus
2599 }
2600 #endif
2601
2602 int
2603 main ()
2604 {
2605 return f != $ac_func;
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612   (eval $ac_link) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest$ac_exeext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   eval "$as_ac_var=yes"
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 eval "$as_ac_var=no"
2638 fi
2639 rm -f conftest.err conftest.$ac_objext \
2640       conftest$ac_exeext conftest.$ac_ext
2641 fi
2642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2644 if test `eval echo '${'$as_ac_var'}'` = yes; then
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define CRAY_STACKSEG_END $ac_func
2648 _ACEOF
2649
2650     break
2651 fi
2652
2653   done
2654 fi
2655
2656 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2657 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2658 if test "${ac_cv_c_stack_direction+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   if test "$cross_compiling" = yes; then
2662   ac_cv_c_stack_direction=0
2663 else
2664   cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670 int
2671 find_stack_direction ()
2672 {
2673   static char *addr = 0;
2674   auto char dummy;
2675   if (addr == 0)
2676     {
2677       addr = &dummy;
2678       return find_stack_direction ();
2679     }
2680   else
2681     return (&dummy > addr) ? 1 : -1;
2682 }
2683
2684 int
2685 main ()
2686 {
2687   exit (find_stack_direction () < 0);
2688 }
2689 _ACEOF
2690 rm -f conftest$ac_exeext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2692   (eval $ac_link) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697   (eval $ac_try) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; }; then
2701   ac_cv_c_stack_direction=1
2702 else
2703   echo "$as_me: program exited with status $ac_status" >&5
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 ( exit $ac_status )
2708 ac_cv_c_stack_direction=-1
2709 fi
2710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 fi
2713 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2714 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define STACK_DIRECTION $ac_cv_c_stack_direction
2718 _ACEOF
2719
2720
2721 fi
2722
2723
2724
2725 for ac_header in stdlib.h unistd.h
2726 do
2727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2729   echo "$as_me:$LINENO: checking for $ac_header" >&5
2730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 fi
2734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2736 else
2737   # Is the header compilable?
2738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2740 cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746 $ac_includes_default
2747 #include <$ac_header>
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751   (eval $ac_compile) 2>conftest.er1
2752   ac_status=$?
2753   grep -v '^ *+' conftest.er1 >conftest.err
2754   rm -f conftest.er1
2755   cat conftest.err >&5
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          { ac_try='test -z "$ac_c_werror_flag"
2759                          || test ! -s conftest.err'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; } &&
2765          { ac_try='test -s conftest.$ac_objext'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; }; then
2771   ac_header_compiler=yes
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 ac_header_compiler=no
2777 fi
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2780 echo "${ECHO_T}$ac_header_compiler" >&6
2781
2782 # Is the header present?
2783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2785 cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h.  */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h.  */
2791 #include <$ac_header>
2792 _ACEOF
2793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } >/dev/null; then
2801   if test -s conftest.err; then
2802     ac_cpp_err=$ac_c_preproc_warn_flag
2803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2804   else
2805     ac_cpp_err=
2806   fi
2807 else
2808   ac_cpp_err=yes
2809 fi
2810 if test -z "$ac_cpp_err"; then
2811   ac_header_preproc=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816   ac_header_preproc=no
2817 fi
2818 rm -f conftest.err conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2820 echo "${ECHO_T}$ac_header_preproc" >&6
2821
2822 # So?  What about this header?
2823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2824   yes:no: )
2825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2829     ac_header_preproc=yes
2830     ;;
2831   no:yes:* )
2832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
2835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
2836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
2839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
2840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2844     (
2845       cat <<\_ASBOX
2846 ## ------------------------------------------ ##
2847 ## Report this to the AC_PACKAGE_NAME lists.  ##
2848 ## ------------------------------------------ ##
2849 _ASBOX
2850     ) |
2851       sed "s/^/$as_me: WARNING:     /" >&2
2852     ;;
2853 esac
2854 echo "$as_me:$LINENO: checking for $ac_header" >&5
2855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2857   echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859   eval "$as_ac_Header=\$ac_header_preproc"
2860 fi
2861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2863
2864 fi
2865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2866   cat >>confdefs.h <<_ACEOF
2867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2868 _ACEOF
2869
2870 fi
2871
2872 done
2873
2874
2875 for ac_func in getpagesize
2876 do
2877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2878 echo "$as_me:$LINENO: checking for $ac_func" >&5
2879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2880 if eval "test \"\${$as_ac_var+set}\" = set"; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883   cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2891 #define $ac_func innocuous_$ac_func
2892
2893 /* System header to define __stub macros and hopefully few prototypes,
2894     which can conflict with char $ac_func (); below.
2895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896     <limits.h> exists even on freestanding compilers.  */
2897
2898 #ifdef __STDC__
2899 # include <limits.h>
2900 #else
2901 # include <assert.h>
2902 #endif
2903
2904 #undef $ac_func
2905
2906 /* Override any gcc2 internal prototype to avoid an error.  */
2907 #ifdef __cplusplus
2908 extern "C"
2909 {
2910 #endif
2911 /* We use char because int might match the return type of a gcc2
2912    builtin and then its argument prototype would still apply.  */
2913 char $ac_func ();
2914 /* The GNU C library defines this for functions which it implements
2915     to always fail with ENOSYS.  Some functions are actually named
2916     something starting with __ and the normal name is an alias.  */
2917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2918 choke me
2919 #else
2920 char (*f) () = $ac_func;
2921 #endif
2922 #ifdef __cplusplus
2923 }
2924 #endif
2925
2926 int
2927 main ()
2928 {
2929 return f != $ac_func;
2930   ;
2931   return 0;
2932 }
2933 _ACEOF
2934 rm -f conftest.$ac_objext conftest$ac_exeext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936   (eval $ac_link) 2>conftest.er1
2937   ac_status=$?
2938   grep -v '^ *+' conftest.er1 >conftest.err
2939   rm -f conftest.er1
2940   cat conftest.err >&5
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } &&
2943          { ac_try='test -z "$ac_c_werror_flag"
2944                          || test ! -s conftest.err'
2945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946   (eval $ac_try) 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; } &&
2950          { ac_try='test -s conftest$ac_exeext'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; }; then
2956   eval "$as_ac_var=yes"
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961 eval "$as_ac_var=no"
2962 fi
2963 rm -f conftest.err conftest.$ac_objext \
2964       conftest$ac_exeext conftest.$ac_ext
2965 fi
2966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2968 if test `eval echo '${'$as_ac_var'}'` = yes; then
2969   cat >>confdefs.h <<_ACEOF
2970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2971 _ACEOF
2972
2973 fi
2974 done
2975
2976 echo "$as_me:$LINENO: checking for working mmap" >&5
2977 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2978 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   if test "$cross_compiling" = yes; then
2982   ac_cv_func_mmap_fixed_mapped=no
2983 else
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990 $ac_includes_default
2991 /* malloc might have been renamed as rpl_malloc. */
2992 #undef malloc
2993
2994 /* Thanks to Mike Haertel and Jim Avera for this test.
2995    Here is a matrix of mmap possibilities:
2996         mmap private not fixed
2997         mmap private fixed at somewhere currently unmapped
2998         mmap private fixed at somewhere already mapped
2999         mmap shared not fixed
3000         mmap shared fixed at somewhere currently unmapped
3001         mmap shared fixed at somewhere already mapped
3002    For private mappings, we should verify that changes cannot be read()
3003    back from the file, nor mmap's back from the file at a different
3004    address.  (There have been systems where private was not correctly
3005    implemented like the infamous i386 svr4.0, and systems where the
3006    VM page cache was not coherent with the file system buffer cache
3007    like early versions of FreeBSD and possibly contemporary NetBSD.)
3008    For shared mappings, we should conversely verify that changes get
3009    propagated back to all the places they're supposed to be.
3010
3011    Grep wants private fixed already mapped.
3012    The main things grep needs to know about mmap are:
3013    * does it exist and is it safe to write into the mmap'd area
3014    * how to use it (BSD variants)  */
3015
3016 #include <fcntl.h>
3017 #include <sys/mman.h>
3018
3019 #if !STDC_HEADERS && !HAVE_STDLIB_H
3020 char *malloc ();
3021 #endif
3022
3023 /* This mess was copied from the GNU getpagesize.h.  */
3024 #if !HAVE_GETPAGESIZE
3025 /* Assume that all systems that can run configure have sys/param.h.  */
3026 # if !HAVE_SYS_PARAM_H
3027 #  define HAVE_SYS_PARAM_H 1
3028 # endif
3029
3030 # ifdef _SC_PAGESIZE
3031 #  define getpagesize() sysconf(_SC_PAGESIZE)
3032 # else /* no _SC_PAGESIZE */
3033 #  if HAVE_SYS_PARAM_H
3034 #   include <sys/param.h>
3035 #   ifdef EXEC_PAGESIZE
3036 #    define getpagesize() EXEC_PAGESIZE
3037 #   else /* no EXEC_PAGESIZE */
3038 #    ifdef NBPG
3039 #     define getpagesize() NBPG * CLSIZE
3040 #     ifndef CLSIZE
3041 #      define CLSIZE 1
3042 #     endif /* no CLSIZE */
3043 #    else /* no NBPG */
3044 #     ifdef NBPC
3045 #      define getpagesize() NBPC
3046 #     else /* no NBPC */
3047 #      ifdef PAGESIZE
3048 #       define getpagesize() PAGESIZE
3049 #      endif /* PAGESIZE */
3050 #     endif /* no NBPC */
3051 #    endif /* no NBPG */
3052 #   endif /* no EXEC_PAGESIZE */
3053 #  else /* no HAVE_SYS_PARAM_H */
3054 #   define getpagesize() 8192   /* punt totally */
3055 #  endif /* no HAVE_SYS_PARAM_H */
3056 # endif /* no _SC_PAGESIZE */
3057
3058 #endif /* no HAVE_GETPAGESIZE */
3059
3060 int
3061 main ()
3062 {
3063   char *data, *data2, *data3;
3064   int i, pagesize;
3065   int fd;
3066
3067   pagesize = getpagesize ();
3068
3069   /* First, make a file with some known garbage in it. */
3070   data = (char *) malloc (pagesize);
3071   if (!data)
3072     exit (1);
3073   for (i = 0; i < pagesize; ++i)
3074     *(data + i) = rand ();
3075   umask (0);
3076   fd = creat ("conftest.mmap", 0600);
3077   if (fd < 0)
3078     exit (1);
3079   if (write (fd, data, pagesize) != pagesize)
3080     exit (1);
3081   close (fd);
3082
3083   /* Next, try to mmap the file at a fixed address which already has
3084      something else allocated at it.  If we can, also make sure that
3085      we see the same garbage.  */
3086   fd = open ("conftest.mmap", O_RDWR);
3087   if (fd < 0)
3088     exit (1);
3089   data2 = (char *) malloc (2 * pagesize);
3090   if (!data2)
3091     exit (1);
3092   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3093   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3094                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3095     exit (1);
3096   for (i = 0; i < pagesize; ++i)
3097     if (*(data + i) != *(data2 + i))
3098       exit (1);
3099
3100   /* Finally, make sure that changes to the mapped area do not
3101      percolate back to the file as seen by read().  (This is a bug on
3102      some variants of i386 svr4.0.)  */
3103   for (i = 0; i < pagesize; ++i)
3104     *(data2 + i) = *(data2 + i) + 1;
3105   data3 = (char *) malloc (pagesize);
3106   if (!data3)
3107     exit (1);
3108   if (read (fd, data3, pagesize) != pagesize)
3109     exit (1);
3110   for (i = 0; i < pagesize; ++i)
3111     if (*(data + i) != *(data3 + i))
3112       exit (1);
3113   close (fd);
3114   exit (0);
3115 }
3116 _ACEOF
3117 rm -f conftest$ac_exeext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119   (eval $ac_link) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124   (eval $ac_try) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; }; then
3128   ac_cv_func_mmap_fixed_mapped=yes
3129 else
3130   echo "$as_me: program exited with status $ac_status" >&5
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 ( exit $ac_status )
3135 ac_cv_func_mmap_fixed_mapped=no
3136 fi
3137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3138 fi
3139 fi
3140 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3141 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3143
3144 cat >>confdefs.h <<\_ACEOF
3145 #define HAVE_MMAP 1
3146 _ACEOF
3147
3148 fi
3149 rm -f conftest.mmap
3150
3151
3152 # autoconf.info says this should be called right after AC_INIT.
3153           ac_config_headers="$ac_config_headers config.h:config.in"
3154
3155 echo "$as_me:$LINENO: checking target system type" >&5
3156 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3157 if test "${ac_cv_target+set}" = set; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   ac_cv_target_alias=$target_alias
3161 test "x$ac_cv_target_alias" = "x" &&
3162   ac_cv_target_alias=$ac_cv_host_alias
3163 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3164   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3165 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3166    { (exit 1); exit 1; }; }
3167
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3170 echo "${ECHO_T}$ac_cv_target" >&6
3171 target=$ac_cv_target
3172 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3173 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3174 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3175
3176
3177 # The aliases save the names the user supplied, while $host etc.
3178 # will get canonicalized.
3179 test -n "$target_alias" &&
3180   test "$program_prefix$program_suffix$program_transform_name" = \
3181     NONENONEs,x,x, &&
3182   program_prefix=${target_alias}-
3183 test "$program_prefix" != NONE &&
3184   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3185 # Use a double $ so make ignores it.
3186 test "$program_suffix" != NONE &&
3187   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3188 # Double any \ or $.  echo might interpret backslashes.
3189 # By default was `s,x,x', remove it if useless.
3190 cat <<\_ACEOF >conftest.sed
3191 s/[\\$]/&&/g;s/;s,x,x,$//
3192 _ACEOF
3193 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3194 rm conftest.sed
3195
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 if test -n "$ac_tool_prefix"; then
3202   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   if test -n "$CC"; then
3210   ac_cv_prog_CC="$CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217   for ac_exec_ext in '' $ac_executable_extensions; do
3218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224 done
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230   echo "$as_me:$LINENO: result: $CC" >&5
3231 echo "${ECHO_T}$CC" >&6
3232 else
3233   echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 fi
3236
3237 fi
3238 if test -z "$ac_cv_prog_CC"; then
3239   ac_ct_CC=$CC
3240   # Extract the first word of "gcc", so it can be a program name with args.
3241 set dummy gcc; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   if test -n "$ac_ct_CC"; then
3248   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255   for ac_exec_ext in '' $ac_executable_extensions; do
3256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257     ac_cv_prog_ac_ct_CC="gcc"
3258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259     break 2
3260   fi
3261 done
3262 done
3263
3264 fi
3265 fi
3266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3269 echo "${ECHO_T}$ac_ct_CC" >&6
3270 else
3271   echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3273 fi
3274
3275   CC=$ac_ct_CC
3276 else
3277   CC="$ac_cv_prog_CC"
3278 fi
3279
3280 if test -z "$CC"; then
3281   if test -n "$ac_tool_prefix"; then
3282   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}cc; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_CC+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$CC"; then
3290   ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299     ac_cv_prog_CC="${ac_tool_prefix}cc"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305
3306 fi
3307 fi
3308 CC=$ac_cv_prog_CC
3309 if test -n "$CC"; then
3310   echo "$as_me:$LINENO: result: $CC" >&5
3311 echo "${ECHO_T}$CC" >&6
3312 else
3313   echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315 fi
3316
3317 fi
3318 if test -z "$ac_cv_prog_CC"; then
3319   ac_ct_CC=$CC
3320   # Extract the first word of "cc", so it can be a program name with args.
3321 set dummy cc; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   if test -n "$ac_ct_CC"; then
3328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335   for ac_exec_ext in '' $ac_executable_extensions; do
3336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_ac_ct_CC="cc"
3338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342 done
3343
3344 fi
3345 fi
3346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3347 if test -n "$ac_ct_CC"; then
3348   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3349 echo "${ECHO_T}$ac_ct_CC" >&6
3350 else
3351   echo "$as_me:$LINENO: result: no" >&5
3352 echo "${ECHO_T}no" >&6
3353 fi
3354
3355   CC=$ac_ct_CC
3356 else
3357   CC="$ac_cv_prog_CC"
3358 fi
3359
3360 fi
3361 if test -z "$CC"; then
3362   # Extract the first word of "cc", so it can be a program name with args.
3363 set dummy cc; ac_word=$2
3364 echo "$as_me:$LINENO: checking for $ac_word" >&5
3365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366 if test "${ac_cv_prog_CC+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   if test -n "$CC"; then
3370   ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372   ac_prog_rejected=no
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3381        ac_prog_rejected=yes
3382        continue
3383      fi
3384     ac_cv_prog_CC="cc"
3385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389 done
3390
3391 if test $ac_prog_rejected = yes; then
3392   # We found a bogon in the path, so make sure we never use it.
3393   set dummy $ac_cv_prog_CC
3394   shift
3395   if test $# != 0; then
3396     # We chose a different compiler from the bogus one.
3397     # However, it has the same basename, so the bogon will be chosen
3398     # first if we set CC to just the basename; use the full file name.
3399     shift
3400     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401   fi
3402 fi
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407   echo "$as_me:$LINENO: result: $CC" >&5
3408 echo "${ECHO_T}$CC" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 fi
3415 if test -z "$CC"; then
3416   if test -n "$ac_tool_prefix"; then
3417   for ac_prog in cl
3418   do
3419     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423 if test "${ac_cv_prog_CC+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   if test -n "$CC"; then
3427   ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434   for ac_exec_ext in '' $ac_executable_extensions; do
3435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441 done
3442
3443 fi
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447   echo "$as_me:$LINENO: result: $CC" >&5
3448 echo "${ECHO_T}$CC" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454     test -n "$CC" && break
3455   done
3456 fi
3457 if test -z "$CC"; then
3458   ac_ct_CC=$CC
3459   for ac_prog in cl
3460 do
3461   # Extract the first word of "$ac_prog", so it can be a program name with args.
3462 set dummy $ac_prog; ac_word=$2
3463 echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   if test -n "$ac_ct_CC"; then
3469   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476   for ac_exec_ext in '' $ac_executable_extensions; do
3477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     ac_cv_prog_ac_ct_CC="$ac_prog"
3479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483 done
3484
3485 fi
3486 fi
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3490 echo "${ECHO_T}$ac_ct_CC" >&6
3491 else
3492   echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3494 fi
3495
3496   test -n "$ac_ct_CC" && break
3497 done
3498
3499   CC=$ac_ct_CC
3500 fi
3501
3502 fi
3503
3504
3505 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: no acceptable C compiler found in \$PATH
3508 See \`config.log' for more details." >&2;}
3509    { (exit 1); exit 1; }; }
3510
3511 # Provide some information about the compiler.
3512 echo "$as_me:$LINENO:" \
3513      "checking for C compiler version" >&5
3514 ac_compiler=`set X $ac_compile; echo $2`
3515 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3516   (eval $ac_compiler --version </dev/null >&5) 2>&5
3517   ac_status=$?
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); }
3520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3521   (eval $ac_compiler -v </dev/null >&5) 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); }
3525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3526   (eval $ac_compiler -V </dev/null >&5) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }
3530
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3550 # of exeext.
3551 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3552 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3553 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3554 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3555   (eval $ac_link_default) 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; then
3559   # Find the output, starting from the most likely.  This scheme is
3560 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3561 # resort.
3562
3563 # Be careful to initialize this variable, since it used to be cached.
3564 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3565 ac_cv_exeext=
3566 # b.out is created by i960 compilers.
3567 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3568 do
3569   test -f "$ac_file" || continue
3570   case $ac_file in
3571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3572         ;;
3573     conftest.$ac_ext )
3574         # This is the source file.
3575         ;;
3576     [ab].out )
3577         # We found the default executable, but exeext='' is most
3578         # certainly right.
3579         break;;
3580     *.* )
3581         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582         # FIXME: I believe we export ac_cv_exeext for Libtool,
3583         # but it would be cool to find out if it's true.  Does anybody
3584         # maintain Libtool? --akim.
3585         export ac_cv_exeext
3586         break;;
3587     * )
3588         break;;
3589   esac
3590 done
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3596 See \`config.log' for more details." >&5
3597 echo "$as_me: error: C compiler cannot create executables
3598 See \`config.log' for more details." >&2;}
3599    { (exit 77); exit 77; }; }
3600 fi
3601
3602 ac_exeext=$ac_cv_exeext
3603 echo "$as_me:$LINENO: result: $ac_file" >&5
3604 echo "${ECHO_T}$ac_file" >&6
3605
3606 # Check the compiler produces executables we can run.  If not, either
3607 # the compiler is broken, or we cross compile.
3608 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3609 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3610 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3611 # If not cross compiling, check that we can run a simple program.
3612 if test "$cross_compiling" != yes; then
3613   if { ac_try='./$ac_file'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619     cross_compiling=no
3620   else
3621     if test "$cross_compiling" = maybe; then
3622         cross_compiling=yes
3623     else
3624         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details." >&5
3627 echo "$as_me: error: cannot run C compiled programs.
3628 If you meant to cross compile, use \`--host'.
3629 See \`config.log' for more details." >&2;}
3630    { (exit 1); exit 1; }; }
3631     fi
3632   fi
3633 fi
3634 echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6
3636
3637 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3638 ac_clean_files=$ac_clean_files_save
3639 # Check the compiler produces executables we can run.  If not, either
3640 # the compiler is broken, or we cross compile.
3641 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3642 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3643 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3644 echo "${ECHO_T}$cross_compiling" >&6
3645
3646 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3647 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649   (eval $ac_link) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; then
3653   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3654 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3655 # work properly (i.e., refer to `conftest.exe'), while it won't with
3656 # `rm'.
3657 for ac_file in conftest.exe conftest conftest.*; do
3658   test -f "$ac_file" || continue
3659   case $ac_file in
3660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3661     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662           export ac_cv_exeext
3663           break;;
3664     * ) break;;
3665   esac
3666 done
3667 else
3668   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details." >&5
3670 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3671 See \`config.log' for more details." >&2;}
3672    { (exit 1); exit 1; }; }
3673 fi
3674
3675 rm -f conftest$ac_cv_exeext
3676 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3677 echo "${ECHO_T}$ac_cv_exeext" >&6
3678
3679 rm -f conftest.$ac_ext
3680 EXEEXT=$ac_cv_exeext
3681 ac_exeext=$EXEEXT
3682 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3683 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3684 if test "${ac_cv_objext+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h.  */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h.  */
3693
3694 int
3695 main ()
3696 {
3697
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 rm -f conftest.o conftest.obj
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704   (eval $ac_compile) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; then
3708   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3709   case $ac_file in
3710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3711     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3712        break;;
3713   esac
3714 done
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details." >&5
3721 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3722 See \`config.log' for more details." >&2;}
3723    { (exit 1); exit 1; }; }
3724 fi
3725
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 fi
3728 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3729 echo "${ECHO_T}$ac_cv_objext" >&6
3730 OBJEXT=$ac_cv_objext
3731 ac_objext=$OBJEXT
3732 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3733 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3734 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h.  */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h.  */
3743
3744 int
3745 main ()
3746 {
3747 #ifndef __GNUC__
3748        choke me
3749 #endif
3750
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757   (eval $ac_compile) 2>conftest.er1
3758   ac_status=$?
3759   grep -v '^ *+' conftest.er1 >conftest.err
3760   rm -f conftest.er1
3761   cat conftest.err >&5
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); } &&
3764          { ac_try='test -z "$ac_c_werror_flag"
3765                          || test ! -s conftest.err'
3766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767   (eval $ac_try) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }; } &&
3771          { ac_try='test -s conftest.$ac_objext'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; }; then
3777   ac_compiler_gnu=yes
3778 else
3779   echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 ac_compiler_gnu=no
3783 fi
3784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3786
3787 fi
3788 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3790 GCC=`test $ac_compiler_gnu = yes && echo yes`
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 CFLAGS="-g"
3794 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3795 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3796 if test "${ac_cv_prog_cc_g+set}" = set; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799   cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h.  */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h.  */
3805
3806 int
3807 main ()
3808 {
3809
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816   (eval $ac_compile) 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } &&
3823          { ac_try='test -z "$ac_c_werror_flag"
3824                          || test ! -s conftest.err'
3825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826   (eval $ac_try) 2>&5
3827   ac_status=$?
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); }; } &&
3830          { ac_try='test -s conftest.$ac_objext'
3831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832   (eval $ac_try) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; }; then
3836   ac_cv_prog_cc_g=yes
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 ac_cv_prog_cc_g=no
3842 fi
3843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844 fi
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3846 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3847 if test "$ac_test_CFLAGS" = set; then
3848   CFLAGS=$ac_save_CFLAGS
3849 elif test $ac_cv_prog_cc_g = yes; then
3850   if test "$GCC" = yes; then
3851     CFLAGS="-g -O2"
3852   else
3853     CFLAGS="-g"
3854   fi
3855 else
3856   if test "$GCC" = yes; then
3857     CFLAGS="-O2"
3858   else
3859     CFLAGS=
3860   fi
3861 fi
3862 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3863 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3864 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   ac_cv_prog_cc_stdc=no
3868 ac_save_CC=$CC
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875 #include <stdarg.h>
3876 #include <stdio.h>
3877 #include <sys/types.h>
3878 #include <sys/stat.h>
3879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3880 struct buf { int x; };
3881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3882 static char *e (p, i)
3883      char **p;
3884      int i;
3885 {
3886   return p[i];
3887 }
3888 static char *f (char * (*g) (char **, int), char **p, ...)
3889 {
3890   char *s;
3891   va_list v;
3892   va_start (v,p);
3893   s = g (p, va_arg (v,int));
3894   va_end (v);
3895   return s;
3896 }
3897
3898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3899    function prototypes and stuff, but not '\xHH' hex character constants.
3900    These don't provoke an error unfortunately, instead are silently treated
3901    as 'x'.  The following induces an error, until -std1 is added to get
3902    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3903    array size at least.  It's necessary to write '\x00'==0 to get something
3904    that's true only with -std1.  */
3905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3906
3907 int test (int i, double x);
3908 struct s1 {int (*f) (int a);};
3909 struct s2 {int (*f) (double a);};
3910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3911 int argc;
3912 char **argv;
3913 int
3914 main ()
3915 {
3916 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 # Don't try gcc -ansi; that turns off useful extensions and
3922 # breaks some systems' header files.
3923 # AIX                   -qlanglvl=ansi
3924 # Ultrix and OSF/1      -std1
3925 # HP-UX 10.20 and later -Ae
3926 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3927 # SVR4                  -Xc -D__EXTENSIONS__
3928 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929 do
3930   CC="$ac_save_CC $ac_arg"
3931   rm -f conftest.$ac_objext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933   (eval $ac_compile) 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } &&
3940          { ac_try='test -z "$ac_c_werror_flag"
3941                          || test ! -s conftest.err'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; } &&
3947          { ac_try='test -s conftest.$ac_objext'
3948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949   (eval $ac_try) 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }; }; then
3953   ac_cv_prog_cc_stdc=$ac_arg
3954 break
3955 else
3956   echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 fi
3960 rm -f conftest.err conftest.$ac_objext
3961 done
3962 rm -f conftest.$ac_ext conftest.$ac_objext
3963 CC=$ac_save_CC
3964
3965 fi
3966
3967 case "x$ac_cv_prog_cc_stdc" in
3968   x|xno)
3969     echo "$as_me:$LINENO: result: none needed" >&5
3970 echo "${ECHO_T}none needed" >&6 ;;
3971   *)
3972     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3973 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3974     CC="$CC $ac_cv_prog_cc_stdc" ;;
3975 esac
3976
3977 # Some people use a C++ compiler to compile C.  Since we use `exit',
3978 # in C++ we need to declare it.  In case someone uses the same compiler
3979 # for both compiling C and C++ we need to have the C++ compiler decide
3980 # the declaration of exit, since it's the most demanding environment.
3981 cat >conftest.$ac_ext <<_ACEOF
3982 #ifndef __cplusplus
3983   choke me
3984 #endif
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988   (eval $ac_compile) 2>conftest.er1
3989   ac_status=$?
3990   grep -v '^ *+' conftest.er1 >conftest.err
3991   rm -f conftest.er1
3992   cat conftest.err >&5
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } &&
3995          { ac_try='test -z "$ac_c_werror_flag"
3996                          || test ! -s conftest.err'
3997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998   (eval $ac_try) 2>&5
3999   ac_status=$?
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); }; } &&
4002          { ac_try='test -s conftest.$ac_objext'
4003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004   (eval $ac_try) 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); }; }; then
4008   for ac_declaration in \
4009    '' \
4010    'extern "C" void std::exit (int) throw (); using std::exit;' \
4011    'extern "C" void std::exit (int); using std::exit;' \
4012    'extern "C" void exit (int) throw ();' \
4013    'extern "C" void exit (int);' \
4014    'void exit (int);'
4015 do
4016   cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022 $ac_declaration
4023 #include <stdlib.h>
4024 int
4025 main ()
4026 {
4027 exit (42);
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -z "$ac_c_werror_flag"
4042                          || test ! -s conftest.err'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; } &&
4048          { ac_try='test -s conftest.$ac_objext'
4049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050   (eval $ac_try) 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); }; }; then
4054   :
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 continue
4060 fi
4061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4062   cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068 $ac_declaration
4069 int
4070 main ()
4071 {
4072 exit (42);
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079   (eval $ac_compile) 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -z "$ac_c_werror_flag"
4087                          || test ! -s conftest.err'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   break
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 fi
4105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4106 done
4107 rm -f conftest*
4108 if test -n "$ac_declaration"; then
4109   echo '#ifdef __cplusplus' >>confdefs.h
4110   echo $ac_declaration      >>confdefs.h
4111   echo '#endif'             >>confdefs.h
4112 fi
4113
4114 else
4115   echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4117
4118 fi
4119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125
4126 # Find a good install program.  We prefer a C program (faster),
4127 # so one script is as good as another.  But avoid the broken or
4128 # incompatible versions:
4129 # SysV /etc/install, /usr/sbin/install
4130 # SunOS /usr/etc/install
4131 # IRIX /sbin/install
4132 # AIX /bin/install
4133 # AmigaOS /C/install, which installs bootblocks on floppy discs
4134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4137 # OS/2's system install, which has a completely different semantic
4138 # ./install, which can be erroneously created by make from ./install.sh.
4139 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4140 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4141 if test -z "$INSTALL"; then
4142 if test "${ac_cv_path_install+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150   # Account for people who put trailing slashes in PATH elements.
4151 case $as_dir/ in
4152   ./ | .// | /cC/* | \
4153   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4154   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4155   /usr/ucb/* ) ;;
4156   *)
4157     # OSF1 and SCO ODT 3.0 have their own names for install.
4158     # Don't use installbsd from OSF since it installs stuff as root
4159     # by default.
4160     for ac_prog in ginstall scoinst install; do
4161       for ac_exec_ext in '' $ac_executable_extensions; do
4162         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4163           if test $ac_prog = install &&
4164             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4165             # AIX install.  It has an incompatible calling convention.
4166             :
4167           elif test $ac_prog = install &&
4168             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4169             # program-specific install script used by HP pwplus--don't use.
4170             :
4171           else
4172             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4173             break 3
4174           fi
4175         fi
4176       done
4177     done
4178     ;;
4179 esac
4180 done
4181
4182
4183 fi
4184   if test "${ac_cv_path_install+set}" = set; then
4185     INSTALL=$ac_cv_path_install
4186   else
4187     # As a last resort, use the slow shell script.  We don't cache a
4188     # path for INSTALL within a source directory, because that will
4189     # break other packages using the cache if that directory is
4190     # removed, or if the path is relative.
4191     INSTALL=$ac_install_sh
4192   fi
4193 fi
4194 echo "$as_me:$LINENO: result: $INSTALL" >&5
4195 echo "${ECHO_T}$INSTALL" >&6
4196
4197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4198 # It thinks the first close brace ends the variable substitution.
4199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4200
4201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4202
4203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4204
4205
4206 # Put a plausible default for CC_FOR_BUILD in Makefile.
4207 if test "x$cross_compiling" = "xno"; then
4208   CC_FOR_BUILD='$(CC)'
4209 else
4210   CC_FOR_BUILD=gcc
4211 fi
4212
4213
4214
4215
4216 AR=${AR-ar}
4217
4218 if test -n "$ac_tool_prefix"; then
4219   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_RANLIB+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   if test -n "$RANLIB"; then
4227   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234   for ac_exec_ext in '' $ac_executable_extensions; do
4235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241 done
4242
4243 fi
4244 fi
4245 RANLIB=$ac_cv_prog_RANLIB
4246 if test -n "$RANLIB"; then
4247   echo "$as_me:$LINENO: result: $RANLIB" >&5
4248 echo "${ECHO_T}$RANLIB" >&6
4249 else
4250   echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254 fi
4255 if test -z "$ac_cv_prog_RANLIB"; then
4256   ac_ct_RANLIB=$RANLIB
4257   # Extract the first word of "ranlib", so it can be a program name with args.
4258 set dummy ranlib; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   if test -n "$ac_ct_RANLIB"; then
4265   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_exec_ext in '' $ac_executable_extensions; do
4273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274     ac_cv_prog_ac_ct_RANLIB="ranlib"
4275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279 done
4280
4281   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4282 fi
4283 fi
4284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4285 if test -n "$ac_ct_RANLIB"; then
4286   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4287 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4288 else
4289   echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4291 fi
4292
4293   RANLIB=$ac_ct_RANLIB
4294 else
4295   RANLIB="$ac_cv_prog_RANLIB"
4296 fi
4297
4298
4299 ALL_LINGUAS=
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4311 unistd.h values.h sys/param.h
4312 do
4313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4315   echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 fi
4320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4322 else
4323   # Is the header compilable?
4324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h.  */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h.  */
4332 $ac_includes_default
4333 #include <$ac_header>
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337   (eval $ac_compile) 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } &&
4344          { ac_try='test -z "$ac_c_werror_flag"
4345                          || test ! -s conftest.err'
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); }; } &&
4351          { ac_try='test -s conftest.$ac_objext'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; }; then
4357   ac_header_compiler=yes
4358 else
4359   echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ac_header_compiler=no
4363 fi
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4366 echo "${ECHO_T}$ac_header_compiler" >&6
4367
4368 # Is the header present?
4369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <$ac_header>
4378 _ACEOF
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } >/dev/null; then
4387   if test -s conftest.err; then
4388     ac_cpp_err=$ac_c_preproc_warn_flag
4389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390   else
4391     ac_cpp_err=
4392   fi
4393 else
4394   ac_cpp_err=yes
4395 fi
4396 if test -z "$ac_cpp_err"; then
4397   ac_header_preproc=yes
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402   ac_header_preproc=no
4403 fi
4404 rm -f conftest.err conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4406 echo "${ECHO_T}$ac_header_preproc" >&6
4407
4408 # So?  What about this header?
4409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4410   yes:no: )
4411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4415     ac_header_preproc=yes
4416     ;;
4417   no:yes:* )
4418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4430     (
4431       cat <<\_ASBOX
4432 ## ------------------------------------------ ##
4433 ## Report this to the AC_PACKAGE_NAME lists.  ##
4434 ## ------------------------------------------ ##
4435 _ASBOX
4436     ) |
4437       sed "s/^/$as_me: WARNING:     /" >&2
4438     ;;
4439 esac
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   eval "$as_ac_Header=\$ac_header_preproc"
4446 fi
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4449
4450 fi
4451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452   cat >>confdefs.h <<_ACEOF
4453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 _ACEOF
4455
4456 fi
4457
4458 done
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4471 __argz_count __argz_stringify __argz_next
4472 do
4473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4474 echo "$as_me:$LINENO: checking for $ac_func" >&5
4475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4476 if eval "test \"\${$as_ac_var+set}\" = set"; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4487 #define $ac_func innocuous_$ac_func
4488
4489 /* System header to define __stub macros and hopefully few prototypes,
4490     which can conflict with char $ac_func (); below.
4491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492     <limits.h> exists even on freestanding compilers.  */
4493
4494 #ifdef __STDC__
4495 # include <limits.h>
4496 #else
4497 # include <assert.h>
4498 #endif
4499
4500 #undef $ac_func
4501
4502 /* Override any gcc2 internal prototype to avoid an error.  */
4503 #ifdef __cplusplus
4504 extern "C"
4505 {
4506 #endif
4507 /* We use char because int might match the return type of a gcc2
4508    builtin and then its argument prototype would still apply.  */
4509 char $ac_func ();
4510 /* The GNU C library defines this for functions which it implements
4511     to always fail with ENOSYS.  Some functions are actually named
4512     something starting with __ and the normal name is an alias.  */
4513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4514 choke me
4515 #else
4516 char (*f) () = $ac_func;
4517 #endif
4518 #ifdef __cplusplus
4519 }
4520 #endif
4521
4522 int
4523 main ()
4524 {
4525 return f != $ac_func;
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532   (eval $ac_link) 2>conftest.er1
4533   ac_status=$?
4534   grep -v '^ *+' conftest.er1 >conftest.err
4535   rm -f conftest.er1
4536   cat conftest.err >&5
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); } &&
4539          { ac_try='test -z "$ac_c_werror_flag"
4540                          || test ! -s conftest.err'
4541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; } &&
4546          { ac_try='test -s conftest$ac_exeext'
4547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   eval "$as_ac_var=yes"
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 eval "$as_ac_var=no"
4558 fi
4559 rm -f conftest.err conftest.$ac_objext \
4560       conftest$ac_exeext conftest.$ac_ext
4561 fi
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4564 if test `eval echo '${'$as_ac_var'}'` = yes; then
4565   cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4567 _ACEOF
4568
4569 fi
4570 done
4571
4572
4573    if test "${ac_cv_func_stpcpy+set}" != "set"; then
4574
4575 for ac_func in stpcpy
4576 do
4577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4578 echo "$as_me:$LINENO: checking for $ac_func" >&5
4579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4580 if eval "test \"\${$as_ac_var+set}\" = set"; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4591 #define $ac_func innocuous_$ac_func
4592
4593 /* System header to define __stub macros and hopefully few prototypes,
4594     which can conflict with char $ac_func (); below.
4595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4596     <limits.h> exists even on freestanding compilers.  */
4597
4598 #ifdef __STDC__
4599 # include <limits.h>
4600 #else
4601 # include <assert.h>
4602 #endif
4603
4604 #undef $ac_func
4605
4606 /* Override any gcc2 internal prototype to avoid an error.  */
4607 #ifdef __cplusplus
4608 extern "C"
4609 {
4610 #endif
4611 /* We use char because int might match the return type of a gcc2
4612    builtin and then its argument prototype would still apply.  */
4613 char $ac_func ();
4614 /* The GNU C library defines this for functions which it implements
4615     to always fail with ENOSYS.  Some functions are actually named
4616     something starting with __ and the normal name is an alias.  */
4617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4618 choke me
4619 #else
4620 char (*f) () = $ac_func;
4621 #endif
4622 #ifdef __cplusplus
4623 }
4624 #endif
4625
4626 int
4627 main ()
4628 {
4629 return f != $ac_func;
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636   (eval $ac_link) 2>conftest.er1
4637   ac_status=$?
4638   grep -v '^ *+' conftest.er1 >conftest.err
4639   rm -f conftest.er1
4640   cat conftest.err >&5
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } &&
4643          { ac_try='test -z "$ac_c_werror_flag"
4644                          || test ! -s conftest.err'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; } &&
4650          { ac_try='test -s conftest$ac_exeext'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   eval "$as_ac_var=yes"
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 eval "$as_ac_var=no"
4662 fi
4663 rm -f conftest.err conftest.$ac_objext \
4664       conftest$ac_exeext conftest.$ac_ext
4665 fi
4666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4668 if test `eval echo '${'$as_ac_var'}'` = yes; then
4669   cat >>confdefs.h <<_ACEOF
4670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4671 _ACEOF
4672
4673 fi
4674 done
4675
4676    fi
4677    if test "${ac_cv_func_stpcpy}" = "yes"; then
4678      cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_STPCPY 1
4680 _ACEOF
4681
4682    fi
4683
4684    if test $ac_cv_header_locale_h = yes; then
4685     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4686 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4687 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696 #include <locale.h>
4697 int
4698 main ()
4699 {
4700 return LC_MESSAGES
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext conftest$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707   (eval $ac_link) 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } &&
4714          { ac_try='test -z "$ac_c_werror_flag"
4715                          || test ! -s conftest.err'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest$ac_exeext'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727   am_cv_val_LC_MESSAGES=yes
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 am_cv_val_LC_MESSAGES=no
4733 fi
4734 rm -f conftest.err conftest.$ac_objext \
4735       conftest$ac_exeext conftest.$ac_ext
4736 fi
4737 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4738 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4739     if test $am_cv_val_LC_MESSAGES = yes; then
4740       cat >>confdefs.h <<\_ACEOF
4741 #define HAVE_LC_MESSAGES 1
4742 _ACEOF
4743
4744     fi
4745   fi
4746    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4747 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4748         # Check whether --enable-nls or --disable-nls was given.
4749 if test "${enable_nls+set}" = set; then
4750   enableval="$enable_nls"
4751   USE_NLS=$enableval
4752 else
4753   USE_NLS=yes
4754 fi;
4755     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4756 echo "${ECHO_T}$USE_NLS" >&6
4757
4758
4759     USE_INCLUDED_LIBINTL=no
4760
4761         if test "$USE_NLS" = "yes"; then
4762       cat >>confdefs.h <<\_ACEOF
4763 #define ENABLE_NLS 1
4764 _ACEOF
4765
4766       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4767 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4768
4769 # Check whether --with-included-gettext or --without-included-gettext was given.
4770 if test "${with_included_gettext+set}" = set; then
4771   withval="$with_included_gettext"
4772   nls_cv_force_use_gnu_gettext=$withval
4773 else
4774   nls_cv_force_use_gnu_gettext=no
4775 fi;
4776       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4777 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4778
4779       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4780       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4781                                         nls_cv_header_intl=
4782         nls_cv_header_libgt=
4783         CATOBJEXT=NONE
4784
4785         if test "${ac_cv_header_libintl_h+set}" = set; then
4786   echo "$as_me:$LINENO: checking for libintl.h" >&5
4787 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4788 if test "${ac_cv_header_libintl_h+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 fi
4791 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4792 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4793 else
4794   # Is the header compilable?
4795 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4796 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h.  */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h.  */
4803 $ac_includes_default
4804 #include <libintl.h>
4805 _ACEOF
4806 rm -f conftest.$ac_objext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808   (eval $ac_compile) 2>conftest.er1
4809   ac_status=$?
4810   grep -v '^ *+' conftest.er1 >conftest.err
4811   rm -f conftest.er1
4812   cat conftest.err >&5
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } &&
4815          { ac_try='test -z "$ac_c_werror_flag"
4816                          || test ! -s conftest.err'
4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; } &&
4822          { ac_try='test -s conftest.$ac_objext'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; }; then
4828   ac_header_compiler=yes
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_header_compiler=no
4834 fi
4835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 echo "${ECHO_T}$ac_header_compiler" >&6
4838
4839 # Is the header present?
4840 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4841 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 #include <libintl.h>
4849 _ACEOF
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852   ac_status=$?
4853   grep -v '^ *+' conftest.er1 >conftest.err
4854   rm -f conftest.er1
4855   cat conftest.err >&5
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } >/dev/null; then
4858   if test -s conftest.err; then
4859     ac_cpp_err=$ac_c_preproc_warn_flag
4860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4861   else
4862     ac_cpp_err=
4863   fi
4864 else
4865   ac_cpp_err=yes
4866 fi
4867 if test -z "$ac_cpp_err"; then
4868   ac_header_preproc=yes
4869 else
4870   echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873   ac_header_preproc=no
4874 fi
4875 rm -f conftest.err conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4877 echo "${ECHO_T}$ac_header_preproc" >&6
4878
4879 # So?  What about this header?
4880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4881   yes:no: )
4882     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4883 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4884     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4885 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4886     ac_header_preproc=yes
4887     ;;
4888   no:yes:* )
4889     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4890 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4891     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
4892 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
4893     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4894 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4895     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
4896 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4897     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4899     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4900 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4901     (
4902       cat <<\_ASBOX
4903 ## ------------------------------------------ ##
4904 ## Report this to the AC_PACKAGE_NAME lists.  ##
4905 ## ------------------------------------------ ##
4906 _ASBOX
4907     ) |
4908       sed "s/^/$as_me: WARNING:     /" >&2
4909     ;;
4910 esac
4911 echo "$as_me:$LINENO: checking for libintl.h" >&5
4912 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4913 if test "${ac_cv_header_libintl_h+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   ac_cv_header_libintl_h=$ac_header_preproc
4917 fi
4918 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4919 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4920
4921 fi
4922 if test $ac_cv_header_libintl_h = yes; then
4923   echo "$as_me:$LINENO: checking for gettext in libc" >&5
4924 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4925 if test "${gt_cv_func_gettext_libc+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #include <libintl.h>
4935 int
4936 main ()
4937 {
4938 return (int) gettext ("")
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945   (eval $ac_link) 2>conftest.er1
4946   ac_status=$?
4947   grep -v '^ *+' conftest.er1 >conftest.err
4948   rm -f conftest.er1
4949   cat conftest.err >&5
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); } &&
4952          { ac_try='test -z "$ac_c_werror_flag"
4953                          || test ! -s conftest.err'
4954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955   (eval $ac_try) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; } &&
4959          { ac_try='test -s conftest$ac_exeext'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; }; then
4965   gt_cv_func_gettext_libc=yes
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 gt_cv_func_gettext_libc=no
4971 fi
4972 rm -f conftest.err conftest.$ac_objext \
4973       conftest$ac_exeext conftest.$ac_ext
4974 fi
4975 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4976 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4977
4978            if test "$gt_cv_func_gettext_libc" != "yes"; then
4979              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4980 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4981 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   ac_check_lib_save_LIBS=$LIBS
4985 LIBS="-lintl  $LIBS"
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992
4993 /* Override any gcc2 internal prototype to avoid an error.  */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 /* We use char because int might match the return type of a gcc2
4998    builtin and then its argument prototype would still apply.  */
4999 char bindtextdomain ();
5000 int
5001 main ()
5002 {
5003 bindtextdomain ();
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010   (eval $ac_link) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -z "$ac_c_werror_flag"
5018                          || test ! -s conftest.err'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; } &&
5024          { ac_try='test -s conftest$ac_exeext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   ac_cv_lib_intl_bindtextdomain=yes
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 ac_cv_lib_intl_bindtextdomain=no
5036 fi
5037 rm -f conftest.err conftest.$ac_objext \
5038       conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5040 fi
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5042 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5043 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5044   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5045 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5046 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055
5056 int
5057 main ()
5058 {
5059 return (int) gettext ("")
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066   (eval $ac_link) 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } &&
5073          { ac_try='test -z "$ac_c_werror_flag"
5074                          || test ! -s conftest.err'
5075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; } &&
5080          { ac_try='test -s conftest$ac_exeext'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   gt_cv_func_gettext_libintl=yes
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 gt_cv_func_gettext_libintl=no
5092 fi
5093 rm -f conftest.err conftest.$ac_objext \
5094       conftest$ac_exeext conftest.$ac_ext
5095 fi
5096 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5097 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5098 fi
5099
5100            fi
5101
5102            if test "$gt_cv_func_gettext_libc" = "yes" \
5103               || test "$gt_cv_func_gettext_libintl" = "yes"; then
5104               cat >>confdefs.h <<\_ACEOF
5105 #define HAVE_GETTEXT 1
5106 _ACEOF
5107
5108               # Extract the first word of "msgfmt", so it can be a program name with args.
5109 set dummy msgfmt; ac_word=$2
5110 echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112 if test "${ac_cv_path_MSGFMT+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   case "$MSGFMT" in
5116   /*)
5117   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5118   ;;
5119   *)
5120   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5121   for ac_dir in $PATH; do
5122     test -z "$ac_dir" && ac_dir=.
5123     if test -f $ac_dir/$ac_word; then
5124       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5125         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5126         break
5127       fi
5128     fi
5129   done
5130   IFS="$ac_save_ifs"
5131   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5132   ;;
5133 esac
5134 fi
5135 MSGFMT="$ac_cv_path_MSGFMT"
5136 if test -n "$MSGFMT"; then
5137   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5138 echo "${ECHO_T}$MSGFMT" >&6
5139 else
5140   echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6
5142 fi
5143               if test "$MSGFMT" != "no"; then
5144
5145 for ac_func in dcgettext
5146 do
5147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5148 echo "$as_me:$LINENO: checking for $ac_func" >&5
5149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5150 if eval "test \"\${$as_ac_var+set}\" = set"; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153   cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h.  */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h.  */
5159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5161 #define $ac_func innocuous_$ac_func
5162
5163 /* System header to define __stub macros and hopefully few prototypes,
5164     which can conflict with char $ac_func (); below.
5165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166     <limits.h> exists even on freestanding compilers.  */
5167
5168 #ifdef __STDC__
5169 # include <limits.h>
5170 #else
5171 # include <assert.h>
5172 #endif
5173
5174 #undef $ac_func
5175
5176 /* Override any gcc2 internal prototype to avoid an error.  */
5177 #ifdef __cplusplus
5178 extern "C"
5179 {
5180 #endif
5181 /* We use char because int might match the return type of a gcc2
5182    builtin and then its argument prototype would still apply.  */
5183 char $ac_func ();
5184 /* The GNU C library defines this for functions which it implements
5185     to always fail with ENOSYS.  Some functions are actually named
5186     something starting with __ and the normal name is an alias.  */
5187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5188 choke me
5189 #else
5190 char (*f) () = $ac_func;
5191 #endif
5192 #ifdef __cplusplus
5193 }
5194 #endif
5195
5196 int
5197 main ()
5198 {
5199 return f != $ac_func;
5200   ;
5201   return 0;
5202 }
5203 _ACEOF
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206   (eval $ac_link) 2>conftest.er1
5207   ac_status=$?
5208   grep -v '^ *+' conftest.er1 >conftest.err
5209   rm -f conftest.er1
5210   cat conftest.err >&5
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); } &&
5213          { ac_try='test -z "$ac_c_werror_flag"
5214                          || test ! -s conftest.err'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   eval "$as_ac_var=yes"
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231 eval "$as_ac_var=no"
5232 fi
5233 rm -f conftest.err conftest.$ac_objext \
5234       conftest$ac_exeext conftest.$ac_ext
5235 fi
5236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5238 if test `eval echo '${'$as_ac_var'}'` = yes; then
5239   cat >>confdefs.h <<_ACEOF
5240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5241 _ACEOF
5242
5243 fi
5244 done
5245
5246                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5247 set dummy gmsgfmt; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5251   echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253   case $GMSGFMT in
5254   [\\/]* | ?:[\\/]*)
5255   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5256   ;;
5257   *)
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263   for ac_exec_ext in '' $ac_executable_extensions; do
5264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270 done
5271
5272   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5273   ;;
5274 esac
5275 fi
5276 GMSGFMT=$ac_cv_path_GMSGFMT
5277
5278 if test -n "$GMSGFMT"; then
5279   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5280 echo "${ECHO_T}$GMSGFMT" >&6
5281 else
5282   echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5284 fi
5285
5286                 # Extract the first word of "xgettext", so it can be a program name with args.
5287 set dummy xgettext; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   case "$XGETTEXT" in
5294   /*)
5295   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5299   for ac_dir in $PATH; do
5300     test -z "$ac_dir" && ac_dir=.
5301     if test -f $ac_dir/$ac_word; then
5302       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5303         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5304         break
5305       fi
5306     fi
5307   done
5308   IFS="$ac_save_ifs"
5309   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5310   ;;
5311 esac
5312 fi
5313 XGETTEXT="$ac_cv_path_XGETTEXT"
5314 if test -n "$XGETTEXT"; then
5315   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5316 echo "${ECHO_T}$XGETTEXT" >&6
5317 else
5318   echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5320 fi
5321
5322                 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 int
5330 main ()
5331 {
5332 extern int _nl_msg_cat_cntr;
5333                                return _nl_msg_cat_cntr
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340   (eval $ac_link) 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -z "$ac_c_werror_flag"
5348                          || test ! -s conftest.err'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; } &&
5354          { ac_try='test -s conftest$ac_exeext'
5355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356   (eval $ac_try) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; }; then
5360   CATOBJEXT=.gmo
5361                    DATADIRNAME=share
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 CATOBJEXT=.mo
5367                    DATADIRNAME=lib
5368 fi
5369 rm -f conftest.err conftest.$ac_objext \
5370       conftest$ac_exeext conftest.$ac_ext
5371                 INSTOBJEXT=.mo
5372               fi
5373             fi
5374
5375 fi
5376
5377
5378
5379
5380         if test "$CATOBJEXT" = "NONE"; then
5381                           nls_cv_use_gnu_gettext=yes
5382         fi
5383       fi
5384
5385       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5386                 INTLOBJS="\$(GETTOBJS)"
5387         # Extract the first word of "msgfmt", so it can be a program name with args.
5388 set dummy msgfmt; ac_word=$2
5389 echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391 if test "${ac_cv_path_MSGFMT+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   case "$MSGFMT" in
5395   /*)
5396   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5397   ;;
5398   *)
5399   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5400   for ac_dir in $PATH; do
5401     test -z "$ac_dir" && ac_dir=.
5402     if test -f $ac_dir/$ac_word; then
5403       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5404         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5405         break
5406       fi
5407     fi
5408   done
5409   IFS="$ac_save_ifs"
5410   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5411   ;;
5412 esac
5413 fi
5414 MSGFMT="$ac_cv_path_MSGFMT"
5415 if test -n "$MSGFMT"; then
5416   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5417 echo "${ECHO_T}$MSGFMT" >&6
5418 else
5419   echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6
5421 fi
5422
5423         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5424 set dummy gmsgfmt; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   case $GMSGFMT in
5431   [\\/]* | ?:[\\/]*)
5432   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5433   ;;
5434   *)
5435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438   IFS=$as_save_IFS
5439   test -z "$as_dir" && as_dir=.
5440   for ac_exec_ext in '' $ac_executable_extensions; do
5441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444     break 2
5445   fi
5446 done
5447 done
5448
5449   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5450   ;;
5451 esac
5452 fi
5453 GMSGFMT=$ac_cv_path_GMSGFMT
5454
5455 if test -n "$GMSGFMT"; then
5456   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5457 echo "${ECHO_T}$GMSGFMT" >&6
5458 else
5459   echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5461 fi
5462
5463         # Extract the first word of "xgettext", so it can be a program name with args.
5464 set dummy xgettext; ac_word=$2
5465 echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470   case "$XGETTEXT" in
5471   /*)
5472   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5473   ;;
5474   *)
5475   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5476   for ac_dir in $PATH; do
5477     test -z "$ac_dir" && ac_dir=.
5478     if test -f $ac_dir/$ac_word; then
5479       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5480         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5481         break
5482       fi
5483     fi
5484   done
5485   IFS="$ac_save_ifs"
5486   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5487   ;;
5488 esac
5489 fi
5490 XGETTEXT="$ac_cv_path_XGETTEXT"
5491 if test -n "$XGETTEXT"; then
5492   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5493 echo "${ECHO_T}$XGETTEXT" >&6
5494 else
5495   echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6
5497 fi
5498
5499
5500         USE_INCLUDED_LIBINTL=yes
5501         CATOBJEXT=.gmo
5502         INSTOBJEXT=.mo
5503         DATADIRNAME=share
5504         INTLDEPS='$(top_builddir)/../intl/libintl.a'
5505         INTLLIBS=$INTLDEPS
5506         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5507         nls_cv_header_intl=libintl.h
5508         nls_cv_header_libgt=libgettext.h
5509       fi
5510
5511             if test "$XGETTEXT" != ":"; then
5512                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5513           : ;
5514         else
5515           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5516 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5517           XGETTEXT=":"
5518         fi
5519       fi
5520
5521       # We need to process the po/ directory.
5522       POSUB=po
5523     else
5524       DATADIRNAME=share
5525       nls_cv_header_intl=libintl.h
5526       nls_cv_header_libgt=libgettext.h
5527     fi
5528
5529     # If this is used in GNU gettext we have to set USE_NLS to `yes'
5530     # because some of the sources are only built for this goal.
5531     if test "$PACKAGE" = gettext; then
5532       USE_NLS=yes
5533       USE_INCLUDED_LIBINTL=yes
5534     fi
5535
5536                 for lang in $ALL_LINGUAS; do
5537       GMOFILES="$GMOFILES $lang.gmo"
5538       POFILES="$POFILES $lang.po"
5539     done
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554    if test "x$CATOBJEXT" != "x"; then
5555      if test "x$ALL_LINGUAS" = "x"; then
5556        LINGUAS=
5557      else
5558        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5559 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5560        NEW_LINGUAS=
5561        for lang in ${LINGUAS=$ALL_LINGUAS}; do
5562          case "$ALL_LINGUAS" in
5563           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5564          esac
5565        done
5566        LINGUAS=$NEW_LINGUAS
5567        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5568 echo "${ECHO_T}$LINGUAS" >&6
5569      fi
5570
5571           if test -n "$LINGUAS"; then
5572        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5573      fi
5574    fi
5575
5576             if test $ac_cv_header_locale_h = yes; then
5577      INCLUDE_LOCALE_H="#include <locale.h>"
5578    else
5579      INCLUDE_LOCALE_H="\
5580 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
5581    fi
5582
5583
5584             if test -f $srcdir/po2tbl.sed.in; then
5585       if test "$CATOBJEXT" = ".cat"; then
5586          if test "${ac_cv_header_linux_version_h+set}" = set; then
5587   echo "$as_me:$LINENO: checking for linux/version.h" >&5
5588 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5589 if test "${ac_cv_header_linux_version_h+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 fi
5592 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5593 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5594 else
5595   # Is the header compilable?
5596 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5597 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604 $ac_includes_default
5605 #include <linux/version.h>
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609   (eval $ac_compile) 2>conftest.er1
5610   ac_status=$?
5611   grep -v '^ *+' conftest.er1 >conftest.err
5612   rm -f conftest.er1
5613   cat conftest.err >&5
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); } &&
5616          { ac_try='test -z "$ac_c_werror_flag"
5617                          || test ! -s conftest.err'
5618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619   (eval $ac_try) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; } &&
5623          { ac_try='test -s conftest.$ac_objext'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; }; then
5629   ac_header_compiler=yes
5630 else
5631   echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634 ac_header_compiler=no
5635 fi
5636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5638 echo "${ECHO_T}$ac_header_compiler" >&6
5639
5640 # Is the header present?
5641 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5642 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649 #include <linux/version.h>
5650 _ACEOF
5651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5653   ac_status=$?
5654   grep -v '^ *+' conftest.er1 >conftest.err
5655   rm -f conftest.er1
5656   cat conftest.err >&5
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } >/dev/null; then
5659   if test -s conftest.err; then
5660     ac_cpp_err=$ac_c_preproc_warn_flag
5661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5662   else
5663     ac_cpp_err=
5664   fi
5665 else
5666   ac_cpp_err=yes
5667 fi
5668 if test -z "$ac_cpp_err"; then
5669   ac_header_preproc=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674   ac_header_preproc=no
5675 fi
5676 rm -f conftest.err conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5678 echo "${ECHO_T}$ac_header_preproc" >&6
5679
5680 # So?  What about this header?
5681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5682   yes:no: )
5683     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5684 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5685     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5686 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5687     ac_header_preproc=yes
5688     ;;
5689   no:yes:* )
5690     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5691 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5692     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
5693 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
5694     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5695 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
5697 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5698     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5699 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5700     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5701 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5702     (
5703       cat <<\_ASBOX
5704 ## ------------------------------------------ ##
5705 ## Report this to the AC_PACKAGE_NAME lists.  ##
5706 ## ------------------------------------------ ##
5707 _ASBOX
5708     ) |
5709       sed "s/^/$as_me: WARNING:     /" >&2
5710     ;;
5711 esac
5712 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5713 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5714 if test "${ac_cv_header_linux_version_h+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   ac_cv_header_linux_version_h=$ac_header_preproc
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5720 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5721
5722 fi
5723 if test $ac_cv_header_linux_version_h = yes; then
5724   msgformat=linux
5725 else
5726   msgformat=xopen
5727 fi
5728
5729
5730
5731                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5732       fi
5733             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5734          $srcdir/po2tbl.sed.in > po2tbl.sed
5735    fi
5736
5737             if test "$PACKAGE" = "gettext"; then
5738      GT_NO="#NO#"
5739      GT_YES=
5740    else
5741      GT_NO=
5742      GT_YES="#YES#"
5743    fi
5744
5745
5746
5747    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5748
5749
5750       l=
5751
5752
5753             if test -d $srcdir/po; then
5754       test -d po || mkdir po
5755       if test "x$srcdir" != "x."; then
5756          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5757             posrcprefix="$srcdir/"
5758          else
5759             posrcprefix="../$srcdir/"
5760          fi
5761       else
5762          posrcprefix="../"
5763       fi
5764       rm -f po/POTFILES
5765       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5766          < $srcdir/po/POTFILES.in > po/POTFILES
5767    fi
5768
5769
5770 # Check for common headers.
5771 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5772 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5773
5774
5775
5776
5777
5778 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5779 do
5780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782   echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 fi
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5789 else
5790   # Is the header compilable?
5791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h.  */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h.  */
5799 $ac_includes_default
5800 #include <$ac_header>
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804   (eval $ac_compile) 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_c_werror_flag"
5812                          || test ! -s conftest.err'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; } &&
5818          { ac_try='test -s conftest.$ac_objext'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; }; then
5824   ac_header_compiler=yes
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_header_compiler=no
5830 fi
5831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6
5834
5835 # Is the header present?
5836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844 #include <$ac_header>
5845 _ACEOF
5846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5848   ac_status=$?
5849   grep -v '^ *+' conftest.er1 >conftest.err
5850   rm -f conftest.er1
5851   cat conftest.err >&5
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } >/dev/null; then
5854   if test -s conftest.err; then
5855     ac_cpp_err=$ac_c_preproc_warn_flag
5856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5857   else
5858     ac_cpp_err=
5859   fi
5860 else
5861   ac_cpp_err=yes
5862 fi
5863 if test -z "$ac_cpp_err"; then
5864   ac_header_preproc=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869   ac_header_preproc=no
5870 fi
5871 rm -f conftest.err conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5873 echo "${ECHO_T}$ac_header_preproc" >&6
5874
5875 # So?  What about this header?
5876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5877   yes:no: )
5878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5882     ac_header_preproc=yes
5883     ;;
5884   no:yes:* )
5885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5897     (
5898       cat <<\_ASBOX
5899 ## ------------------------------------------ ##
5900 ## Report this to the AC_PACKAGE_NAME lists.  ##
5901 ## ------------------------------------------ ##
5902 _ASBOX
5903     ) |
5904       sed "s/^/$as_me: WARNING:     /" >&2
5905     ;;
5906 esac
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   eval "$as_ac_Header=\$ac_header_preproc"
5913 fi
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5916
5917 fi
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919   cat >>confdefs.h <<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5922
5923 fi
5924
5925 done
5926
5927
5928
5929 for ac_header in sys/time.h sys/resource.h
5930 do
5931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5933   echo "$as_me:$LINENO: checking for $ac_header" >&5
5934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 fi
5938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5940 else
5941   # Is the header compilable?
5942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950 $ac_includes_default
5951 #include <$ac_header>
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955   (eval $ac_compile) 2>conftest.er1
5956   ac_status=$?
5957   grep -v '^ *+' conftest.er1 >conftest.err
5958   rm -f conftest.er1
5959   cat conftest.err >&5
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } &&
5962          { ac_try='test -z "$ac_c_werror_flag"
5963                          || test ! -s conftest.err'
5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965   (eval $ac_try) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; } &&
5969          { ac_try='test -s conftest.$ac_objext'
5970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971   (eval $ac_try) 2>&5
5972   ac_status=$?
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); }; }; then
5975   ac_header_compiler=yes
5976 else
5977   echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5979
5980 ac_header_compiler=no
5981 fi
5982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5984 echo "${ECHO_T}$ac_header_compiler" >&6
5985
5986 # Is the header present?
5987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h.  */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h.  */
5995 #include <$ac_header>
5996 _ACEOF
5997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } >/dev/null; then
6005   if test -s conftest.err; then
6006     ac_cpp_err=$ac_c_preproc_warn_flag
6007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6008   else
6009     ac_cpp_err=
6010   fi
6011 else
6012   ac_cpp_err=yes
6013 fi
6014 if test -z "$ac_cpp_err"; then
6015   ac_header_preproc=yes
6016 else
6017   echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020   ac_header_preproc=no
6021 fi
6022 rm -f conftest.err conftest.$ac_ext
6023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6024 echo "${ECHO_T}$ac_header_preproc" >&6
6025
6026 # So?  What about this header?
6027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6028   yes:no: )
6029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6033     ac_header_preproc=yes
6034     ;;
6035   no:yes:* )
6036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6048     (
6049       cat <<\_ASBOX
6050 ## ------------------------------------------ ##
6051 ## Report this to the AC_PACKAGE_NAME lists.  ##
6052 ## ------------------------------------------ ##
6053 _ASBOX
6054     ) |
6055       sed "s/^/$as_me: WARNING:     /" >&2
6056     ;;
6057 esac
6058 echo "$as_me:$LINENO: checking for $ac_header" >&5
6059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   eval "$as_ac_Header=\$ac_header_preproc"
6064 fi
6065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6067
6068 fi
6069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6070   cat >>confdefs.h <<_ACEOF
6071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6072 _ACEOF
6073
6074 fi
6075
6076 done
6077
6078
6079
6080 for ac_header in fcntl.h fpu_control.h
6081 do
6082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6084   echo "$as_me:$LINENO: checking for $ac_header" >&5
6085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 fi
6089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6091 else
6092   # Is the header compilable?
6093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h.  */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h.  */
6101 $ac_includes_default
6102 #include <$ac_header>
6103 _ACEOF
6104 rm -f conftest.$ac_objext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106   (eval $ac_compile) 2>conftest.er1
6107   ac_status=$?
6108   grep -v '^ *+' conftest.er1 >conftest.err
6109   rm -f conftest.er1
6110   cat conftest.err >&5
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -z "$ac_c_werror_flag"
6114                          || test ! -s conftest.err'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; } &&
6120          { ac_try='test -s conftest.$ac_objext'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; }; then
6126   ac_header_compiler=yes
6127 else
6128   echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131 ac_header_compiler=no
6132 fi
6133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6135 echo "${ECHO_T}$ac_header_compiler" >&6
6136
6137 # Is the header present?
6138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146 #include <$ac_header>
6147 _ACEOF
6148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150   ac_status=$?
6151   grep -v '^ *+' conftest.er1 >conftest.err
6152   rm -f conftest.er1
6153   cat conftest.err >&5
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } >/dev/null; then
6156   if test -s conftest.err; then
6157     ac_cpp_err=$ac_c_preproc_warn_flag
6158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6159   else
6160     ac_cpp_err=
6161   fi
6162 else
6163   ac_cpp_err=yes
6164 fi
6165 if test -z "$ac_cpp_err"; then
6166   ac_header_preproc=yes
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171   ac_header_preproc=no
6172 fi
6173 rm -f conftest.err conftest.$ac_ext
6174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6175 echo "${ECHO_T}$ac_header_preproc" >&6
6176
6177 # So?  What about this header?
6178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6179   yes:no: )
6180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6184     ac_header_preproc=yes
6185     ;;
6186   no:yes:* )
6187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6199     (
6200       cat <<\_ASBOX
6201 ## ------------------------------------------ ##
6202 ## Report this to the AC_PACKAGE_NAME lists.  ##
6203 ## ------------------------------------------ ##
6204 _ASBOX
6205     ) |
6206       sed "s/^/$as_me: WARNING:     /" >&2
6207     ;;
6208 esac
6209 echo "$as_me:$LINENO: checking for $ac_header" >&5
6210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   eval "$as_ac_Header=\$ac_header_preproc"
6215 fi
6216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6218
6219 fi
6220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6221   cat >>confdefs.h <<_ACEOF
6222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223 _ACEOF
6224
6225 fi
6226
6227 done
6228
6229
6230
6231
6232 for ac_header in dlfcn.h errno.h sys/stat.h
6233 do
6234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6236   echo "$as_me:$LINENO: checking for $ac_header" >&5
6237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 fi
6241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6243 else
6244   # Is the header compilable?
6245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h.  */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h.  */
6253 $ac_includes_default
6254 #include <$ac_header>
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258   (eval $ac_compile) 2>conftest.er1
6259   ac_status=$?
6260   grep -v '^ *+' conftest.er1 >conftest.err
6261   rm -f conftest.er1
6262   cat conftest.err >&5
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } &&
6265          { ac_try='test -z "$ac_c_werror_flag"
6266                          || test ! -s conftest.err'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; } &&
6272          { ac_try='test -s conftest.$ac_objext'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; }; then
6278   ac_header_compiler=yes
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_header_compiler=no
6284 fi
6285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6287 echo "${ECHO_T}$ac_header_compiler" >&6
6288
6289 # Is the header present?
6290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h.  */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h.  */
6298 #include <$ac_header>
6299 _ACEOF
6300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6302   ac_status=$?
6303   grep -v '^ *+' conftest.er1 >conftest.err
6304   rm -f conftest.er1
6305   cat conftest.err >&5
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); } >/dev/null; then
6308   if test -s conftest.err; then
6309     ac_cpp_err=$ac_c_preproc_warn_flag
6310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6311   else
6312     ac_cpp_err=
6313   fi
6314 else
6315   ac_cpp_err=yes
6316 fi
6317 if test -z "$ac_cpp_err"; then
6318   ac_header_preproc=yes
6319 else
6320   echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323   ac_header_preproc=no
6324 fi
6325 rm -f conftest.err conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6327 echo "${ECHO_T}$ac_header_preproc" >&6
6328
6329 # So?  What about this header?
6330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6331   yes:no: )
6332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6336     ac_header_preproc=yes
6337     ;;
6338   no:yes:* )
6339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6351     (
6352       cat <<\_ASBOX
6353 ## ------------------------------------------ ##
6354 ## Report this to the AC_PACKAGE_NAME lists.  ##
6355 ## ------------------------------------------ ##
6356 _ASBOX
6357     ) |
6358       sed "s/^/$as_me: WARNING:     /" >&2
6359     ;;
6360 esac
6361 echo "$as_me:$LINENO: checking for $ac_header" >&5
6362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   eval "$as_ac_Header=\$ac_header_preproc"
6367 fi
6368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6370
6371 fi
6372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6373   cat >>confdefs.h <<_ACEOF
6374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6375 _ACEOF
6376
6377 fi
6378
6379 done
6380
6381
6382
6383
6384
6385 for ac_func in getrusage time sigaction __setfpucw
6386 do
6387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_var+set}\" = set"; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6401 #define $ac_func innocuous_$ac_func
6402
6403 /* System header to define __stub macros and hopefully few prototypes,
6404     which can conflict with char $ac_func (); below.
6405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406     <limits.h> exists even on freestanding compilers.  */
6407
6408 #ifdef __STDC__
6409 # include <limits.h>
6410 #else
6411 # include <assert.h>
6412 #endif
6413
6414 #undef $ac_func
6415
6416 /* Override any gcc2 internal prototype to avoid an error.  */
6417 #ifdef __cplusplus
6418 extern "C"
6419 {
6420 #endif
6421 /* We use char because int might match the return type of a gcc2
6422    builtin and then its argument prototype would still apply.  */
6423 char $ac_func ();
6424 /* The GNU C library defines this for functions which it implements
6425     to always fail with ENOSYS.  Some functions are actually named
6426     something starting with __ and the normal name is an alias.  */
6427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6428 choke me
6429 #else
6430 char (*f) () = $ac_func;
6431 #endif
6432 #ifdef __cplusplus
6433 }
6434 #endif
6435
6436 int
6437 main ()
6438 {
6439 return f != $ac_func;
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446   (eval $ac_link) 2>conftest.er1
6447   ac_status=$?
6448   grep -v '^ *+' conftest.er1 >conftest.err
6449   rm -f conftest.er1
6450   cat conftest.err >&5
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); } &&
6453          { ac_try='test -z "$ac_c_werror_flag"
6454                          || test ! -s conftest.err'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; } &&
6460          { ac_try='test -s conftest$ac_exeext'
6461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462   (eval $ac_try) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; }; then
6466   eval "$as_ac_var=yes"
6467 else
6468   echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471 eval "$as_ac_var=no"
6472 fi
6473 rm -f conftest.err conftest.$ac_objext \
6474       conftest$ac_exeext conftest.$ac_ext
6475 fi
6476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6478 if test `eval echo '${'$as_ac_var'}'` = yes; then
6479   cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6481 _ACEOF
6482
6483 fi
6484 done
6485
6486
6487 # Check for socket libraries
6488
6489 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6490 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6491 if test "${ac_cv_lib_socket_bind+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   ac_check_lib_save_LIBS=$LIBS
6495 LIBS="-lsocket  $LIBS"
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502
6503 /* Override any gcc2 internal prototype to avoid an error.  */
6504 #ifdef __cplusplus
6505 extern "C"
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508    builtin and then its argument prototype would still apply.  */
6509 char bind ();
6510 int
6511 main ()
6512 {
6513 bind ();
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520   (eval $ac_link) 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_c_werror_flag"
6528                          || test ! -s conftest.err'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_lib_socket_bind=yes
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_cv_lib_socket_bind=no
6546 fi
6547 rm -f conftest.err conftest.$ac_objext \
6548       conftest$ac_exeext conftest.$ac_ext
6549 LIBS=$ac_check_lib_save_LIBS
6550 fi
6551 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6552 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6553 if test $ac_cv_lib_socket_bind = yes; then
6554   cat >>confdefs.h <<_ACEOF
6555 #define HAVE_LIBSOCKET 1
6556 _ACEOF
6557
6558   LIBS="-lsocket $LIBS"
6559
6560 fi
6561
6562
6563 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6564 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6565 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   ac_check_lib_save_LIBS=$LIBS
6569 LIBS="-lnsl  $LIBS"
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h.  */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h.  */
6576
6577 /* Override any gcc2 internal prototype to avoid an error.  */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 /* We use char because int might match the return type of a gcc2
6582    builtin and then its argument prototype would still apply.  */
6583 char gethostbyname ();
6584 int
6585 main ()
6586 {
6587 gethostbyname ();
6588   ;
6589   return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594   (eval $ac_link) 2>conftest.er1
6595   ac_status=$?
6596   grep -v '^ *+' conftest.er1 >conftest.err
6597   rm -f conftest.er1
6598   cat conftest.err >&5
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -z "$ac_c_werror_flag"
6602                          || test ! -s conftest.err'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; } &&
6608          { ac_try='test -s conftest$ac_exeext'
6609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610   (eval $ac_try) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; }; then
6614   ac_cv_lib_nsl_gethostbyname=yes
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 ac_cv_lib_nsl_gethostbyname=no
6620 fi
6621 rm -f conftest.err conftest.$ac_objext \
6622       conftest$ac_exeext conftest.$ac_ext
6623 LIBS=$ac_check_lib_save_LIBS
6624 fi
6625 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6627 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6628   cat >>confdefs.h <<_ACEOF
6629 #define HAVE_LIBNSL 1
6630 _ACEOF
6631
6632   LIBS="-lnsl $LIBS"
6633
6634 fi
6635
6636
6637 . ${srcdir}/../../bfd/configure.host
6638
6639
6640
6641 USE_MAINTAINER_MODE=no
6642 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6643 if test "${enable_maintainer_mode+set}" = set; then
6644   enableval="$enable_maintainer_mode"
6645   case "${enableval}" in
6646   yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
6647   no)   MAINT="#" ;;
6648   *)    { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6649 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6650    { (exit 1); exit 1; }; }; MAINT="#" ;;
6651 esac
6652 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6653   echo "Setting maintainer mode" 6>&1
6654 fi
6655 else
6656   MAINT="#"
6657 fi;
6658
6659
6660 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6661 if test "${enable_sim_bswap+set}" = set; then
6662   enableval="$enable_sim_bswap"
6663   case "${enableval}" in
6664   yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6665   no)   sim_bswap="-DWITH_BSWAP=0";;
6666   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6667 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6668    { (exit 1); exit 1; }; }; sim_bswap="";;
6669 esac
6670 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6671   echo "Setting bswap flags = $sim_bswap" 6>&1
6672 fi
6673 else
6674   sim_bswap=""
6675 fi;
6676
6677
6678 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6679 if test "${enable_sim_cflags+set}" = set; then
6680   enableval="$enable_sim_cflags"
6681   case "${enableval}" in
6682   yes)   sim_cflags="-O2 -fomit-frame-pointer";;
6683   trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6684 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6685    { (exit 1); exit 1; }; }; sim_cflags="";;
6686   no)    sim_cflags="";;
6687   *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6688 esac
6689 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6690   echo "Setting sim cflags = $sim_cflags" 6>&1
6691 fi
6692 else
6693   sim_cflags=""
6694 fi;
6695
6696
6697 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6698 if test "${enable_sim_debug+set}" = set; then
6699   enableval="$enable_sim_debug"
6700   case "${enableval}" in
6701   yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6702   no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6703   *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6704 esac
6705 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6706   echo "Setting sim debug = $sim_debug" 6>&1
6707 fi
6708 else
6709   sim_debug=""
6710 fi;
6711
6712
6713 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6714 if test "${enable_sim_stdio+set}" = set; then
6715   enableval="$enable_sim_stdio"
6716   case "${enableval}" in
6717   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6718   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6719   *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6720 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6721    { (exit 1); exit 1; }; }; sim_stdio="";;
6722 esac
6723 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6724   echo "Setting stdio flags = $sim_stdio" 6>&1
6725 fi
6726 else
6727   sim_stdio=""
6728 fi;
6729
6730
6731 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6732 if test "${enable_sim_trace+set}" = set; then
6733   enableval="$enable_sim_trace"
6734   case "${enableval}" in
6735   yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6736   no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6737   [-0-9]*)
6738         sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6739   [a-z]*)
6740         sim_trace=""
6741         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6742           if test x"$sim_trace" = x; then
6743             sim_trace="-DWITH_TRACE='(TRACE_$x"
6744           else
6745             sim_trace="${sim_trace}|TRACE_$x"
6746           fi
6747         done
6748         sim_trace="$sim_trace)'" ;;
6749 esac
6750 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6751   echo "Setting sim trace = $sim_trace" 6>&1
6752 fi
6753 else
6754   sim_trace=""
6755 fi;
6756
6757
6758 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6759 if test "${enable_sim_profile+set}" = set; then
6760   enableval="$enable_sim_profile"
6761   case "${enableval}" in
6762   yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6763   no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6764   [-0-9]*)
6765         sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6766   [a-z]*)
6767         sim_profile=""
6768         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6769           if test x"$sim_profile" = x; then
6770             sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6771           else
6772             sim_profile="${sim_profile}|PROFILE_$x"
6773           fi
6774         done
6775         sim_profile="$sim_profile)'" ;;
6776 esac
6777 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6778   echo "Setting sim profile = $sim_profile" 6>&1
6779 fi
6780 else
6781   sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6782 fi;
6783
6784
6785 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6786 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6787 if test "${ac_cv_type_signal+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h.  */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h.  */
6796 #include <sys/types.h>
6797 #include <signal.h>
6798 #ifdef signal
6799 # undef signal
6800 #endif
6801 #ifdef __cplusplus
6802 extern "C" void (*signal (int, void (*)(int)))(int);
6803 #else
6804 void (*signal ()) ();
6805 #endif
6806
6807 int
6808 main ()
6809 {
6810 int i;
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817   (eval $ac_compile) 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } &&
6824          { ac_try='test -z "$ac_c_werror_flag"
6825                          || test ! -s conftest.err'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; } &&
6831          { ac_try='test -s conftest.$ac_objext'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; }; then
6837   ac_cv_type_signal=void
6838 else
6839   echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 ac_cv_type_signal=int
6843 fi
6844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845 fi
6846 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6847 echo "${ECHO_T}$ac_cv_type_signal" >&6
6848
6849 cat >>confdefs.h <<_ACEOF
6850 #define RETSIGTYPE $ac_cv_type_signal
6851 _ACEOF
6852
6853
6854
6855
6856
6857 sim_link_files=
6858 sim_link_links=
6859
6860 sim_link_links=tconfig.h
6861 if test -f ${srcdir}/tconfig.in
6862 then
6863   sim_link_files=tconfig.in
6864 else
6865   sim_link_files=../common/tconfig.in
6866 fi
6867
6868 # targ-vals.def points to the libc macro description file.
6869 case "${target}" in
6870 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6871 esac
6872 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6873 sim_link_links="${sim_link_links} targ-vals.def"
6874
6875
6876
6877
6878 default_sim_inline=""
6879 # Check whether --enable-sim-inline or --disable-sim-inline was given.
6880 if test "${enable_sim_inline+set}" = set; then
6881   enableval="$enable_sim_inline"
6882   sim_inline=""
6883 case "$enableval" in
6884   no)           sim_inline="-DDEFAULT_INLINE=0";;
6885   0)            sim_inline="-DDEFAULT_INLINE=0";;
6886   yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
6887   1)            sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
6888   *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6889        new_flag=""
6890        case "$x" in
6891          *_INLINE=*)    new_flag="-D$x";;
6892          *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6893          *_INLINE)      new_flag="-D$x=ALL_C_INLINE";;
6894          *)             new_flag="-D$x""_INLINE=ALL_C_INLINE";;
6895        esac
6896        if test x"$sim_inline" = x""; then
6897          sim_inline="$new_flag"
6898        else
6899          sim_inline="$sim_inline $new_flag"
6900        fi
6901      done;;
6902 esac
6903 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6904   echo "Setting inline flags = $sim_inline" 6>&1
6905 fi
6906 else
6907
6908 if test "x$cross_compiling" = "xno"; then
6909   if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
6910     sim_inline="${default_sim_inline}"
6911     if test x"$silent" != x"yes"; then
6912       echo "Setting inline flags = $sim_inline" 6>&1
6913     fi
6914   else
6915     sim_inline=""
6916   fi
6917 else
6918   sim_inline="-DDEFAULT_INLINE=0"
6919 fi
6920 fi;
6921 wire_alignment="NONSTRICT_ALIGNMENT"
6922 default_alignment=""
6923
6924 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6925 if test "${enable_sim_alignment+set}" = set; then
6926   enableval="$enable_sim_alignment"
6927   case "${enableval}" in
6928   strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6929   nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6930   forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6931   yes) if test x"$wire_alignment" != x; then
6932          sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6933        else
6934          if test x"$default_alignment" != x; then
6935            sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6936          else
6937            echo "No hard-wired alignment for target $target" 1>&6
6938            sim_alignment="-DWITH_ALIGNMENT=0"
6939          fi
6940        fi;;
6941   no)  if test x"$default_alignment" != x; then
6942          sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6943        else
6944          if test x"$wire_alignment" != x; then
6945            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6946          else
6947            echo "No default alignment for target $target" 1>&6
6948            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6949          fi
6950        fi;;
6951   *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6952 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6953    { (exit 1); exit 1; }; }; sim_alignment="";;
6954 esac
6955 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6956   echo "Setting alignment flags = $sim_alignment" 6>&1
6957 fi
6958 else
6959   if test x"$default_alignment" != x; then
6960   sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6961 else
6962   if test x"$wire_alignment" != x; then
6963     sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6964   else
6965     sim_alignment=
6966   fi
6967 fi
6968 fi;
6969
6970 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6971 if test "${enable_sim_hostendian+set}" = set; then
6972   enableval="$enable_sim_hostendian"
6973   case "${enableval}" in
6974   no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6975   b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6976   l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6977   *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6978 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6979    { (exit 1); exit 1; }; }; sim_hostendian="";;
6980 esac
6981 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6982   echo "Setting hostendian flags = $sim_hostendian" 6>&1
6983 fi
6984 else
6985
6986 if test "x$cross_compiling" = "xno"; then
6987   echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6988 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6989 if test "${ac_cv_c_bigendian+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   # See if sys/param.h defines the BYTE_ORDER macro.
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999 #include <sys/types.h>
7000 #include <sys/param.h>
7001
7002 int
7003 main ()
7004 {
7005 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7006  bogus endian macros
7007 #endif
7008
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015   (eval $ac_compile) 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } &&
7022          { ac_try='test -z "$ac_c_werror_flag"
7023                          || test ! -s conftest.err'
7024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025   (eval $ac_try) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); }; } &&
7029          { ac_try='test -s conftest.$ac_objext'
7030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031   (eval $ac_try) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); }; }; then
7035   # It does; now see whether it defined to BIG_ENDIAN or not.
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <sys/types.h>
7043 #include <sys/param.h>
7044
7045 int
7046 main ()
7047 {
7048 #if BYTE_ORDER != BIG_ENDIAN
7049  not big endian
7050 #endif
7051
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058   (eval $ac_compile) 2>conftest.er1
7059   ac_status=$?
7060   grep -v '^ *+' conftest.er1 >conftest.err
7061   rm -f conftest.er1
7062   cat conftest.err >&5
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } &&
7065          { ac_try='test -z "$ac_c_werror_flag"
7066                          || test ! -s conftest.err'
7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068   (eval $ac_try) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; } &&
7072          { ac_try='test -s conftest.$ac_objext'
7073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074   (eval $ac_try) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }; }; then
7078   ac_cv_c_bigendian=yes
7079 else
7080   echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ac_cv_c_bigendian=no
7084 fi
7085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7086 else
7087   echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 # It does not; compile a test program.
7091 if test "$cross_compiling" = yes; then
7092   # try to guess the endianness by grepping values into an object file
7093   ac_cv_c_bigendian=unknown
7094   cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h.  */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h.  */
7100 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7101 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7102 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7103 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7104 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7105 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7106 int
7107 main ()
7108 {
7109  _ascii (); _ebcdic ();
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116   (eval $ac_compile) 2>conftest.er1
7117   ac_status=$?
7118   grep -v '^ *+' conftest.er1 >conftest.err
7119   rm -f conftest.er1
7120   cat conftest.err >&5
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } &&
7123          { ac_try='test -z "$ac_c_werror_flag"
7124                          || test ! -s conftest.err'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; } &&
7130          { ac_try='test -s conftest.$ac_objext'
7131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132   (eval $ac_try) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }; }; then
7136   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7137   ac_cv_c_bigendian=yes
7138 fi
7139 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7140   if test "$ac_cv_c_bigendian" = unknown; then
7141     ac_cv_c_bigendian=no
7142   else
7143     # finding both strings is unlikely to happen, but who knows?
7144     ac_cv_c_bigendian=unknown
7145   fi
7146 fi
7147 else
7148   echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 fi
7152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7153 else
7154   cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 int
7161 main ()
7162 {
7163   /* Are we little or big endian?  From Harbison&Steele.  */
7164   union
7165   {
7166     long l;
7167     char c[sizeof (long)];
7168   } u;
7169   u.l = 1;
7170   exit (u.c[sizeof (long) - 1] == 1);
7171 }
7172 _ACEOF
7173 rm -f conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175   (eval $ac_link) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; }; then
7184   ac_cv_c_bigendian=no
7185 else
7186   echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ( exit $ac_status )
7191 ac_cv_c_bigendian=yes
7192 fi
7193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7194 fi
7195 fi
7196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197 fi
7198 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7199 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7200 case $ac_cv_c_bigendian in
7201   yes)
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define WORDS_BIGENDIAN 1
7205 _ACEOF
7206  ;;
7207   no)
7208      ;;
7209   *)
7210     { { echo "$as_me:$LINENO: error: unknown endianness
7211 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7212 echo "$as_me: error: unknown endianness
7213 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7214    { (exit 1); exit 1; }; } ;;
7215 esac
7216
7217   if test $ac_cv_c_bigendian = yes; then
7218     sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7219   else
7220     sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7221   fi
7222 else
7223   sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7224 fi
7225 fi;
7226
7227 # NOTE: Don't add -Wall or -Wunused, they both include
7228 # -Wunused-parameter which reports bogus warnings.
7229 # NOTE: If you add to this list, remember to update
7230 # gdb/doc/gdbint.texinfo.
7231 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7232 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7233 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7234 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7235 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7236 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7237 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7238 # -Woverloaded-virtual -Winline -Werror"
7239 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7240 if test "${enable_build_warnings+set}" = set; then
7241   enableval="$enable_build_warnings"
7242   case "${enableval}" in
7243   yes)  ;;
7244   no)   build_warnings="-w";;
7245   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7246         build_warnings="${build_warnings} ${t}";;
7247   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7248         build_warnings="${t} ${build_warnings}";;
7249   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7250 esac
7251 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7252   echo "Setting compiler warning flags = $build_warnings" 6>&1
7253 fi
7254 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7255 if test "${enable_sim_build_warnings+set}" = set; then
7256   enableval="$enable_sim_build_warnings"
7257   case "${enableval}" in
7258   yes)  ;;
7259   no)   build_warnings="-w";;
7260   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7261         build_warnings="${build_warnings} ${t}";;
7262   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7263         build_warnings="${t} ${build_warnings}";;
7264   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7265 esac
7266 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7267   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7268 fi
7269 fi; WARN_CFLAGS=""
7270 WERROR_CFLAGS=""
7271 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7272 then
7273     echo "$as_me:$LINENO: checking compiler warning flags" >&5
7274 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7275     # Separate out the -Werror flag as some files just cannot be
7276     # compiled with it enabled.
7277     for w in ${build_warnings}; do
7278         case $w in
7279         -Werr*) WERROR_CFLAGS=-Werror ;;
7280         *) # Check that GCC accepts it
7281             saved_CFLAGS="$CFLAGS"
7282             CFLAGS="$CFLAGS $w"
7283             cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h.  */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h.  */
7289
7290 int
7291 main ()
7292 {
7293
7294   ;
7295   return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300   (eval $ac_compile) 2>conftest.er1
7301   ac_status=$?
7302   grep -v '^ *+' conftest.er1 >conftest.err
7303   rm -f conftest.er1
7304   cat conftest.err >&5
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); } &&
7307          { ac_try='test -z "$ac_c_werror_flag"
7308                          || test ! -s conftest.err'
7309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310   (eval $ac_try) 2>&5
7311   ac_status=$?
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); }; } &&
7314          { ac_try='test -s conftest.$ac_objext'
7315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316   (eval $ac_try) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); }; }; then
7320   WARN_CFLAGS="${WARN_CFLAGS} $w"
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 fi
7326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327             CFLAGS="$saved_CFLAGS"
7328         esac
7329     done
7330     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7331 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7332 fi
7333
7334
7335 default_sim_reserved_bits="1"
7336 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7337 if test "${enable_sim_reserved_bits+set}" = set; then
7338   enableval="$enable_sim_reserved_bits"
7339   case "${enableval}" in
7340   yes)  sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
7341   no)   sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
7342   *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7343 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7344    { (exit 1); exit 1; }; }; sim_reserved_bits="";;
7345 esac
7346 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
7347   echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7348 fi
7349 else
7350   sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7351 fi;
7352
7353 # DEPRECATED
7354 #
7355 # Instead of defining a `subtarget' macro, code should be checking
7356 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
7357 # in question.
7358 #
7359 case "${target}" in
7360   mips64vr*-*-*)        SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
7361   mips*tx39*)           SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
7362   mipsisa32*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7363   mipsisa64*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7364   *)                    SIM_SUBTARGET="";;
7365 esac
7366
7367
7368
7369
7370 #
7371 # Select the byte order of the target
7372 #
7373 mips_endian=
7374 default_endian=
7375 case "${target}" in
7376   mips64el*-*-*)        mips_endian=LITTLE_ENDIAN ;;
7377   mips64vr*el-*-*)      default_endian=LITTLE_ENDIAN ;;
7378   mips64*-*-*)          default_endian=BIG_ENDIAN ;;
7379   mips16*-*-*)          default_endian=BIG_ENDIAN ;;
7380   mipsisa32*-*-*)       default_endian=BIG_ENDIAN ;;
7381   mipsisa64*-*-*)       default_endian=BIG_ENDIAN ;;
7382   mips*-*-*)            default_endian=BIG_ENDIAN ;;
7383   *)                    default_endian=BIG_ENDIAN ;;
7384 esac
7385
7386 wire_endian="$mips_endian"
7387 default_endian="$default_endian"
7388 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7389 if test "${enable_sim_endian+set}" = set; then
7390   enableval="$enable_sim_endian"
7391   case "${enableval}" in
7392   b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7393   l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7394   yes)   if test x"$wire_endian" != x; then
7395            sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7396          else
7397            if test x"$default_endian" != x; then
7398              sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7399            else
7400              echo "No hard-wired endian for target $target" 1>&6
7401              sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
7402            fi
7403          fi;;
7404   no)    if test x"$default_endian" != x; then
7405            sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7406          else
7407            if test x"$wire_endian" != x; then
7408              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7409            else
7410              echo "No default endian for target $target" 1>&6
7411              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7412            fi
7413          fi;;
7414   *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7415 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7416    { (exit 1); exit 1; }; }; sim_endian="";;
7417 esac
7418 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
7419   echo "Setting endian flags = $sim_endian" 6>&1
7420 fi
7421 else
7422   if test x"$default_endian" != x; then
7423   sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7424 else
7425   if test x"$wire_endian" != x; then
7426     sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7427   else
7428     sim_endian=
7429   fi
7430 fi
7431 fi;
7432
7433
7434
7435 #
7436 # Select the bitsize of the target
7437 #
7438 mips_addr_bitsize=
7439 case "${target}" in
7440   mips64*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
7441   mips16*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
7442   mipsisa32*-*-*)       mips_bitsize=32 ; mips_msb=31 ;;
7443   mipsisa64*-*-*)       mips_bitsize=64 ; mips_msb=63 ;;
7444   mips*-*-*)            mips_bitsize=32 ; mips_msb=31 ;;
7445   *)                    mips_bitsize=64 ; mips_msb=63 ;;
7446 esac
7447 wire_word_bitsize="$mips_bitsize"
7448 wire_word_msb="$mips_msb"
7449 wire_address_bitsize="$mips_addr_bitsize"
7450 wire_cell_bitsize=""
7451 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7452 if test "${enable_sim_bitsize+set}" = set; then
7453   enableval="$enable_sim_bitsize"
7454   sim_bitsize=
7455 case "${enableval}" in
7456   64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7457   32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7458   64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7459   32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7460   32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7461         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7462       else
7463         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7464       fi ;;
7465   64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7466         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7467       else
7468         sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7469       fi ;;
7470   *)  { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" >&5
7471 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" >&2;}
7472    { (exit 1); exit 1; }; } ;;
7473 esac
7474 # address bitsize
7475 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7476 case x"${tmp}" in
7477   x ) ;;
7478   x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7479   x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7480   * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval.  Expected 32 or 64\"" >&5
7481 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval.  Expected 32 or 64\"" >&2;}
7482    { (exit 1); exit 1; }; } ;;
7483 esac
7484 # cell bitsize
7485 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7486 case x"${tmp}" in
7487   x ) ;;
7488   x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7489   x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7490   * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval.  Expected 32 or 64\"" >&5
7491 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval.  Expected 32 or 64\"" >&2;}
7492    { (exit 1); exit 1; }; } ;;
7493 esac
7494 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
7495   echo "Setting bitsize flags = $sim_bitsize" 6>&1
7496 fi
7497 else
7498   sim_bitsize=""
7499 if test x"$wire_word_bitsize" != x; then
7500   sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7501 fi
7502 if test x"$wire_word_msb" != x; then
7503   sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7504 fi
7505 if test x"$wire_address_bitsize" != x; then
7506   sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7507 fi
7508 if test x"$wire_cell_bitsize" != x; then
7509   sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7510 fi
7511 fi;
7512
7513
7514
7515 #
7516 # Select the floating hardware support of the target
7517 #
7518 mips_fpu=HARDWARE_FLOATING_POINT
7519 mips_fpu_bitsize=
7520 case "${target}" in
7521   mips*tx39*)           mips_fpu=HARD_FLOATING_POINT
7522                         mips_fpu_bitsize=32
7523                         ;;
7524   mips64*-*-*)          mips_fpu=HARD_FLOATING_POINT ;;
7525   mips16*-*-*)          mips_fpu=HARD_FLOATING_POINT ;;
7526   mipsisa32*-*-*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7527   mipsisa64*-*-*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7528   mips*-*-*)            mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
7529   *)                    mips_fpu=HARD_FLOATING_POINT ;;
7530 esac
7531
7532 default_sim_float="$mips_fpu"
7533 default_sim_float_bitsize="$mips_fpu_bitsize"
7534 # Check whether --enable-sim-float or --disable-sim-float was given.
7535 if test "${enable_sim_float+set}" = set; then
7536   enableval="$enable_sim_float"
7537   case "${enableval}" in
7538   yes | hard)   sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
7539   no | soft)    sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
7540   32)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
7541   64)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
7542   *)            { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
7543 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
7544    { (exit 1); exit 1; }; }; sim_float="";;
7545 esac
7546 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
7547   echo "Setting float flags = $sim_float" 6>&1
7548 fi
7549 else
7550
7551 sim_float=
7552 if test x"${default_sim_float}" != x""; then
7553   sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
7554 fi
7555 if test x"${default_sim_float_bitsize}" != x""; then
7556   sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
7557 fi
7558
7559 fi;
7560
7561
7562
7563 #
7564 # Select the level of SMP support
7565 #
7566 case "${target}" in
7567   *)                    mips_smp=0 ;;
7568 esac
7569
7570 default_sim_smp="$mips_smp"
7571 # Check whether --enable-sim-smp or --disable-sim-smp was given.
7572 if test "${enable_sim_smp+set}" = set; then
7573   enableval="$enable_sim_smp"
7574   case "${enableval}" in
7575   yes)  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
7576   no)   sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
7577   *)    sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
7578 esac
7579 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
7580   echo "Setting smp flags = $sim_smp" 6>&1
7581 fi
7582 else
7583   sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
7584 if test x"$silent" != x"yes"; then
7585   echo "Setting smp flags = $sim_smp" 6>&1
7586 fi
7587 fi;
7588
7589
7590
7591 #
7592 # Select the IGEN architecture
7593 #
7594 sim_gen=IGEN
7595 sim_igen_machine="-M mipsIV"
7596 sim_m16_machine="-M mips16,mipsIII"
7597 sim_igen_filter="32,64,f"
7598 sim_m16_filter="16"
7599 sim_mach_default="mips8000"
7600
7601 case "${target}" in
7602   mips*tx39*)           sim_gen=IGEN
7603                         sim_igen_filter="32,f"
7604                         sim_igen_machine="-M r3900"
7605                         ;;
7606   mips64vr43*-*-*)      sim_gen=IGEN
7607                         sim_igen_machine="-M mipsIV"
7608                         sim_mach_default="mips8000"
7609                         ;;
7610   mips64vr5*-*-*)       sim_gen=IGEN
7611                         sim_igen_machine="-M vr5000"
7612                         sim_mach_default="mips5000"
7613                         ;;
7614   mips64vr41*)          sim_gen=M16
7615                         sim_igen_machine="-M vr4100"
7616                         sim_m16_machine="-M vr4100"
7617                         sim_igen_filter="32,64,f"
7618                         sim_m16_filter="16"
7619                         sim_mach_default="mips4100"
7620                         ;;
7621   mips64vr-*-* | mips64vrel-*-*)
7622                         sim_gen=MULTI
7623                         sim_multi_configs="\
7624                           vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
7625                           vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
7626                           vr5000:mipsIV:32,64,f:mips4300,mips5000\
7627                           vr5400:mipsIV,vr5400:32,64,f:mips5400\
7628                           vr5500:mipsIV,vr5500:32,64,f:mips5500"
7629                         sim_multi_default=mips5000
7630                         ;;
7631   mips64*-*-*)          sim_igen_filter="32,64,f"
7632                         sim_gen=IGEN
7633                         ;;
7634   mips16*-*-*)          sim_gen=M16
7635                         sim_igen_filter="32,64,f"
7636                         sim_m16_filter="16"
7637                         ;;
7638   mipsisa32*-*-*)       sim_gen=IGEN
7639                         sim_igen_machine="-M mips32"
7640                         sim_igen_filter="32,f"
7641                         sim_mach_default="mipsisa32"
7642                         ;;
7643   mipsisa64sb1*-*-*)    sim_gen=IGEN
7644                         sim_igen_machine="-M mips64,mips3d,sb1"
7645                         sim_igen_filter="32,64,f"
7646                         sim_mach_default="mips_sb1"
7647                         ;;
7648   mipsisa64*-*-*)       sim_gen=IGEN
7649                         sim_igen_machine="-M mips64,mips3d"
7650                         sim_igen_filter="32,64,f"
7651                         sim_mach_default="mipsisa64"
7652                         ;;
7653   mips*lsi*)            sim_gen=M16
7654                         sim_igen_machine="-M mipsIII,mips16"
7655                         sim_m16_machine="-M mips16,mipsIII"
7656                         sim_igen_filter="32,f"
7657                         sim_m16_filter="16"
7658                         sim_mach_default="mips4000"
7659                         ;;
7660   mips*-*-*)            sim_gen=IGEN
7661                         sim_igen_filter="32,f"
7662                         ;;
7663 esac
7664
7665 # The MULTI generator can combine several simulation engines into one.
7666 # executable.  A configuration which uses the MULTI should set two
7667 # variables: ${sim_multi_configs} and ${sim_multi_default}.
7668 #
7669 # ${sim_multi_configs} is the list of engines to build.  Each
7670 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
7671 # where:
7672 #
7673 # - NAME is a C-compatible prefix for the engine,
7674 # - MACHINE is a -M argument,
7675 # - FILTER is a -F argument, and
7676 # - BFDMACHS is a comma-separated list of bfd machines that the
7677 #     simulator can run.
7678 #
7679 # Each entry will have a separate simulation engine whose prefix is
7680 # m32<NAME>.  If the machine list includes "mips16", there will also
7681 # be a mips16 engine, prefix m16<NAME>.  The mips16 engine will be
7682 # generated using the same machine list as the 32-bit version,
7683 # but the filter will be "16" instead of FILTER.
7684 #
7685 # The simulator compares the bfd mach against BFDMACHS to decide
7686 # which engine to use.  Entries in BFDMACHS should be bfd_mach
7687 # values with "bfd_mach_" removed.  ${sim_multi_default} says
7688 # which entry should be the default.
7689 if test ${sim_gen} = MULTI; then
7690
7691   # Simple sanity check.
7692   if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
7693     { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
7694 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
7695    { (exit 1); exit 1; }; }
7696   fi
7697
7698   # Start in a known state.
7699   rm -f multi-include.h multi-run.c
7700   sim_multi_flags=
7701   sim_multi_src=
7702   sim_multi_obj=multi-run.o
7703   sim_multi_igen_configs=
7704   sim_seen_default=no
7705
7706   cat << __EOF__ > multi-run.c
7707 /* Main entry point for MULTI simulators.
7708    Copyright (C) 2003 Free Software Foundation, Inc.
7709
7710    This program is free software; you can redistribute it and/or modify
7711    it under the terms of the GNU General Public License as published by
7712    the Free Software Foundation; either version 2 of the License, or
7713    (at your option) any later version.
7714
7715    This program is distributed in the hope that it will be useful,
7716    but WITHOUT ANY WARRANTY; without even the implied warranty of
7717    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7718    GNU General Public License for more details.
7719
7720    You should have received a copy of the GNU General Public License
7721    along with this program; if not, write to the Free Software
7722    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7723
7724    --
7725
7726    This file was generated by sim/mips/configure.  */
7727
7728 #include "sim-main.h"
7729 #include "multi-include.h"
7730
7731 #define SD sd
7732 #define CPU cpu
7733
7734 void
7735 sim_engine_run (SIM_DESC sd,
7736                 int next_cpu_nr,
7737                 int nr_cpus,
7738                 int signal) /* ignore */
7739 {
7740   int mach;
7741
7742   if (STATE_ARCHITECTURE (sd) == NULL)
7743     mach = bfd_mach_${sim_multi_default};
7744   else
7745     mach = STATE_ARCHITECTURE (SD)->mach;
7746
7747   switch (mach)
7748     {
7749 __EOF__
7750
7751   for fc in ${sim_multi_configs}; do
7752
7753     # Split up the entry.  ${c} contains the first three elements.
7754     # Note: outer sqaure brackets are m4 quotes.
7755     c=`echo ${fc} | sed 's/:[^:]*$//'`
7756     bfdmachs=`echo ${fc} | sed 's/.*://'`
7757     name=`echo ${c} | sed 's/:.*//'`
7758     machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
7759     filter=`echo ${c} | sed 's/.*://'`
7760
7761     # Build the following lists:
7762     #
7763     #   sim_multi_flags: all -M and -F flags used by the simulator
7764     #   sim_multi_src: all makefile-generated source files
7765     #   sim_multi_obj: the objects for ${sim_multi_src}
7766     #   sim_multi_igen_configs: igen configuration strings.
7767     #
7768     # Each entry in ${sim_multi_igen_configs} is a prefix (m32
7769     # or m16) followed by the NAME, MACHINE and FILTER part of
7770     # the ${sim_multi_configs} entry.
7771     sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
7772
7773     # Check whether mips16 handling is needed.
7774     case ${c} in
7775       *:*mips16*:*)
7776         # Run igen twice, once for normal mode and once for mips16.
7777         ws="m32 m16"
7778
7779         # The top-level function for the mips16 simulator is
7780         # in a file m16${name}_run.c, generated by the
7781         # tmp-run-multi Makefile rule.
7782         sim_multi_src="${sim_multi_src} m16${name}_run.c"
7783         sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
7784         sim_multi_flags="${sim_multi_flags} -F 16"
7785         ;;
7786       *)
7787         ws=m32
7788         ;;
7789     esac
7790
7791     # Now add the list of igen-generated files to ${sim_multi_src}
7792     # and ${sim_multi_obj}.
7793     for w in ${ws}; do
7794       for base in engine icache idecode model semantics support; do
7795         sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
7796         sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
7797         sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
7798       done
7799       sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
7800     done
7801
7802     # Add an include for the engine.h file.  This file declares the
7803     # top-level foo_engine_run() function.
7804     echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
7805
7806     # Add case statements for this engine to sim_engine_run().
7807     for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7808       echo "    case bfd_mach_${mach}:" >> multi-run.c
7809       if test ${mach} = ${sim_multi_default}; then
7810         echo "    default:" >> multi-run.c
7811         sim_seen_default=yes
7812       fi
7813     done
7814     echo "      ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
7815       >> multi-run.c
7816     echo "      break;" >> multi-run.c
7817   done
7818
7819   # Check whether we added a 'default:' label.
7820   if test ${sim_seen_default} = no; then
7821     { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
7822 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
7823    { (exit 1); exit 1; }; }
7824   fi
7825
7826   cat << __EOF__ >> multi-run.c
7827     }
7828 }
7829
7830 int
7831 mips_mach_multi (SIM_DESC sd)
7832 {
7833   if (STATE_ARCHITECTURE (sd) == NULL)
7834     return bfd_mach_${sim_multi_default};
7835
7836   switch (STATE_ARCHITECTURE (SD)->mach)
7837     {
7838 __EOF__
7839
7840   # Add case statements for this engine to mips_mach_multi().
7841   for fc in ${sim_multi_configs}; do
7842
7843     # Split up the entry.  ${c} contains the first three elements.
7844     # Note: outer sqaure brackets are m4 quotes.
7845     c=`echo ${fc} | sed 's/:[^:]*$//'`
7846     bfdmachs=`echo ${fc} | sed 's/.*://'`
7847
7848     for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7849       echo "    case bfd_mach_${mach}:" >> multi-run.c
7850     done
7851   done
7852
7853   cat << __EOF__ >> multi-run.c
7854       return (STATE_ARCHITECTURE (SD)->mach);
7855     default:
7856       return bfd_mach_${sim_multi_default};
7857     }
7858 }
7859 __EOF__
7860
7861   SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
7862 else
7863   # For clean-extra
7864   sim_multi_src=doesnt-exist.c
7865
7866   if test x"${sim_mach_default}" = x""; then
7867     { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_mach_default} not defined" >&5
7868 echo "$as_me: error: Error in configure.in: \${sim_mach_default} not defined" >&2;}
7869    { (exit 1); exit 1; }; }
7870   fi
7871   SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
7872 fi
7873 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
7874 sim_m16_flags=" -F ${sim_m16_filter}  ${sim_m16_machine}  ${sim_igen_smp}"
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884 #
7885 # Add simulated hardware devices
7886 #
7887 hw_enabled=no
7888 case "${target}" in
7889   mips*tx39*)
7890         hw_enabled=yes
7891         hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
7892         mips_extra_objs="dv-sockser.o"
7893         SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
7894         ;;
7895   *)
7896         mips_extra_objs=""
7897         ;;
7898 esac
7899
7900 if test x"$hw_enabled" = x"yes"; then
7901   sim_hw_p=yes
7902 else
7903   sim_hw_p=no
7904 fi
7905 if test "$hw_devices"; then
7906   hardware="core pal glue"
7907 else
7908   hardware="core pal glue $hw_extra_devices"
7909 fi
7910 sim_hw_cflags="-DWITH_HW=1"
7911 sim_hw="$hardware"
7912 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7913 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7914 if test "${enable_sim_hardware+set}" = set; then
7915   enableval="$enable_sim_hardware"
7916
7917 case "${enableval}" in
7918   yes)  sim_hw_p=yes;;
7919   no)   sim_hw_p=no;;
7920   ,*)   sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7921   *,)   sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7922   *)    sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7923 esac
7924 if test "$sim_hw_p" != yes; then
7925   sim_hw_objs=
7926   sim_hw_cflags="-DWITH_HW=0"
7927   sim_hw=
7928 else
7929   sim_hw_cflags="-DWITH_HW=1"
7930   # remove duplicates
7931   sim_hw=""
7932   sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7933   for i in x $hardware ; do
7934     case " $f " in
7935       x) ;;
7936       *" $i "*) ;;
7937       *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7938     esac
7939   done
7940 fi
7941 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7942   echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7943 fi
7944 else
7945
7946 if test "$sim_hw_p" != yes; then
7947   sim_hw_objs=
7948   sim_hw_cflags="-DWITH_HW=0"
7949   sim_hw=
7950 fi
7951 if test x"$silent" != x"yes"; then
7952   echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7953 fi
7954 fi;
7955
7956
7957
7958 # Choose simulator engine
7959 case "${target}" in
7960   *)    mips_igen_engine="engine.o"
7961         ;;
7962 esac
7963
7964
7965
7966 echo "$as_me:$LINENO: checking for X" >&5
7967 echo $ECHO_N "checking for X... $ECHO_C" >&6
7968
7969
7970 # Check whether --with-x or --without-x was given.
7971 if test "${with_x+set}" = set; then
7972   withval="$with_x"
7973
7974 fi;
7975 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7976 if test "x$with_x" = xno; then
7977   # The user explicitly disabled X.
7978   have_x=disabled
7979 else
7980   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7981     # Both variables are already set.
7982     have_x=yes
7983   else
7984     if test "${ac_cv_have_x+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   # One or both of the vars are not set, and there is no cached value.
7988 ac_x_includes=no ac_x_libraries=no
7989 rm -fr conftest.dir
7990 if mkdir conftest.dir; then
7991   cd conftest.dir
7992   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7993   cat >Imakefile <<'_ACEOF'
7994 acfindx:
7995         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7996 _ACEOF
7997   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7998     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7999     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8000     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8001     for ac_extension in a so sl; do
8002       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8003          test -f $ac_im_libdir/libX11.$ac_extension; then
8004         ac_im_usrlibdir=$ac_im_libdir; break
8005       fi
8006     done
8007     # Screen out bogus values from the imake configuration.  They are
8008     # bogus both because they are the default anyway, and because
8009     # using them would break gcc on systems where it needs fixed includes.
8010     case $ac_im_incroot in
8011         /usr/include) ;;
8012         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8013     esac
8014     case $ac_im_usrlibdir in
8015         /usr/lib | /lib) ;;
8016         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8017     esac
8018   fi
8019   cd ..
8020   rm -fr conftest.dir
8021 fi
8022
8023 # Standard set of common directories for X headers.
8024 # Check X11 before X11Rn because it is often a symlink to the current release.
8025 ac_x_header_dirs='
8026 /usr/X11/include
8027 /usr/X11R6/include
8028 /usr/X11R5/include
8029 /usr/X11R4/include
8030
8031 /usr/include/X11
8032 /usr/include/X11R6
8033 /usr/include/X11R5
8034 /usr/include/X11R4
8035
8036 /usr/local/X11/include
8037 /usr/local/X11R6/include
8038 /usr/local/X11R5/include
8039 /usr/local/X11R4/include
8040
8041 /usr/local/include/X11
8042 /usr/local/include/X11R6
8043 /usr/local/include/X11R5
8044 /usr/local/include/X11R4
8045
8046 /usr/X386/include
8047 /usr/x386/include
8048 /usr/XFree86/include/X11
8049
8050 /usr/include
8051 /usr/local/include
8052 /usr/unsupported/include
8053 /usr/athena/include
8054 /usr/local/x11r5/include
8055 /usr/lpp/Xamples/include
8056
8057 /usr/openwin/include
8058 /usr/openwin/share/include'
8059
8060 if test "$ac_x_includes" = no; then
8061   # Guess where to find include files, by looking for Intrinsic.h.
8062   # First, try using that file with no special directory specified.
8063   cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069 #include <X11/Intrinsic.h>
8070 _ACEOF
8071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } >/dev/null; then
8079   if test -s conftest.err; then
8080     ac_cpp_err=$ac_c_preproc_warn_flag
8081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8082   else
8083     ac_cpp_err=
8084   fi
8085 else
8086   ac_cpp_err=yes
8087 fi
8088 if test -z "$ac_cpp_err"; then
8089   # We can compile using X headers with no special include directory.
8090 ac_x_includes=
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095   for ac_dir in $ac_x_header_dirs; do
8096   if test -r "$ac_dir/X11/Intrinsic.h"; then
8097     ac_x_includes=$ac_dir
8098     break
8099   fi
8100 done
8101 fi
8102 rm -f conftest.err conftest.$ac_ext
8103 fi # $ac_x_includes = no
8104
8105 if test "$ac_x_libraries" = no; then
8106   # Check for the libraries.
8107   # See if we find them without any special options.
8108   # Don't add to $LIBS permanently.
8109   ac_save_LIBS=$LIBS
8110   LIBS="-lXt $LIBS"
8111   cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h.  */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h.  */
8117 #include <X11/Intrinsic.h>
8118 int
8119 main ()
8120 {
8121 XtMalloc (0)
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128   (eval $ac_link) 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } &&
8135          { ac_try='test -z "$ac_c_werror_flag"
8136                          || test ! -s conftest.err'
8137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138   (eval $ac_try) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; } &&
8142          { ac_try='test -s conftest$ac_exeext'
8143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144   (eval $ac_try) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   LIBS=$ac_save_LIBS
8149 # We can link X programs with no special library path.
8150 ac_x_libraries=
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 LIBS=$ac_save_LIBS
8156 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8157 do
8158   # Don't even attempt the hair of trying to link an X program!
8159   for ac_extension in a so sl; do
8160     if test -r $ac_dir/libXt.$ac_extension; then
8161       ac_x_libraries=$ac_dir
8162       break 2
8163     fi
8164   done
8165 done
8166 fi
8167 rm -f conftest.err conftest.$ac_objext \
8168       conftest$ac_exeext conftest.$ac_ext
8169 fi # $ac_x_libraries = no
8170
8171 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8172   # Didn't find X anywhere.  Cache the known absence of X.
8173   ac_cv_have_x="have_x=no"
8174 else
8175   # Record where we found X for the cache.
8176   ac_cv_have_x="have_x=yes \
8177                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8178 fi
8179 fi
8180
8181   fi
8182   eval "$ac_cv_have_x"
8183 fi # $with_x != no
8184
8185 if test "$have_x" != yes; then
8186   echo "$as_me:$LINENO: result: $have_x" >&5
8187 echo "${ECHO_T}$have_x" >&6
8188   no_x=yes
8189 else
8190   # If each of the values was on the command line, it overrides each guess.
8191   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8192   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8193   # Update the cache value to reflect the command line values.
8194   ac_cv_have_x="have_x=yes \
8195                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8196   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8197 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8198 fi
8199
8200 mips_extra_libs=""
8201
8202
8203
8204
8205
8206
8207 for ac_header in string.h strings.h stdlib.h stdlib.h
8208 do
8209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8211   echo "$as_me:$LINENO: checking for $ac_header" >&5
8212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 fi
8216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8218 else
8219   # Is the header compilable?
8220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h.  */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h.  */
8228 $ac_includes_default
8229 #include <$ac_header>
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233   (eval $ac_compile) 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -z "$ac_c_werror_flag"
8241                          || test ! -s conftest.err'
8242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243   (eval $ac_try) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); }; } &&
8247          { ac_try='test -s conftest.$ac_objext'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; }; then
8253   ac_header_compiler=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8257
8258 ac_header_compiler=no
8259 fi
8260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8262 echo "${ECHO_T}$ac_header_compiler" >&6
8263
8264 # Is the header present?
8265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273 #include <$ac_header>
8274 _ACEOF
8275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8277   ac_status=$?
8278   grep -v '^ *+' conftest.er1 >conftest.err
8279   rm -f conftest.er1
8280   cat conftest.err >&5
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } >/dev/null; then
8283   if test -s conftest.err; then
8284     ac_cpp_err=$ac_c_preproc_warn_flag
8285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8286   else
8287     ac_cpp_err=
8288   fi
8289 else
8290   ac_cpp_err=yes
8291 fi
8292 if test -z "$ac_cpp_err"; then
8293   ac_header_preproc=yes
8294 else
8295   echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298   ac_header_preproc=no
8299 fi
8300 rm -f conftest.err conftest.$ac_ext
8301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8302 echo "${ECHO_T}$ac_header_preproc" >&6
8303
8304 # So?  What about this header?
8305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8306   yes:no: )
8307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8311     ac_header_preproc=yes
8312     ;;
8313   no:yes:* )
8314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8316     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8317 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8318     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8320     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8321 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8324     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8326     (
8327       cat <<\_ASBOX
8328 ## ------------------------------------------ ##
8329 ## Report this to the AC_PACKAGE_NAME lists.  ##
8330 ## ------------------------------------------ ##
8331 _ASBOX
8332     ) |
8333       sed "s/^/$as_me: WARNING:     /" >&2
8334     ;;
8335 esac
8336 echo "$as_me:$LINENO: checking for $ac_header" >&5
8337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   eval "$as_ac_Header=\$ac_header_preproc"
8342 fi
8343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8345
8346 fi
8347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8348   cat >>confdefs.h <<_ACEOF
8349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8350 _ACEOF
8351
8352 fi
8353
8354 done
8355
8356
8357 echo "$as_me:$LINENO: checking for fabs in -lm" >&5
8358 echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
8359 if test "${ac_cv_lib_m_fabs+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-lm  $LIBS"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370
8371 /* Override any gcc2 internal prototype to avoid an error.  */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376    builtin and then its argument prototype would still apply.  */
8377 char fabs ();
8378 int
8379 main ()
8380 {
8381 fabs ();
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388   (eval $ac_link) 2>conftest.er1
8389   ac_status=$?
8390   grep -v '^ *+' conftest.er1 >conftest.err
8391   rm -f conftest.er1
8392   cat conftest.err >&5
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -z "$ac_c_werror_flag"
8396                          || test ! -s conftest.err'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_cv_lib_m_fabs=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_cv_lib_m_fabs=no
8414 fi
8415 rm -f conftest.err conftest.$ac_objext \
8416       conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8418 fi
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
8420 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
8421 if test $ac_cv_lib_m_fabs = yes; then
8422   cat >>confdefs.h <<_ACEOF
8423 #define HAVE_LIBM 1
8424 _ACEOF
8425
8426   LIBS="-lm $LIBS"
8427
8428 fi
8429
8430
8431
8432
8433 for ac_func in aint anint sqrt
8434 do
8435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8436 echo "$as_me:$LINENO: checking for $ac_func" >&5
8437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8438 if eval "test \"\${$as_ac_var+set}\" = set"; then
8439   echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441   cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8449 #define $ac_func innocuous_$ac_func
8450
8451 /* System header to define __stub macros and hopefully few prototypes,
8452     which can conflict with char $ac_func (); below.
8453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454     <limits.h> exists even on freestanding compilers.  */
8455
8456 #ifdef __STDC__
8457 # include <limits.h>
8458 #else
8459 # include <assert.h>
8460 #endif
8461
8462 #undef $ac_func
8463
8464 /* Override any gcc2 internal prototype to avoid an error.  */
8465 #ifdef __cplusplus
8466 extern "C"
8467 {
8468 #endif
8469 /* We use char because int might match the return type of a gcc2
8470    builtin and then its argument prototype would still apply.  */
8471 char $ac_func ();
8472 /* The GNU C library defines this for functions which it implements
8473     to always fail with ENOSYS.  Some functions are actually named
8474     something starting with __ and the normal name is an alias.  */
8475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8476 choke me
8477 #else
8478 char (*f) () = $ac_func;
8479 #endif
8480 #ifdef __cplusplus
8481 }
8482 #endif
8483
8484 int
8485 main ()
8486 {
8487 return f != $ac_func;
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494   (eval $ac_link) 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } &&
8501          { ac_try='test -z "$ac_c_werror_flag"
8502                          || test ! -s conftest.err'
8503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504   (eval $ac_try) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); }; } &&
8508          { ac_try='test -s conftest$ac_exeext'
8509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510   (eval $ac_try) 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; }; then
8514   eval "$as_ac_var=yes"
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 eval "$as_ac_var=no"
8520 fi
8521 rm -f conftest.err conftest.$ac_objext \
8522       conftest$ac_exeext conftest.$ac_ext
8523 fi
8524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8526 if test `eval echo '${'$as_ac_var'}'` = yes; then
8527   cat >>confdefs.h <<_ACEOF
8528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8529 _ACEOF
8530
8531 fi
8532 done
8533
8534
8535
8536 ac_sources="$sim_link_files"
8537 ac_dests="$sim_link_links"
8538 while test -n "$ac_sources"; do
8539   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8540   set $ac_sources; ac_source=$1; shift; ac_sources=$*
8541   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
8542 done
8543           ac_config_links="$ac_config_links $ac_config_links_1"
8544
8545 cgen_breaks=""
8546 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
8547 cgen_breaks="break cgen_rtx_error";
8548 fi
8549
8550           ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
8551
8552           ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
8553
8554           ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
8555
8556           ac_config_commands="$ac_config_commands Makefile"
8557
8558           ac_config_commands="$ac_config_commands stamp-h"
8559
8560 cat >confcache <<\_ACEOF
8561 # This file is a shell script that caches the results of configure
8562 # tests run on this system so they can be shared between configure
8563 # scripts and configure runs, see configure's option --config-cache.
8564 # It is not useful on other systems.  If it contains results you don't
8565 # want to keep, you may remove or edit it.
8566 #
8567 # config.status only pays attention to the cache file if you give it
8568 # the --recheck option to rerun configure.
8569 #
8570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8572 # following values.
8573
8574 _ACEOF
8575
8576 # The following way of writing the cache mishandles newlines in values,
8577 # but we know of no workaround that is simple, portable, and efficient.
8578 # So, don't put newlines in cache variables' values.
8579 # Ultrix sh set writes to stderr and can't be redirected directly,
8580 # and sets the high bit in the cache file unless we assign to the vars.
8581 {
8582   (set) 2>&1 |
8583     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8584     *ac_space=\ *)
8585       # `set' does not quote correctly, so add quotes (double-quote
8586       # substitution turns \\\\ into \\, and sed turns \\ into \).
8587       sed -n \
8588         "s/'/'\\\\''/g;
8589           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8590       ;;
8591     *)
8592       # `set' quotes correctly as required by POSIX, so do not add quotes.
8593       sed -n \
8594         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8595       ;;
8596     esac;
8597 } |
8598   sed '
8599      t clear
8600      : clear
8601      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8602      t end
8603      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8604      : end' >>confcache
8605 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8606   if test -w $cache_file; then
8607     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8608     cat confcache >$cache_file
8609   else
8610     echo "not updating unwritable cache $cache_file"
8611   fi
8612 fi
8613 rm -f confcache
8614
8615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8616 # Let make expand exec_prefix.
8617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8618
8619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8621 # trailing colons and then remove the whole line if VPATH becomes empty
8622 # (actually we leave an empty line to preserve line numbers).
8623 if test "x$srcdir" = x.; then
8624   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8625 s/:*\$(srcdir):*/:/;
8626 s/:*\${srcdir}:*/:/;
8627 s/:*@srcdir@:*/:/;
8628 s/^\([^=]*=[     ]*\):*/\1/;
8629 s/:*$//;
8630 s/^[^=]*=[       ]*$//;
8631 }'
8632 fi
8633
8634 DEFS=-DHAVE_CONFIG_H
8635
8636 ac_libobjs=
8637 ac_ltlibobjs=
8638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8639   # 1. Remove the extension, and $U if already installed.
8640   ac_i=`echo "$ac_i" |
8641          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8642   # 2. Add them.
8643   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8644   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8645 done
8646 LIBOBJS=$ac_libobjs
8647
8648 LTLIBOBJS=$ac_ltlibobjs
8649
8650
8651
8652 : ${CONFIG_STATUS=./config.status}
8653 ac_clean_files_save=$ac_clean_files
8654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8657 cat >$CONFIG_STATUS <<_ACEOF
8658 #! $SHELL
8659 # Generated by $as_me.
8660 # Run this file to recreate the current configuration.
8661 # Compiler output produced by configure, useful for debugging
8662 # configure, is in config.log if it exists.
8663
8664 debug=false
8665 ac_cs_recheck=false
8666 ac_cs_silent=false
8667 SHELL=\${CONFIG_SHELL-$SHELL}
8668 _ACEOF
8669
8670 cat >>$CONFIG_STATUS <<\_ACEOF
8671 ## --------------------- ##
8672 ## M4sh Initialization.  ##
8673 ## --------------------- ##
8674
8675 # Be Bourne compatible
8676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8677   emulate sh
8678   NULLCMD=:
8679   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8680   # is contrary to our usage.  Disable this feature.
8681   alias -g '${1+"$@"}'='"$@"'
8682 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8683   set -o posix
8684 fi
8685 DUALCASE=1; export DUALCASE # for MKS sh
8686
8687 # Support unset when possible.
8688 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8689   as_unset=unset
8690 else
8691   as_unset=false
8692 fi
8693
8694
8695 # Work around bugs in pre-3.0 UWIN ksh.
8696 $as_unset ENV MAIL MAILPATH
8697 PS1='$ '
8698 PS2='> '
8699 PS4='+ '
8700
8701 # NLS nuisances.
8702 for as_var in \
8703   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8704   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8705   LC_TELEPHONE LC_TIME
8706 do
8707   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8708     eval $as_var=C; export $as_var
8709   else
8710     $as_unset $as_var
8711   fi
8712 done
8713
8714 # Required to use basename.
8715 if expr a : '\(a\)' >/dev/null 2>&1; then
8716   as_expr=expr
8717 else
8718   as_expr=false
8719 fi
8720
8721 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8722   as_basename=basename
8723 else
8724   as_basename=false
8725 fi
8726
8727
8728 # Name of the executable.
8729 as_me=`$as_basename "$0" ||
8730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8731          X"$0" : 'X\(//\)$' \| \
8732          X"$0" : 'X\(/\)$' \| \
8733          .     : '\(.\)' 2>/dev/null ||
8734 echo X/"$0" |
8735     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8736           /^X\/\(\/\/\)$/{ s//\1/; q; }
8737           /^X\/\(\/\).*/{ s//\1/; q; }
8738           s/.*/./; q'`
8739
8740
8741 # PATH needs CR, and LINENO needs CR and PATH.
8742 # Avoid depending upon Character Ranges.
8743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8746 as_cr_digits='0123456789'
8747 as_cr_alnum=$as_cr_Letters$as_cr_digits
8748
8749 # The user is always right.
8750 if test "${PATH_SEPARATOR+set}" != set; then
8751   echo "#! /bin/sh" >conf$$.sh
8752   echo  "exit 0"   >>conf$$.sh
8753   chmod +x conf$$.sh
8754   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8755     PATH_SEPARATOR=';'
8756   else
8757     PATH_SEPARATOR=:
8758   fi
8759   rm -f conf$$.sh
8760 fi
8761
8762
8763   as_lineno_1=$LINENO
8764   as_lineno_2=$LINENO
8765   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8766   test "x$as_lineno_1" != "x$as_lineno_2" &&
8767   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8768   # Find who we are.  Look in the path if we contain no path at all
8769   # relative or not.
8770   case $0 in
8771     *[\\/]* ) as_myself=$0 ;;
8772     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8774 do
8775   IFS=$as_save_IFS
8776   test -z "$as_dir" && as_dir=.
8777   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8778 done
8779
8780        ;;
8781   esac
8782   # We did not find ourselves, most probably we were run as `sh COMMAND'
8783   # in which case we are not to be found in the path.
8784   if test "x$as_myself" = x; then
8785     as_myself=$0
8786   fi
8787   if test ! -f "$as_myself"; then
8788     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8789 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8790    { (exit 1); exit 1; }; }
8791   fi
8792   case $CONFIG_SHELL in
8793   '')
8794     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8796 do
8797   IFS=$as_save_IFS
8798   test -z "$as_dir" && as_dir=.
8799   for as_base in sh bash ksh sh5; do
8800          case $as_dir in
8801          /*)
8802            if ("$as_dir/$as_base" -c '
8803   as_lineno_1=$LINENO
8804   as_lineno_2=$LINENO
8805   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8806   test "x$as_lineno_1" != "x$as_lineno_2" &&
8807   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8808              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8809              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8810              CONFIG_SHELL=$as_dir/$as_base
8811              export CONFIG_SHELL
8812              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8813            fi;;
8814          esac
8815        done
8816 done
8817 ;;
8818   esac
8819
8820   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8821   # uniformly replaced by the line number.  The first 'sed' inserts a
8822   # line-number line before each line; the second 'sed' does the real
8823   # work.  The second script uses 'N' to pair each line-number line
8824   # with the numbered line, and appends trailing '-' during
8825   # substitution so that $LINENO is not a special case at line end.
8826   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8827   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8828   sed '=' <$as_myself |
8829     sed '
8830       N
8831       s,$,-,
8832       : loop
8833       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8834       t loop
8835       s,-$,,
8836       s,^['$as_cr_digits']*\n,,
8837     ' >$as_me.lineno &&
8838   chmod +x $as_me.lineno ||
8839     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8841    { (exit 1); exit 1; }; }
8842
8843   # Don't try to exec as it changes $[0], causing all sort of problems
8844   # (the dirname of $[0] is not the place where we might find the
8845   # original and so on.  Autoconf is especially sensible to this).
8846   . ./$as_me.lineno
8847   # Exit status is that of the last command.
8848   exit
8849 }
8850
8851
8852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8853   *c*,-n*) ECHO_N= ECHO_C='
8854 ' ECHO_T='      ' ;;
8855   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8856   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8857 esac
8858
8859 if expr a : '\(a\)' >/dev/null 2>&1; then
8860   as_expr=expr
8861 else
8862   as_expr=false
8863 fi
8864
8865 rm -f conf$$ conf$$.exe conf$$.file
8866 echo >conf$$.file
8867 if ln -s conf$$.file conf$$ 2>/dev/null; then
8868   # We could just check for DJGPP; but this test a) works b) is more generic
8869   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8870   if test -f conf$$.exe; then
8871     # Don't use ln at all; we don't have any links
8872     as_ln_s='cp -p'
8873   else
8874     as_ln_s='ln -s'
8875   fi
8876 elif ln conf$$.file conf$$ 2>/dev/null; then
8877   as_ln_s=ln
8878 else
8879   as_ln_s='cp -p'
8880 fi
8881 rm -f conf$$ conf$$.exe conf$$.file
8882
8883 if mkdir -p . 2>/dev/null; then
8884   as_mkdir_p=:
8885 else
8886   test -d ./-p && rmdir ./-p
8887   as_mkdir_p=false
8888 fi
8889
8890 as_executable_p="test -f"
8891
8892 # Sed expression to map a string onto a valid CPP name.
8893 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8894
8895 # Sed expression to map a string onto a valid variable name.
8896 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8897
8898
8899 # IFS
8900 # We need space, tab and new line, in precisely that order.
8901 as_nl='
8902 '
8903 IFS="   $as_nl"
8904
8905 # CDPATH.
8906 $as_unset CDPATH
8907
8908 exec 6>&1
8909
8910 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8911 # report actual input values of CONFIG_FILES etc. instead of their
8912 # values after options handling.  Logging --version etc. is OK.
8913 exec 5>>config.log
8914 {
8915   echo
8916   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8917 ## Running $as_me. ##
8918 _ASBOX
8919 } >&5
8920 cat >&5 <<_CSEOF
8921
8922 This file was extended by $as_me, which was
8923 generated by GNU Autoconf 2.59.  Invocation command line was
8924
8925   CONFIG_FILES    = $CONFIG_FILES
8926   CONFIG_HEADERS  = $CONFIG_HEADERS
8927   CONFIG_LINKS    = $CONFIG_LINKS
8928   CONFIG_COMMANDS = $CONFIG_COMMANDS
8929   $ $0 $@
8930
8931 _CSEOF
8932 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8933 echo >&5
8934 _ACEOF
8935
8936 # Files that config.status was made for.
8937 if test -n "$ac_config_files"; then
8938   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8939 fi
8940
8941 if test -n "$ac_config_headers"; then
8942   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8943 fi
8944
8945 if test -n "$ac_config_links"; then
8946   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8947 fi
8948
8949 if test -n "$ac_config_commands"; then
8950   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8951 fi
8952
8953 cat >>$CONFIG_STATUS <<\_ACEOF
8954
8955 ac_cs_usage="\
8956 \`$as_me' instantiates files from templates according to the
8957 current configuration.
8958
8959 Usage: $0 [OPTIONS] [FILE]...
8960
8961   -h, --help       print this help, then exit
8962   -V, --version    print version number, then exit
8963   -q, --quiet      do not print progress messages
8964   -d, --debug      don't remove temporary files
8965       --recheck    update $as_me by reconfiguring in the same conditions
8966   --file=FILE[:TEMPLATE]
8967                    instantiate the configuration file FILE
8968   --header=FILE[:TEMPLATE]
8969                    instantiate the configuration header FILE
8970
8971 Configuration files:
8972 $config_files
8973
8974 Configuration headers:
8975 $config_headers
8976
8977 Configuration links:
8978 $config_links
8979
8980 Configuration commands:
8981 $config_commands
8982
8983 Report bugs to <bug-autoconf@gnu.org>."
8984 _ACEOF
8985
8986 cat >>$CONFIG_STATUS <<_ACEOF
8987 ac_cs_version="\\
8988 config.status
8989 configured by $0, generated by GNU Autoconf 2.59,
8990   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8991
8992 Copyright (C) 2003 Free Software Foundation, Inc.
8993 This config.status script is free software; the Free Software Foundation
8994 gives unlimited permission to copy, distribute and modify it."
8995 srcdir=$srcdir
8996 INSTALL="$INSTALL"
8997 _ACEOF
8998
8999 cat >>$CONFIG_STATUS <<\_ACEOF
9000 # If no file are specified by the user, then we need to provide default
9001 # value.  By we need to know if files were specified by the user.
9002 ac_need_defaults=:
9003 while test $# != 0
9004 do
9005   case $1 in
9006   --*=*)
9007     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9008     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9009     ac_shift=:
9010     ;;
9011   -*)
9012     ac_option=$1
9013     ac_optarg=$2
9014     ac_shift=shift
9015     ;;
9016   *) # This is not an option, so the user has probably given explicit
9017      # arguments.
9018      ac_option=$1
9019      ac_need_defaults=false;;
9020   esac
9021
9022   case $ac_option in
9023   # Handling of the options.
9024 _ACEOF
9025 cat >>$CONFIG_STATUS <<\_ACEOF
9026   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9027     ac_cs_recheck=: ;;
9028   --version | --vers* | -V )
9029     echo "$ac_cs_version"; exit 0 ;;
9030   --he | --h)
9031     # Conflict between --help and --header
9032     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9033 Try \`$0 --help' for more information." >&5
9034 echo "$as_me: error: ambiguous option: $1
9035 Try \`$0 --help' for more information." >&2;}
9036    { (exit 1); exit 1; }; };;
9037   --help | --hel | -h )
9038     echo "$ac_cs_usage"; exit 0 ;;
9039   --debug | --d* | -d )
9040     debug=: ;;
9041   --file | --fil | --fi | --f )
9042     $ac_shift
9043     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9044     ac_need_defaults=false;;
9045   --header | --heade | --head | --hea )
9046     $ac_shift
9047     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9048     ac_need_defaults=false;;
9049   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9050   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9051     ac_cs_silent=: ;;
9052
9053   # This is an error.
9054   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9055 Try \`$0 --help' for more information." >&5
9056 echo "$as_me: error: unrecognized option: $1
9057 Try \`$0 --help' for more information." >&2;}
9058    { (exit 1); exit 1; }; } ;;
9059
9060   *) ac_config_targets="$ac_config_targets $1" ;;
9061
9062   esac
9063   shift
9064 done
9065
9066 ac_configure_extra_args=
9067
9068 if $ac_cs_silent; then
9069   exec 6>/dev/null
9070   ac_configure_extra_args="$ac_configure_extra_args --silent"
9071 fi
9072
9073 _ACEOF
9074 cat >>$CONFIG_STATUS <<_ACEOF
9075 if \$ac_cs_recheck; then
9076   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9077   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9078 fi
9079
9080 _ACEOF
9081
9082
9083
9084
9085
9086 cat >>$CONFIG_STATUS <<\_ACEOF
9087 for ac_config_target in $ac_config_targets
9088 do
9089   case "$ac_config_target" in
9090   # Handling of arguments.
9091   "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
9092   "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
9093   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
9094   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
9095   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
9096   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9097   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9098   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9099 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9100    { (exit 1); exit 1; }; };;
9101   esac
9102 done
9103
9104 # If the user did not use the arguments to specify the items to instantiate,
9105 # then the envvar interface is used.  Set only those that are not.
9106 # We use the long form for the default assignment because of an extremely
9107 # bizarre bug on SunOS 4.1.3.
9108 if $ac_need_defaults; then
9109   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9110   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9111   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9112   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9113 fi
9114
9115 # Have a temporary directory for convenience.  Make it in the build tree
9116 # simply because there is no reason to put it here, and in addition,
9117 # creating and moving files from /tmp can sometimes cause problems.
9118 # Create a temporary directory, and hook for its removal unless debugging.
9119 $debug ||
9120 {
9121   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9122   trap '{ (exit 1); exit 1; }' 1 2 13 15
9123 }
9124
9125 # Create a (secure) tmp directory for tmp files.
9126
9127 {
9128   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9129   test -n "$tmp" && test -d "$tmp"
9130 }  ||
9131 {
9132   tmp=./confstat$$-$RANDOM
9133   (umask 077 && mkdir $tmp)
9134 } ||
9135 {
9136    echo "$me: cannot create a temporary directory in ." >&2
9137    { (exit 1); exit 1; }
9138 }
9139
9140 _ACEOF
9141
9142 cat >>$CONFIG_STATUS <<_ACEOF
9143
9144 #
9145 # CONFIG_FILES section.
9146 #
9147
9148 # No need to generate the scripts if there are no CONFIG_FILES.
9149 # This happens for instance when ./config.status config.h
9150 if test -n "\$CONFIG_FILES"; then
9151   # Protect against being on the right side of a sed subst in config.status.
9152   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9153    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9154 s,@sim_environment@,$sim_environment,;t t
9155 s,@sim_alignment@,$sim_alignment,;t t
9156 s,@sim_assert@,$sim_assert,;t t
9157 s,@sim_bitsize@,$sim_bitsize,;t t
9158 s,@sim_endian@,$sim_endian,;t t
9159 s,@sim_hostendian@,$sim_hostendian,;t t
9160 s,@sim_float@,$sim_float,;t t
9161 s,@sim_scache@,$sim_scache,;t t
9162 s,@sim_default_model@,$sim_default_model,;t t
9163 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9164 s,@sim_hw_objs@,$sim_hw_objs,;t t
9165 s,@sim_hw@,$sim_hw,;t t
9166 s,@sim_inline@,$sim_inline,;t t
9167 s,@sim_packages@,$sim_packages,;t t
9168 s,@sim_regparm@,$sim_regparm,;t t
9169 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9170 s,@sim_smp@,$sim_smp,;t t
9171 s,@sim_stdcall@,$sim_stdcall,;t t
9172 s,@sim_xor_endian@,$sim_xor_endian,;t t
9173 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9174 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9175 s,@SHELL@,$SHELL,;t t
9176 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9177 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9178 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9179 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9180 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9181 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9182 s,@exec_prefix@,$exec_prefix,;t t
9183 s,@prefix@,$prefix,;t t
9184 s,@program_transform_name@,$program_transform_name,;t t
9185 s,@bindir@,$bindir,;t t
9186 s,@sbindir@,$sbindir,;t t
9187 s,@libexecdir@,$libexecdir,;t t
9188 s,@datadir@,$datadir,;t t
9189 s,@sysconfdir@,$sysconfdir,;t t
9190 s,@sharedstatedir@,$sharedstatedir,;t t
9191 s,@localstatedir@,$localstatedir,;t t
9192 s,@libdir@,$libdir,;t t
9193 s,@includedir@,$includedir,;t t
9194 s,@oldincludedir@,$oldincludedir,;t t
9195 s,@infodir@,$infodir,;t t
9196 s,@mandir@,$mandir,;t t
9197 s,@build_alias@,$build_alias,;t t
9198 s,@host_alias@,$host_alias,;t t
9199 s,@target_alias@,$target_alias,;t t
9200 s,@DEFS@,$DEFS,;t t
9201 s,@ECHO_C@,$ECHO_C,;t t
9202 s,@ECHO_N@,$ECHO_N,;t t
9203 s,@ECHO_T@,$ECHO_T,;t t
9204 s,@LIBS@,$LIBS,;t t
9205 s,@build@,$build,;t t
9206 s,@build_cpu@,$build_cpu,;t t
9207 s,@build_vendor@,$build_vendor,;t t
9208 s,@build_os@,$build_os,;t t
9209 s,@host@,$host,;t t
9210 s,@host_cpu@,$host_cpu,;t t
9211 s,@host_vendor@,$host_vendor,;t t
9212 s,@host_os@,$host_os,;t t
9213 s,@target@,$target,;t t
9214 s,@target_cpu@,$target_cpu,;t t
9215 s,@target_vendor@,$target_vendor,;t t
9216 s,@target_os@,$target_os,;t t
9217 s,@CC@,$CC,;t t
9218 s,@CFLAGS@,$CFLAGS,;t t
9219 s,@LDFLAGS@,$LDFLAGS,;t t
9220 s,@CPPFLAGS@,$CPPFLAGS,;t t
9221 s,@ac_ct_CC@,$ac_ct_CC,;t t
9222 s,@EXEEXT@,$EXEEXT,;t t
9223 s,@OBJEXT@,$OBJEXT,;t t
9224 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9225 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9226 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9227 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9228 s,@HDEFINES@,$HDEFINES,;t t
9229 s,@AR@,$AR,;t t
9230 s,@RANLIB@,$RANLIB,;t t
9231 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9232 s,@SET_MAKE@,$SET_MAKE,;t t
9233 s,@CPP@,$CPP,;t t
9234 s,@EGREP@,$EGREP,;t t
9235 s,@ALLOCA@,$ALLOCA,;t t
9236 s,@USE_NLS@,$USE_NLS,;t t
9237 s,@MSGFMT@,$MSGFMT,;t t
9238 s,@GMSGFMT@,$GMSGFMT,;t t
9239 s,@XGETTEXT@,$XGETTEXT,;t t
9240 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9241 s,@CATALOGS@,$CATALOGS,;t t
9242 s,@CATOBJEXT@,$CATOBJEXT,;t t
9243 s,@DATADIRNAME@,$DATADIRNAME,;t t
9244 s,@GMOFILES@,$GMOFILES,;t t
9245 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9246 s,@INTLDEPS@,$INTLDEPS,;t t
9247 s,@INTLLIBS@,$INTLLIBS,;t t
9248 s,@INTLOBJS@,$INTLOBJS,;t t
9249 s,@POFILES@,$POFILES,;t t
9250 s,@POSUB@,$POSUB,;t t
9251 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9252 s,@GT_NO@,$GT_NO,;t t
9253 s,@GT_YES@,$GT_YES,;t t
9254 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9255 s,@l@,$l,;t t
9256 s,@MAINT@,$MAINT,;t t
9257 s,@sim_bswap@,$sim_bswap,;t t
9258 s,@sim_cflags@,$sim_cflags,;t t
9259 s,@sim_debug@,$sim_debug,;t t
9260 s,@sim_stdio@,$sim_stdio,;t t
9261 s,@sim_trace@,$sim_trace,;t t
9262 s,@sim_profile@,$sim_profile,;t t
9263 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
9264 s,@sim_igen_flags@,$sim_igen_flags,;t t
9265 s,@sim_m16_flags@,$sim_m16_flags,;t t
9266 s,@sim_gen@,$sim_gen,;t t
9267 s,@sim_multi_flags@,$sim_multi_flags,;t t
9268 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
9269 s,@sim_multi_src@,$sim_multi_src,;t t
9270 s,@sim_multi_obj@,$sim_multi_obj,;t t
9271 s,@mips_extra_objs@,$mips_extra_objs,;t t
9272 s,@mips_igen_engine@,$mips_igen_engine,;t t
9273 s,@mips_extra_libs@,$mips_extra_libs,;t t
9274 s,@cgen_breaks@,$cgen_breaks,;t t
9275 s,@LIBOBJS@,$LIBOBJS,;t t
9276 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9277 CEOF
9278
9279 _ACEOF
9280
9281   cat >>$CONFIG_STATUS <<\_ACEOF
9282   # Split the substitutions into bite-sized pieces for seds with
9283   # small command number limits, like on Digital OSF/1 and HP-UX.
9284   ac_max_sed_lines=48
9285   ac_sed_frag=1 # Number of current file.
9286   ac_beg=1 # First line for current file.
9287   ac_end=$ac_max_sed_lines # Line after last line for current file.
9288   ac_more_lines=:
9289   ac_sed_cmds=
9290   while $ac_more_lines; do
9291     if test $ac_beg -gt 1; then
9292       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9293     else
9294       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9295     fi
9296     if test ! -s $tmp/subs.frag; then
9297       ac_more_lines=false
9298     else
9299       # The purpose of the label and of the branching condition is to
9300       # speed up the sed processing (if there are no `@' at all, there
9301       # is no need to browse any of the substitutions).
9302       # These are the two extra sed commands mentioned above.
9303       (echo ':t
9304   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9305       if test -z "$ac_sed_cmds"; then
9306         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9307       else
9308         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9309       fi
9310       ac_sed_frag=`expr $ac_sed_frag + 1`
9311       ac_beg=$ac_end
9312       ac_end=`expr $ac_end + $ac_max_sed_lines`
9313     fi
9314   done
9315   if test -z "$ac_sed_cmds"; then
9316     ac_sed_cmds=cat
9317   fi
9318 fi # test -n "$CONFIG_FILES"
9319
9320 _ACEOF
9321 cat >>$CONFIG_STATUS <<\_ACEOF
9322 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9323   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9324   case $ac_file in
9325   - | *:- | *:-:* ) # input from stdin
9326         cat >$tmp/stdin
9327         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9328         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9329   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9331   * )   ac_file_in=$ac_file.in ;;
9332   esac
9333
9334   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9335   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9337          X"$ac_file" : 'X\(//\)[^/]' \| \
9338          X"$ac_file" : 'X\(//\)$' \| \
9339          X"$ac_file" : 'X\(/\)' \| \
9340          .     : '\(.\)' 2>/dev/null ||
9341 echo X"$ac_file" |
9342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9344           /^X\(\/\/\)$/{ s//\1/; q; }
9345           /^X\(\/\).*/{ s//\1/; q; }
9346           s/.*/./; q'`
9347   { if $as_mkdir_p; then
9348     mkdir -p "$ac_dir"
9349   else
9350     as_dir="$ac_dir"
9351     as_dirs=
9352     while test ! -d "$as_dir"; do
9353       as_dirs="$as_dir $as_dirs"
9354       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9356          X"$as_dir" : 'X\(//\)[^/]' \| \
9357          X"$as_dir" : 'X\(//\)$' \| \
9358          X"$as_dir" : 'X\(/\)' \| \
9359          .     : '\(.\)' 2>/dev/null ||
9360 echo X"$as_dir" |
9361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9362           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9363           /^X\(\/\/\)$/{ s//\1/; q; }
9364           /^X\(\/\).*/{ s//\1/; q; }
9365           s/.*/./; q'`
9366     done
9367     test ! -n "$as_dirs" || mkdir $as_dirs
9368   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9370    { (exit 1); exit 1; }; }; }
9371
9372   ac_builddir=.
9373
9374 if test "$ac_dir" != .; then
9375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9376   # A "../" for each directory in $ac_dir_suffix.
9377   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9378 else
9379   ac_dir_suffix= ac_top_builddir=
9380 fi
9381
9382 case $srcdir in
9383   .)  # No --srcdir option.  We are building in place.
9384     ac_srcdir=.
9385     if test -z "$ac_top_builddir"; then
9386        ac_top_srcdir=.
9387     else
9388        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9389     fi ;;
9390   [\\/]* | ?:[\\/]* )  # Absolute path.
9391     ac_srcdir=$srcdir$ac_dir_suffix;
9392     ac_top_srcdir=$srcdir ;;
9393   *) # Relative path.
9394     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9395     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9396 esac
9397
9398 # Do not use `cd foo && pwd` to compute absolute paths, because
9399 # the directories may not exist.
9400 case `pwd` in
9401 .) ac_abs_builddir="$ac_dir";;
9402 *)
9403   case "$ac_dir" in
9404   .) ac_abs_builddir=`pwd`;;
9405   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9406   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9407   esac;;
9408 esac
9409 case $ac_abs_builddir in
9410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9411 *)
9412   case ${ac_top_builddir}. in
9413   .) ac_abs_top_builddir=$ac_abs_builddir;;
9414   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9415   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9416   esac;;
9417 esac
9418 case $ac_abs_builddir in
9419 .) ac_abs_srcdir=$ac_srcdir;;
9420 *)
9421   case $ac_srcdir in
9422   .) ac_abs_srcdir=$ac_abs_builddir;;
9423   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9424   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9425   esac;;
9426 esac
9427 case $ac_abs_builddir in
9428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9429 *)
9430   case $ac_top_srcdir in
9431   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9432   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9433   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9434   esac;;
9435 esac
9436
9437
9438   case $INSTALL in
9439   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9440   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9441   esac
9442
9443   if test x"$ac_file" != x-; then
9444     { echo "$as_me:$LINENO: creating $ac_file" >&5
9445 echo "$as_me: creating $ac_file" >&6;}
9446     rm -f "$ac_file"
9447   fi
9448   # Let's still pretend it is `configure' which instantiates (i.e., don't
9449   # use $as_me), people would be surprised to read:
9450   #    /* config.h.  Generated by config.status.  */
9451   if test x"$ac_file" = x-; then
9452     configure_input=
9453   else
9454     configure_input="$ac_file.  "
9455   fi
9456   configure_input=$configure_input"Generated from `echo $ac_file_in |
9457                                      sed 's,.*/,,'` by configure."
9458
9459   # First look for the input files in the build tree, otherwise in the
9460   # src tree.
9461   ac_file_inputs=`IFS=:
9462     for f in $ac_file_in; do
9463       case $f in
9464       -) echo $tmp/stdin ;;
9465       [\\/$]*)
9466          # Absolute (can't be DOS-style, as IFS=:)
9467          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9468 echo "$as_me: error: cannot find input file: $f" >&2;}
9469    { (exit 1); exit 1; }; }
9470          echo "$f";;
9471       *) # Relative
9472          if test -f "$f"; then
9473            # Build tree
9474            echo "$f"
9475          elif test -f "$srcdir/$f"; then
9476            # Source tree
9477            echo "$srcdir/$f"
9478          else
9479            # /dev/null tree
9480            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9481 echo "$as_me: error: cannot find input file: $f" >&2;}
9482    { (exit 1); exit 1; }; }
9483          fi;;
9484       esac
9485     done` || { (exit 1); exit 1; }
9486 _ACEOF
9487 cat >>$CONFIG_STATUS <<_ACEOF
9488   sed "$ac_vpsub
9489 $extrasub
9490 _ACEOF
9491 cat >>$CONFIG_STATUS <<\_ACEOF
9492 :t
9493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9494 s,@configure_input@,$configure_input,;t t
9495 s,@srcdir@,$ac_srcdir,;t t
9496 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9497 s,@top_srcdir@,$ac_top_srcdir,;t t
9498 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9499 s,@builddir@,$ac_builddir,;t t
9500 s,@abs_builddir@,$ac_abs_builddir,;t t
9501 s,@top_builddir@,$ac_top_builddir,;t t
9502 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9503 s,@INSTALL@,$ac_INSTALL,;t t
9504 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9505   rm -f $tmp/stdin
9506   if test x"$ac_file" != x-; then
9507     mv $tmp/out $ac_file
9508   else
9509     cat $tmp/out
9510     rm -f $tmp/out
9511   fi
9512
9513 done
9514 _ACEOF
9515 cat >>$CONFIG_STATUS <<\_ACEOF
9516
9517 #
9518 # CONFIG_HEADER section.
9519 #
9520
9521 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9522 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9523 #
9524 # ac_d sets the value in "#define NAME VALUE" lines.
9525 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9526 ac_dB='[         ].*$,\1#\2'
9527 ac_dC=' '
9528 ac_dD=',;t'
9529 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9530 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9531 ac_uB='$,\1#\2define\3'
9532 ac_uC=' '
9533 ac_uD=',;t'
9534
9535 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9536   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9537   case $ac_file in
9538   - | *:- | *:-:* ) # input from stdin
9539         cat >$tmp/stdin
9540         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9541         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9542   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9543         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9544   * )   ac_file_in=$ac_file.in ;;
9545   esac
9546
9547   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9548 echo "$as_me: creating $ac_file" >&6;}
9549
9550   # First look for the input files in the build tree, otherwise in the
9551   # src tree.
9552   ac_file_inputs=`IFS=:
9553     for f in $ac_file_in; do
9554       case $f in
9555       -) echo $tmp/stdin ;;
9556       [\\/$]*)
9557          # Absolute (can't be DOS-style, as IFS=:)
9558          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9559 echo "$as_me: error: cannot find input file: $f" >&2;}
9560    { (exit 1); exit 1; }; }
9561          # Do quote $f, to prevent DOS paths from being IFS'd.
9562          echo "$f";;
9563       *) # Relative
9564          if test -f "$f"; then
9565            # Build tree
9566            echo "$f"
9567          elif test -f "$srcdir/$f"; then
9568            # Source tree
9569            echo "$srcdir/$f"
9570          else
9571            # /dev/null tree
9572            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9573 echo "$as_me: error: cannot find input file: $f" >&2;}
9574    { (exit 1); exit 1; }; }
9575          fi;;
9576       esac
9577     done` || { (exit 1); exit 1; }
9578   # Remove the trailing spaces.
9579   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9580
9581 _ACEOF
9582
9583 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9584 # `conftest.undefs', that substitutes the proper values into
9585 # config.h.in to produce config.h.  The first handles `#define'
9586 # templates, and the second `#undef' templates.
9587 # And first: Protect against being on the right side of a sed subst in
9588 # config.status.  Protect against being in an unquoted here document
9589 # in config.status.
9590 rm -f conftest.defines conftest.undefs
9591 # Using a here document instead of a string reduces the quoting nightmare.
9592 # Putting comments in sed scripts is not portable.
9593 #
9594 # `end' is used to avoid that the second main sed command (meant for
9595 # 0-ary CPP macros) applies to n-ary macro definitions.
9596 # See the Autoconf documentation for `clear'.
9597 cat >confdef2sed.sed <<\_ACEOF
9598 s/[\\&,]/\\&/g
9599 s,[\\$`],\\&,g
9600 t clear
9601 : clear
9602 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9603 t end
9604 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9605 : end
9606 _ACEOF
9607 # If some macros were called several times there might be several times
9608 # the same #defines, which is useless.  Nevertheless, we may not want to
9609 # sort them, since we want the *last* AC-DEFINE to be honored.
9610 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9611 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9612 rm -f confdef2sed.sed
9613
9614 # This sed command replaces #undef with comments.  This is necessary, for
9615 # example, in the case of _POSIX_SOURCE, which is predefined and required
9616 # on some systems where configure will not decide to define it.
9617 cat >>conftest.undefs <<\_ACEOF
9618 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9619 _ACEOF
9620
9621 # Break up conftest.defines because some shells have a limit on the size
9622 # of here documents, and old seds have small limits too (100 cmds).
9623 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9624 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9625 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9626 echo '  :' >>$CONFIG_STATUS
9627 rm -f conftest.tail
9628 while grep . conftest.defines >/dev/null
9629 do
9630   # Write a limited-size here document to $tmp/defines.sed.
9631   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9632   # Speed up: don't consider the non `#define' lines.
9633   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9634   # Work around the forget-to-reset-the-flag bug.
9635   echo 't clr' >>$CONFIG_STATUS
9636   echo ': clr' >>$CONFIG_STATUS
9637   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9638   echo 'CEOF
9639   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9640   rm -f $tmp/in
9641   mv $tmp/out $tmp/in
9642 ' >>$CONFIG_STATUS
9643   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9644   rm -f conftest.defines
9645   mv conftest.tail conftest.defines
9646 done
9647 rm -f conftest.defines
9648 echo '  fi # grep' >>$CONFIG_STATUS
9649 echo >>$CONFIG_STATUS
9650
9651 # Break up conftest.undefs because some shells have a limit on the size
9652 # of here documents, and old seds have small limits too (100 cmds).
9653 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9654 rm -f conftest.tail
9655 while grep . conftest.undefs >/dev/null
9656 do
9657   # Write a limited-size here document to $tmp/undefs.sed.
9658   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9659   # Speed up: don't consider the non `#undef'
9660   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9661   # Work around the forget-to-reset-the-flag bug.
9662   echo 't clr' >>$CONFIG_STATUS
9663   echo ': clr' >>$CONFIG_STATUS
9664   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9665   echo 'CEOF
9666   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9667   rm -f $tmp/in
9668   mv $tmp/out $tmp/in
9669 ' >>$CONFIG_STATUS
9670   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9671   rm -f conftest.undefs
9672   mv conftest.tail conftest.undefs
9673 done
9674 rm -f conftest.undefs
9675
9676 cat >>$CONFIG_STATUS <<\_ACEOF
9677   # Let's still pretend it is `configure' which instantiates (i.e., don't
9678   # use $as_me), people would be surprised to read:
9679   #    /* config.h.  Generated by config.status.  */
9680   if test x"$ac_file" = x-; then
9681     echo "/* Generated by configure.  */" >$tmp/config.h
9682   else
9683     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9684   fi
9685   cat $tmp/in >>$tmp/config.h
9686   rm -f $tmp/in
9687   if test x"$ac_file" != x-; then
9688     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9689       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9690 echo "$as_me: $ac_file is unchanged" >&6;}
9691     else
9692       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9694          X"$ac_file" : 'X\(//\)[^/]' \| \
9695          X"$ac_file" : 'X\(//\)$' \| \
9696          X"$ac_file" : 'X\(/\)' \| \
9697          .     : '\(.\)' 2>/dev/null ||
9698 echo X"$ac_file" |
9699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9700           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9701           /^X\(\/\/\)$/{ s//\1/; q; }
9702           /^X\(\/\).*/{ s//\1/; q; }
9703           s/.*/./; q'`
9704       { if $as_mkdir_p; then
9705     mkdir -p "$ac_dir"
9706   else
9707     as_dir="$ac_dir"
9708     as_dirs=
9709     while test ! -d "$as_dir"; do
9710       as_dirs="$as_dir $as_dirs"
9711       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9713          X"$as_dir" : 'X\(//\)[^/]' \| \
9714          X"$as_dir" : 'X\(//\)$' \| \
9715          X"$as_dir" : 'X\(/\)' \| \
9716          .     : '\(.\)' 2>/dev/null ||
9717 echo X"$as_dir" |
9718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9720           /^X\(\/\/\)$/{ s//\1/; q; }
9721           /^X\(\/\).*/{ s//\1/; q; }
9722           s/.*/./; q'`
9723     done
9724     test ! -n "$as_dirs" || mkdir $as_dirs
9725   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9727    { (exit 1); exit 1; }; }; }
9728
9729       rm -f $ac_file
9730       mv $tmp/config.h $ac_file
9731     fi
9732   else
9733     cat $tmp/config.h
9734     rm -f $tmp/config.h
9735   fi
9736 done
9737 _ACEOF
9738 cat >>$CONFIG_STATUS <<\_ACEOF
9739
9740 #
9741 # CONFIG_LINKS section.
9742 #
9743
9744 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9745   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9746   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9747
9748   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9749 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9750
9751   if test ! -r $srcdir/$ac_source; then
9752     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9753 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9754    { (exit 1); exit 1; }; }
9755   fi
9756   rm -f $ac_dest
9757
9758   # Make relative symlinks.
9759   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9760 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9761          X"$ac_dest" : 'X\(//\)[^/]' \| \
9762          X"$ac_dest" : 'X\(//\)$' \| \
9763          X"$ac_dest" : 'X\(/\)' \| \
9764          .     : '\(.\)' 2>/dev/null ||
9765 echo X"$ac_dest" |
9766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9767           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9768           /^X\(\/\/\)$/{ s//\1/; q; }
9769           /^X\(\/\).*/{ s//\1/; q; }
9770           s/.*/./; q'`
9771   { if $as_mkdir_p; then
9772     mkdir -p "$ac_dest_dir"
9773   else
9774     as_dir="$ac_dest_dir"
9775     as_dirs=
9776     while test ! -d "$as_dir"; do
9777       as_dirs="$as_dir $as_dirs"
9778       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9780          X"$as_dir" : 'X\(//\)[^/]' \| \
9781          X"$as_dir" : 'X\(//\)$' \| \
9782          X"$as_dir" : 'X\(/\)' \| \
9783          .     : '\(.\)' 2>/dev/null ||
9784 echo X"$as_dir" |
9785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9786           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9787           /^X\(\/\/\)$/{ s//\1/; q; }
9788           /^X\(\/\).*/{ s//\1/; q; }
9789           s/.*/./; q'`
9790     done
9791     test ! -n "$as_dirs" || mkdir $as_dirs
9792   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9793 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9794    { (exit 1); exit 1; }; }; }
9795
9796   ac_builddir=.
9797
9798 if test "$ac_dest_dir" != .; then
9799   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9800   # A "../" for each directory in $ac_dir_suffix.
9801   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9802 else
9803   ac_dir_suffix= ac_top_builddir=
9804 fi
9805
9806 case $srcdir in
9807   .)  # No --srcdir option.  We are building in place.
9808     ac_srcdir=.
9809     if test -z "$ac_top_builddir"; then
9810        ac_top_srcdir=.
9811     else
9812        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9813     fi ;;
9814   [\\/]* | ?:[\\/]* )  # Absolute path.
9815     ac_srcdir=$srcdir$ac_dir_suffix;
9816     ac_top_srcdir=$srcdir ;;
9817   *) # Relative path.
9818     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9819     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9820 esac
9821
9822 # Do not use `cd foo && pwd` to compute absolute paths, because
9823 # the directories may not exist.
9824 case `pwd` in
9825 .) ac_abs_builddir="$ac_dest_dir";;
9826 *)
9827   case "$ac_dest_dir" in
9828   .) ac_abs_builddir=`pwd`;;
9829   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9830   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9831   esac;;
9832 esac
9833 case $ac_abs_builddir in
9834 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9835 *)
9836   case ${ac_top_builddir}. in
9837   .) ac_abs_top_builddir=$ac_abs_builddir;;
9838   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9839   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9840   esac;;
9841 esac
9842 case $ac_abs_builddir in
9843 .) ac_abs_srcdir=$ac_srcdir;;
9844 *)
9845   case $ac_srcdir in
9846   .) ac_abs_srcdir=$ac_abs_builddir;;
9847   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9848   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9849   esac;;
9850 esac
9851 case $ac_abs_builddir in
9852 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9853 *)
9854   case $ac_top_srcdir in
9855   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9856   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9857   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9858   esac;;
9859 esac
9860
9861
9862   case $srcdir in
9863   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9864       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9865   esac
9866
9867   # Try a symlink, then a hard link, then a copy.
9868   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9869     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9870     cp -p $srcdir/$ac_source $ac_dest ||
9871     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9872 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9873    { (exit 1); exit 1; }; }
9874 done
9875 _ACEOF
9876 cat >>$CONFIG_STATUS <<\_ACEOF
9877
9878 #
9879 # CONFIG_COMMANDS section.
9880 #
9881 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9882   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9883   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9884   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9885 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9886          X"$ac_dest" : 'X\(//\)[^/]' \| \
9887          X"$ac_dest" : 'X\(//\)$' \| \
9888          X"$ac_dest" : 'X\(/\)' \| \
9889          .     : '\(.\)' 2>/dev/null ||
9890 echo X"$ac_dest" |
9891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9892           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9893           /^X\(\/\/\)$/{ s//\1/; q; }
9894           /^X\(\/\).*/{ s//\1/; q; }
9895           s/.*/./; q'`
9896   { if $as_mkdir_p; then
9897     mkdir -p "$ac_dir"
9898   else
9899     as_dir="$ac_dir"
9900     as_dirs=
9901     while test ! -d "$as_dir"; do
9902       as_dirs="$as_dir $as_dirs"
9903       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9905          X"$as_dir" : 'X\(//\)[^/]' \| \
9906          X"$as_dir" : 'X\(//\)$' \| \
9907          X"$as_dir" : 'X\(/\)' \| \
9908          .     : '\(.\)' 2>/dev/null ||
9909 echo X"$as_dir" |
9910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9911           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9912           /^X\(\/\/\)$/{ s//\1/; q; }
9913           /^X\(\/\).*/{ s//\1/; q; }
9914           s/.*/./; q'`
9915     done
9916     test ! -n "$as_dirs" || mkdir $as_dirs
9917   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9919    { (exit 1); exit 1; }; }; }
9920
9921   ac_builddir=.
9922
9923 if test "$ac_dir" != .; then
9924   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9925   # A "../" for each directory in $ac_dir_suffix.
9926   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9927 else
9928   ac_dir_suffix= ac_top_builddir=
9929 fi
9930
9931 case $srcdir in
9932   .)  # No --srcdir option.  We are building in place.
9933     ac_srcdir=.
9934     if test -z "$ac_top_builddir"; then
9935        ac_top_srcdir=.
9936     else
9937        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9938     fi ;;
9939   [\\/]* | ?:[\\/]* )  # Absolute path.
9940     ac_srcdir=$srcdir$ac_dir_suffix;
9941     ac_top_srcdir=$srcdir ;;
9942   *) # Relative path.
9943     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9944     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9945 esac
9946
9947 # Do not use `cd foo && pwd` to compute absolute paths, because
9948 # the directories may not exist.
9949 case `pwd` in
9950 .) ac_abs_builddir="$ac_dir";;
9951 *)
9952   case "$ac_dir" in
9953   .) ac_abs_builddir=`pwd`;;
9954   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9955   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9956   esac;;
9957 esac
9958 case $ac_abs_builddir in
9959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9960 *)
9961   case ${ac_top_builddir}. in
9962   .) ac_abs_top_builddir=$ac_abs_builddir;;
9963   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9964   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9965   esac;;
9966 esac
9967 case $ac_abs_builddir in
9968 .) ac_abs_srcdir=$ac_srcdir;;
9969 *)
9970   case $ac_srcdir in
9971   .) ac_abs_srcdir=$ac_abs_builddir;;
9972   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9973   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9974   esac;;
9975 esac
9976 case $ac_abs_builddir in
9977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9978 *)
9979   case $ac_top_srcdir in
9980   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9981   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9982   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9983   esac;;
9984 esac
9985
9986
9987   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9988 echo "$as_me: executing $ac_dest commands" >&6;}
9989   case $ac_dest in
9990     Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9991  rm -f Makesim1.tmp Makesim2.tmp Makefile
9992  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9993  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9994  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9995         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9996         <Makefile.sim >Makefile
9997  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9998  ;;
9999     stamp-h ) echo > stamp-h ;;
10000   esac
10001 done
10002 _ACEOF
10003
10004 cat >>$CONFIG_STATUS <<\_ACEOF
10005
10006 { (exit 0); exit 0; }
10007 _ACEOF
10008 chmod +x $CONFIG_STATUS
10009 ac_clean_files=$ac_clean_files_save
10010
10011
10012 # configure is writing to config.log, and then calls config.status.
10013 # config.status does its own redirection, appending to config.log.
10014 # Unfortunately, on DOS this fails, as config.log is still kept open
10015 # by configure, so config.status won't be able to write to it; its
10016 # output is simply discarded.  So we exec the FD to /dev/null,
10017 # effectively closing config.log, so it can be properly (re)opened and
10018 # appended to by config.status.  When coming back to configure, we
10019 # need to make the FD available again.
10020 if test "$no_create" != yes; then
10021   ac_cs_success=:
10022   ac_config_status_args=
10023   test "$silent" = yes &&
10024     ac_config_status_args="$ac_config_status_args --quiet"
10025   exec 5>/dev/null
10026   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10027   exec 5>>config.log
10028   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10029   # would make configure fail if this is the last instruction.
10030   $ac_cs_success || { (exit 1); exit 1; }
10031 fi
10032
10033