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