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