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