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