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