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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" 	$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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="ldmain.c"
275# Factoring default headers for most tests.
276ac_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
312ac_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 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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313ac_subst_files='TDIRS'
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_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.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
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
627Try \`$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
650done
651
652if 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; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
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
679done
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if 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 ||
715echo 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
725else
726  ac_srcdir_defaulted=no
727fi
728if 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
736fi
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if 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
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
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
804Installation 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
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine 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
834Program 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
839System 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
844fi
845
846if test -n "$ac_init_help"; then
847
848  cat <<\_ACEOF
849
850Optional Features:
851  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853  --disable-dependency-tracking  speeds up one-time build
854  --enable-dependency-tracking   do not reject slow dependency extractors
855  --enable-shared=PKGS  build shared libraries default=yes
856  --enable-static=PKGS  build static libraries default=yes
857  --enable-fast-install=PKGS  optimize for fast installation default=yes
858  --disable-libtool-lock  avoid locking (might break parallel builds)
859  --enable-targets        alternative target configurations
860  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
861  --enable-werror    treat compile warnings as errors
862  --enable-build-warnings Enable build-time compiler warnings
863  --disable-nls           do not use Native Language Support
864  --enable-maintainer-mode  enable make rules and dependencies not useful
865			  (and sometimes confusing) to the casual installer
866
867Optional Packages:
868  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870  --with-gnu-ld           assume the C compiler uses GNU ld default=no
871  --with-pic              try to use only PIC/non-PIC objects default=use both
872  --with-lib-path=dir1:dir2...  set default LIB_PATH
873  --with-sysroot=DIR Search for usr/lib et al within DIR.
874  --with-included-gettext use the GNU gettext library included here
875
876Some influential environment variables:
877  CC          C compiler command
878  CFLAGS      C compiler flags
879  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880              nonstandard directory <lib dir>
881  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882              headers in a nonstandard directory <include dir>
883  CPP         C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892  # If there are subdirs, report their specific --help.
893  ac_popdir=`pwd`
894  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895    test -d $ac_dir || continue
896    ac_builddir=.
897
898if test "$ac_dir" != .; then
899  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900  # A "../" for each directory in $ac_dir_suffix.
901  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903  ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907  .)  # No --srcdir option.  We are building in place.
908    ac_srcdir=.
909    if test -z "$ac_top_builddir"; then
910       ac_top_srcdir=.
911    else
912       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913    fi ;;
914  [\\/]* | ?:[\\/]* )  # Absolute path.
915    ac_srcdir=$srcdir$ac_dir_suffix;
916    ac_top_srcdir=$srcdir ;;
917  *) # Relative path.
918    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919    ac_top_srcdir=$ac_top_builddir$srcdir ;;
920esac
921
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927  case "$ac_dir" in
928  .) ac_abs_builddir=`pwd`;;
929  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930  *) ac_abs_builddir=`pwd`/"$ac_dir";;
931  esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936  case ${ac_top_builddir}. in
937  .) ac_abs_top_builddir=$ac_abs_builddir;;
938  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940  esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945  case $ac_srcdir in
946  .) ac_abs_srcdir=$ac_abs_builddir;;
947  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949  esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954  case $ac_top_srcdir in
955  .) ac_abs_top_srcdir=$ac_abs_builddir;;
956  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958  esac;;
959esac
960
961    cd $ac_dir
962    # Check for guested configure; otherwise get Cygnus style configure.
963    if test -f $ac_srcdir/configure.gnu; then
964      echo
965      $SHELL $ac_srcdir/configure.gnu  --help=recursive
966    elif test -f $ac_srcdir/configure; then
967      echo
968      $SHELL $ac_srcdir/configure  --help=recursive
969    elif test -f $ac_srcdir/configure.ac ||
970	   test -f $ac_srcdir/configure.in; then
971      echo
972      $ac_configure --help
973    else
974      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975    fi
976    cd $ac_popdir
977  done
978fi
979
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982  cat <<\_ACEOF
983
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988  exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59.  Invocation command line was
997
998  $ $0 $@
999
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029  IFS=$as_save_IFS
1030  test -z "$as_dir" && as_dir=.
1031  echo "PATH: $as_dir"
1032done
1033
1034} >&5
1035
1036cat >&5 <<_ACEOF
1037
1038
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058  for ac_arg
1059  do
1060    case $ac_arg in
1061    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063    | -silent | --silent | --silen | --sile | --sil)
1064      continue ;;
1065    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067    esac
1068    case $ac_pass in
1069    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070    2)
1071      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072      if test $ac_must_keep_next = true; then
1073	ac_must_keep_next=false # Got value, back to normal.
1074      else
1075	case $ac_arg in
1076	  *=* | --config-cache | -C | -disable-* | --disable-* \
1077	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079	  | -with-* | --with-* | -without-* | --without-* | --x)
1080	    case "$ac_configure_args0 " in
1081	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082	    esac
1083	    ;;
1084	  -* ) ac_must_keep_next=true ;;
1085	esac
1086      fi
1087      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088      # Get rid of the leading space.
1089      ac_sep=" "
1090      ;;
1091    esac
1092  done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log.  We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103  # Save into config.log some information that might help in debugging.
1104  {
1105    echo
1106
1107    cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112    echo
1113    # The following way of writing the cache mishandles newlines in values,
1114{
1115  (set) 2>&1 |
1116    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117    *ac_space=\ *)
1118      sed -n \
1119	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121      ;;
1122    *)
1123      sed -n \
1124	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125      ;;
1126    esac;
1127}
1128    echo
1129
1130    cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135    echo
1136    for ac_var in $ac_subst_vars
1137    do
1138      eval ac_val=$`echo $ac_var`
1139      echo "$ac_var='"'"'$ac_val'"'"'"
1140    done | sort
1141    echo
1142
1143    if test -n "$ac_subst_files"; then
1144      cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149      echo
1150      for ac_var in $ac_subst_files
1151      do
1152	eval ac_val=$`echo $ac_var`
1153	echo "$ac_var='"'"'$ac_val'"'"'"
1154      done | sort
1155      echo
1156    fi
1157
1158    if test -s confdefs.h; then
1159      cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164      echo
1165      sed "/^$/d" confdefs.h | sort
1166      echo
1167    fi
1168    test "$ac_signal" != 0 &&
1169      echo "$as_me: caught signal $ac_signal"
1170    echo "$as_me: exit $exit_status"
1171  } >&5
1172  rm -f core *.core &&
1173  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174    exit $exit_status
1175     ' 0
1176for ac_signal in 1 2 13 15; do
1177  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216  if test "x$prefix" != xNONE; then
1217    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218  else
1219    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220  fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223  if test -r "$ac_site_file"; then
1224    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226    sed 's/^/| /' "$ac_site_file" >&5
1227    . "$ac_site_file"
1228  fi
1229done
1230
1231if test -r "$cache_file"; then
1232  # Some versions of bash will fail to source /dev/null (special
1233  # files actually), so we avoid doing that.
1234  if test -f "$cache_file"; then
1235    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237    case $cache_file in
1238      [\\/]* | ?:[\\/]* ) . $cache_file;;
1239      *)                      . ./$cache_file;;
1240    esac
1241  fi
1242else
1243  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245  >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254  eval ac_new_set=\$ac_env_${ac_var}_set
1255  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256  eval ac_new_val="\$ac_env_${ac_var}_value"
1257  case $ac_old_set,$ac_new_set in
1258    set,)
1259      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261      ac_cache_corrupted=: ;;
1262    ,set)
1263      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265      ac_cache_corrupted=: ;;
1266    ,);;
1267    *)
1268      if test "x$ac_old_val" != "x$ac_new_val"; then
1269	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272echo "$as_me:   former value:  $ac_old_val" >&2;}
1273	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274echo "$as_me:   current value: $ac_new_val" >&2;}
1275	ac_cache_corrupted=:
1276      fi;;
1277  esac
1278  # Pass precious variables to config.status.
1279  if test "$ac_new_set" = set; then
1280    case $ac_new_val in
1281    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283    *) ac_arg=$ac_var=$ac_new_val ;;
1284    esac
1285    case " $ac_configure_args " in
1286      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288    esac
1289  fi
1290done
1291if $ac_cache_corrupted; then
1292  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296   { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324ac_aux_dir=
1325for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1326  if test -f $ac_dir/install-sh; then
1327    ac_aux_dir=$ac_dir
1328    ac_install_sh="$ac_aux_dir/install-sh -c"
1329    break
1330  elif test -f $ac_dir/install.sh; then
1331    ac_aux_dir=$ac_dir
1332    ac_install_sh="$ac_aux_dir/install.sh -c"
1333    break
1334  elif test -f $ac_dir/shtool; then
1335    ac_aux_dir=$ac_dir
1336    ac_install_sh="$ac_aux_dir/shtool install -c"
1337    break
1338  fi
1339done
1340if test -z "$ac_aux_dir"; then
1341  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1342echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1343   { (exit 1); exit 1; }; }
1344fi
1345ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348
1349# Make sure we can run config.sub.
1350$ac_config_sub sun4 >/dev/null 2>&1 ||
1351  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353   { (exit 1); exit 1; }; }
1354
1355echo "$as_me:$LINENO: checking build system type" >&5
1356echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357if test "${ac_cv_build+set}" = set; then
1358  echo $ECHO_N "(cached) $ECHO_C" >&6
1359else
1360  ac_cv_build_alias=$build_alias
1361test -z "$ac_cv_build_alias" &&
1362  ac_cv_build_alias=`$ac_config_guess`
1363test -z "$ac_cv_build_alias" &&
1364  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366   { (exit 1); exit 1; }; }
1367ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370   { (exit 1); exit 1; }; }
1371
1372fi
1373echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374echo "${ECHO_T}$ac_cv_build" >&6
1375build=$ac_cv_build
1376build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
1380
1381echo "$as_me:$LINENO: checking host system type" >&5
1382echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383if test "${ac_cv_host+set}" = set; then
1384  echo $ECHO_N "(cached) $ECHO_C" >&6
1385else
1386  ac_cv_host_alias=$host_alias
1387test -z "$ac_cv_host_alias" &&
1388  ac_cv_host_alias=$ac_cv_build_alias
1389ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392   { (exit 1); exit 1; }; }
1393
1394fi
1395echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396echo "${ECHO_T}$ac_cv_host" >&6
1397host=$ac_cv_host
1398host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401
1402
1403echo "$as_me:$LINENO: checking target system type" >&5
1404echo $ECHO_N "checking target system type... $ECHO_C" >&6
1405if test "${ac_cv_target+set}" = set; then
1406  echo $ECHO_N "(cached) $ECHO_C" >&6
1407else
1408  ac_cv_target_alias=$target_alias
1409test "x$ac_cv_target_alias" = "x" &&
1410  ac_cv_target_alias=$ac_cv_host_alias
1411ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1412  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1413echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1414   { (exit 1); exit 1; }; }
1415
1416fi
1417echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1418echo "${ECHO_T}$ac_cv_target" >&6
1419target=$ac_cv_target
1420target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423
1424
1425# The aliases save the names the user supplied, while $host etc.
1426# will get canonicalized.
1427test -n "$target_alias" &&
1428  test "$program_prefix$program_suffix$program_transform_name" = \
1429    NONENONEs,x,x, &&
1430  program_prefix=${target_alias}-
1431ac_ext=c
1432ac_cpp='$CPP $CPPFLAGS'
1433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436if test -n "$ac_tool_prefix"; then
1437  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439echo "$as_me:$LINENO: checking for $ac_word" >&5
1440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441if test "${ac_cv_prog_CC+set}" = set; then
1442  echo $ECHO_N "(cached) $ECHO_C" >&6
1443else
1444  if test -n "$CC"; then
1445  ac_cv_prog_CC="$CC" # Let the user override the test.
1446else
1447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448for as_dir in $PATH
1449do
1450  IFS=$as_save_IFS
1451  test -z "$as_dir" && as_dir=.
1452  for ac_exec_ext in '' $ac_executable_extensions; do
1453  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456    break 2
1457  fi
1458done
1459done
1460
1461fi
1462fi
1463CC=$ac_cv_prog_CC
1464if test -n "$CC"; then
1465  echo "$as_me:$LINENO: result: $CC" >&5
1466echo "${ECHO_T}$CC" >&6
1467else
1468  echo "$as_me:$LINENO: result: no" >&5
1469echo "${ECHO_T}no" >&6
1470fi
1471
1472fi
1473if test -z "$ac_cv_prog_CC"; then
1474  ac_ct_CC=$CC
1475  # Extract the first word of "gcc", so it can be a program name with args.
1476set dummy gcc; ac_word=$2
1477echo "$as_me:$LINENO: checking for $ac_word" >&5
1478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480  echo $ECHO_N "(cached) $ECHO_C" >&6
1481else
1482  if test -n "$ac_ct_CC"; then
1483  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484else
1485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486for as_dir in $PATH
1487do
1488  IFS=$as_save_IFS
1489  test -z "$as_dir" && as_dir=.
1490  for ac_exec_ext in '' $ac_executable_extensions; do
1491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492    ac_cv_prog_ac_ct_CC="gcc"
1493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494    break 2
1495  fi
1496done
1497done
1498
1499fi
1500fi
1501ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502if test -n "$ac_ct_CC"; then
1503  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504echo "${ECHO_T}$ac_ct_CC" >&6
1505else
1506  echo "$as_me:$LINENO: result: no" >&5
1507echo "${ECHO_T}no" >&6
1508fi
1509
1510  CC=$ac_ct_CC
1511else
1512  CC="$ac_cv_prog_CC"
1513fi
1514
1515if test -z "$CC"; then
1516  if test -n "$ac_tool_prefix"; then
1517  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518set dummy ${ac_tool_prefix}cc; ac_word=$2
1519echo "$as_me:$LINENO: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_CC+set}" = set; then
1522  echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524  if test -n "$CC"; then
1525  ac_cv_prog_CC="$CC" # Let the user override the test.
1526else
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530  IFS=$as_save_IFS
1531  test -z "$as_dir" && as_dir=.
1532  for ac_exec_ext in '' $ac_executable_extensions; do
1533  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534    ac_cv_prog_CC="${ac_tool_prefix}cc"
1535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536    break 2
1537  fi
1538done
1539done
1540
1541fi
1542fi
1543CC=$ac_cv_prog_CC
1544if test -n "$CC"; then
1545  echo "$as_me:$LINENO: result: $CC" >&5
1546echo "${ECHO_T}$CC" >&6
1547else
1548  echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
1550fi
1551
1552fi
1553if test -z "$ac_cv_prog_CC"; then
1554  ac_ct_CC=$CC
1555  # Extract the first word of "cc", so it can be a program name with args.
1556set dummy cc; ac_word=$2
1557echo "$as_me:$LINENO: checking for $ac_word" >&5
1558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560  echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562  if test -n "$ac_ct_CC"; then
1563  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564else
1565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566for as_dir in $PATH
1567do
1568  IFS=$as_save_IFS
1569  test -z "$as_dir" && as_dir=.
1570  for ac_exec_ext in '' $ac_executable_extensions; do
1571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572    ac_cv_prog_ac_ct_CC="cc"
1573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574    break 2
1575  fi
1576done
1577done
1578
1579fi
1580fi
1581ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582if test -n "$ac_ct_CC"; then
1583  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584echo "${ECHO_T}$ac_ct_CC" >&6
1585else
1586  echo "$as_me:$LINENO: result: no" >&5
1587echo "${ECHO_T}no" >&6
1588fi
1589
1590  CC=$ac_ct_CC
1591else
1592  CC="$ac_cv_prog_CC"
1593fi
1594
1595fi
1596if test -z "$CC"; then
1597  # Extract the first word of "cc", so it can be a program name with args.
1598set dummy cc; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_CC+set}" = set; then
1602  echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604  if test -n "$CC"; then
1605  ac_cv_prog_CC="$CC" # Let the user override the test.
1606else
1607  ac_prog_rejected=no
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611  IFS=$as_save_IFS
1612  test -z "$as_dir" && as_dir=.
1613  for ac_exec_ext in '' $ac_executable_extensions; do
1614  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616       ac_prog_rejected=yes
1617       continue
1618     fi
1619    ac_cv_prog_CC="cc"
1620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621    break 2
1622  fi
1623done
1624done
1625
1626if test $ac_prog_rejected = yes; then
1627  # We found a bogon in the path, so make sure we never use it.
1628  set dummy $ac_cv_prog_CC
1629  shift
1630  if test $# != 0; then
1631    # We chose a different compiler from the bogus one.
1632    # However, it has the same basename, so the bogon will be chosen
1633    # first if we set CC to just the basename; use the full file name.
1634    shift
1635    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636  fi
1637fi
1638fi
1639fi
1640CC=$ac_cv_prog_CC
1641if test -n "$CC"; then
1642  echo "$as_me:$LINENO: result: $CC" >&5
1643echo "${ECHO_T}$CC" >&6
1644else
1645  echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649fi
1650if test -z "$CC"; then
1651  if test -n "$ac_tool_prefix"; then
1652  for ac_prog in cl
1653  do
1654    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656echo "$as_me:$LINENO: checking for $ac_word" >&5
1657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658if test "${ac_cv_prog_CC+set}" = set; then
1659  echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661  if test -n "$CC"; then
1662  ac_cv_prog_CC="$CC" # Let the user override the test.
1663else
1664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665for as_dir in $PATH
1666do
1667  IFS=$as_save_IFS
1668  test -z "$as_dir" && as_dir=.
1669  for ac_exec_ext in '' $ac_executable_extensions; do
1670  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673    break 2
1674  fi
1675done
1676done
1677
1678fi
1679fi
1680CC=$ac_cv_prog_CC
1681if test -n "$CC"; then
1682  echo "$as_me:$LINENO: result: $CC" >&5
1683echo "${ECHO_T}$CC" >&6
1684else
1685  echo "$as_me:$LINENO: result: no" >&5
1686echo "${ECHO_T}no" >&6
1687fi
1688
1689    test -n "$CC" && break
1690  done
1691fi
1692if test -z "$CC"; then
1693  ac_ct_CC=$CC
1694  for ac_prog in cl
1695do
1696  # Extract the first word of "$ac_prog", so it can be a program name with args.
1697set dummy $ac_prog; ac_word=$2
1698echo "$as_me:$LINENO: checking for $ac_word" >&5
1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701  echo $ECHO_N "(cached) $ECHO_C" >&6
1702else
1703  if test -n "$ac_ct_CC"; then
1704  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705else
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709  IFS=$as_save_IFS
1710  test -z "$as_dir" && as_dir=.
1711  for ac_exec_ext in '' $ac_executable_extensions; do
1712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713    ac_cv_prog_ac_ct_CC="$ac_prog"
1714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715    break 2
1716  fi
1717done
1718done
1719
1720fi
1721fi
1722ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723if test -n "$ac_ct_CC"; then
1724  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725echo "${ECHO_T}$ac_ct_CC" >&6
1726else
1727  echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
1729fi
1730
1731  test -n "$ac_ct_CC" && break
1732done
1733
1734  CC=$ac_ct_CC
1735fi
1736
1737fi
1738
1739
1740test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741See \`config.log' for more details." >&5
1742echo "$as_me: error: no acceptable C compiler found in \$PATH
1743See \`config.log' for more details." >&2;}
1744   { (exit 1); exit 1; }; }
1745
1746# Provide some information about the compiler.
1747echo "$as_me:$LINENO:" \
1748     "checking for C compiler version" >&5
1749ac_compiler=`set X $ac_compile; echo $2`
1750{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751  (eval $ac_compiler --version </dev/null >&5) 2>&5
1752  ac_status=$?
1753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754  (exit $ac_status); }
1755{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756  (eval $ac_compiler -v </dev/null >&5) 2>&5
1757  ac_status=$?
1758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759  (exit $ac_status); }
1760{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761  (eval $ac_compiler -V </dev/null >&5) 2>&5
1762  ac_status=$?
1763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764  (exit $ac_status); }
1765
1766cat >conftest.$ac_ext <<_ACEOF
1767/* confdefs.h.  */
1768_ACEOF
1769cat confdefs.h >>conftest.$ac_ext
1770cat >>conftest.$ac_ext <<_ACEOF
1771/* end confdefs.h.  */
1772
1773int
1774main ()
1775{
1776
1777  ;
1778  return 0;
1779}
1780_ACEOF
1781ac_clean_files_save=$ac_clean_files
1782ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783# Try to create an executable without -o first, disregard a.out.
1784# It will help us diagnose broken compilers, and finding out an intuition
1785# of exeext.
1786echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790  (eval $ac_link_default) 2>&5
1791  ac_status=$?
1792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793  (exit $ac_status); }; then
1794  # Find the output, starting from the most likely.  This scheme is
1795# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796# resort.
1797
1798# Be careful to initialize this variable, since it used to be cached.
1799# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800ac_cv_exeext=
1801# b.out is created by i960 compilers.
1802for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803do
1804  test -f "$ac_file" || continue
1805  case $ac_file in
1806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807	;;
1808    conftest.$ac_ext )
1809	# This is the source file.
1810	;;
1811    [ab].out )
1812	# We found the default executable, but exeext='' is most
1813	# certainly right.
1814	break;;
1815    *.* )
1816	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817	# FIXME: I believe we export ac_cv_exeext for Libtool,
1818	# but it would be cool to find out if it's true.  Does anybody
1819	# maintain Libtool? --akim.
1820	export ac_cv_exeext
1821	break;;
1822    * )
1823	break;;
1824  esac
1825done
1826else
1827  echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831See \`config.log' for more details." >&5
1832echo "$as_me: error: C compiler cannot create executables
1833See \`config.log' for more details." >&2;}
1834   { (exit 77); exit 77; }; }
1835fi
1836
1837ac_exeext=$ac_cv_exeext
1838echo "$as_me:$LINENO: result: $ac_file" >&5
1839echo "${ECHO_T}$ac_file" >&6
1840
1841# Check the compiler produces executables we can run.  If not, either
1842# the compiler is broken, or we cross compile.
1843echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846# If not cross compiling, check that we can run a simple program.
1847if test "$cross_compiling" != yes; then
1848  if { ac_try='./$ac_file'
1849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850  (eval $ac_try) 2>&5
1851  ac_status=$?
1852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853  (exit $ac_status); }; }; then
1854    cross_compiling=no
1855  else
1856    if test "$cross_compiling" = maybe; then
1857	cross_compiling=yes
1858    else
1859	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860If you meant to cross compile, use \`--host'.
1861See \`config.log' for more details." >&5
1862echo "$as_me: error: cannot run C compiled programs.
1863If you meant to cross compile, use \`--host'.
1864See \`config.log' for more details." >&2;}
1865   { (exit 1); exit 1; }; }
1866    fi
1867  fi
1868fi
1869echo "$as_me:$LINENO: result: yes" >&5
1870echo "${ECHO_T}yes" >&6
1871
1872rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873ac_clean_files=$ac_clean_files_save
1874# Check the compiler produces executables we can run.  If not, either
1875# the compiler is broken, or we cross compile.
1876echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879echo "${ECHO_T}$cross_compiling" >&6
1880
1881echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884  (eval $ac_link) 2>&5
1885  ac_status=$?
1886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887  (exit $ac_status); }; then
1888  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1890# work properly (i.e., refer to `conftest.exe'), while it won't with
1891# `rm'.
1892for ac_file in conftest.exe conftest conftest.*; do
1893  test -f "$ac_file" || continue
1894  case $ac_file in
1895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897	  export ac_cv_exeext
1898	  break;;
1899    * ) break;;
1900  esac
1901done
1902else
1903  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904See \`config.log' for more details." >&5
1905echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906See \`config.log' for more details." >&2;}
1907   { (exit 1); exit 1; }; }
1908fi
1909
1910rm -f conftest$ac_cv_exeext
1911echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914rm -f conftest.$ac_ext
1915EXEEXT=$ac_cv_exeext
1916ac_exeext=$EXEEXT
1917echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919if test "${ac_cv_objext+set}" = set; then
1920  echo $ECHO_N "(cached) $ECHO_C" >&6
1921else
1922  cat >conftest.$ac_ext <<_ACEOF
1923/* confdefs.h.  */
1924_ACEOF
1925cat confdefs.h >>conftest.$ac_ext
1926cat >>conftest.$ac_ext <<_ACEOF
1927/* end confdefs.h.  */
1928
1929int
1930main ()
1931{
1932
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937rm -f conftest.o conftest.obj
1938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939  (eval $ac_compile) 2>&5
1940  ac_status=$?
1941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942  (exit $ac_status); }; then
1943  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944  case $ac_file in
1945    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947       break;;
1948  esac
1949done
1950else
1951  echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955See \`config.log' for more details." >&5
1956echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957See \`config.log' for more details." >&2;}
1958   { (exit 1); exit 1; }; }
1959fi
1960
1961rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962fi
1963echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964echo "${ECHO_T}$ac_cv_objext" >&6
1965OBJEXT=$ac_cv_objext
1966ac_objext=$OBJEXT
1967echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970  echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972  cat >conftest.$ac_ext <<_ACEOF
1973/* confdefs.h.  */
1974_ACEOF
1975cat confdefs.h >>conftest.$ac_ext
1976cat >>conftest.$ac_ext <<_ACEOF
1977/* end confdefs.h.  */
1978
1979int
1980main ()
1981{
1982#ifndef __GNUC__
1983       choke me
1984#endif
1985
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990rm -f conftest.$ac_objext
1991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992  (eval $ac_compile) 2>conftest.er1
1993  ac_status=$?
1994  grep -v '^ *+' conftest.er1 >conftest.err
1995  rm -f conftest.er1
1996  cat conftest.err >&5
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); } &&
1999	 { ac_try='test -z "$ac_c_werror_flag"
2000			 || test ! -s conftest.err'
2001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002  (eval $ac_try) 2>&5
2003  ac_status=$?
2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005  (exit $ac_status); }; } &&
2006	 { ac_try='test -s conftest.$ac_objext'
2007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008  (eval $ac_try) 2>&5
2009  ac_status=$?
2010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011  (exit $ac_status); }; }; then
2012  ac_compiler_gnu=yes
2013else
2014  echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017ac_compiler_gnu=no
2018fi
2019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021
2022fi
2023echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025GCC=`test $ac_compiler_gnu = yes && echo yes`
2026ac_test_CFLAGS=${CFLAGS+set}
2027ac_save_CFLAGS=$CFLAGS
2028CFLAGS="-g"
2029echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031if test "${ac_cv_prog_cc_g+set}" = set; then
2032  echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034  cat >conftest.$ac_ext <<_ACEOF
2035/* confdefs.h.  */
2036_ACEOF
2037cat confdefs.h >>conftest.$ac_ext
2038cat >>conftest.$ac_ext <<_ACEOF
2039/* end confdefs.h.  */
2040
2041int
2042main ()
2043{
2044
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049rm -f conftest.$ac_objext
2050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051  (eval $ac_compile) 2>conftest.er1
2052  ac_status=$?
2053  grep -v '^ *+' conftest.er1 >conftest.err
2054  rm -f conftest.er1
2055  cat conftest.err >&5
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); } &&
2058	 { ac_try='test -z "$ac_c_werror_flag"
2059			 || test ! -s conftest.err'
2060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061  (eval $ac_try) 2>&5
2062  ac_status=$?
2063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064  (exit $ac_status); }; } &&
2065	 { ac_try='test -s conftest.$ac_objext'
2066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067  (eval $ac_try) 2>&5
2068  ac_status=$?
2069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070  (exit $ac_status); }; }; then
2071  ac_cv_prog_cc_g=yes
2072else
2073  echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076ac_cv_prog_cc_g=no
2077fi
2078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079fi
2080echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2081echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2082if test "$ac_test_CFLAGS" = set; then
2083  CFLAGS=$ac_save_CFLAGS
2084elif test $ac_cv_prog_cc_g = yes; then
2085  if test "$GCC" = yes; then
2086    CFLAGS="-g -O2"
2087  else
2088    CFLAGS="-g"
2089  fi
2090else
2091  if test "$GCC" = yes; then
2092    CFLAGS="-O2"
2093  else
2094    CFLAGS=
2095  fi
2096fi
2097echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  ac_cv_prog_cc_stdc=no
2103ac_save_CC=$CC
2104cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h.  */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
2109/* end confdefs.h.  */
2110#include <stdarg.h>
2111#include <stdio.h>
2112#include <sys/types.h>
2113#include <sys/stat.h>
2114/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2115struct buf { int x; };
2116FILE * (*rcsopen) (struct buf *, struct stat *, int);
2117static char *e (p, i)
2118     char **p;
2119     int i;
2120{
2121  return p[i];
2122}
2123static char *f (char * (*g) (char **, int), char **p, ...)
2124{
2125  char *s;
2126  va_list v;
2127  va_start (v,p);
2128  s = g (p, va_arg (v,int));
2129  va_end (v);
2130  return s;
2131}
2132
2133/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2134   function prototypes and stuff, but not '\xHH' hex character constants.
2135   These don't provoke an error unfortunately, instead are silently treated
2136   as 'x'.  The following induces an error, until -std1 is added to get
2137   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2138   array size at least.  It's necessary to write '\x00'==0 to get something
2139   that's true only with -std1.  */
2140int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141
2142int test (int i, double x);
2143struct s1 {int (*f) (int a);};
2144struct s2 {int (*f) (double a);};
2145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146int argc;
2147char **argv;
2148int
2149main ()
2150{
2151return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2152  ;
2153  return 0;
2154}
2155_ACEOF
2156# Don't try gcc -ansi; that turns off useful extensions and
2157# breaks some systems' header files.
2158# AIX			-qlanglvl=ansi
2159# Ultrix and OSF/1	-std1
2160# HP-UX 10.20 and later	-Ae
2161# HP-UX older versions	-Aa -D_HPUX_SOURCE
2162# SVR4			-Xc -D__EXTENSIONS__
2163for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164do
2165  CC="$ac_save_CC $ac_arg"
2166  rm -f conftest.$ac_objext
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168  (eval $ac_compile) 2>conftest.er1
2169  ac_status=$?
2170  grep -v '^ *+' conftest.er1 >conftest.err
2171  rm -f conftest.er1
2172  cat conftest.err >&5
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); } &&
2175	 { ac_try='test -z "$ac_c_werror_flag"
2176			 || test ! -s conftest.err'
2177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178  (eval $ac_try) 2>&5
2179  ac_status=$?
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); }; } &&
2182	 { ac_try='test -s conftest.$ac_objext'
2183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184  (eval $ac_try) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }; }; then
2188  ac_cv_prog_cc_stdc=$ac_arg
2189break
2190else
2191  echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194fi
2195rm -f conftest.err conftest.$ac_objext
2196done
2197rm -f conftest.$ac_ext conftest.$ac_objext
2198CC=$ac_save_CC
2199
2200fi
2201
2202case "x$ac_cv_prog_cc_stdc" in
2203  x|xno)
2204    echo "$as_me:$LINENO: result: none needed" >&5
2205echo "${ECHO_T}none needed" >&6 ;;
2206  *)
2207    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209    CC="$CC $ac_cv_prog_cc_stdc" ;;
2210esac
2211
2212# Some people use a C++ compiler to compile C.  Since we use `exit',
2213# in C++ we need to declare it.  In case someone uses the same compiler
2214# for both compiling C and C++ we need to have the C++ compiler decide
2215# the declaration of exit, since it's the most demanding environment.
2216cat >conftest.$ac_ext <<_ACEOF
2217#ifndef __cplusplus
2218  choke me
2219#endif
2220_ACEOF
2221rm -f conftest.$ac_objext
2222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223  (eval $ac_compile) 2>conftest.er1
2224  ac_status=$?
2225  grep -v '^ *+' conftest.er1 >conftest.err
2226  rm -f conftest.er1
2227  cat conftest.err >&5
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); } &&
2230	 { ac_try='test -z "$ac_c_werror_flag"
2231			 || test ! -s conftest.err'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; } &&
2237	 { ac_try='test -s conftest.$ac_objext'
2238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239  (eval $ac_try) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; }; then
2243  for ac_declaration in \
2244   '' \
2245   'extern "C" void std::exit (int) throw (); using std::exit;' \
2246   'extern "C" void std::exit (int); using std::exit;' \
2247   'extern "C" void exit (int) throw ();' \
2248   'extern "C" void exit (int);' \
2249   'void exit (int);'
2250do
2251  cat >conftest.$ac_ext <<_ACEOF
2252/* confdefs.h.  */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h.  */
2257$ac_declaration
2258#include <stdlib.h>
2259int
2260main ()
2261{
2262exit (42);
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267rm -f conftest.$ac_objext
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269  (eval $ac_compile) 2>conftest.er1
2270  ac_status=$?
2271  grep -v '^ *+' conftest.er1 >conftest.err
2272  rm -f conftest.er1
2273  cat conftest.err >&5
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); } &&
2276	 { ac_try='test -z "$ac_c_werror_flag"
2277			 || test ! -s conftest.err'
2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; } &&
2283	 { ac_try='test -s conftest.$ac_objext'
2284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285  (eval $ac_try) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; }; then
2289  :
2290else
2291  echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294continue
2295fi
2296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297  cat >conftest.$ac_ext <<_ACEOF
2298/* confdefs.h.  */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
2302/* end confdefs.h.  */
2303$ac_declaration
2304int
2305main ()
2306{
2307exit (42);
2308  ;
2309  return 0;
2310}
2311_ACEOF
2312rm -f conftest.$ac_objext
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314  (eval $ac_compile) 2>conftest.er1
2315  ac_status=$?
2316  grep -v '^ *+' conftest.er1 >conftest.err
2317  rm -f conftest.er1
2318  cat conftest.err >&5
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); } &&
2321	 { ac_try='test -z "$ac_c_werror_flag"
2322			 || test ! -s conftest.err'
2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324  (eval $ac_try) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }; } &&
2328	 { ac_try='test -s conftest.$ac_objext'
2329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330  (eval $ac_try) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; }; then
2334  break
2335else
2336  echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339fi
2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341done
2342rm -f conftest*
2343if test -n "$ac_declaration"; then
2344  echo '#ifdef __cplusplus' >>confdefs.h
2345  echo $ac_declaration      >>confdefs.h
2346  echo '#endif'             >>confdefs.h
2347fi
2348
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353fi
2354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355ac_ext=c
2356ac_cpp='$CPP $CPPFLAGS'
2357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362echo "$as_me:$LINENO: checking for library containing strerror" >&5
2363echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2364if test "${ac_cv_search_strerror+set}" = set; then
2365  echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367  ac_func_search_save_LIBS=$LIBS
2368ac_cv_search_strerror=no
2369cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h.  */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h.  */
2375
2376/* Override any gcc2 internal prototype to avoid an error.  */
2377#ifdef __cplusplus
2378extern "C"
2379#endif
2380/* We use char because int might match the return type of a gcc2
2381   builtin and then its argument prototype would still apply.  */
2382char strerror ();
2383int
2384main ()
2385{
2386strerror ();
2387  ;
2388  return 0;
2389}
2390_ACEOF
2391rm -f conftest.$ac_objext conftest$ac_exeext
2392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393  (eval $ac_link) 2>conftest.er1
2394  ac_status=$?
2395  grep -v '^ *+' conftest.er1 >conftest.err
2396  rm -f conftest.er1
2397  cat conftest.err >&5
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); } &&
2400	 { ac_try='test -z "$ac_c_werror_flag"
2401			 || test ! -s conftest.err'
2402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403  (eval $ac_try) 2>&5
2404  ac_status=$?
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); }; } &&
2407	 { ac_try='test -s conftest$ac_exeext'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; }; then
2413  ac_cv_search_strerror="none required"
2414else
2415  echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418fi
2419rm -f conftest.err conftest.$ac_objext \
2420      conftest$ac_exeext conftest.$ac_ext
2421if test "$ac_cv_search_strerror" = no; then
2422  for ac_lib in cposix; do
2423    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2424    cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430
2431/* Override any gcc2 internal prototype to avoid an error.  */
2432#ifdef __cplusplus
2433extern "C"
2434#endif
2435/* We use char because int might match the return type of a gcc2
2436   builtin and then its argument prototype would still apply.  */
2437char strerror ();
2438int
2439main ()
2440{
2441strerror ();
2442  ;
2443  return 0;
2444}
2445_ACEOF
2446rm -f conftest.$ac_objext conftest$ac_exeext
2447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2448  (eval $ac_link) 2>conftest.er1
2449  ac_status=$?
2450  grep -v '^ *+' conftest.er1 >conftest.err
2451  rm -f conftest.er1
2452  cat conftest.err >&5
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); } &&
2455	 { ac_try='test -z "$ac_c_werror_flag"
2456			 || test ! -s conftest.err'
2457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458  (eval $ac_try) 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }; } &&
2462	 { ac_try='test -s conftest$ac_exeext'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; }; then
2468  ac_cv_search_strerror="-l$ac_lib"
2469break
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474fi
2475rm -f conftest.err conftest.$ac_objext \
2476      conftest$ac_exeext conftest.$ac_ext
2477  done
2478fi
2479LIBS=$ac_func_search_save_LIBS
2480fi
2481echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2482echo "${ECHO_T}$ac_cv_search_strerror" >&6
2483if test "$ac_cv_search_strerror" != no; then
2484  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2485
2486fi
2487
2488
2489BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2490am__api_version="1.9"
2491# Find a good install program.  We prefer a C program (faster),
2492# so one script is as good as another.  But avoid the broken or
2493# incompatible versions:
2494# SysV /etc/install, /usr/sbin/install
2495# SunOS /usr/etc/install
2496# IRIX /sbin/install
2497# AIX /bin/install
2498# AmigaOS /C/install, which installs bootblocks on floppy discs
2499# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502# OS/2's system install, which has a completely different semantic
2503# ./install, which can be erroneously created by make from ./install.sh.
2504echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2506if test -z "$INSTALL"; then
2507if test "${ac_cv_path_install+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513  IFS=$as_save_IFS
2514  test -z "$as_dir" && as_dir=.
2515  # Account for people who put trailing slashes in PATH elements.
2516case $as_dir/ in
2517  ./ | .// | /cC/* | \
2518  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2520  /usr/ucb/* ) ;;
2521  *)
2522    # OSF1 and SCO ODT 3.0 have their own names for install.
2523    # Don't use installbsd from OSF since it installs stuff as root
2524    # by default.
2525    for ac_prog in ginstall scoinst install; do
2526      for ac_exec_ext in '' $ac_executable_extensions; do
2527	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528	  if test $ac_prog = install &&
2529	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530	    # AIX install.  It has an incompatible calling convention.
2531	    :
2532	  elif test $ac_prog = install &&
2533	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534	    # program-specific install script used by HP pwplus--don't use.
2535	    :
2536	  else
2537	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538	    break 3
2539	  fi
2540	fi
2541      done
2542    done
2543    ;;
2544esac
2545done
2546
2547
2548fi
2549  if test "${ac_cv_path_install+set}" = set; then
2550    INSTALL=$ac_cv_path_install
2551  else
2552    # As a last resort, use the slow shell script.  We don't cache a
2553    # path for INSTALL within a source directory, because that will
2554    # break other packages using the cache if that directory is
2555    # removed, or if the path is relative.
2556    INSTALL=$ac_install_sh
2557  fi
2558fi
2559echo "$as_me:$LINENO: result: $INSTALL" >&5
2560echo "${ECHO_T}$INSTALL" >&6
2561
2562# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563# It thinks the first close brace ends the variable substitution.
2564test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2572# Just in case
2573sleep 1
2574echo timestamp > conftest.file
2575# Do `set' in a subshell so we don't clobber the current shell's
2576# arguments.  Must try -L first in case configure is actually a
2577# symlink; some systems play weird games with the mod time of symlinks
2578# (eg FreeBSD returns the mod time of the symlink's containing
2579# directory).
2580if (
2581   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2582   if test "$*" = "X"; then
2583      # -L didn't work.
2584      set X `ls -t $srcdir/configure conftest.file`
2585   fi
2586   rm -f conftest.file
2587   if test "$*" != "X $srcdir/configure conftest.file" \
2588      && test "$*" != "X conftest.file $srcdir/configure"; then
2589
2590      # If neither matched, then we have a broken ls.  This can happen
2591      # if, for instance, CONFIG_SHELL is bash and it inherits a
2592      # broken ls alias from the environment.  This has actually
2593      # happened.  Such a system could not be considered "sane".
2594      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2595alias in your environment" >&5
2596echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2597alias in your environment" >&2;}
2598   { (exit 1); exit 1; }; }
2599   fi
2600
2601   test "$2" = conftest.file
2602   )
2603then
2604   # Ok.
2605   :
2606else
2607   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2608Check your system clock" >&5
2609echo "$as_me: error: newly created file is older than distributed files!
2610Check your system clock" >&2;}
2611   { (exit 1); exit 1; }; }
2612fi
2613echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6
2615test "$program_prefix" != NONE &&
2616  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2617# Use a double $ so make ignores it.
2618test "$program_suffix" != NONE &&
2619  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2620# Double any \ or $.  echo might interpret backslashes.
2621# By default was `s,x,x', remove it if useless.
2622cat <<\_ACEOF >conftest.sed
2623s/[\\$]/&&/g;s/;s,x,x,$//
2624_ACEOF
2625program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2626rm conftest.sed
2627
2628# expand $ac_aux_dir to an absolute path
2629am_aux_dir=`cd $ac_aux_dir && pwd`
2630
2631test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2632# Use eval to expand $SHELL
2633if eval "$MISSING --run true"; then
2634  am_missing_run="$MISSING --run "
2635else
2636  am_missing_run=
2637  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2638echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639fi
2640
2641if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2642  # We used to keeping the `.' as first argument, in order to
2643  # allow $(mkdir_p) to be used without argument.  As in
2644  #   $(mkdir_p) $(somedir)
2645  # where $(somedir) is conditionally defined.  However this is wrong
2646  # for two reasons:
2647  #  1. if the package is installed by a user who cannot write `.'
2648  #     make install will fail,
2649  #  2. the above comment should most certainly read
2650  #     $(mkdir_p) $(DESTDIR)$(somedir)
2651  #     so it does not work when $(somedir) is undefined and
2652  #     $(DESTDIR) is not.
2653  #  To support the latter case, we have to write
2654  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2655  #  so the `.' trick is pointless.
2656  mkdir_p='mkdir -p --'
2657else
2658  # On NextStep and OpenStep, the `mkdir' command does not
2659  # recognize any option.  It will interpret all options as
2660  # directories to create, and then abort because `.' already
2661  # exists.
2662  for d in ./-p ./--version;
2663  do
2664    test -d $d && rmdir $d
2665  done
2666  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2667  if test -f "$ac_aux_dir/mkinstalldirs"; then
2668    mkdir_p='$(mkinstalldirs)'
2669  else
2670    mkdir_p='$(install_sh) -d'
2671  fi
2672fi
2673
2674for ac_prog in gawk mawk nawk awk
2675do
2676  # Extract the first word of "$ac_prog", so it can be a program name with args.
2677set dummy $ac_prog; ac_word=$2
2678echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680if test "${ac_cv_prog_AWK+set}" = set; then
2681  echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683  if test -n "$AWK"; then
2684  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691  for ac_exec_ext in '' $ac_executable_extensions; do
2692  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693    ac_cv_prog_AWK="$ac_prog"
2694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698done
2699
2700fi
2701fi
2702AWK=$ac_cv_prog_AWK
2703if test -n "$AWK"; then
2704  echo "$as_me:$LINENO: result: $AWK" >&5
2705echo "${ECHO_T}$AWK" >&6
2706else
2707  echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6
2709fi
2710
2711  test -n "$AWK" && break
2712done
2713
2714echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720  cat >conftest.make <<\_ACEOF
2721all:
2722	@echo 'ac_maketemp="$(MAKE)"'
2723_ACEOF
2724# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2725eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2726if test -n "$ac_maketemp"; then
2727  eval ac_cv_prog_make_${ac_make}_set=yes
2728else
2729  eval ac_cv_prog_make_${ac_make}_set=no
2730fi
2731rm -f conftest.make
2732fi
2733if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2734  echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
2736  SET_MAKE=
2737else
2738  echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740  SET_MAKE="MAKE=${MAKE-make}"
2741fi
2742
2743rm -rf .tst 2>/dev/null
2744mkdir .tst 2>/dev/null
2745if test -d .tst; then
2746  am__leading_dot=.
2747else
2748  am__leading_dot=_
2749fi
2750rmdir .tst 2>/dev/null
2751
2752DEPDIR="${am__leading_dot}deps"
2753
2754          ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757am_make=${MAKE-make}
2758cat > confinc << 'END'
2759am__doit:
2760	@echo done
2761.PHONY: am__doit
2762END
2763# If we don't find an include directive, just comment out the code.
2764echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2766am__include="#"
2767am__quote=
2768_am_result=none
2769# First try GNU make style include.
2770echo "include confinc" > confmf
2771# We grep out `Entering directory' and `Leaving directory'
2772# messages which can occur if `w' ends up in MAKEFLAGS.
2773# In particular we don't look at `^make:' because GNU make might
2774# be invoked under some other name (usually "gmake"), in which
2775# case it prints its new name instead of `make'.
2776if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777   am__include=include
2778   am__quote=
2779   _am_result=GNU
2780fi
2781# Now try BSD make style include.
2782if test "$am__include" = "#"; then
2783   echo '.include "confinc"' > confmf
2784   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785      am__include=.include
2786      am__quote="\""
2787      _am_result=BSD
2788   fi
2789fi
2790
2791
2792echo "$as_me:$LINENO: result: $_am_result" >&5
2793echo "${ECHO_T}$_am_result" >&6
2794rm -f confinc confmf
2795
2796# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2797if test "${enable_dependency_tracking+set}" = set; then
2798  enableval="$enable_dependency_tracking"
2799
2800fi;
2801if test "x$enable_dependency_tracking" != xno; then
2802  am_depcomp="$ac_aux_dir/depcomp"
2803  AMDEPBACKSLASH='\'
2804fi
2805
2806
2807if test "x$enable_dependency_tracking" != xno; then
2808  AMDEP_TRUE=
2809  AMDEP_FALSE='#'
2810else
2811  AMDEP_TRUE='#'
2812  AMDEP_FALSE=
2813fi
2814
2815
2816
2817# test to see if srcdir already configured
2818if test "`cd $srcdir && pwd`" != "`pwd`" &&
2819   test -f $srcdir/config.status; then
2820  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822   { (exit 1); exit 1; }; }
2823fi
2824
2825# test whether we have cygpath
2826if test -z "$CYGPATH_W"; then
2827  if (cygpath --version) >/dev/null 2>/dev/null; then
2828    CYGPATH_W='cygpath -w'
2829  else
2830    CYGPATH_W=echo
2831  fi
2832fi
2833
2834
2835# Define the identity of the package.
2836 PACKAGE=ld
2837 VERSION=${BFD_VERSION}
2838
2839
2840cat >>confdefs.h <<_ACEOF
2841#define PACKAGE "$PACKAGE"
2842_ACEOF
2843
2844
2845cat >>confdefs.h <<_ACEOF
2846#define VERSION "$VERSION"
2847_ACEOF
2848
2849# Some tools Automake needs.
2850
2851ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866
2867# Installed binaries are usually stripped using `strip' when the user
2868# run `make install-strip'.  However `strip' might not be the right
2869# tool to use in cross-compilation environments, therefore Automake
2870# will honor the `STRIP' environment variable to overrule this program.
2871if test "$cross_compiling" != no; then
2872  if test -n "$ac_tool_prefix"; then
2873  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874set dummy ${ac_tool_prefix}strip; ac_word=$2
2875echo "$as_me:$LINENO: checking for $ac_word" >&5
2876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877if test "${ac_cv_prog_STRIP+set}" = set; then
2878  echo $ECHO_N "(cached) $ECHO_C" >&6
2879else
2880  if test -n "$STRIP"; then
2881  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886  IFS=$as_save_IFS
2887  test -z "$as_dir" && as_dir=.
2888  for ac_exec_ext in '' $ac_executable_extensions; do
2889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892    break 2
2893  fi
2894done
2895done
2896
2897fi
2898fi
2899STRIP=$ac_cv_prog_STRIP
2900if test -n "$STRIP"; then
2901  echo "$as_me:$LINENO: result: $STRIP" >&5
2902echo "${ECHO_T}$STRIP" >&6
2903else
2904  echo "$as_me:$LINENO: result: no" >&5
2905echo "${ECHO_T}no" >&6
2906fi
2907
2908fi
2909if test -z "$ac_cv_prog_STRIP"; then
2910  ac_ct_STRIP=$STRIP
2911  # Extract the first word of "strip", so it can be a program name with args.
2912set dummy strip; ac_word=$2
2913echo "$as_me:$LINENO: checking for $ac_word" >&5
2914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2916  echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918  if test -n "$ac_ct_STRIP"; then
2919  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926  for ac_exec_ext in '' $ac_executable_extensions; do
2927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928    ac_cv_prog_ac_ct_STRIP="strip"
2929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933done
2934
2935  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936fi
2937fi
2938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939if test -n "$ac_ct_STRIP"; then
2940  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2941echo "${ECHO_T}$ac_ct_STRIP" >&6
2942else
2943  echo "$as_me:$LINENO: result: no" >&5
2944echo "${ECHO_T}no" >&6
2945fi
2946
2947  STRIP=$ac_ct_STRIP
2948else
2949  STRIP="$ac_cv_prog_STRIP"
2950fi
2951
2952fi
2953INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954
2955# We need awk for the "check" target.  The system "awk" is bad on
2956# some platforms.
2957# Always define AMTAR for backward compatibility.
2958
2959AMTAR=${AMTAR-"${am_missing_run}tar"}
2960
2961am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962
2963
2964
2965
2966depcc="$CC"   am_compiler_list=
2967
2968echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2971  echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2974  # We make a subdir and do the tests there.  Otherwise we can end up
2975  # making bogus files that we don't know about and never remove.  For
2976  # instance it was reported that on HP-UX the gcc test will end up
2977  # making a dummy file named `D' -- because `-MD' means `put the output
2978  # in D'.
2979  mkdir conftest.dir
2980  # Copy depcomp to subdir because otherwise we won't find it if we're
2981  # using a relative directory.
2982  cp "$am_depcomp" conftest.dir
2983  cd conftest.dir
2984  # We will build objects and dependencies in a subdirectory because
2985  # it helps to detect inapplicable dependency modes.  For instance
2986  # both Tru64's cc and ICC support -MD to output dependencies as a
2987  # side effect of compilation, but ICC will put the dependencies in
2988  # the current directory while Tru64 will put them in the object
2989  # directory.
2990  mkdir sub
2991
2992  am_cv_CC_dependencies_compiler_type=none
2993  if test "$am_compiler_list" = ""; then
2994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995  fi
2996  for depmode in $am_compiler_list; do
2997    # Setup a source with many dependencies, because some compilers
2998    # like to wrap large dependency lists on column 80 (with \), and
2999    # we should not choose a depcomp mode which is confused by this.
3000    #
3001    # We need to recreate these files for each test, as the compiler may
3002    # overwrite some of them when testing with obscure command lines.
3003    # This happens at least with the AIX C compiler.
3004    : > sub/conftest.c
3005    for i in 1 2 3 4 5 6; do
3006      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3007      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3008      # Solaris 8's {/usr,}/bin/sh.
3009      touch sub/conftst$i.h
3010    done
3011    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012
3013    case $depmode in
3014    nosideeffect)
3015      # after this tag, mechanisms are not by side-effect, so they'll
3016      # only be used when explicitly requested
3017      if test "x$enable_dependency_tracking" = xyes; then
3018	continue
3019      else
3020	break
3021      fi
3022      ;;
3023    none) break ;;
3024    esac
3025    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3026    # mode.  It turns out that the SunPro C++ compiler does not properly
3027    # handle `-M -o', and we need to detect this.
3028    if depmode=$depmode \
3029       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3030       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3031       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3032         >/dev/null 2>conftest.err &&
3033       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3034       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3035       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3036      # icc doesn't choke on unknown options, it will just issue warnings
3037      # or remarks (even with -Werror).  So we grep stderr for any message
3038      # that says an option was ignored or not supported.
3039      # When given -MP, icc 7.0 and 7.1 complain thusly:
3040      #   icc: Command line warning: ignoring option '-M'; no argument required
3041      # The diagnosis changed in icc 8.0:
3042      #   icc: Command line remark: option '-MP' not supported
3043      if (grep 'ignoring option' conftest.err ||
3044          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3045        am_cv_CC_dependencies_compiler_type=$depmode
3046        break
3047      fi
3048    fi
3049  done
3050
3051  cd ..
3052  rm -rf conftest.dir
3053else
3054  am_cv_CC_dependencies_compiler_type=none
3055fi
3056
3057fi
3058echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3061
3062
3063
3064if
3065  test "x$enable_dependency_tracking" != xno \
3066  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067  am__fastdepCC_TRUE=
3068  am__fastdepCC_FALSE='#'
3069else
3070  am__fastdepCC_TRUE='#'
3071  am__fastdepCC_FALSE=
3072fi
3073
3074
3075
3076
3077# Check whether --enable-shared or --disable-shared was given.
3078if test "${enable_shared+set}" = set; then
3079  enableval="$enable_shared"
3080  p=${PACKAGE-default}
3081case $enableval in
3082yes) enable_shared=yes ;;
3083no) enable_shared=no ;;
3084*)
3085  enable_shared=no
3086  # Look at the argument we got.  We use all the common list separators.
3087  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3088  for pkg in $enableval; do
3089    if test "X$pkg" = "X$p"; then
3090      enable_shared=yes
3091    fi
3092  done
3093  IFS="$ac_save_ifs"
3094  ;;
3095esac
3096else
3097  enable_shared=yes
3098fi;
3099# Check whether --enable-static or --disable-static was given.
3100if test "${enable_static+set}" = set; then
3101  enableval="$enable_static"
3102  p=${PACKAGE-default}
3103case $enableval in
3104yes) enable_static=yes ;;
3105no) enable_static=no ;;
3106*)
3107  enable_static=no
3108  # Look at the argument we got.  We use all the common list separators.
3109  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3110  for pkg in $enableval; do
3111    if test "X$pkg" = "X$p"; then
3112      enable_static=yes
3113    fi
3114  done
3115  IFS="$ac_save_ifs"
3116  ;;
3117esac
3118else
3119  enable_static=yes
3120fi;
3121# Check whether --enable-fast-install or --disable-fast-install was given.
3122if test "${enable_fast_install+set}" = set; then
3123  enableval="$enable_fast_install"
3124  p=${PACKAGE-default}
3125case $enableval in
3126yes) enable_fast_install=yes ;;
3127no) enable_fast_install=no ;;
3128*)
3129  enable_fast_install=no
3130  # Look at the argument we got.  We use all the common list separators.
3131  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3132  for pkg in $enableval; do
3133    if test "X$pkg" = "X$p"; then
3134      enable_fast_install=yes
3135    fi
3136  done
3137  IFS="$ac_save_ifs"
3138  ;;
3139esac
3140else
3141  enable_fast_install=yes
3142fi;
3143
3144# Check whether --with-gnu-ld or --without-gnu-ld was given.
3145if test "${with_gnu_ld+set}" = set; then
3146  withval="$with_gnu_ld"
3147  test "$withval" = no || with_gnu_ld=yes
3148else
3149  with_gnu_ld=no
3150fi;
3151ac_prog=ld
3152if test "$GCC" = yes; then
3153  # Check if gcc -print-prog-name=ld gives a path.
3154  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3155echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3156  case $host in
3157  *-*-mingw*)
3158    # gcc leaves a trailing carriage return which upsets mingw
3159    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160  *)
3161    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3162  esac
3163  case $ac_prog in
3164    # Accept absolute paths.
3165    [\\/]* | [A-Za-z]:[\\/]*)
3166      re_direlt='/[^/][^/]*/\.\./'
3167      # Canonicalize the path of ld
3168      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3169      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3170	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3171      done
3172      test -z "$LD" && LD="$ac_prog"
3173      ;;
3174  "")
3175    # If it fails, then pretend we aren't using GCC.
3176    ac_prog=ld
3177    ;;
3178  *)
3179    # If it is relative, then search for the first ld in PATH.
3180    with_gnu_ld=unknown
3181    ;;
3182  esac
3183elif test "$with_gnu_ld" = yes; then
3184  echo "$as_me:$LINENO: checking for GNU ld" >&5
3185echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3186else
3187  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3188echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3189fi
3190if test "${lt_cv_path_LD+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  if test -z "$LD"; then
3194  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3195  for ac_dir in $PATH; do
3196    test -z "$ac_dir" && ac_dir=.
3197    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3198      lt_cv_path_LD="$ac_dir/$ac_prog"
3199      # Check to see if the program is GNU ld.  I'd rather use --version,
3200      # but apparently some GNU ld's only accept -v.
3201      # Break only if it was the GNU/non-GNU ld that we prefer.
3202      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3203	test "$with_gnu_ld" != no && break
3204      else
3205	test "$with_gnu_ld" != yes && break
3206      fi
3207    fi
3208  done
3209  IFS="$ac_save_ifs"
3210else
3211  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3212fi
3213fi
3214
3215LD="$lt_cv_path_LD"
3216if test -n "$LD"; then
3217  echo "$as_me:$LINENO: result: $LD" >&5
3218echo "${ECHO_T}$LD" >&6
3219else
3220  echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
3222fi
3223test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3224echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3225   { (exit 1); exit 1; }; }
3226echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3227echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3228if test "${lt_cv_prog_gnu_ld+set}" = set; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3232if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3233  lt_cv_prog_gnu_ld=yes
3234else
3235  lt_cv_prog_gnu_ld=no
3236fi
3237fi
3238echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3239echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3240with_gnu_ld=$lt_cv_prog_gnu_ld
3241
3242
3243echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3244echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3245if test "${lt_cv_ld_reload_flag+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  lt_cv_ld_reload_flag='-r'
3249fi
3250echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3251echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3252reload_flag=$lt_cv_ld_reload_flag
3253test -n "$reload_flag" && reload_flag=" $reload_flag"
3254
3255echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3256echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3257if test "${lt_cv_path_NM+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  if test -n "$NM"; then
3261  # Let the user override the test.
3262  lt_cv_path_NM="$NM"
3263else
3264  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3265  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3266    test -z "$ac_dir" && ac_dir=.
3267    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3268    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3269      # Check to see if the nm accepts a BSD-compat flag.
3270      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3271      #   nm: unknown option "B" ignored
3272      # Tru64's nm complains that /dev/null is an invalid object file
3273      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3274	lt_cv_path_NM="$tmp_nm -B"
3275	break
3276      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3277	lt_cv_path_NM="$tmp_nm -p"
3278	break
3279      else
3280	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3281	continue # so that we can try to find one that supports BSD flags
3282      fi
3283    fi
3284  done
3285  IFS="$ac_save_ifs"
3286  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3287fi
3288fi
3289
3290NM="$lt_cv_path_NM"
3291echo "$as_me:$LINENO: result: $NM" >&5
3292echo "${ECHO_T}$NM" >&6
3293
3294echo "$as_me:$LINENO: checking whether ln -s works" >&5
3295echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3296LN_S=$as_ln_s
3297if test "$LN_S" = "ln -s"; then
3298  echo "$as_me:$LINENO: result: yes" >&5
3299echo "${ECHO_T}yes" >&6
3300else
3301  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3302echo "${ECHO_T}no, using $LN_S" >&6
3303fi
3304
3305echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3306echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3307if test "${lt_cv_deplibs_check_method+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  lt_cv_file_magic_cmd='$MAGIC_CMD'
3311lt_cv_file_magic_test_file=
3312lt_cv_deplibs_check_method='unknown'
3313# Need to set the preceding variable on all platforms that support
3314# interlibrary dependencies.
3315# 'none' -- dependencies not supported.
3316# `unknown' -- same as none, but documents that we really don't know.
3317# 'pass_all' -- all dependencies passed with no checks.
3318# 'test_compile' -- check by making test program.
3319# 'file_magic [regex]' -- check by looking for files in library path
3320# which responds to the $file_magic_cmd with a given egrep regex.
3321# If you have `file' or equivalent on your system and you're not sure
3322# whether `pass_all' will *always* work, you probably want this one.
3323
3324case $host_os in
3325aix*)
3326  lt_cv_deplibs_check_method=pass_all
3327  ;;
3328
3329beos*)
3330  lt_cv_deplibs_check_method=pass_all
3331  ;;
3332
3333bsdi4*)
3334  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3335  lt_cv_file_magic_cmd='/usr/bin/file -L'
3336  lt_cv_file_magic_test_file=/shlib/libc.so
3337  ;;
3338
3339cygwin* | mingw* |pw32*)
3340  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3341  lt_cv_file_magic_cmd='$OBJDUMP -f'
3342  ;;
3343
3344darwin* | rhapsody*)
3345  # this will be overwritten by pass_all, but leave it in just in case
3346  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3347  lt_cv_file_magic_cmd='/usr/bin/file -L'
3348  case "$host_os" in
3349  rhapsody* | darwin1.012)
3350    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3351    ;;
3352  *) # Darwin 1.3 on
3353    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3354    ;;
3355  esac
3356  lt_cv_deplibs_check_method=pass_all
3357  ;;
3358
3359freebsd* | kfreebsd*-gnu)
3360  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3361    case $host_cpu in
3362    i*86 )
3363      # Not sure whether the presence of OpenBSD here was a mistake.
3364      # Let's accept both of them until this is cleared up.
3365      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3366      lt_cv_file_magic_cmd=/usr/bin/file
3367      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3368      ;;
3369    esac
3370  else
3371    lt_cv_deplibs_check_method=pass_all
3372  fi
3373  ;;
3374
3375gnu*)
3376  lt_cv_deplibs_check_method=pass_all
3377  ;;
3378
3379hpux10.20*|hpux11*)
3380  case $host_cpu in
3381  hppa*)
3382    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3383    lt_cv_file_magic_cmd=/usr/bin/file
3384    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3385    ;;
3386  ia64*)
3387    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3388    lt_cv_file_magic_cmd=/usr/bin/file
3389    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3390    ;;
3391  esac
3392  ;;
3393
3394irix5* | irix6*)
3395  case $host_os in
3396  irix5*)
3397    # this will be overridden with pass_all, but let us keep it just in case
3398    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3399    ;;
3400  *)
3401    case $LD in
3402    *-32|*"-32 ") libmagic=32-bit;;
3403    *-n32|*"-n32 ") libmagic=N32;;
3404    *-64|*"-64 ") libmagic=64-bit;;
3405    *) libmagic=never-match;;
3406    esac
3407    # this will be overridden with pass_all, but let us keep it just in case
3408    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3409    ;;
3410  esac
3411  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3412  lt_cv_deplibs_check_method=pass_all
3413  ;;
3414
3415# This must be Linux ELF.
3416linux-gnu*)
3417  lt_cv_deplibs_check_method=pass_all
3418  ;;
3419
3420netbsd* | knetbsd*-gnu)
3421  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3422    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3423  else
3424    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3425  fi
3426  ;;
3427
3428newsos6)
3429  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3430  lt_cv_file_magic_cmd=/usr/bin/file
3431  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3432  ;;
3433
3434osf3* | osf4* | osf5*)
3435  # this will be overridden with pass_all, but let us keep it just in case
3436  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3437  lt_cv_file_magic_test_file=/shlib/libc.so
3438  lt_cv_deplibs_check_method=pass_all
3439  ;;
3440
3441sco3.2v5*)
3442  lt_cv_deplibs_check_method=pass_all
3443  ;;
3444
3445solaris*)
3446  lt_cv_deplibs_check_method=pass_all
3447  lt_cv_file_magic_test_file=/lib/libc.so
3448  ;;
3449
3450sysv5uw[78]* | sysv4*uw2*)
3451  lt_cv_deplibs_check_method=pass_all
3452  ;;
3453
3454sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3455  case $host_vendor in
3456  ncr)
3457    lt_cv_deplibs_check_method=pass_all
3458    ;;
3459  motorola)
3460    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3461    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3462    ;;
3463  esac
3464  ;;
3465esac
3466
3467fi
3468echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3469echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3470file_magic_cmd=$lt_cv_file_magic_cmd
3471deplibs_check_method=$lt_cv_deplibs_check_method
3472
3473
3474
3475
3476# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3477
3478# find the maximum length of command line arguments
3479echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3480echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3481if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3482  echo $ECHO_N "(cached) $ECHO_C" >&6
3483else
3484    i=0
3485  teststring="ABCD"
3486
3487  case $build_os in
3488  msdosdjgpp*)
3489    # On DJGPP, this test can blow up pretty badly due to problems in libc
3490    # (any single argument exceeding 2000 bytes causes a buffer overrun
3491    # during glob expansion).  Even if it were fixed, the result of this
3492    # check would be larger than it should be.
3493    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3494    ;;
3495
3496  cygwin* | mingw*)
3497    # On Win9x/ME, this test blows up -- it succeeds, but takes
3498    # about 5 minutes as the teststring grows exponentially.
3499    # Worse, since 9x/ME are not pre-emptively multitasking,
3500    # you end up with a "frozen" computer, even though with patience
3501    # the test eventually succeeds (with a max line length of 256k).
3502    # Instead, let's just punt: use the minimum linelength reported by
3503    # all of the supported platforms: 8192 (on NT/2K/XP).
3504    lt_cv_sys_max_cmd_len=8192;
3505    ;;
3506
3507  amigaos*)
3508    # On AmigaOS with pdksh, this test takes hours, literally.
3509    # So we just punt and use a minimum line length of 8192.
3510    lt_cv_sys_max_cmd_len=8192;
3511    ;;
3512
3513  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3514    # This has been around since 386BSD, at least.  Likely further.
3515    if test -x /sbin/sysctl; then
3516      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3517    elif test -x /usr/sbin/sysctl; then
3518      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3519    else
3520      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3521    fi
3522    # And add a safety zone
3523    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3524    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3525    ;;
3526  esac
3527
3528fi
3529
3530if test -n "$lt_cv_sys_max_cmd_len" ; then
3531  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3532echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3533else
3534  echo "$as_me:$LINENO: result: none" >&5
3535echo "${ECHO_T}none" >&6
3536fi
3537
3538
3539# Only perform the check for file, if the check method requires it
3540case $deplibs_check_method in
3541file_magic*)
3542  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3543    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3544echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3545if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3546  echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548  case $MAGIC_CMD in
3549  /*)
3550  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3551  ;;
3552  ?:/*)
3553  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3554  ;;
3555  *)
3556  ac_save_MAGIC_CMD="$MAGIC_CMD"
3557  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3558  ac_dummy="/usr/bin:$PATH"
3559  for ac_dir in $ac_dummy; do
3560    test -z "$ac_dir" && ac_dir=.
3561    if test -f $ac_dir/${ac_tool_prefix}file; then
3562      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3563      if test -n "$file_magic_test_file"; then
3564	case $deplibs_check_method in
3565	"file_magic "*)
3566	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3567	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3568	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3569	    egrep "$file_magic_regex" > /dev/null; then
3570	    :
3571	  else
3572	    cat <<EOF 1>&2
3573
3574*** Warning: the command libtool uses to detect shared libraries,
3575*** $file_magic_cmd, produces output that libtool cannot recognize.
3576*** The result is that libtool may fail to recognize shared libraries
3577*** as such.  This will affect the creation of libtool libraries that
3578*** depend on shared libraries, but programs linked with such libtool
3579*** libraries will work regardless of this problem.  Nevertheless, you
3580*** may want to report the problem to your system manager and/or to
3581*** bug-libtool@gnu.org
3582
3583EOF
3584	  fi ;;
3585	esac
3586      fi
3587      break
3588    fi
3589  done
3590  IFS="$ac_save_ifs"
3591  MAGIC_CMD="$ac_save_MAGIC_CMD"
3592  ;;
3593esac
3594fi
3595
3596MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3597if test -n "$MAGIC_CMD"; then
3598  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3599echo "${ECHO_T}$MAGIC_CMD" >&6
3600else
3601  echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6
3603fi
3604
3605if test -z "$lt_cv_path_MAGIC_CMD"; then
3606  if test -n "$ac_tool_prefix"; then
3607    echo "$as_me:$LINENO: checking for file" >&5
3608echo $ECHO_N "checking for file... $ECHO_C" >&6
3609if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3610  echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612  case $MAGIC_CMD in
3613  /*)
3614  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3615  ;;
3616  ?:/*)
3617  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3618  ;;
3619  *)
3620  ac_save_MAGIC_CMD="$MAGIC_CMD"
3621  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3622  ac_dummy="/usr/bin:$PATH"
3623  for ac_dir in $ac_dummy; do
3624    test -z "$ac_dir" && ac_dir=.
3625    if test -f $ac_dir/file; then
3626      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3627      if test -n "$file_magic_test_file"; then
3628	case $deplibs_check_method in
3629	"file_magic "*)
3630	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3631	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3632	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3633	    egrep "$file_magic_regex" > /dev/null; then
3634	    :
3635	  else
3636	    cat <<EOF 1>&2
3637
3638*** Warning: the command libtool uses to detect shared libraries,
3639*** $file_magic_cmd, produces output that libtool cannot recognize.
3640*** The result is that libtool may fail to recognize shared libraries
3641*** as such.  This will affect the creation of libtool libraries that
3642*** depend on shared libraries, but programs linked with such libtool
3643*** libraries will work regardless of this problem.  Nevertheless, you
3644*** may want to report the problem to your system manager and/or to
3645*** bug-libtool@gnu.org
3646
3647EOF
3648	  fi ;;
3649	esac
3650      fi
3651      break
3652    fi
3653  done
3654  IFS="$ac_save_ifs"
3655  MAGIC_CMD="$ac_save_MAGIC_CMD"
3656  ;;
3657esac
3658fi
3659
3660MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3661if test -n "$MAGIC_CMD"; then
3662  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3663echo "${ECHO_T}$MAGIC_CMD" >&6
3664else
3665  echo "$as_me:$LINENO: result: no" >&5
3666echo "${ECHO_T}no" >&6
3667fi
3668
3669  else
3670    MAGIC_CMD=:
3671  fi
3672fi
3673
3674  fi
3675  ;;
3676esac
3677
3678if test -n "$ac_tool_prefix"; then
3679  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3681echo "$as_me:$LINENO: checking for $ac_word" >&5
3682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683if test "${ac_cv_prog_RANLIB+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  if test -n "$RANLIB"; then
3687  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692  IFS=$as_save_IFS
3693  test -z "$as_dir" && as_dir=.
3694  for ac_exec_ext in '' $ac_executable_extensions; do
3695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698    break 2
3699  fi
3700done
3701done
3702
3703fi
3704fi
3705RANLIB=$ac_cv_prog_RANLIB
3706if test -n "$RANLIB"; then
3707  echo "$as_me:$LINENO: result: $RANLIB" >&5
3708echo "${ECHO_T}$RANLIB" >&6
3709else
3710  echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712fi
3713
3714fi
3715if test -z "$ac_cv_prog_RANLIB"; then
3716  ac_ct_RANLIB=$RANLIB
3717  # Extract the first word of "ranlib", so it can be a program name with args.
3718set dummy ranlib; ac_word=$2
3719echo "$as_me:$LINENO: checking for $ac_word" >&5
3720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3722  echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724  if test -n "$ac_ct_RANLIB"; then
3725  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3726else
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730  IFS=$as_save_IFS
3731  test -z "$as_dir" && as_dir=.
3732  for ac_exec_ext in '' $ac_executable_extensions; do
3733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734    ac_cv_prog_ac_ct_RANLIB="ranlib"
3735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736    break 2
3737  fi
3738done
3739done
3740
3741  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3742fi
3743fi
3744ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3745if test -n "$ac_ct_RANLIB"; then
3746  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3747echo "${ECHO_T}$ac_ct_RANLIB" >&6
3748else
3749  echo "$as_me:$LINENO: result: no" >&5
3750echo "${ECHO_T}no" >&6
3751fi
3752
3753  RANLIB=$ac_ct_RANLIB
3754else
3755  RANLIB="$ac_cv_prog_RANLIB"
3756fi
3757
3758if test -n "$ac_tool_prefix"; then
3759  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3760set dummy ${ac_tool_prefix}strip; ac_word=$2
3761echo "$as_me:$LINENO: checking for $ac_word" >&5
3762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763if test "${ac_cv_prog_STRIP+set}" = set; then
3764  echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766  if test -n "$STRIP"; then
3767  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772  IFS=$as_save_IFS
3773  test -z "$as_dir" && as_dir=.
3774  for ac_exec_ext in '' $ac_executable_extensions; do
3775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778    break 2
3779  fi
3780done
3781done
3782
3783fi
3784fi
3785STRIP=$ac_cv_prog_STRIP
3786if test -n "$STRIP"; then
3787  echo "$as_me:$LINENO: result: $STRIP" >&5
3788echo "${ECHO_T}$STRIP" >&6
3789else
3790  echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6
3792fi
3793
3794fi
3795if test -z "$ac_cv_prog_STRIP"; then
3796  ac_ct_STRIP=$STRIP
3797  # Extract the first word of "strip", so it can be a program name with args.
3798set dummy strip; ac_word=$2
3799echo "$as_me:$LINENO: checking for $ac_word" >&5
3800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804  if test -n "$ac_ct_STRIP"; then
3805  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810  IFS=$as_save_IFS
3811  test -z "$as_dir" && as_dir=.
3812  for ac_exec_ext in '' $ac_executable_extensions; do
3813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814    ac_cv_prog_ac_ct_STRIP="strip"
3815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816    break 2
3817  fi
3818done
3819done
3820
3821  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3822fi
3823fi
3824ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3825if test -n "$ac_ct_STRIP"; then
3826  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3827echo "${ECHO_T}$ac_ct_STRIP" >&6
3828else
3829  echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
3831fi
3832
3833  STRIP=$ac_ct_STRIP
3834else
3835  STRIP="$ac_cv_prog_STRIP"
3836fi
3837
3838
3839# Check for any special flags to pass to ltconfig.
3840libtool_flags="--cache-file=$cache_file"
3841test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3842test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3843test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3844test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3845test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3846
3847
3848# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3849if test "${enable_libtool_lock+set}" = set; then
3850  enableval="$enable_libtool_lock"
3851
3852fi;
3853test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3854test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3855
3856
3857# Check whether --with-pic or --without-pic was given.
3858if test "${with_pic+set}" = set; then
3859  withval="$with_pic"
3860  pic_mode="$withval"
3861else
3862  pic_mode=default
3863fi;
3864test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3865test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3866
3867# Some flags need to be propagated to the compiler or linker for good
3868# libtool support.
3869case $host in
3870*-*-irix6*)
3871  # Find out which ABI we are using.
3872  echo '#line 3872 "configure"' > conftest.$ac_ext
3873  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874  (eval $ac_compile) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; then
3878   if test "$lt_cv_prog_gnu_ld" = yes; then
3879    case `/usr/bin/file conftest.$ac_objext` in
3880    *32-bit*)
3881      LD="${LD-ld} -melf32bsmip"
3882      ;;
3883    *N32*)
3884      LD="${LD-ld} -melf32bmipn32"
3885      ;;
3886    *64-bit*)
3887      LD="${LD-ld} -melf64bmip"
3888      ;;
3889    esac
3890   else
3891    case `/usr/bin/file conftest.$ac_objext` in
3892    *32-bit*)
3893      LD="${LD-ld} -32"
3894      ;;
3895    *N32*)
3896      LD="${LD-ld} -n32"
3897      ;;
3898    *64-bit*)
3899      LD="${LD-ld} -64"
3900      ;;
3901    esac
3902   fi
3903  fi
3904  rm -rf conftest*
3905  ;;
3906
3907ia64-*-hpux*)
3908  # Find out which ABI we are using.
3909  echo 'int i;' > conftest.$ac_ext
3910  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911  (eval $ac_compile) 2>&5
3912  ac_status=$?
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); }; then
3915    case "`/usr/bin/file conftest.o`" in
3916    *ELF-32*)
3917      HPUX_IA64_MODE="32"
3918      ;;
3919    *ELF-64*)
3920      HPUX_IA64_MODE="64"
3921      ;;
3922    esac
3923  fi
3924  rm -rf conftest*
3925  ;;
3926
3927x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3928  # Find out which ABI we are using.
3929  echo 'int i;' > conftest.$ac_ext
3930  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931  (eval $ac_compile) 2>&5
3932  ac_status=$?
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); }; then
3935    case "`/usr/bin/file conftest.o`" in
3936    *32-bit*)
3937      case $host in
3938        x86_64-*linux*)
3939          LD="${LD-ld} -m elf_i386"
3940          ;;
3941        ppc64-*linux*|powerpc64-*linux*)
3942          LD="${LD-ld} -m elf32ppclinux"
3943          ;;
3944        s390x-*linux*)
3945          LD="${LD-ld} -m elf_s390"
3946          ;;
3947        sparc64-*linux*)
3948          LD="${LD-ld} -m elf32_sparc"
3949          ;;
3950      esac
3951      ;;
3952    *64-bit*)
3953      case $host in
3954        x86_64-*linux*)
3955          LD="${LD-ld} -m elf_x86_64"
3956          ;;
3957        ppc*-*linux*|powerpc*-*linux*)
3958          LD="${LD-ld} -m elf64ppc"
3959          ;;
3960        s390*-*linux*)
3961          LD="${LD-ld} -m elf64_s390"
3962          ;;
3963        sparc*-*linux*)
3964          LD="${LD-ld} -m elf64_sparc"
3965          ;;
3966      esac
3967      ;;
3968    esac
3969  fi
3970  rm -rf conftest*
3971  ;;
3972
3973*-*-sco3.2v5*)
3974  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3975  SAVE_CFLAGS="$CFLAGS"
3976  CFLAGS="$CFLAGS -belf"
3977  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3978echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3979if test "${lt_cv_cc_needs_belf+set}" = set; then
3980  echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982
3983
3984     ac_ext=c
3985ac_cpp='$CPP $CPPFLAGS'
3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989
3990     cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h.  */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h.  */
3996
3997int
3998main ()
3999{
4000
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005rm -f conftest.$ac_objext conftest$ac_exeext
4006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007  (eval $ac_link) 2>conftest.er1
4008  ac_status=$?
4009  grep -v '^ *+' conftest.er1 >conftest.err
4010  rm -f conftest.er1
4011  cat conftest.err >&5
4012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013  (exit $ac_status); } &&
4014	 { ac_try='test -z "$ac_c_werror_flag"
4015			 || test ! -s conftest.err'
4016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017  (eval $ac_try) 2>&5
4018  ac_status=$?
4019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020  (exit $ac_status); }; } &&
4021	 { ac_try='test -s conftest$ac_exeext'
4022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023  (eval $ac_try) 2>&5
4024  ac_status=$?
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); }; }; then
4027  lt_cv_cc_needs_belf=yes
4028else
4029  echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032lt_cv_cc_needs_belf=no
4033fi
4034rm -f conftest.err conftest.$ac_objext \
4035      conftest$ac_exeext conftest.$ac_ext
4036     ac_ext=c
4037ac_cpp='$CPP $CPPFLAGS'
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042fi
4043echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4044echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4045  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4046    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4047    CFLAGS="$SAVE_CFLAGS"
4048  fi
4049  ;;
4050
4051
4052esac
4053
4054
4055# Save cache, so that ltconfig can load it
4056cat >confcache <<\_ACEOF
4057# This file is a shell script that caches the results of configure
4058# tests run on this system so they can be shared between configure
4059# scripts and configure runs, see configure's option --config-cache.
4060# It is not useful on other systems.  If it contains results you don't
4061# want to keep, you may remove or edit it.
4062#
4063# config.status only pays attention to the cache file if you give it
4064# the --recheck option to rerun configure.
4065#
4066# `ac_cv_env_foo' variables (set or unset) will be overridden when
4067# loading this file, other *unset* `ac_cv_foo' will be assigned the
4068# following values.
4069
4070_ACEOF
4071
4072# The following way of writing the cache mishandles newlines in values,
4073# but we know of no workaround that is simple, portable, and efficient.
4074# So, don't put newlines in cache variables' values.
4075# Ultrix sh set writes to stderr and can't be redirected directly,
4076# and sets the high bit in the cache file unless we assign to the vars.
4077{
4078  (set) 2>&1 |
4079    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4080    *ac_space=\ *)
4081      # `set' does not quote correctly, so add quotes (double-quote
4082      # substitution turns \\\\ into \\, and sed turns \\ into \).
4083      sed -n \
4084	"s/'/'\\\\''/g;
4085	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4086      ;;
4087    *)
4088      # `set' quotes correctly as required by POSIX, so do not add quotes.
4089      sed -n \
4090	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4091      ;;
4092    esac;
4093} |
4094  sed '
4095     t clear
4096     : clear
4097     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4098     t end
4099     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4100     : end' >>confcache
4101if diff $cache_file confcache >/dev/null 2>&1; then :; else
4102  if test -w $cache_file; then
4103    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4104    cat confcache >$cache_file
4105  else
4106    echo "not updating unwritable cache $cache_file"
4107  fi
4108fi
4109rm -f confcache
4110
4111# Actually configure libtool.  ac_aux_dir is where install-sh is found.
4112AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4113MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4114LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4115AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4116objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4117deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4118${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4119$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4120|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4121echo "$as_me: error: libtool configure failed" >&2;}
4122   { (exit 1); exit 1; }; }
4123
4124# Reload cache, that may have been modified by ltconfig
4125if test -r "$cache_file"; then
4126  # Some versions of bash will fail to source /dev/null (special
4127  # files actually), so we avoid doing that.
4128  if test -f "$cache_file"; then
4129    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4130echo "$as_me: loading cache $cache_file" >&6;}
4131    case $cache_file in
4132      [\\/]* | ?:[\\/]* ) . $cache_file;;
4133      *)                      . ./$cache_file;;
4134    esac
4135  fi
4136else
4137  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4138echo "$as_me: creating cache $cache_file" >&6;}
4139  >$cache_file
4140fi
4141
4142
4143# This can be used to rebuild libtool when needed
4144LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4145
4146# Always use our own libtool.
4147LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4148
4149# Redirect the config.log output again, so that the ltconfig log is not
4150# clobbered by the next message.
4151exec 5>>./config.log
4152
4153
4154
4155
4156
4157
4158
4159
4160# Check whether --with-lib-path or --without-lib-path was given.
4161if test "${with_lib_path+set}" = set; then
4162  withval="$with_lib_path"
4163  LIB_PATH=$withval
4164fi;
4165# Check whether --enable-targets or --disable-targets was given.
4166if test "${enable_targets+set}" = set; then
4167  enableval="$enable_targets"
4168  case "${enableval}" in
4169  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4170echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4171   { (exit 1); exit 1; }; }
4172            ;;
4173  no)       enable_targets= ;;
4174  *)        enable_targets=$enableval ;;
4175esac
4176fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4177if test "${enable_64_bit_bfd+set}" = set; then
4178  enableval="$enable_64_bit_bfd"
4179  case "${enableval}" in
4180  yes)  want64=true  ;;
4181  no)   want64=false ;;
4182  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4183echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4184   { (exit 1); exit 1; }; } ;;
4185esac
4186else
4187  want64=false
4188fi;
4189
4190# Check whether --with-sysroot or --without-sysroot was given.
4191if test "${with_sysroot+set}" = set; then
4192  withval="$with_sysroot"
4193
4194 case ${with_sysroot} in
4195 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4196 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4197 esac
4198
4199 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4200 use_sysroot=yes
4201
4202 if test "x$exec_prefix" = xNONE; then
4203  if test "x$prefix" = xNONE; then
4204   test_prefix=/usr/local
4205  else
4206   test_prefix=$prefix
4207  fi
4208 else
4209  test_prefix=$exec_prefix
4210 fi
4211 case ${TARGET_SYSTEM_ROOT} in
4212 "${test_prefix}"|"${test_prefix}/"*|\
4213 '${exec_prefix}'|'${exec_prefix}/'*)
4214   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4215   TARGET_SYSTEM_ROOT_DEFINE="$t"
4216   ;;
4217 esac
4218
4219else
4220
4221 use_sysroot=no
4222 TARGET_SYSTEM_ROOT=
4223 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4224
4225fi;
4226
4227
4228
4229
4230
4231GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4232if cc -v 2>&1 | grep "OpenBSD clang version"; then
4233	GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-null-pointer-arithmetic"
4234fi
4235
4236# Check whether --enable-werror or --disable-werror was given.
4237if test "${enable_werror+set}" = set; then
4238  enableval="$enable_werror"
4239  case "${enableval}" in
4240     yes | y) ERROR_ON_WARNING="yes" ;;
4241     no | n)  ERROR_ON_WARNING="no" ;;
4242     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4243echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4244   { (exit 1); exit 1; }; } ;;
4245   esac
4246fi;
4247
4248# Enable -Werror by default when using gcc
4249if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4250    ERROR_ON_WARNING=yes
4251fi
4252
4253NO_WERROR=
4254if test "${ERROR_ON_WARNING}" = yes ; then
4255    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4256    NO_WERROR="-Wno-error"
4257fi
4258
4259if test "${GCC}" = yes ; then
4260  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4261fi
4262
4263# Check whether --enable-build-warnings or --disable-build-warnings was given.
4264if test "${enable_build_warnings+set}" = set; then
4265  enableval="$enable_build_warnings"
4266  case "${enableval}" in
4267  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4268  no)	if test "${GCC}" = yes ; then
4269	  WARN_CFLAGS="-w"
4270	fi;;
4271  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4272        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4273  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4274        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4275  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4276esac
4277fi;
4278
4279if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4280  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4281fi
4282
4283
4284
4285
4286
4287          ac_config_headers="$ac_config_headers config.h:config.in"
4288
4289
4290if test -z "$target" ; then
4291    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4292echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4293   { (exit 1); exit 1; }; }
4294fi
4295if test -z "$host" ; then
4296    { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4297echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4298   { (exit 1); exit 1; }; }
4299fi
4300
4301# host-specific stuff:
4302
4303ac_ext=c
4304ac_cpp='$CPP $CPPFLAGS'
4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308if test -n "$ac_tool_prefix"; then
4309  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4310set dummy ${ac_tool_prefix}gcc; ac_word=$2
4311echo "$as_me:$LINENO: checking for $ac_word" >&5
4312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313if test "${ac_cv_prog_CC+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  if test -n "$CC"; then
4317  ac_cv_prog_CC="$CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322  IFS=$as_save_IFS
4323  test -z "$as_dir" && as_dir=.
4324  for ac_exec_ext in '' $ac_executable_extensions; do
4325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328    break 2
4329  fi
4330done
4331done
4332
4333fi
4334fi
4335CC=$ac_cv_prog_CC
4336if test -n "$CC"; then
4337  echo "$as_me:$LINENO: result: $CC" >&5
4338echo "${ECHO_T}$CC" >&6
4339else
4340  echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
4342fi
4343
4344fi
4345if test -z "$ac_cv_prog_CC"; then
4346  ac_ct_CC=$CC
4347  # Extract the first word of "gcc", so it can be a program name with args.
4348set dummy gcc; ac_word=$2
4349echo "$as_me:$LINENO: checking for $ac_word" >&5
4350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  if test -n "$ac_ct_CC"; then
4355  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362  for ac_exec_ext in '' $ac_executable_extensions; do
4363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364    ac_cv_prog_ac_ct_CC="gcc"
4365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366    break 2
4367  fi
4368done
4369done
4370
4371fi
4372fi
4373ac_ct_CC=$ac_cv_prog_ac_ct_CC
4374if test -n "$ac_ct_CC"; then
4375  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4376echo "${ECHO_T}$ac_ct_CC" >&6
4377else
4378  echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6
4380fi
4381
4382  CC=$ac_ct_CC
4383else
4384  CC="$ac_cv_prog_CC"
4385fi
4386
4387if test -z "$CC"; then
4388  if test -n "$ac_tool_prefix"; then
4389  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4390set dummy ${ac_tool_prefix}cc; ac_word=$2
4391echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393if test "${ac_cv_prog_CC+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  if test -n "$CC"; then
4397  ac_cv_prog_CC="$CC" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402  IFS=$as_save_IFS
4403  test -z "$as_dir" && as_dir=.
4404  for ac_exec_ext in '' $ac_executable_extensions; do
4405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406    ac_cv_prog_CC="${ac_tool_prefix}cc"
4407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408    break 2
4409  fi
4410done
4411done
4412
4413fi
4414fi
4415CC=$ac_cv_prog_CC
4416if test -n "$CC"; then
4417  echo "$as_me:$LINENO: result: $CC" >&5
4418echo "${ECHO_T}$CC" >&6
4419else
4420  echo "$as_me:$LINENO: result: no" >&5
4421echo "${ECHO_T}no" >&6
4422fi
4423
4424fi
4425if test -z "$ac_cv_prog_CC"; then
4426  ac_ct_CC=$CC
4427  # Extract the first word of "cc", so it can be a program name with args.
4428set dummy cc; ac_word=$2
4429echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4432  echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434  if test -n "$ac_ct_CC"; then
4435  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440  IFS=$as_save_IFS
4441  test -z "$as_dir" && as_dir=.
4442  for ac_exec_ext in '' $ac_executable_extensions; do
4443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444    ac_cv_prog_ac_ct_CC="cc"
4445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446    break 2
4447  fi
4448done
4449done
4450
4451fi
4452fi
4453ac_ct_CC=$ac_cv_prog_ac_ct_CC
4454if test -n "$ac_ct_CC"; then
4455  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4456echo "${ECHO_T}$ac_ct_CC" >&6
4457else
4458  echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
4460fi
4461
4462  CC=$ac_ct_CC
4463else
4464  CC="$ac_cv_prog_CC"
4465fi
4466
4467fi
4468if test -z "$CC"; then
4469  # Extract the first word of "cc", so it can be a program name with args.
4470set dummy cc; ac_word=$2
4471echo "$as_me:$LINENO: checking for $ac_word" >&5
4472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473if test "${ac_cv_prog_CC+set}" = set; then
4474  echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476  if test -n "$CC"; then
4477  ac_cv_prog_CC="$CC" # Let the user override the test.
4478else
4479  ac_prog_rejected=no
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483  IFS=$as_save_IFS
4484  test -z "$as_dir" && as_dir=.
4485  for ac_exec_ext in '' $ac_executable_extensions; do
4486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4488       ac_prog_rejected=yes
4489       continue
4490     fi
4491    ac_cv_prog_CC="cc"
4492    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493    break 2
4494  fi
4495done
4496done
4497
4498if test $ac_prog_rejected = yes; then
4499  # We found a bogon in the path, so make sure we never use it.
4500  set dummy $ac_cv_prog_CC
4501  shift
4502  if test $# != 0; then
4503    # We chose a different compiler from the bogus one.
4504    # However, it has the same basename, so the bogon will be chosen
4505    # first if we set CC to just the basename; use the full file name.
4506    shift
4507    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4508  fi
4509fi
4510fi
4511fi
4512CC=$ac_cv_prog_CC
4513if test -n "$CC"; then
4514  echo "$as_me:$LINENO: result: $CC" >&5
4515echo "${ECHO_T}$CC" >&6
4516else
4517  echo "$as_me:$LINENO: result: no" >&5
4518echo "${ECHO_T}no" >&6
4519fi
4520
4521fi
4522if test -z "$CC"; then
4523  if test -n "$ac_tool_prefix"; then
4524  for ac_prog in cl
4525  do
4526    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530if test "${ac_cv_prog_CC+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  if test -n "$CC"; then
4534  ac_cv_prog_CC="$CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541  for ac_exec_ext in '' $ac_executable_extensions; do
4542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548done
4549
4550fi
4551fi
4552CC=$ac_cv_prog_CC
4553if test -n "$CC"; then
4554  echo "$as_me:$LINENO: result: $CC" >&5
4555echo "${ECHO_T}$CC" >&6
4556else
4557  echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
4559fi
4560
4561    test -n "$CC" && break
4562  done
4563fi
4564if test -z "$CC"; then
4565  ac_ct_CC=$CC
4566  for ac_prog in cl
4567do
4568  # Extract the first word of "$ac_prog", so it can be a program name with args.
4569set dummy $ac_prog; ac_word=$2
4570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  if test -n "$ac_ct_CC"; then
4576  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581  IFS=$as_save_IFS
4582  test -z "$as_dir" && as_dir=.
4583  for ac_exec_ext in '' $ac_executable_extensions; do
4584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585    ac_cv_prog_ac_ct_CC="$ac_prog"
4586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587    break 2
4588  fi
4589done
4590done
4591
4592fi
4593fi
4594ac_ct_CC=$ac_cv_prog_ac_ct_CC
4595if test -n "$ac_ct_CC"; then
4596  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4597echo "${ECHO_T}$ac_ct_CC" >&6
4598else
4599  echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6
4601fi
4602
4603  test -n "$ac_ct_CC" && break
4604done
4605
4606  CC=$ac_ct_CC
4607fi
4608
4609fi
4610
4611
4612test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4613See \`config.log' for more details." >&5
4614echo "$as_me: error: no acceptable C compiler found in \$PATH
4615See \`config.log' for more details." >&2;}
4616   { (exit 1); exit 1; }; }
4617
4618# Provide some information about the compiler.
4619echo "$as_me:$LINENO:" \
4620     "checking for C compiler version" >&5
4621ac_compiler=`set X $ac_compile; echo $2`
4622{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4623  (eval $ac_compiler --version </dev/null >&5) 2>&5
4624  ac_status=$?
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); }
4627{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4628  (eval $ac_compiler -v </dev/null >&5) 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }
4632{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4633  (eval $ac_compiler -V </dev/null >&5) 2>&5
4634  ac_status=$?
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); }
4637
4638echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4639echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4640if test "${ac_cv_c_compiler_gnu+set}" = set; then
4641  echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643  cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h.  */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h.  */
4649
4650int
4651main ()
4652{
4653#ifndef __GNUC__
4654       choke me
4655#endif
4656
4657  ;
4658  return 0;
4659}
4660_ACEOF
4661rm -f conftest.$ac_objext
4662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663  (eval $ac_compile) 2>conftest.er1
4664  ac_status=$?
4665  grep -v '^ *+' conftest.er1 >conftest.err
4666  rm -f conftest.er1
4667  cat conftest.err >&5
4668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669  (exit $ac_status); } &&
4670	 { ac_try='test -z "$ac_c_werror_flag"
4671			 || test ! -s conftest.err'
4672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673  (eval $ac_try) 2>&5
4674  ac_status=$?
4675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676  (exit $ac_status); }; } &&
4677	 { ac_try='test -s conftest.$ac_objext'
4678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679  (eval $ac_try) 2>&5
4680  ac_status=$?
4681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682  (exit $ac_status); }; }; then
4683  ac_compiler_gnu=yes
4684else
4685  echo "$as_me: failed program was:" >&5
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
4688ac_compiler_gnu=no
4689fi
4690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691ac_cv_c_compiler_gnu=$ac_compiler_gnu
4692
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4695echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4696GCC=`test $ac_compiler_gnu = yes && echo yes`
4697ac_test_CFLAGS=${CFLAGS+set}
4698ac_save_CFLAGS=$CFLAGS
4699CFLAGS="-g"
4700echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4701echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4702if test "${ac_cv_prog_cc_g+set}" = set; then
4703  echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705  cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h.  */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h.  */
4711
4712int
4713main ()
4714{
4715
4716  ;
4717  return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext
4721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722  (eval $ac_compile) 2>conftest.er1
4723  ac_status=$?
4724  grep -v '^ *+' conftest.er1 >conftest.err
4725  rm -f conftest.er1
4726  cat conftest.err >&5
4727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728  (exit $ac_status); } &&
4729	 { ac_try='test -z "$ac_c_werror_flag"
4730			 || test ! -s conftest.err'
4731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732  (eval $ac_try) 2>&5
4733  ac_status=$?
4734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735  (exit $ac_status); }; } &&
4736	 { ac_try='test -s conftest.$ac_objext'
4737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738  (eval $ac_try) 2>&5
4739  ac_status=$?
4740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741  (exit $ac_status); }; }; then
4742  ac_cv_prog_cc_g=yes
4743else
4744  echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5
4746
4747ac_cv_prog_cc_g=no
4748fi
4749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750fi
4751echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4752echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4753if test "$ac_test_CFLAGS" = set; then
4754  CFLAGS=$ac_save_CFLAGS
4755elif test $ac_cv_prog_cc_g = yes; then
4756  if test "$GCC" = yes; then
4757    CFLAGS="-g -O2"
4758  else
4759    CFLAGS="-g"
4760  fi
4761else
4762  if test "$GCC" = yes; then
4763    CFLAGS="-O2"
4764  else
4765    CFLAGS=
4766  fi
4767fi
4768echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4769echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4770if test "${ac_cv_prog_cc_stdc+set}" = set; then
4771  echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
4773  ac_cv_prog_cc_stdc=no
4774ac_save_CC=$CC
4775cat >conftest.$ac_ext <<_ACEOF
4776/* confdefs.h.  */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h.  */
4781#include <stdarg.h>
4782#include <stdio.h>
4783#include <sys/types.h>
4784#include <sys/stat.h>
4785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4786struct buf { int x; };
4787FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788static char *e (p, i)
4789     char **p;
4790     int i;
4791{
4792  return p[i];
4793}
4794static char *f (char * (*g) (char **, int), char **p, ...)
4795{
4796  char *s;
4797  va_list v;
4798  va_start (v,p);
4799  s = g (p, va_arg (v,int));
4800  va_end (v);
4801  return s;
4802}
4803
4804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4805   function prototypes and stuff, but not '\xHH' hex character constants.
4806   These don't provoke an error unfortunately, instead are silently treated
4807   as 'x'.  The following induces an error, until -std1 is added to get
4808   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4809   array size at least.  It's necessary to write '\x00'==0 to get something
4810   that's true only with -std1.  */
4811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812
4813int test (int i, double x);
4814struct s1 {int (*f) (int a);};
4815struct s2 {int (*f) (double a);};
4816int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4817int argc;
4818char **argv;
4819int
4820main ()
4821{
4822return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4823  ;
4824  return 0;
4825}
4826_ACEOF
4827# Don't try gcc -ansi; that turns off useful extensions and
4828# breaks some systems' header files.
4829# AIX			-qlanglvl=ansi
4830# Ultrix and OSF/1	-std1
4831# HP-UX 10.20 and later	-Ae
4832# HP-UX older versions	-Aa -D_HPUX_SOURCE
4833# SVR4			-Xc -D__EXTENSIONS__
4834for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4835do
4836  CC="$ac_save_CC $ac_arg"
4837  rm -f conftest.$ac_objext
4838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839  (eval $ac_compile) 2>conftest.er1
4840  ac_status=$?
4841  grep -v '^ *+' conftest.er1 >conftest.err
4842  rm -f conftest.er1
4843  cat conftest.err >&5
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); } &&
4846	 { ac_try='test -z "$ac_c_werror_flag"
4847			 || test ! -s conftest.err'
4848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849  (eval $ac_try) 2>&5
4850  ac_status=$?
4851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852  (exit $ac_status); }; } &&
4853	 { ac_try='test -s conftest.$ac_objext'
4854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855  (eval $ac_try) 2>&5
4856  ac_status=$?
4857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858  (exit $ac_status); }; }; then
4859  ac_cv_prog_cc_stdc=$ac_arg
4860break
4861else
4862  echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865fi
4866rm -f conftest.err conftest.$ac_objext
4867done
4868rm -f conftest.$ac_ext conftest.$ac_objext
4869CC=$ac_save_CC
4870
4871fi
4872
4873case "x$ac_cv_prog_cc_stdc" in
4874  x|xno)
4875    echo "$as_me:$LINENO: result: none needed" >&5
4876echo "${ECHO_T}none needed" >&6 ;;
4877  *)
4878    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4879echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4880    CC="$CC $ac_cv_prog_cc_stdc" ;;
4881esac
4882
4883# Some people use a C++ compiler to compile C.  Since we use `exit',
4884# in C++ we need to declare it.  In case someone uses the same compiler
4885# for both compiling C and C++ we need to have the C++ compiler decide
4886# the declaration of exit, since it's the most demanding environment.
4887cat >conftest.$ac_ext <<_ACEOF
4888#ifndef __cplusplus
4889  choke me
4890#endif
4891_ACEOF
4892rm -f conftest.$ac_objext
4893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894  (eval $ac_compile) 2>conftest.er1
4895  ac_status=$?
4896  grep -v '^ *+' conftest.er1 >conftest.err
4897  rm -f conftest.er1
4898  cat conftest.err >&5
4899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900  (exit $ac_status); } &&
4901	 { ac_try='test -z "$ac_c_werror_flag"
4902			 || test ! -s conftest.err'
4903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904  (eval $ac_try) 2>&5
4905  ac_status=$?
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); }; } &&
4908	 { ac_try='test -s conftest.$ac_objext'
4909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910  (eval $ac_try) 2>&5
4911  ac_status=$?
4912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913  (exit $ac_status); }; }; then
4914  for ac_declaration in \
4915   '' \
4916   'extern "C" void std::exit (int) throw (); using std::exit;' \
4917   'extern "C" void std::exit (int); using std::exit;' \
4918   'extern "C" void exit (int) throw ();' \
4919   'extern "C" void exit (int);' \
4920   'void exit (int);'
4921do
4922  cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928$ac_declaration
4929#include <stdlib.h>
4930int
4931main ()
4932{
4933exit (42);
4934  ;
4935  return 0;
4936}
4937_ACEOF
4938rm -f conftest.$ac_objext
4939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940  (eval $ac_compile) 2>conftest.er1
4941  ac_status=$?
4942  grep -v '^ *+' conftest.er1 >conftest.err
4943  rm -f conftest.er1
4944  cat conftest.err >&5
4945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); } &&
4947	 { ac_try='test -z "$ac_c_werror_flag"
4948			 || test ! -s conftest.err'
4949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950  (eval $ac_try) 2>&5
4951  ac_status=$?
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); }; } &&
4954	 { ac_try='test -s conftest.$ac_objext'
4955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956  (eval $ac_try) 2>&5
4957  ac_status=$?
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); }; }; then
4960  :
4961else
4962  echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965continue
4966fi
4967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4968  cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h.  */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h.  */
4974$ac_declaration
4975int
4976main ()
4977{
4978exit (42);
4979  ;
4980  return 0;
4981}
4982_ACEOF
4983rm -f conftest.$ac_objext
4984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985  (eval $ac_compile) 2>conftest.er1
4986  ac_status=$?
4987  grep -v '^ *+' conftest.er1 >conftest.err
4988  rm -f conftest.er1
4989  cat conftest.err >&5
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); } &&
4992	 { ac_try='test -z "$ac_c_werror_flag"
4993			 || test ! -s conftest.err'
4994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995  (eval $ac_try) 2>&5
4996  ac_status=$?
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); }; } &&
4999	 { ac_try='test -s conftest.$ac_objext'
5000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001  (eval $ac_try) 2>&5
5002  ac_status=$?
5003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); }; }; then
5005  break
5006else
5007  echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010fi
5011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012done
5013rm -f conftest*
5014if test -n "$ac_declaration"; then
5015  echo '#ifdef __cplusplus' >>confdefs.h
5016  echo $ac_declaration      >>confdefs.h
5017  echo '#endif'             >>confdefs.h
5018fi
5019
5020else
5021  echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024fi
5025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026ac_ext=c
5027ac_cpp='$CPP $CPPFLAGS'
5028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
5032# Find a good install program.  We prefer a C program (faster),
5033# so one script is as good as another.  But avoid the broken or
5034# incompatible versions:
5035# SysV /etc/install, /usr/sbin/install
5036# SunOS /usr/etc/install
5037# IRIX /sbin/install
5038# AIX /bin/install
5039# AmigaOS /C/install, which installs bootblocks on floppy discs
5040# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5041# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5042# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5043# OS/2's system install, which has a completely different semantic
5044# ./install, which can be erroneously created by make from ./install.sh.
5045echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5046echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5047if test -z "$INSTALL"; then
5048if test "${ac_cv_path_install+set}" = set; then
5049  echo $ECHO_N "(cached) $ECHO_C" >&6
5050else
5051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054  IFS=$as_save_IFS
5055  test -z "$as_dir" && as_dir=.
5056  # Account for people who put trailing slashes in PATH elements.
5057case $as_dir/ in
5058  ./ | .// | /cC/* | \
5059  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5060  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5061  /usr/ucb/* ) ;;
5062  *)
5063    # OSF1 and SCO ODT 3.0 have their own names for install.
5064    # Don't use installbsd from OSF since it installs stuff as root
5065    # by default.
5066    for ac_prog in ginstall scoinst install; do
5067      for ac_exec_ext in '' $ac_executable_extensions; do
5068	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5069	  if test $ac_prog = install &&
5070	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5071	    # AIX install.  It has an incompatible calling convention.
5072	    :
5073	  elif test $ac_prog = install &&
5074	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5075	    # program-specific install script used by HP pwplus--don't use.
5076	    :
5077	  else
5078	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5079	    break 3
5080	  fi
5081	fi
5082      done
5083    done
5084    ;;
5085esac
5086done
5087
5088
5089fi
5090  if test "${ac_cv_path_install+set}" = set; then
5091    INSTALL=$ac_cv_path_install
5092  else
5093    # As a last resort, use the slow shell script.  We don't cache a
5094    # path for INSTALL within a source directory, because that will
5095    # break other packages using the cache if that directory is
5096    # removed, or if the path is relative.
5097    INSTALL=$ac_install_sh
5098  fi
5099fi
5100echo "$as_me:$LINENO: result: $INSTALL" >&5
5101echo "${ECHO_T}$INSTALL" >&6
5102
5103# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5104# It thinks the first close brace ends the variable substitution.
5105test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5106
5107test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5108
5109test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5110
5111
5112ALL_LINGUAS="fr sv tr es da vi zh_CN"
5113if test -n "$ac_tool_prefix"; then
5114  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5115set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5116echo "$as_me:$LINENO: checking for $ac_word" >&5
5117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5118if test "${ac_cv_prog_RANLIB+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  if test -n "$RANLIB"; then
5122  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129  for ac_exec_ext in '' $ac_executable_extensions; do
5130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136done
5137
5138fi
5139fi
5140RANLIB=$ac_cv_prog_RANLIB
5141if test -n "$RANLIB"; then
5142  echo "$as_me:$LINENO: result: $RANLIB" >&5
5143echo "${ECHO_T}$RANLIB" >&6
5144else
5145  echo "$as_me:$LINENO: result: no" >&5
5146echo "${ECHO_T}no" >&6
5147fi
5148
5149fi
5150if test -z "$ac_cv_prog_RANLIB"; then
5151  ac_ct_RANLIB=$RANLIB
5152  # Extract the first word of "ranlib", so it can be a program name with args.
5153set dummy ranlib; ac_word=$2
5154echo "$as_me:$LINENO: checking for $ac_word" >&5
5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5157  echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159  if test -n "$ac_ct_RANLIB"; then
5160  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167  for ac_exec_ext in '' $ac_executable_extensions; do
5168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169    ac_cv_prog_ac_ct_RANLIB="ranlib"
5170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171    break 2
5172  fi
5173done
5174done
5175
5176  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5177fi
5178fi
5179ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5180if test -n "$ac_ct_RANLIB"; then
5181  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5182echo "${ECHO_T}$ac_ct_RANLIB" >&6
5183else
5184  echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6
5186fi
5187
5188  RANLIB=$ac_ct_RANLIB
5189else
5190  RANLIB="$ac_cv_prog_RANLIB"
5191fi
5192
5193ac_ext=c
5194ac_cpp='$CPP $CPPFLAGS'
5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5199echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5200# On Suns, sometimes $CPP names a directory.
5201if test -n "$CPP" && test -d "$CPP"; then
5202  CPP=
5203fi
5204if test -z "$CPP"; then
5205  if test "${ac_cv_prog_CPP+set}" = set; then
5206  echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208      # Double quotes because CPP needs to be expanded
5209    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5210    do
5211      ac_preproc_ok=false
5212for ac_c_preproc_warn_flag in '' yes
5213do
5214  # Use a header file that comes with gcc, so configuring glibc
5215  # with a fresh cross-compiler works.
5216  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5217  # <limits.h> exists even on freestanding compilers.
5218  # On the NeXT, cc -E runs the code through the compiler's parser,
5219  # not just through cpp. "Syntax error" is here to catch this case.
5220  cat >conftest.$ac_ext <<_ACEOF
5221/* confdefs.h.  */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h.  */
5226#ifdef __STDC__
5227# include <limits.h>
5228#else
5229# include <assert.h>
5230#endif
5231		     Syntax error
5232_ACEOF
5233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5234  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5235  ac_status=$?
5236  grep -v '^ *+' conftest.er1 >conftest.err
5237  rm -f conftest.er1
5238  cat conftest.err >&5
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); } >/dev/null; then
5241  if test -s conftest.err; then
5242    ac_cpp_err=$ac_c_preproc_warn_flag
5243    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5244  else
5245    ac_cpp_err=
5246  fi
5247else
5248  ac_cpp_err=yes
5249fi
5250if test -z "$ac_cpp_err"; then
5251  :
5252else
5253  echo "$as_me: failed program was:" >&5
5254sed 's/^/| /' conftest.$ac_ext >&5
5255
5256  # Broken: fails on valid input.
5257continue
5258fi
5259rm -f conftest.err conftest.$ac_ext
5260
5261  # OK, works on sane cases.  Now check whether non-existent headers
5262  # can be detected and how.
5263  cat >conftest.$ac_ext <<_ACEOF
5264/* confdefs.h.  */
5265_ACEOF
5266cat confdefs.h >>conftest.$ac_ext
5267cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h.  */
5269#include <ac_nonexistent.h>
5270_ACEOF
5271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5273  ac_status=$?
5274  grep -v '^ *+' conftest.er1 >conftest.err
5275  rm -f conftest.er1
5276  cat conftest.err >&5
5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278  (exit $ac_status); } >/dev/null; then
5279  if test -s conftest.err; then
5280    ac_cpp_err=$ac_c_preproc_warn_flag
5281    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5282  else
5283    ac_cpp_err=
5284  fi
5285else
5286  ac_cpp_err=yes
5287fi
5288if test -z "$ac_cpp_err"; then
5289  # Broken: success on invalid input.
5290continue
5291else
5292  echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
5295  # Passes both tests.
5296ac_preproc_ok=:
5297break
5298fi
5299rm -f conftest.err conftest.$ac_ext
5300
5301done
5302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5303rm -f conftest.err conftest.$ac_ext
5304if $ac_preproc_ok; then
5305  break
5306fi
5307
5308    done
5309    ac_cv_prog_CPP=$CPP
5310
5311fi
5312  CPP=$ac_cv_prog_CPP
5313else
5314  ac_cv_prog_CPP=$CPP
5315fi
5316echo "$as_me:$LINENO: result: $CPP" >&5
5317echo "${ECHO_T}$CPP" >&6
5318ac_preproc_ok=false
5319for ac_c_preproc_warn_flag in '' yes
5320do
5321  # Use a header file that comes with gcc, so configuring glibc
5322  # with a fresh cross-compiler works.
5323  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324  # <limits.h> exists even on freestanding compilers.
5325  # On the NeXT, cc -E runs the code through the compiler's parser,
5326  # not just through cpp. "Syntax error" is here to catch this case.
5327  cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h.  */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h.  */
5333#ifdef __STDC__
5334# include <limits.h>
5335#else
5336# include <assert.h>
5337#endif
5338		     Syntax error
5339_ACEOF
5340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5341  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5342  ac_status=$?
5343  grep -v '^ *+' conftest.er1 >conftest.err
5344  rm -f conftest.er1
5345  cat conftest.err >&5
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); } >/dev/null; then
5348  if test -s conftest.err; then
5349    ac_cpp_err=$ac_c_preproc_warn_flag
5350    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5351  else
5352    ac_cpp_err=
5353  fi
5354else
5355  ac_cpp_err=yes
5356fi
5357if test -z "$ac_cpp_err"; then
5358  :
5359else
5360  echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363  # Broken: fails on valid input.
5364continue
5365fi
5366rm -f conftest.err conftest.$ac_ext
5367
5368  # OK, works on sane cases.  Now check whether non-existent headers
5369  # can be detected and how.
5370  cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376#include <ac_nonexistent.h>
5377_ACEOF
5378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5379  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5380  ac_status=$?
5381  grep -v '^ *+' conftest.er1 >conftest.err
5382  rm -f conftest.er1
5383  cat conftest.err >&5
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); } >/dev/null; then
5386  if test -s conftest.err; then
5387    ac_cpp_err=$ac_c_preproc_warn_flag
5388    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5389  else
5390    ac_cpp_err=
5391  fi
5392else
5393  ac_cpp_err=yes
5394fi
5395if test -z "$ac_cpp_err"; then
5396  # Broken: success on invalid input.
5397continue
5398else
5399  echo "$as_me: failed program was:" >&5
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
5402  # Passes both tests.
5403ac_preproc_ok=:
5404break
5405fi
5406rm -f conftest.err conftest.$ac_ext
5407
5408done
5409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410rm -f conftest.err conftest.$ac_ext
5411if $ac_preproc_ok; then
5412  :
5413else
5414  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5415See \`config.log' for more details." >&5
5416echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5417See \`config.log' for more details." >&2;}
5418   { (exit 1); exit 1; }; }
5419fi
5420
5421ac_ext=c
5422ac_cpp='$CPP $CPPFLAGS'
5423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427
5428echo "$as_me:$LINENO: checking for egrep" >&5
5429echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5430if test "${ac_cv_prog_egrep+set}" = set; then
5431  echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5434    then ac_cv_prog_egrep='grep -E'
5435    else ac_cv_prog_egrep='egrep'
5436    fi
5437fi
5438echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5439echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5440 EGREP=$ac_cv_prog_egrep
5441
5442
5443echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5444echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5445if test "${ac_cv_header_stdc+set}" = set; then
5446  echo $ECHO_N "(cached) $ECHO_C" >&6
5447else
5448  cat >conftest.$ac_ext <<_ACEOF
5449/* confdefs.h.  */
5450_ACEOF
5451cat confdefs.h >>conftest.$ac_ext
5452cat >>conftest.$ac_ext <<_ACEOF
5453/* end confdefs.h.  */
5454#include <stdlib.h>
5455#include <stdarg.h>
5456#include <string.h>
5457#include <float.h>
5458
5459int
5460main ()
5461{
5462
5463  ;
5464  return 0;
5465}
5466_ACEOF
5467rm -f conftest.$ac_objext
5468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469  (eval $ac_compile) 2>conftest.er1
5470  ac_status=$?
5471  grep -v '^ *+' conftest.er1 >conftest.err
5472  rm -f conftest.er1
5473  cat conftest.err >&5
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); } &&
5476	 { ac_try='test -z "$ac_c_werror_flag"
5477			 || test ! -s conftest.err'
5478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479  (eval $ac_try) 2>&5
5480  ac_status=$?
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); }; } &&
5483	 { ac_try='test -s conftest.$ac_objext'
5484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485  (eval $ac_try) 2>&5
5486  ac_status=$?
5487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488  (exit $ac_status); }; }; then
5489  ac_cv_header_stdc=yes
5490else
5491  echo "$as_me: failed program was:" >&5
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
5494ac_cv_header_stdc=no
5495fi
5496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5497
5498if test $ac_cv_header_stdc = yes; then
5499  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5500  cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h.  */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h.  */
5506#include <string.h>
5507
5508_ACEOF
5509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510  $EGREP "memchr" >/dev/null 2>&1; then
5511  :
5512else
5513  ac_cv_header_stdc=no
5514fi
5515rm -f conftest*
5516
5517fi
5518
5519if test $ac_cv_header_stdc = yes; then
5520  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5521  cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h.  */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h.  */
5527#include <stdlib.h>
5528
5529_ACEOF
5530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5531  $EGREP "free" >/dev/null 2>&1; then
5532  :
5533else
5534  ac_cv_header_stdc=no
5535fi
5536rm -f conftest*
5537
5538fi
5539
5540if test $ac_cv_header_stdc = yes; then
5541  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5542  if test "$cross_compiling" = yes; then
5543  :
5544else
5545  cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h.  */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h.  */
5551#include <ctype.h>
5552#if ((' ' & 0x0FF) == 0x020)
5553# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5554# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5555#else
5556# define ISLOWER(c) \
5557		   (('a' <= (c) && (c) <= 'i') \
5558		     || ('j' <= (c) && (c) <= 'r') \
5559		     || ('s' <= (c) && (c) <= 'z'))
5560# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5561#endif
5562
5563#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5564int
5565main ()
5566{
5567  int i;
5568  for (i = 0; i < 256; i++)
5569    if (XOR (islower (i), ISLOWER (i))
5570	|| toupper (i) != TOUPPER (i))
5571      exit(2);
5572  exit (0);
5573}
5574_ACEOF
5575rm -f conftest$ac_exeext
5576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577  (eval $ac_link) 2>&5
5578  ac_status=$?
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582  (eval $ac_try) 2>&5
5583  ac_status=$?
5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585  (exit $ac_status); }; }; then
5586  :
5587else
5588  echo "$as_me: program exited with status $ac_status" >&5
5589echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
5592( exit $ac_status )
5593ac_cv_header_stdc=no
5594fi
5595rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5596fi
5597fi
5598fi
5599echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5600echo "${ECHO_T}$ac_cv_header_stdc" >&6
5601if test $ac_cv_header_stdc = yes; then
5602
5603cat >>confdefs.h <<\_ACEOF
5604#define STDC_HEADERS 1
5605_ACEOF
5606
5607fi
5608
5609echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5610echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5611if test "${ac_cv_c_const+set}" = set; then
5612  echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614  cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h.  */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h.  */
5620
5621int
5622main ()
5623{
5624/* FIXME: Include the comments suggested by Paul. */
5625#ifndef __cplusplus
5626  /* Ultrix mips cc rejects this.  */
5627  typedef int charset[2];
5628  const charset x;
5629  /* SunOS 4.1.1 cc rejects this.  */
5630  char const *const *ccp;
5631  char **p;
5632  /* NEC SVR4.0.2 mips cc rejects this.  */
5633  struct point {int x, y;};
5634  static struct point const zero = {0,0};
5635  /* AIX XL C 1.02.0.0 rejects this.
5636     It does not let you subtract one const X* pointer from another in
5637     an arm of an if-expression whose if-part is not a constant
5638     expression */
5639  const char *g = "string";
5640  ccp = &g + (g ? g-g : 0);
5641  /* HPUX 7.0 cc rejects these. */
5642  ++ccp;
5643  p = (char**) ccp;
5644  ccp = (char const *const *) p;
5645  { /* SCO 3.2v4 cc rejects this.  */
5646    char *t;
5647    char const *s = 0 ? (char *) 0 : (char const *) 0;
5648
5649    *t++ = 0;
5650  }
5651  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5652    int x[] = {25, 17};
5653    const int *foo = &x[0];
5654    ++foo;
5655  }
5656  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5657    typedef const int *iptr;
5658    iptr p = 0;
5659    ++p;
5660  }
5661  { /* AIX XL C 1.02.0.0 rejects this saying
5662       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5663    struct s { int j; const int *ap[3]; };
5664    struct s *b; b->j = 5;
5665  }
5666  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5667    const int foo = 10;
5668  }
5669#endif
5670
5671  ;
5672  return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677  (eval $ac_compile) 2>conftest.er1
5678  ac_status=$?
5679  grep -v '^ *+' conftest.er1 >conftest.err
5680  rm -f conftest.er1
5681  cat conftest.err >&5
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); } &&
5684	 { ac_try='test -z "$ac_c_werror_flag"
5685			 || test ! -s conftest.err'
5686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687  (eval $ac_try) 2>&5
5688  ac_status=$?
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); }; } &&
5691	 { ac_try='test -s conftest.$ac_objext'
5692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693  (eval $ac_try) 2>&5
5694  ac_status=$?
5695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696  (exit $ac_status); }; }; then
5697  ac_cv_c_const=yes
5698else
5699  echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702ac_cv_c_const=no
5703fi
5704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705fi
5706echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5707echo "${ECHO_T}$ac_cv_c_const" >&6
5708if test $ac_cv_c_const = no; then
5709
5710cat >>confdefs.h <<\_ACEOF
5711#define const
5712_ACEOF
5713
5714fi
5715
5716echo "$as_me:$LINENO: checking for inline" >&5
5717echo $ECHO_N "checking for inline... $ECHO_C" >&6
5718if test "${ac_cv_c_inline+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  ac_cv_c_inline=no
5722for ac_kw in inline __inline__ __inline; do
5723  cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729#ifndef __cplusplus
5730typedef int foo_t;
5731static $ac_kw foo_t static_foo () {return 0; }
5732$ac_kw foo_t foo () {return 0; }
5733#endif
5734
5735_ACEOF
5736rm -f conftest.$ac_objext
5737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738  (eval $ac_compile) 2>conftest.er1
5739  ac_status=$?
5740  grep -v '^ *+' conftest.er1 >conftest.err
5741  rm -f conftest.er1
5742  cat conftest.err >&5
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); } &&
5745	 { ac_try='test -z "$ac_c_werror_flag"
5746			 || test ! -s conftest.err'
5747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748  (eval $ac_try) 2>&5
5749  ac_status=$?
5750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751  (exit $ac_status); }; } &&
5752	 { ac_try='test -s conftest.$ac_objext'
5753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754  (eval $ac_try) 2>&5
5755  ac_status=$?
5756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757  (exit $ac_status); }; }; then
5758  ac_cv_c_inline=$ac_kw; break
5759else
5760  echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763fi
5764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5765done
5766
5767fi
5768echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5769echo "${ECHO_T}$ac_cv_c_inline" >&6
5770
5771
5772case $ac_cv_c_inline in
5773  inline | yes) ;;
5774  *)
5775    case $ac_cv_c_inline in
5776      no) ac_val=;;
5777      *) ac_val=$ac_cv_c_inline;;
5778    esac
5779    cat >>confdefs.h <<_ACEOF
5780#ifndef __cplusplus
5781#define inline $ac_val
5782#endif
5783_ACEOF
5784    ;;
5785esac
5786
5787# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5798		  inttypes.h stdint.h unistd.h
5799do
5800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5801echo "$as_me:$LINENO: checking for $ac_header" >&5
5802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5803if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804  echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806  cat >conftest.$ac_ext <<_ACEOF
5807/* confdefs.h.  */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
5811/* end confdefs.h.  */
5812$ac_includes_default
5813
5814#include <$ac_header>
5815_ACEOF
5816rm -f conftest.$ac_objext
5817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818  (eval $ac_compile) 2>conftest.er1
5819  ac_status=$?
5820  grep -v '^ *+' conftest.er1 >conftest.err
5821  rm -f conftest.er1
5822  cat conftest.err >&5
5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824  (exit $ac_status); } &&
5825	 { ac_try='test -z "$ac_c_werror_flag"
5826			 || test ! -s conftest.err'
5827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828  (eval $ac_try) 2>&5
5829  ac_status=$?
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); }; } &&
5832	 { ac_try='test -s conftest.$ac_objext'
5833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834  (eval $ac_try) 2>&5
5835  ac_status=$?
5836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837  (exit $ac_status); }; }; then
5838  eval "$as_ac_Header=yes"
5839else
5840  echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843eval "$as_ac_Header=no"
5844fi
5845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846fi
5847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5849if test `eval echo '${'$as_ac_Header'}'` = yes; then
5850  cat >>confdefs.h <<_ACEOF
5851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5852_ACEOF
5853
5854fi
5855
5856done
5857
5858
5859echo "$as_me:$LINENO: checking for off_t" >&5
5860echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5861if test "${ac_cv_type_off_t+set}" = set; then
5862  echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864  cat >conftest.$ac_ext <<_ACEOF
5865/* confdefs.h.  */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h.  */
5870$ac_includes_default
5871int
5872main ()
5873{
5874if ((off_t *) 0)
5875  return 0;
5876if (sizeof (off_t))
5877  return 0;
5878  ;
5879  return 0;
5880}
5881_ACEOF
5882rm -f conftest.$ac_objext
5883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884  (eval $ac_compile) 2>conftest.er1
5885  ac_status=$?
5886  grep -v '^ *+' conftest.er1 >conftest.err
5887  rm -f conftest.er1
5888  cat conftest.err >&5
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); } &&
5891	 { ac_try='test -z "$ac_c_werror_flag"
5892			 || test ! -s conftest.err'
5893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894  (eval $ac_try) 2>&5
5895  ac_status=$?
5896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897  (exit $ac_status); }; } &&
5898	 { ac_try='test -s conftest.$ac_objext'
5899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900  (eval $ac_try) 2>&5
5901  ac_status=$?
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); }; }; then
5904  ac_cv_type_off_t=yes
5905else
5906  echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909ac_cv_type_off_t=no
5910fi
5911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912fi
5913echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5914echo "${ECHO_T}$ac_cv_type_off_t" >&6
5915if test $ac_cv_type_off_t = yes; then
5916  :
5917else
5918
5919cat >>confdefs.h <<_ACEOF
5920#define off_t long
5921_ACEOF
5922
5923fi
5924
5925echo "$as_me:$LINENO: checking for size_t" >&5
5926echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5927if test "${ac_cv_type_size_t+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h.  */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h.  */
5936$ac_includes_default
5937int
5938main ()
5939{
5940if ((size_t *) 0)
5941  return 0;
5942if (sizeof (size_t))
5943  return 0;
5944  ;
5945  return 0;
5946}
5947_ACEOF
5948rm -f conftest.$ac_objext
5949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950  (eval $ac_compile) 2>conftest.er1
5951  ac_status=$?
5952  grep -v '^ *+' conftest.er1 >conftest.err
5953  rm -f conftest.er1
5954  cat conftest.err >&5
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); } &&
5957	 { ac_try='test -z "$ac_c_werror_flag"
5958			 || test ! -s conftest.err'
5959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960  (eval $ac_try) 2>&5
5961  ac_status=$?
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); }; } &&
5964	 { ac_try='test -s conftest.$ac_objext'
5965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966  (eval $ac_try) 2>&5
5967  ac_status=$?
5968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); }; }; then
5970  ac_cv_type_size_t=yes
5971else
5972  echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975ac_cv_type_size_t=no
5976fi
5977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978fi
5979echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5980echo "${ECHO_T}$ac_cv_type_size_t" >&6
5981if test $ac_cv_type_size_t = yes; then
5982  :
5983else
5984
5985cat >>confdefs.h <<_ACEOF
5986#define size_t unsigned
5987_ACEOF
5988
5989fi
5990
5991# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5992# for constant arguments.  Useless!
5993echo "$as_me:$LINENO: checking for working alloca.h" >&5
5994echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5995if test "${ac_cv_working_alloca_h+set}" = set; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998  cat >conftest.$ac_ext <<_ACEOF
5999/* confdefs.h.  */
6000_ACEOF
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h.  */
6004#include <alloca.h>
6005int
6006main ()
6007{
6008char *p = (char *) alloca (2 * sizeof (int));
6009  ;
6010  return 0;
6011}
6012_ACEOF
6013rm -f conftest.$ac_objext conftest$ac_exeext
6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015  (eval $ac_link) 2>conftest.er1
6016  ac_status=$?
6017  grep -v '^ *+' conftest.er1 >conftest.err
6018  rm -f conftest.er1
6019  cat conftest.err >&5
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); } &&
6022	 { ac_try='test -z "$ac_c_werror_flag"
6023			 || test ! -s conftest.err'
6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025  (eval $ac_try) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; } &&
6029	 { ac_try='test -s conftest$ac_exeext'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; }; then
6035  ac_cv_working_alloca_h=yes
6036else
6037  echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_cv_working_alloca_h=no
6041fi
6042rm -f conftest.err conftest.$ac_objext \
6043      conftest$ac_exeext conftest.$ac_ext
6044fi
6045echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6046echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6047if test $ac_cv_working_alloca_h = yes; then
6048
6049cat >>confdefs.h <<\_ACEOF
6050#define HAVE_ALLOCA_H 1
6051_ACEOF
6052
6053fi
6054
6055echo "$as_me:$LINENO: checking for alloca" >&5
6056echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6057if test "${ac_cv_func_alloca_works+set}" = set; then
6058  echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060  cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h.  */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h.  */
6066#ifdef __GNUC__
6067# define alloca __builtin_alloca
6068#else
6069# ifdef _MSC_VER
6070#  include <malloc.h>
6071#  define alloca _alloca
6072# else
6073#  if HAVE_ALLOCA_H
6074#   include <alloca.h>
6075#  else
6076#   ifdef _AIX
6077 #pragma alloca
6078#   else
6079#    ifndef alloca /* predefined by HP cc +Olibcalls */
6080char *alloca ();
6081#    endif
6082#   endif
6083#  endif
6084# endif
6085#endif
6086
6087int
6088main ()
6089{
6090char *p = (char *) alloca (1);
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext conftest$ac_exeext
6096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097  (eval $ac_link) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } &&
6104	 { ac_try='test -z "$ac_c_werror_flag"
6105			 || test ! -s conftest.err'
6106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107  (eval $ac_try) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); }; } &&
6111	 { ac_try='test -s conftest$ac_exeext'
6112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113  (eval $ac_try) 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; }; then
6117  ac_cv_func_alloca_works=yes
6118else
6119  echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
6122ac_cv_func_alloca_works=no
6123fi
6124rm -f conftest.err conftest.$ac_objext \
6125      conftest$ac_exeext conftest.$ac_ext
6126fi
6127echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6128echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6129
6130if test $ac_cv_func_alloca_works = yes; then
6131
6132cat >>confdefs.h <<\_ACEOF
6133#define HAVE_ALLOCA 1
6134_ACEOF
6135
6136else
6137  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6138# that cause trouble.  Some versions do not even contain alloca or
6139# contain a buggy version.  If you still want to use their alloca,
6140# use ar to extract alloca.o from them instead of compiling alloca.c.
6141
6142ALLOCA=alloca.$ac_objext
6143
6144cat >>confdefs.h <<\_ACEOF
6145#define C_ALLOCA 1
6146_ACEOF
6147
6148
6149echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6150echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6151if test "${ac_cv_os_cray+set}" = set; then
6152  echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154  cat >conftest.$ac_ext <<_ACEOF
6155/* confdefs.h.  */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h.  */
6160#if defined(CRAY) && ! defined(CRAY2)
6161webecray
6162#else
6163wenotbecray
6164#endif
6165
6166_ACEOF
6167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6168  $EGREP "webecray" >/dev/null 2>&1; then
6169  ac_cv_os_cray=yes
6170else
6171  ac_cv_os_cray=no
6172fi
6173rm -f conftest*
6174
6175fi
6176echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6177echo "${ECHO_T}$ac_cv_os_cray" >&6
6178if test $ac_cv_os_cray = yes; then
6179  for ac_func in _getb67 GETB67 getb67; do
6180    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6181echo "$as_me:$LINENO: checking for $ac_func" >&5
6182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6183if eval "test \"\${$as_ac_var+set}\" = set"; then
6184  echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186  cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h.  */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h.  */
6192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6193   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6194#define $ac_func innocuous_$ac_func
6195
6196/* System header to define __stub macros and hopefully few prototypes,
6197    which can conflict with char $ac_func (); below.
6198    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199    <limits.h> exists even on freestanding compilers.  */
6200
6201#ifdef __STDC__
6202# include <limits.h>
6203#else
6204# include <assert.h>
6205#endif
6206
6207#undef $ac_func
6208
6209/* Override any gcc2 internal prototype to avoid an error.  */
6210#ifdef __cplusplus
6211extern "C"
6212{
6213#endif
6214/* We use char because int might match the return type of a gcc2
6215   builtin and then its argument prototype would still apply.  */
6216char $ac_func ();
6217/* The GNU C library defines this for functions which it implements
6218    to always fail with ENOSYS.  Some functions are actually named
6219    something starting with __ and the normal name is an alias.  */
6220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6221choke me
6222#else
6223char (*f) () = $ac_func;
6224#endif
6225#ifdef __cplusplus
6226}
6227#endif
6228
6229int
6230main ()
6231{
6232return f != $ac_func;
6233  ;
6234  return 0;
6235}
6236_ACEOF
6237rm -f conftest.$ac_objext conftest$ac_exeext
6238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239  (eval $ac_link) 2>conftest.er1
6240  ac_status=$?
6241  grep -v '^ *+' conftest.er1 >conftest.err
6242  rm -f conftest.er1
6243  cat conftest.err >&5
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); } &&
6246	 { ac_try='test -z "$ac_c_werror_flag"
6247			 || test ! -s conftest.err'
6248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249  (eval $ac_try) 2>&5
6250  ac_status=$?
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); }; } &&
6253	 { ac_try='test -s conftest$ac_exeext'
6254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255  (eval $ac_try) 2>&5
6256  ac_status=$?
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); }; }; then
6259  eval "$as_ac_var=yes"
6260else
6261  echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264eval "$as_ac_var=no"
6265fi
6266rm -f conftest.err conftest.$ac_objext \
6267      conftest$ac_exeext conftest.$ac_ext
6268fi
6269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6271if test `eval echo '${'$as_ac_var'}'` = yes; then
6272
6273cat >>confdefs.h <<_ACEOF
6274#define CRAY_STACKSEG_END $ac_func
6275_ACEOF
6276
6277    break
6278fi
6279
6280  done
6281fi
6282
6283echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6284echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6285if test "${ac_cv_c_stack_direction+set}" = set; then
6286  echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288  if test "$cross_compiling" = yes; then
6289  ac_cv_c_stack_direction=0
6290else
6291  cat >conftest.$ac_ext <<_ACEOF
6292/* confdefs.h.  */
6293_ACEOF
6294cat confdefs.h >>conftest.$ac_ext
6295cat >>conftest.$ac_ext <<_ACEOF
6296/* end confdefs.h.  */
6297int
6298find_stack_direction ()
6299{
6300  static char *addr = 0;
6301  auto char dummy;
6302  if (addr == 0)
6303    {
6304      addr = &dummy;
6305      return find_stack_direction ();
6306    }
6307  else
6308    return (&dummy > addr) ? 1 : -1;
6309}
6310
6311int
6312main ()
6313{
6314  exit (find_stack_direction () < 0);
6315}
6316_ACEOF
6317rm -f conftest$ac_exeext
6318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6319  (eval $ac_link) 2>&5
6320  ac_status=$?
6321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324  (eval $ac_try) 2>&5
6325  ac_status=$?
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); }; }; then
6328  ac_cv_c_stack_direction=1
6329else
6330  echo "$as_me: program exited with status $ac_status" >&5
6331echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
6334( exit $ac_status )
6335ac_cv_c_stack_direction=-1
6336fi
6337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6338fi
6339fi
6340echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6341echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6342
6343cat >>confdefs.h <<_ACEOF
6344#define STACK_DIRECTION $ac_cv_c_stack_direction
6345_ACEOF
6346
6347
6348fi
6349
6350
6351
6352for ac_header in stdlib.h unistd.h
6353do
6354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356  echo "$as_me:$LINENO: checking for $ac_header" >&5
6357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6358if eval "test \"\${$as_ac_Header+set}\" = set"; then
6359  echo $ECHO_N "(cached) $ECHO_C" >&6
6360fi
6361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6363else
6364  # Is the header compilable?
6365echo "$as_me:$LINENO: checking $ac_header usability" >&5
6366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6367cat >conftest.$ac_ext <<_ACEOF
6368/* confdefs.h.  */
6369_ACEOF
6370cat confdefs.h >>conftest.$ac_ext
6371cat >>conftest.$ac_ext <<_ACEOF
6372/* end confdefs.h.  */
6373$ac_includes_default
6374#include <$ac_header>
6375_ACEOF
6376rm -f conftest.$ac_objext
6377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378  (eval $ac_compile) 2>conftest.er1
6379  ac_status=$?
6380  grep -v '^ *+' conftest.er1 >conftest.err
6381  rm -f conftest.er1
6382  cat conftest.err >&5
6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); } &&
6385	 { ac_try='test -z "$ac_c_werror_flag"
6386			 || test ! -s conftest.err'
6387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388  (eval $ac_try) 2>&5
6389  ac_status=$?
6390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391  (exit $ac_status); }; } &&
6392	 { ac_try='test -s conftest.$ac_objext'
6393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394  (eval $ac_try) 2>&5
6395  ac_status=$?
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); }; }; then
6398  ac_header_compiler=yes
6399else
6400  echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
6403ac_header_compiler=no
6404fi
6405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6407echo "${ECHO_T}$ac_header_compiler" >&6
6408
6409# Is the header present?
6410echo "$as_me:$LINENO: checking $ac_header presence" >&5
6411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6412cat >conftest.$ac_ext <<_ACEOF
6413/* confdefs.h.  */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h.  */
6418#include <$ac_header>
6419_ACEOF
6420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6422  ac_status=$?
6423  grep -v '^ *+' conftest.er1 >conftest.err
6424  rm -f conftest.er1
6425  cat conftest.err >&5
6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); } >/dev/null; then
6428  if test -s conftest.err; then
6429    ac_cpp_err=$ac_c_preproc_warn_flag
6430    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6431  else
6432    ac_cpp_err=
6433  fi
6434else
6435  ac_cpp_err=yes
6436fi
6437if test -z "$ac_cpp_err"; then
6438  ac_header_preproc=yes
6439else
6440  echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443  ac_header_preproc=no
6444fi
6445rm -f conftest.err conftest.$ac_ext
6446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6447echo "${ECHO_T}$ac_header_preproc" >&6
6448
6449# So?  What about this header?
6450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6451  yes:no: )
6452    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6454    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6456    ac_header_preproc=yes
6457    ;;
6458  no:yes:* )
6459    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6461    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6462echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6463    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6465    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6466echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6467    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6469    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6471    (
6472      cat <<\_ASBOX
6473## ------------------------------------------ ##
6474## Report this to the AC_PACKAGE_NAME lists.  ##
6475## ------------------------------------------ ##
6476_ASBOX
6477    ) |
6478      sed "s/^/$as_me: WARNING:     /" >&2
6479    ;;
6480esac
6481echo "$as_me:$LINENO: checking for $ac_header" >&5
6482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6483if eval "test \"\${$as_ac_Header+set}\" = set"; then
6484  echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486  eval "$as_ac_Header=\$ac_header_preproc"
6487fi
6488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6490
6491fi
6492if test `eval echo '${'$as_ac_Header'}'` = yes; then
6493  cat >>confdefs.h <<_ACEOF
6494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6495_ACEOF
6496
6497fi
6498
6499done
6500
6501
6502for ac_func in getpagesize
6503do
6504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6505echo "$as_me:$LINENO: checking for $ac_func" >&5
6506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6507if eval "test \"\${$as_ac_var+set}\" = set"; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h.  */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h.  */
6516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6517   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6518#define $ac_func innocuous_$ac_func
6519
6520/* System header to define __stub macros and hopefully few prototypes,
6521    which can conflict with char $ac_func (); below.
6522    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6523    <limits.h> exists even on freestanding compilers.  */
6524
6525#ifdef __STDC__
6526# include <limits.h>
6527#else
6528# include <assert.h>
6529#endif
6530
6531#undef $ac_func
6532
6533/* Override any gcc2 internal prototype to avoid an error.  */
6534#ifdef __cplusplus
6535extern "C"
6536{
6537#endif
6538/* We use char because int might match the return type of a gcc2
6539   builtin and then its argument prototype would still apply.  */
6540char $ac_func ();
6541/* The GNU C library defines this for functions which it implements
6542    to always fail with ENOSYS.  Some functions are actually named
6543    something starting with __ and the normal name is an alias.  */
6544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6545choke me
6546#else
6547char (*f) () = $ac_func;
6548#endif
6549#ifdef __cplusplus
6550}
6551#endif
6552
6553int
6554main ()
6555{
6556return f != $ac_func;
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext conftest$ac_exeext
6562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563  (eval $ac_link) 2>conftest.er1
6564  ac_status=$?
6565  grep -v '^ *+' conftest.er1 >conftest.err
6566  rm -f conftest.er1
6567  cat conftest.err >&5
6568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569  (exit $ac_status); } &&
6570	 { ac_try='test -z "$ac_c_werror_flag"
6571			 || test ! -s conftest.err'
6572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573  (eval $ac_try) 2>&5
6574  ac_status=$?
6575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576  (exit $ac_status); }; } &&
6577	 { ac_try='test -s conftest$ac_exeext'
6578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579  (eval $ac_try) 2>&5
6580  ac_status=$?
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); }; }; then
6583  eval "$as_ac_var=yes"
6584else
6585  echo "$as_me: failed program was:" >&5
6586sed 's/^/| /' conftest.$ac_ext >&5
6587
6588eval "$as_ac_var=no"
6589fi
6590rm -f conftest.err conftest.$ac_objext \
6591      conftest$ac_exeext conftest.$ac_ext
6592fi
6593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6594echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6595if test `eval echo '${'$as_ac_var'}'` = yes; then
6596  cat >>confdefs.h <<_ACEOF
6597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6598_ACEOF
6599
6600fi
6601done
6602
6603echo "$as_me:$LINENO: checking for working mmap" >&5
6604echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6605if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6606  echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608  if test "$cross_compiling" = yes; then
6609  ac_cv_func_mmap_fixed_mapped=no
6610else
6611  cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h.  */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h.  */
6617$ac_includes_default
6618/* malloc might have been renamed as rpl_malloc. */
6619#undef malloc
6620
6621/* Thanks to Mike Haertel and Jim Avera for this test.
6622   Here is a matrix of mmap possibilities:
6623	mmap private not fixed
6624	mmap private fixed at somewhere currently unmapped
6625	mmap private fixed at somewhere already mapped
6626	mmap shared not fixed
6627	mmap shared fixed at somewhere currently unmapped
6628	mmap shared fixed at somewhere already mapped
6629   For private mappings, we should verify that changes cannot be read()
6630   back from the file, nor mmap's back from the file at a different
6631   address.  (There have been systems where private was not correctly
6632   implemented like the infamous i386 svr4.0, and systems where the
6633   VM page cache was not coherent with the file system buffer cache
6634   like early versions of FreeBSD and possibly contemporary NetBSD.)
6635   For shared mappings, we should conversely verify that changes get
6636   propagated back to all the places they're supposed to be.
6637
6638   Grep wants private fixed already mapped.
6639   The main things grep needs to know about mmap are:
6640   * does it exist and is it safe to write into the mmap'd area
6641   * how to use it (BSD variants)  */
6642
6643#include <fcntl.h>
6644#include <sys/mman.h>
6645
6646#if !STDC_HEADERS && !HAVE_STDLIB_H
6647char *malloc ();
6648#endif
6649
6650/* This mess was copied from the GNU getpagesize.h.  */
6651#if !HAVE_GETPAGESIZE
6652/* Assume that all systems that can run configure have sys/param.h.  */
6653# if !HAVE_SYS_PARAM_H
6654#  define HAVE_SYS_PARAM_H 1
6655# endif
6656
6657# ifdef _SC_PAGESIZE
6658#  define getpagesize() sysconf(_SC_PAGESIZE)
6659# else /* no _SC_PAGESIZE */
6660#  if HAVE_SYS_PARAM_H
6661#   include <sys/param.h>
6662#   ifdef EXEC_PAGESIZE
6663#    define getpagesize() EXEC_PAGESIZE
6664#   else /* no EXEC_PAGESIZE */
6665#    ifdef NBPG
6666#     define getpagesize() NBPG * CLSIZE
6667#     ifndef CLSIZE
6668#      define CLSIZE 1
6669#     endif /* no CLSIZE */
6670#    else /* no NBPG */
6671#     ifdef NBPC
6672#      define getpagesize() NBPC
6673#     else /* no NBPC */
6674#      ifdef PAGESIZE
6675#       define getpagesize() PAGESIZE
6676#      endif /* PAGESIZE */
6677#     endif /* no NBPC */
6678#    endif /* no NBPG */
6679#   endif /* no EXEC_PAGESIZE */
6680#  else /* no HAVE_SYS_PARAM_H */
6681#   define getpagesize() 8192	/* punt totally */
6682#  endif /* no HAVE_SYS_PARAM_H */
6683# endif /* no _SC_PAGESIZE */
6684
6685#endif /* no HAVE_GETPAGESIZE */
6686
6687int
6688main ()
6689{
6690  char *data, *data2, *data3;
6691  int i, pagesize;
6692  int fd;
6693
6694  pagesize = getpagesize ();
6695
6696  /* First, make a file with some known garbage in it. */
6697  data = (char *) malloc (pagesize);
6698  if (!data)
6699    exit (1);
6700  for (i = 0; i < pagesize; ++i)
6701    *(data + i) = rand ();
6702  umask (0);
6703  fd = creat ("conftest.mmap", 0600);
6704  if (fd < 0)
6705    exit (1);
6706  if (write (fd, data, pagesize) != pagesize)
6707    exit (1);
6708  close (fd);
6709
6710  /* Next, try to mmap the file at a fixed address which already has
6711     something else allocated at it.  If we can, also make sure that
6712     we see the same garbage.  */
6713  fd = open ("conftest.mmap", O_RDWR);
6714  if (fd < 0)
6715    exit (1);
6716  data2 = (char *) malloc (2 * pagesize);
6717  if (!data2)
6718    exit (1);
6719  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6720  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6721		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6722    exit (1);
6723  for (i = 0; i < pagesize; ++i)
6724    if (*(data + i) != *(data2 + i))
6725      exit (1);
6726
6727  /* Finally, make sure that changes to the mapped area do not
6728     percolate back to the file as seen by read().  (This is a bug on
6729     some variants of i386 svr4.0.)  */
6730  for (i = 0; i < pagesize; ++i)
6731    *(data2 + i) = *(data2 + i) + 1;
6732  data3 = (char *) malloc (pagesize);
6733  if (!data3)
6734    exit (1);
6735  if (read (fd, data3, pagesize) != pagesize)
6736    exit (1);
6737  for (i = 0; i < pagesize; ++i)
6738    if (*(data + i) != *(data3 + i))
6739      exit (1);
6740  close (fd);
6741  exit (0);
6742}
6743_ACEOF
6744rm -f conftest$ac_exeext
6745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746  (eval $ac_link) 2>&5
6747  ac_status=$?
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751  (eval $ac_try) 2>&5
6752  ac_status=$?
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); }; }; then
6755  ac_cv_func_mmap_fixed_mapped=yes
6756else
6757  echo "$as_me: program exited with status $ac_status" >&5
6758echo "$as_me: failed program was:" >&5
6759sed 's/^/| /' conftest.$ac_ext >&5
6760
6761( exit $ac_status )
6762ac_cv_func_mmap_fixed_mapped=no
6763fi
6764rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6765fi
6766fi
6767echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6768echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6769if test $ac_cv_func_mmap_fixed_mapped = yes; then
6770
6771cat >>confdefs.h <<\_ACEOF
6772#define HAVE_MMAP 1
6773_ACEOF
6774
6775fi
6776rm -f conftest.mmap
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6789unistd.h values.h sys/param.h
6790do
6791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6792if eval "test \"\${$as_ac_Header+set}\" = set"; then
6793  echo "$as_me:$LINENO: checking for $ac_header" >&5
6794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6795if eval "test \"\${$as_ac_Header+set}\" = set"; then
6796  echo $ECHO_N "(cached) $ECHO_C" >&6
6797fi
6798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6800else
6801  # Is the header compilable?
6802echo "$as_me:$LINENO: checking $ac_header usability" >&5
6803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6804cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h.  */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h.  */
6810$ac_includes_default
6811#include <$ac_header>
6812_ACEOF
6813rm -f conftest.$ac_objext
6814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815  (eval $ac_compile) 2>conftest.er1
6816  ac_status=$?
6817  grep -v '^ *+' conftest.er1 >conftest.err
6818  rm -f conftest.er1
6819  cat conftest.err >&5
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); } &&
6822	 { ac_try='test -z "$ac_c_werror_flag"
6823			 || test ! -s conftest.err'
6824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825  (eval $ac_try) 2>&5
6826  ac_status=$?
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); }; } &&
6829	 { ac_try='test -s conftest.$ac_objext'
6830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831  (eval $ac_try) 2>&5
6832  ac_status=$?
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); }; }; then
6835  ac_header_compiler=yes
6836else
6837  echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840ac_header_compiler=no
6841fi
6842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6844echo "${ECHO_T}$ac_header_compiler" >&6
6845
6846# Is the header present?
6847echo "$as_me:$LINENO: checking $ac_header presence" >&5
6848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6849cat >conftest.$ac_ext <<_ACEOF
6850/* confdefs.h.  */
6851_ACEOF
6852cat confdefs.h >>conftest.$ac_ext
6853cat >>conftest.$ac_ext <<_ACEOF
6854/* end confdefs.h.  */
6855#include <$ac_header>
6856_ACEOF
6857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6858  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6859  ac_status=$?
6860  grep -v '^ *+' conftest.er1 >conftest.err
6861  rm -f conftest.er1
6862  cat conftest.err >&5
6863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864  (exit $ac_status); } >/dev/null; then
6865  if test -s conftest.err; then
6866    ac_cpp_err=$ac_c_preproc_warn_flag
6867    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6868  else
6869    ac_cpp_err=
6870  fi
6871else
6872  ac_cpp_err=yes
6873fi
6874if test -z "$ac_cpp_err"; then
6875  ac_header_preproc=yes
6876else
6877  echo "$as_me: failed program was:" >&5
6878sed 's/^/| /' conftest.$ac_ext >&5
6879
6880  ac_header_preproc=no
6881fi
6882rm -f conftest.err conftest.$ac_ext
6883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6884echo "${ECHO_T}$ac_header_preproc" >&6
6885
6886# So?  What about this header?
6887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6888  yes:no: )
6889    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6893    ac_header_preproc=yes
6894    ;;
6895  no:yes:* )
6896    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6898    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6899echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6900    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6902    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6903echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6904    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6906    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6908    (
6909      cat <<\_ASBOX
6910## ------------------------------------------ ##
6911## Report this to the AC_PACKAGE_NAME lists.  ##
6912## ------------------------------------------ ##
6913_ASBOX
6914    ) |
6915      sed "s/^/$as_me: WARNING:     /" >&2
6916    ;;
6917esac
6918echo "$as_me:$LINENO: checking for $ac_header" >&5
6919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6920if eval "test \"\${$as_ac_Header+set}\" = set"; then
6921  echo $ECHO_N "(cached) $ECHO_C" >&6
6922else
6923  eval "$as_ac_Header=\$ac_header_preproc"
6924fi
6925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6927
6928fi
6929if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930  cat >>confdefs.h <<_ACEOF
6931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6932_ACEOF
6933
6934fi
6935
6936done
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6949__argz_count __argz_stringify __argz_next
6950do
6951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6952echo "$as_me:$LINENO: checking for $ac_func" >&5
6953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6954if eval "test \"\${$as_ac_var+set}\" = set"; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  cat >conftest.$ac_ext <<_ACEOF
6958/* confdefs.h.  */
6959_ACEOF
6960cat confdefs.h >>conftest.$ac_ext
6961cat >>conftest.$ac_ext <<_ACEOF
6962/* end confdefs.h.  */
6963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6964   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6965#define $ac_func innocuous_$ac_func
6966
6967/* System header to define __stub macros and hopefully few prototypes,
6968    which can conflict with char $ac_func (); below.
6969    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6970    <limits.h> exists even on freestanding compilers.  */
6971
6972#ifdef __STDC__
6973# include <limits.h>
6974#else
6975# include <assert.h>
6976#endif
6977
6978#undef $ac_func
6979
6980/* Override any gcc2 internal prototype to avoid an error.  */
6981#ifdef __cplusplus
6982extern "C"
6983{
6984#endif
6985/* We use char because int might match the return type of a gcc2
6986   builtin and then its argument prototype would still apply.  */
6987char $ac_func ();
6988/* The GNU C library defines this for functions which it implements
6989    to always fail with ENOSYS.  Some functions are actually named
6990    something starting with __ and the normal name is an alias.  */
6991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6992choke me
6993#else
6994char (*f) () = $ac_func;
6995#endif
6996#ifdef __cplusplus
6997}
6998#endif
6999
7000int
7001main ()
7002{
7003return f != $ac_func;
7004  ;
7005  return 0;
7006}
7007_ACEOF
7008rm -f conftest.$ac_objext conftest$ac_exeext
7009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010  (eval $ac_link) 2>conftest.er1
7011  ac_status=$?
7012  grep -v '^ *+' conftest.er1 >conftest.err
7013  rm -f conftest.er1
7014  cat conftest.err >&5
7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016  (exit $ac_status); } &&
7017	 { ac_try='test -z "$ac_c_werror_flag"
7018			 || test ! -s conftest.err'
7019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020  (eval $ac_try) 2>&5
7021  ac_status=$?
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); }; } &&
7024	 { ac_try='test -s conftest$ac_exeext'
7025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026  (eval $ac_try) 2>&5
7027  ac_status=$?
7028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029  (exit $ac_status); }; }; then
7030  eval "$as_ac_var=yes"
7031else
7032  echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
7034
7035eval "$as_ac_var=no"
7036fi
7037rm -f conftest.err conftest.$ac_objext \
7038      conftest$ac_exeext conftest.$ac_ext
7039fi
7040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7042if test `eval echo '${'$as_ac_var'}'` = yes; then
7043  cat >>confdefs.h <<_ACEOF
7044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7045_ACEOF
7046
7047fi
7048done
7049
7050
7051   if test "${ac_cv_func_stpcpy+set}" != "set"; then
7052
7053for ac_func in stpcpy
7054do
7055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7056echo "$as_me:$LINENO: checking for $ac_func" >&5
7057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7058if eval "test \"\${$as_ac_var+set}\" = set"; then
7059  echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061  cat >conftest.$ac_ext <<_ACEOF
7062/* confdefs.h.  */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h.  */
7067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7068   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7069#define $ac_func innocuous_$ac_func
7070
7071/* System header to define __stub macros and hopefully few prototypes,
7072    which can conflict with char $ac_func (); below.
7073    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7074    <limits.h> exists even on freestanding compilers.  */
7075
7076#ifdef __STDC__
7077# include <limits.h>
7078#else
7079# include <assert.h>
7080#endif
7081
7082#undef $ac_func
7083
7084/* Override any gcc2 internal prototype to avoid an error.  */
7085#ifdef __cplusplus
7086extern "C"
7087{
7088#endif
7089/* We use char because int might match the return type of a gcc2
7090   builtin and then its argument prototype would still apply.  */
7091char $ac_func ();
7092/* The GNU C library defines this for functions which it implements
7093    to always fail with ENOSYS.  Some functions are actually named
7094    something starting with __ and the normal name is an alias.  */
7095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7096choke me
7097#else
7098char (*f) () = $ac_func;
7099#endif
7100#ifdef __cplusplus
7101}
7102#endif
7103
7104int
7105main ()
7106{
7107return f != $ac_func;
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112rm -f conftest.$ac_objext conftest$ac_exeext
7113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114  (eval $ac_link) 2>conftest.er1
7115  ac_status=$?
7116  grep -v '^ *+' conftest.er1 >conftest.err
7117  rm -f conftest.er1
7118  cat conftest.err >&5
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); } &&
7121	 { ac_try='test -z "$ac_c_werror_flag"
7122			 || test ! -s conftest.err'
7123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124  (eval $ac_try) 2>&5
7125  ac_status=$?
7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127  (exit $ac_status); }; } &&
7128	 { ac_try='test -s conftest$ac_exeext'
7129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130  (eval $ac_try) 2>&5
7131  ac_status=$?
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); }; }; then
7134  eval "$as_ac_var=yes"
7135else
7136  echo "$as_me: failed program was:" >&5
7137sed 's/^/| /' conftest.$ac_ext >&5
7138
7139eval "$as_ac_var=no"
7140fi
7141rm -f conftest.err conftest.$ac_objext \
7142      conftest$ac_exeext conftest.$ac_ext
7143fi
7144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7146if test `eval echo '${'$as_ac_var'}'` = yes; then
7147  cat >>confdefs.h <<_ACEOF
7148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7149_ACEOF
7150
7151fi
7152done
7153
7154   fi
7155   if test "${ac_cv_func_stpcpy}" = "yes"; then
7156
7157cat >>confdefs.h <<\_ACEOF
7158#define HAVE_STPCPY 1
7159_ACEOF
7160
7161   fi
7162
7163   if test $ac_cv_header_locale_h = yes; then
7164    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7165echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7166if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7167  echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169  cat >conftest.$ac_ext <<_ACEOF
7170/* confdefs.h.  */
7171_ACEOF
7172cat confdefs.h >>conftest.$ac_ext
7173cat >>conftest.$ac_ext <<_ACEOF
7174/* end confdefs.h.  */
7175#include <locale.h>
7176int
7177main ()
7178{
7179return LC_MESSAGES
7180  ;
7181  return 0;
7182}
7183_ACEOF
7184rm -f conftest.$ac_objext conftest$ac_exeext
7185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186  (eval $ac_link) 2>conftest.er1
7187  ac_status=$?
7188  grep -v '^ *+' conftest.er1 >conftest.err
7189  rm -f conftest.er1
7190  cat conftest.err >&5
7191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192  (exit $ac_status); } &&
7193	 { ac_try='test -z "$ac_c_werror_flag"
7194			 || test ! -s conftest.err'
7195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196  (eval $ac_try) 2>&5
7197  ac_status=$?
7198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199  (exit $ac_status); }; } &&
7200	 { ac_try='test -s conftest$ac_exeext'
7201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202  (eval $ac_try) 2>&5
7203  ac_status=$?
7204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205  (exit $ac_status); }; }; then
7206  am_cv_val_LC_MESSAGES=yes
7207else
7208  echo "$as_me: failed program was:" >&5
7209sed 's/^/| /' conftest.$ac_ext >&5
7210
7211am_cv_val_LC_MESSAGES=no
7212fi
7213rm -f conftest.err conftest.$ac_objext \
7214      conftest$ac_exeext conftest.$ac_ext
7215fi
7216echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7217echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7218    if test $am_cv_val_LC_MESSAGES = yes; then
7219
7220cat >>confdefs.h <<\_ACEOF
7221#define HAVE_LC_MESSAGES 1
7222_ACEOF
7223
7224    fi
7225  fi
7226   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7227echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7228        # Check whether --enable-nls or --disable-nls was given.
7229if test "${enable_nls+set}" = set; then
7230  enableval="$enable_nls"
7231  USE_NLS=$enableval
7232else
7233  USE_NLS=yes
7234fi;
7235    echo "$as_me:$LINENO: result: $USE_NLS" >&5
7236echo "${ECHO_T}$USE_NLS" >&6
7237
7238
7239    USE_INCLUDED_LIBINTL=no
7240
7241        if test "$USE_NLS" = "yes"; then
7242      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7243echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7244
7245# Check whether --with-included-gettext or --without-included-gettext was given.
7246if test "${with_included_gettext+set}" = set; then
7247  withval="$with_included_gettext"
7248  nls_cv_force_use_gnu_gettext=$withval
7249else
7250  nls_cv_force_use_gnu_gettext=no
7251fi;
7252      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7253echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7254
7255      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7256      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7257                        		nls_cv_header_intl=
7258	nls_cv_header_libgt=
7259	CATOBJEXT=
7260
7261	if test "${ac_cv_header_libintl_h+set}" = set; then
7262  echo "$as_me:$LINENO: checking for libintl.h" >&5
7263echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7264if test "${ac_cv_header_libintl_h+set}" = set; then
7265  echo $ECHO_N "(cached) $ECHO_C" >&6
7266fi
7267echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7268echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7269else
7270  # Is the header compilable?
7271echo "$as_me:$LINENO: checking libintl.h usability" >&5
7272echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7273cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h.  */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
7278/* end confdefs.h.  */
7279$ac_includes_default
7280#include <libintl.h>
7281_ACEOF
7282rm -f conftest.$ac_objext
7283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284  (eval $ac_compile) 2>conftest.er1
7285  ac_status=$?
7286  grep -v '^ *+' conftest.er1 >conftest.err
7287  rm -f conftest.er1
7288  cat conftest.err >&5
7289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290  (exit $ac_status); } &&
7291	 { ac_try='test -z "$ac_c_werror_flag"
7292			 || test ! -s conftest.err'
7293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294  (eval $ac_try) 2>&5
7295  ac_status=$?
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); }; } &&
7298	 { ac_try='test -s conftest.$ac_objext'
7299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300  (eval $ac_try) 2>&5
7301  ac_status=$?
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); }; }; then
7304  ac_header_compiler=yes
7305else
7306  echo "$as_me: failed program was:" >&5
7307sed 's/^/| /' conftest.$ac_ext >&5
7308
7309ac_header_compiler=no
7310fi
7311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7313echo "${ECHO_T}$ac_header_compiler" >&6
7314
7315# Is the header present?
7316echo "$as_me:$LINENO: checking libintl.h presence" >&5
7317echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7318cat >conftest.$ac_ext <<_ACEOF
7319/* confdefs.h.  */
7320_ACEOF
7321cat confdefs.h >>conftest.$ac_ext
7322cat >>conftest.$ac_ext <<_ACEOF
7323/* end confdefs.h.  */
7324#include <libintl.h>
7325_ACEOF
7326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7327  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7328  ac_status=$?
7329  grep -v '^ *+' conftest.er1 >conftest.err
7330  rm -f conftest.er1
7331  cat conftest.err >&5
7332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333  (exit $ac_status); } >/dev/null; then
7334  if test -s conftest.err; then
7335    ac_cpp_err=$ac_c_preproc_warn_flag
7336    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7337  else
7338    ac_cpp_err=
7339  fi
7340else
7341  ac_cpp_err=yes
7342fi
7343if test -z "$ac_cpp_err"; then
7344  ac_header_preproc=yes
7345else
7346  echo "$as_me: failed program was:" >&5
7347sed 's/^/| /' conftest.$ac_ext >&5
7348
7349  ac_header_preproc=no
7350fi
7351rm -f conftest.err conftest.$ac_ext
7352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7353echo "${ECHO_T}$ac_header_preproc" >&6
7354
7355# So?  What about this header?
7356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7357  yes:no: )
7358    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7359echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7360    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7361echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7362    ac_header_preproc=yes
7363    ;;
7364  no:yes:* )
7365    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7366echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7367    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7368echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7369    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7370echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7371    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7372echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7373    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7374echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7375    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7376echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7377    (
7378      cat <<\_ASBOX
7379## ------------------------------------------ ##
7380## Report this to the AC_PACKAGE_NAME lists.  ##
7381## ------------------------------------------ ##
7382_ASBOX
7383    ) |
7384      sed "s/^/$as_me: WARNING:     /" >&2
7385    ;;
7386esac
7387echo "$as_me:$LINENO: checking for libintl.h" >&5
7388echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7389if test "${ac_cv_header_libintl_h+set}" = set; then
7390  echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392  ac_cv_header_libintl_h=$ac_header_preproc
7393fi
7394echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7395echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7396
7397fi
7398if test $ac_cv_header_libintl_h = yes; then
7399  echo "$as_me:$LINENO: checking for gettext in libc" >&5
7400echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7401if test "${gt_cv_func_gettext_libc+set}" = set; then
7402  echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404  cat >conftest.$ac_ext <<_ACEOF
7405/* confdefs.h.  */
7406_ACEOF
7407cat confdefs.h >>conftest.$ac_ext
7408cat >>conftest.$ac_ext <<_ACEOF
7409/* end confdefs.h.  */
7410#include <libintl.h>
7411int
7412main ()
7413{
7414return (int) gettext ("")
7415  ;
7416  return 0;
7417}
7418_ACEOF
7419rm -f conftest.$ac_objext conftest$ac_exeext
7420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421  (eval $ac_link) 2>conftest.er1
7422  ac_status=$?
7423  grep -v '^ *+' conftest.er1 >conftest.err
7424  rm -f conftest.er1
7425  cat conftest.err >&5
7426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427  (exit $ac_status); } &&
7428	 { ac_try='test -z "$ac_c_werror_flag"
7429			 || test ! -s conftest.err'
7430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431  (eval $ac_try) 2>&5
7432  ac_status=$?
7433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434  (exit $ac_status); }; } &&
7435	 { ac_try='test -s conftest$ac_exeext'
7436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437  (eval $ac_try) 2>&5
7438  ac_status=$?
7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440  (exit $ac_status); }; }; then
7441  gt_cv_func_gettext_libc=yes
7442else
7443  echo "$as_me: failed program was:" >&5
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446gt_cv_func_gettext_libc=no
7447fi
7448rm -f conftest.err conftest.$ac_objext \
7449      conftest$ac_exeext conftest.$ac_ext
7450fi
7451echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7452echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7453
7454	   if test "$gt_cv_func_gettext_libc" != "yes"; then
7455	     echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7456echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7457if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7458  echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460  ac_check_lib_save_LIBS=$LIBS
7461LIBS="-lintl  $LIBS"
7462cat >conftest.$ac_ext <<_ACEOF
7463/* confdefs.h.  */
7464_ACEOF
7465cat confdefs.h >>conftest.$ac_ext
7466cat >>conftest.$ac_ext <<_ACEOF
7467/* end confdefs.h.  */
7468
7469/* Override any gcc2 internal prototype to avoid an error.  */
7470#ifdef __cplusplus
7471extern "C"
7472#endif
7473/* We use char because int might match the return type of a gcc2
7474   builtin and then its argument prototype would still apply.  */
7475char bindtextdomain ();
7476int
7477main ()
7478{
7479bindtextdomain ();
7480  ;
7481  return 0;
7482}
7483_ACEOF
7484rm -f conftest.$ac_objext conftest$ac_exeext
7485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486  (eval $ac_link) 2>conftest.er1
7487  ac_status=$?
7488  grep -v '^ *+' conftest.er1 >conftest.err
7489  rm -f conftest.er1
7490  cat conftest.err >&5
7491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492  (exit $ac_status); } &&
7493	 { ac_try='test -z "$ac_c_werror_flag"
7494			 || test ! -s conftest.err'
7495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496  (eval $ac_try) 2>&5
7497  ac_status=$?
7498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499  (exit $ac_status); }; } &&
7500	 { ac_try='test -s conftest$ac_exeext'
7501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502  (eval $ac_try) 2>&5
7503  ac_status=$?
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); }; }; then
7506  ac_cv_lib_intl_bindtextdomain=yes
7507else
7508  echo "$as_me: failed program was:" >&5
7509sed 's/^/| /' conftest.$ac_ext >&5
7510
7511ac_cv_lib_intl_bindtextdomain=no
7512fi
7513rm -f conftest.err conftest.$ac_objext \
7514      conftest$ac_exeext conftest.$ac_ext
7515LIBS=$ac_check_lib_save_LIBS
7516fi
7517echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7518echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7519if test $ac_cv_lib_intl_bindtextdomain = yes; then
7520  echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7521echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7522if test "${gt_cv_func_gettext_libintl+set}" = set; then
7523  echo $ECHO_N "(cached) $ECHO_C" >&6
7524else
7525  cat >conftest.$ac_ext <<_ACEOF
7526/* confdefs.h.  */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h.  */
7531
7532int
7533main ()
7534{
7535return (int) gettext ("")
7536  ;
7537  return 0;
7538}
7539_ACEOF
7540rm -f conftest.$ac_objext conftest$ac_exeext
7541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542  (eval $ac_link) 2>conftest.er1
7543  ac_status=$?
7544  grep -v '^ *+' conftest.er1 >conftest.err
7545  rm -f conftest.er1
7546  cat conftest.err >&5
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); } &&
7549	 { ac_try='test -z "$ac_c_werror_flag"
7550			 || test ! -s conftest.err'
7551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552  (eval $ac_try) 2>&5
7553  ac_status=$?
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); }; } &&
7556	 { ac_try='test -s conftest$ac_exeext'
7557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558  (eval $ac_try) 2>&5
7559  ac_status=$?
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); }; }; then
7562  gt_cv_func_gettext_libintl=yes
7563else
7564  echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567gt_cv_func_gettext_libintl=no
7568fi
7569rm -f conftest.err conftest.$ac_objext \
7570      conftest$ac_exeext conftest.$ac_ext
7571fi
7572echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7573echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7574fi
7575
7576	   fi
7577
7578	   if test "$gt_cv_func_gettext_libc" = "yes" \
7579	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define HAVE_GETTEXT 1
7583_ACEOF
7584
7585	      # Extract the first word of "msgfmt", so it can be a program name with args.
7586set dummy msgfmt; ac_word=$2
7587echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7589if test "${ac_cv_path_MSGFMT+set}" = set; then
7590  echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592  case "$MSGFMT" in
7593  /*)
7594  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7595  ;;
7596  *)
7597  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7598  for ac_dir in $PATH; do
7599    test -z "$ac_dir" && ac_dir=.
7600    if test -f $ac_dir/$ac_word; then
7601      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7602	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7603	break
7604      fi
7605    fi
7606  done
7607  IFS="$ac_save_ifs"
7608  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7609  ;;
7610esac
7611fi
7612MSGFMT="$ac_cv_path_MSGFMT"
7613if test -n "$MSGFMT"; then
7614  echo "$as_me:$LINENO: result: $MSGFMT" >&5
7615echo "${ECHO_T}$MSGFMT" >&6
7616else
7617  echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6
7619fi
7620	      if test "$MSGFMT" != "no"; then
7621
7622for ac_func in dcgettext
7623do
7624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7625echo "$as_me:$LINENO: checking for $ac_func" >&5
7626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7627if eval "test \"\${$as_ac_var+set}\" = set"; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630  cat >conftest.$ac_ext <<_ACEOF
7631/* confdefs.h.  */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h.  */
7636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7637   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7638#define $ac_func innocuous_$ac_func
7639
7640/* System header to define __stub macros and hopefully few prototypes,
7641    which can conflict with char $ac_func (); below.
7642    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643    <limits.h> exists even on freestanding compilers.  */
7644
7645#ifdef __STDC__
7646# include <limits.h>
7647#else
7648# include <assert.h>
7649#endif
7650
7651#undef $ac_func
7652
7653/* Override any gcc2 internal prototype to avoid an error.  */
7654#ifdef __cplusplus
7655extern "C"
7656{
7657#endif
7658/* We use char because int might match the return type of a gcc2
7659   builtin and then its argument prototype would still apply.  */
7660char $ac_func ();
7661/* The GNU C library defines this for functions which it implements
7662    to always fail with ENOSYS.  Some functions are actually named
7663    something starting with __ and the normal name is an alias.  */
7664#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7665choke me
7666#else
7667char (*f) () = $ac_func;
7668#endif
7669#ifdef __cplusplus
7670}
7671#endif
7672
7673int
7674main ()
7675{
7676return f != $ac_func;
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681rm -f conftest.$ac_objext conftest$ac_exeext
7682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683  (eval $ac_link) 2>conftest.er1
7684  ac_status=$?
7685  grep -v '^ *+' conftest.er1 >conftest.err
7686  rm -f conftest.er1
7687  cat conftest.err >&5
7688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689  (exit $ac_status); } &&
7690	 { ac_try='test -z "$ac_c_werror_flag"
7691			 || test ! -s conftest.err'
7692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693  (eval $ac_try) 2>&5
7694  ac_status=$?
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); }; } &&
7697	 { ac_try='test -s conftest$ac_exeext'
7698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699  (eval $ac_try) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); }; }; then
7703  eval "$as_ac_var=yes"
7704else
7705  echo "$as_me: failed program was:" >&5
7706sed 's/^/| /' conftest.$ac_ext >&5
7707
7708eval "$as_ac_var=no"
7709fi
7710rm -f conftest.err conftest.$ac_objext \
7711      conftest$ac_exeext conftest.$ac_ext
7712fi
7713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7714echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7715if test `eval echo '${'$as_ac_var'}'` = yes; then
7716  cat >>confdefs.h <<_ACEOF
7717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7718_ACEOF
7719
7720fi
7721done
7722
7723		# Extract the first word of "gmsgfmt", so it can be a program name with args.
7724set dummy gmsgfmt; ac_word=$2
7725echo "$as_me:$LINENO: checking for $ac_word" >&5
7726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727if test "${ac_cv_path_GMSGFMT+set}" = set; then
7728  echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730  case $GMSGFMT in
7731  [\\/]* | ?:[\\/]*)
7732  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7733  ;;
7734  *)
7735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738  IFS=$as_save_IFS
7739  test -z "$as_dir" && as_dir=.
7740  for ac_exec_ext in '' $ac_executable_extensions; do
7741  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7743    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744    break 2
7745  fi
7746done
7747done
7748
7749  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7750  ;;
7751esac
7752fi
7753GMSGFMT=$ac_cv_path_GMSGFMT
7754
7755if test -n "$GMSGFMT"; then
7756  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7757echo "${ECHO_T}$GMSGFMT" >&6
7758else
7759  echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761fi
7762
7763		# Extract the first word of "xgettext", so it can be a program name with args.
7764set dummy xgettext; ac_word=$2
7765echo "$as_me:$LINENO: checking for $ac_word" >&5
7766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7767if test "${ac_cv_path_XGETTEXT+set}" = set; then
7768  echo $ECHO_N "(cached) $ECHO_C" >&6
7769else
7770  case "$XGETTEXT" in
7771  /*)
7772  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7773  ;;
7774  *)
7775  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7776  for ac_dir in $PATH; do
7777    test -z "$ac_dir" && ac_dir=.
7778    if test -f $ac_dir/$ac_word; then
7779      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7780	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7781	break
7782      fi
7783    fi
7784  done
7785  IFS="$ac_save_ifs"
7786  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7787  ;;
7788esac
7789fi
7790XGETTEXT="$ac_cv_path_XGETTEXT"
7791if test -n "$XGETTEXT"; then
7792  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7793echo "${ECHO_T}$XGETTEXT" >&6
7794else
7795  echo "$as_me:$LINENO: result: no" >&5
7796echo "${ECHO_T}no" >&6
7797fi
7798
7799		cat >conftest.$ac_ext <<_ACEOF
7800/* confdefs.h.  */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h.  */
7805
7806int
7807main ()
7808{
7809extern int _nl_msg_cat_cntr;
7810			       return _nl_msg_cat_cntr
7811  ;
7812  return 0;
7813}
7814_ACEOF
7815rm -f conftest.$ac_objext conftest$ac_exeext
7816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817  (eval $ac_link) 2>conftest.er1
7818  ac_status=$?
7819  grep -v '^ *+' conftest.er1 >conftest.err
7820  rm -f conftest.er1
7821  cat conftest.err >&5
7822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823  (exit $ac_status); } &&
7824	 { ac_try='test -z "$ac_c_werror_flag"
7825			 || test ! -s conftest.err'
7826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827  (eval $ac_try) 2>&5
7828  ac_status=$?
7829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830  (exit $ac_status); }; } &&
7831	 { ac_try='test -s conftest$ac_exeext'
7832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833  (eval $ac_try) 2>&5
7834  ac_status=$?
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); }; }; then
7837  CATOBJEXT=.gmo
7838		   DATADIRNAME=share
7839else
7840  echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
7843CATOBJEXT=.mo
7844		   DATADIRNAME=lib
7845fi
7846rm -f conftest.err conftest.$ac_objext \
7847      conftest$ac_exeext conftest.$ac_ext
7848		INSTOBJEXT=.mo
7849	      fi
7850	    fi
7851
7852fi
7853
7854
7855
7856
7857        if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7858	  # Neither gettext nor catgets in included in the C library.
7859	  # Fall back on GNU gettext library (assuming it is present).
7860	  nls_cv_use_gnu_gettext=yes
7861        fi
7862      fi
7863
7864      if test "$nls_cv_use_gnu_gettext" = "yes"; then
7865                INTLOBJS="\$(GETTOBJS)"
7866        # Extract the first word of "msgfmt", so it can be a program name with args.
7867set dummy msgfmt; ac_word=$2
7868echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7870if test "${ac_cv_path_MSGFMT+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873  case "$MSGFMT" in
7874  /*)
7875  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7876  ;;
7877  *)
7878  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7879  for ac_dir in $PATH; do
7880    test -z "$ac_dir" && ac_dir=.
7881    if test -f $ac_dir/$ac_word; then
7882      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7883	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7884	break
7885      fi
7886    fi
7887  done
7888  IFS="$ac_save_ifs"
7889  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7890  ;;
7891esac
7892fi
7893MSGFMT="$ac_cv_path_MSGFMT"
7894if test -n "$MSGFMT"; then
7895  echo "$as_me:$LINENO: result: $MSGFMT" >&5
7896echo "${ECHO_T}$MSGFMT" >&6
7897else
7898  echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
7900fi
7901
7902        # Extract the first word of "gmsgfmt", so it can be a program name with args.
7903set dummy gmsgfmt; ac_word=$2
7904echo "$as_me:$LINENO: checking for $ac_word" >&5
7905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7906if test "${ac_cv_path_GMSGFMT+set}" = set; then
7907  echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909  case $GMSGFMT in
7910  [\\/]* | ?:[\\/]*)
7911  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7912  ;;
7913  *)
7914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917  IFS=$as_save_IFS
7918  test -z "$as_dir" && as_dir=.
7919  for ac_exec_ext in '' $ac_executable_extensions; do
7920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923    break 2
7924  fi
7925done
7926done
7927
7928  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7929  ;;
7930esac
7931fi
7932GMSGFMT=$ac_cv_path_GMSGFMT
7933
7934if test -n "$GMSGFMT"; then
7935  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7936echo "${ECHO_T}$GMSGFMT" >&6
7937else
7938  echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6
7940fi
7941
7942        # Extract the first word of "xgettext", so it can be a program name with args.
7943set dummy xgettext; ac_word=$2
7944echo "$as_me:$LINENO: checking for $ac_word" >&5
7945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7946if test "${ac_cv_path_XGETTEXT+set}" = set; then
7947  echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949  case "$XGETTEXT" in
7950  /*)
7951  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7952  ;;
7953  *)
7954  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7955  for ac_dir in $PATH; do
7956    test -z "$ac_dir" && ac_dir=.
7957    if test -f $ac_dir/$ac_word; then
7958      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7959	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7960	break
7961      fi
7962    fi
7963  done
7964  IFS="$ac_save_ifs"
7965  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7966  ;;
7967esac
7968fi
7969XGETTEXT="$ac_cv_path_XGETTEXT"
7970if test -n "$XGETTEXT"; then
7971  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7972echo "${ECHO_T}$XGETTEXT" >&6
7973else
7974  echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
7976fi
7977
7978
7979	USE_INCLUDED_LIBINTL=yes
7980        CATOBJEXT=.gmo
7981        INSTOBJEXT=.mo
7982        DATADIRNAME=share
7983	INTLDEPS='$(top_builddir)/../intl/libintl.a'
7984	INTLLIBS=$INTLDEPS
7985	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7986        nls_cv_header_intl=libintl.h
7987        nls_cv_header_libgt=libgettext.h
7988      fi
7989
7990            if test "$XGETTEXT" != ":"; then
7991			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7992	  : ;
7993	else
7994	  echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7995echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7996	  XGETTEXT=":"
7997	fi
7998      fi
7999
8000      # We need to process the po/ directory.
8001      POSUB=po
8002    else
8003      DATADIRNAME=share
8004      nls_cv_header_intl=libintl.h
8005      nls_cv_header_libgt=libgettext.h
8006    fi
8007
8008    # If this is used in GNU gettext we have to set USE_NLS to `yes'
8009    # because some of the sources are only built for this goal.
8010    if test "$PACKAGE" = gettext; then
8011      USE_NLS=yes
8012      USE_INCLUDED_LIBINTL=yes
8013    fi
8014
8015                for lang in $ALL_LINGUAS; do
8016      GMOFILES="$GMOFILES $lang.gmo"
8017      POFILES="$POFILES $lang.po"
8018    done
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031    if test "x$CATOBJEXT" != "x"; then
8032
8033cat >>confdefs.h <<\_ACEOF
8034#define ENABLE_NLS 1
8035_ACEOF
8036
8037    fi
8038
8039
8040   if test "x$CATOBJEXT" != "x"; then
8041     if test "x$ALL_LINGUAS" = "x"; then
8042       LINGUAS=
8043     else
8044       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8045echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8046       NEW_LINGUAS=
8047       for lang in ${LINGUAS=$ALL_LINGUAS}; do
8048         case "$ALL_LINGUAS" in
8049          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8050         esac
8051       done
8052       LINGUAS=$NEW_LINGUAS
8053       echo "$as_me:$LINENO: result: $LINGUAS" >&5
8054echo "${ECHO_T}$LINGUAS" >&6
8055     fi
8056
8057          if test -n "$LINGUAS"; then
8058       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8059     fi
8060   fi
8061
8062            if test $ac_cv_header_locale_h = yes; then
8063     INCLUDE_LOCALE_H="#include <locale.h>"
8064   else
8065     INCLUDE_LOCALE_H="\
8066/* The system does not provide the header <locale.h>.  Take care yourself.  */"
8067   fi
8068
8069
8070            if test -f $srcdir/po2tbl.sed.in; then
8071      if test "$CATOBJEXT" = ".cat"; then
8072	 if test "${ac_cv_header_linux_version_h+set}" = set; then
8073  echo "$as_me:$LINENO: checking for linux/version.h" >&5
8074echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8075if test "${ac_cv_header_linux_version_h+set}" = set; then
8076  echo $ECHO_N "(cached) $ECHO_C" >&6
8077fi
8078echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8079echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8080else
8081  # Is the header compilable?
8082echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8083echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8084cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h.  */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h.  */
8090$ac_includes_default
8091#include <linux/version.h>
8092_ACEOF
8093rm -f conftest.$ac_objext
8094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8095  (eval $ac_compile) 2>conftest.er1
8096  ac_status=$?
8097  grep -v '^ *+' conftest.er1 >conftest.err
8098  rm -f conftest.er1
8099  cat conftest.err >&5
8100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101  (exit $ac_status); } &&
8102	 { ac_try='test -z "$ac_c_werror_flag"
8103			 || test ! -s conftest.err'
8104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105  (eval $ac_try) 2>&5
8106  ac_status=$?
8107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108  (exit $ac_status); }; } &&
8109	 { ac_try='test -s conftest.$ac_objext'
8110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111  (eval $ac_try) 2>&5
8112  ac_status=$?
8113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114  (exit $ac_status); }; }; then
8115  ac_header_compiler=yes
8116else
8117  echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120ac_header_compiler=no
8121fi
8122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8124echo "${ECHO_T}$ac_header_compiler" >&6
8125
8126# Is the header present?
8127echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8128echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8129cat >conftest.$ac_ext <<_ACEOF
8130/* confdefs.h.  */
8131_ACEOF
8132cat confdefs.h >>conftest.$ac_ext
8133cat >>conftest.$ac_ext <<_ACEOF
8134/* end confdefs.h.  */
8135#include <linux/version.h>
8136_ACEOF
8137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8138  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8139  ac_status=$?
8140  grep -v '^ *+' conftest.er1 >conftest.err
8141  rm -f conftest.er1
8142  cat conftest.err >&5
8143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144  (exit $ac_status); } >/dev/null; then
8145  if test -s conftest.err; then
8146    ac_cpp_err=$ac_c_preproc_warn_flag
8147    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8148  else
8149    ac_cpp_err=
8150  fi
8151else
8152  ac_cpp_err=yes
8153fi
8154if test -z "$ac_cpp_err"; then
8155  ac_header_preproc=yes
8156else
8157  echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160  ac_header_preproc=no
8161fi
8162rm -f conftest.err conftest.$ac_ext
8163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8164echo "${ECHO_T}$ac_header_preproc" >&6
8165
8166# So?  What about this header?
8167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8168  yes:no: )
8169    { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8170echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8171    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8172echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8173    ac_header_preproc=yes
8174    ;;
8175  no:yes:* )
8176    { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8177echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8178    { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
8179echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
8180    { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8181echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8182    { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
8183echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8184    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8185echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8186    { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8187echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8188    (
8189      cat <<\_ASBOX
8190## ------------------------------------------ ##
8191## Report this to the AC_PACKAGE_NAME lists.  ##
8192## ------------------------------------------ ##
8193_ASBOX
8194    ) |
8195      sed "s/^/$as_me: WARNING:     /" >&2
8196    ;;
8197esac
8198echo "$as_me:$LINENO: checking for linux/version.h" >&5
8199echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8200if test "${ac_cv_header_linux_version_h+set}" = set; then
8201  echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203  ac_cv_header_linux_version_h=$ac_header_preproc
8204fi
8205echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8206echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8207
8208fi
8209if test $ac_cv_header_linux_version_h = yes; then
8210  msgformat=linux
8211else
8212  msgformat=xopen
8213fi
8214
8215
8216
8217	          	 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8218      fi
8219            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8220	 $srcdir/po2tbl.sed.in > po2tbl.sed
8221   fi
8222
8223            if test "$PACKAGE" = "gettext"; then
8224     GT_NO="#NO#"
8225     GT_YES=
8226   else
8227     GT_NO=
8228     GT_YES="#YES#"
8229   fi
8230
8231
8232
8233   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8234
8235
8236      l=
8237
8238
8239            if test -f $srcdir/po/POTFILES.in; then
8240      test -d po || mkdir po
8241      if test "x$srcdir" != "x."; then
8242	 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8243	    posrcprefix="$srcdir/"
8244	 else
8245	    posrcprefix="../$srcdir/"
8246	 fi
8247      else
8248	 posrcprefix="../"
8249      fi
8250      rm -f po/POTFILES
8251      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8252	 < $srcdir/po/POTFILES.in > po/POTFILES
8253   fi
8254
8255
8256
8257
8258for ac_prog in 'bison -y' byacc
8259do
8260  # Extract the first word of "$ac_prog", so it can be a program name with args.
8261set dummy $ac_prog; ac_word=$2
8262echo "$as_me:$LINENO: checking for $ac_word" >&5
8263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8264if test "${ac_cv_prog_YACC+set}" = set; then
8265  echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267  if test -n "$YACC"; then
8268  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273  IFS=$as_save_IFS
8274  test -z "$as_dir" && as_dir=.
8275  for ac_exec_ext in '' $ac_executable_extensions; do
8276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277    ac_cv_prog_YACC="$ac_prog"
8278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279    break 2
8280  fi
8281done
8282done
8283
8284fi
8285fi
8286YACC=$ac_cv_prog_YACC
8287if test -n "$YACC"; then
8288  echo "$as_me:$LINENO: result: $YACC" >&5
8289echo "${ECHO_T}$YACC" >&6
8290else
8291  echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6
8293fi
8294
8295  test -n "$YACC" && break
8296done
8297test -n "$YACC" || YACC="yacc"
8298
8299for ac_prog in flex lex
8300do
8301  # Extract the first word of "$ac_prog", so it can be a program name with args.
8302set dummy $ac_prog; ac_word=$2
8303echo "$as_me:$LINENO: checking for $ac_word" >&5
8304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8305if test "${ac_cv_prog_LEX+set}" = set; then
8306  echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308  if test -n "$LEX"; then
8309  ac_cv_prog_LEX="$LEX" # Let the user override the test.
8310else
8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312for as_dir in $PATH
8313do
8314  IFS=$as_save_IFS
8315  test -z "$as_dir" && as_dir=.
8316  for ac_exec_ext in '' $ac_executable_extensions; do
8317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318    ac_cv_prog_LEX="$ac_prog"
8319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320    break 2
8321  fi
8322done
8323done
8324
8325fi
8326fi
8327LEX=$ac_cv_prog_LEX
8328if test -n "$LEX"; then
8329  echo "$as_me:$LINENO: result: $LEX" >&5
8330echo "${ECHO_T}$LEX" >&6
8331else
8332  echo "$as_me:$LINENO: result: no" >&5
8333echo "${ECHO_T}no" >&6
8334fi
8335
8336  test -n "$LEX" && break
8337done
8338test -n "$LEX" || LEX=":"
8339
8340if test -z "$LEXLIB"
8341then
8342  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8343echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8344if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8345  echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347  ac_check_lib_save_LIBS=$LIBS
8348LIBS="-lfl  $LIBS"
8349cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h.  */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h.  */
8355
8356/* Override any gcc2 internal prototype to avoid an error.  */
8357#ifdef __cplusplus
8358extern "C"
8359#endif
8360/* We use char because int might match the return type of a gcc2
8361   builtin and then its argument prototype would still apply.  */
8362char yywrap ();
8363int
8364main ()
8365{
8366yywrap ();
8367  ;
8368  return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext conftest$ac_exeext
8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373  (eval $ac_link) 2>conftest.er1
8374  ac_status=$?
8375  grep -v '^ *+' conftest.er1 >conftest.err
8376  rm -f conftest.er1
8377  cat conftest.err >&5
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); } &&
8380	 { ac_try='test -z "$ac_c_werror_flag"
8381			 || test ! -s conftest.err'
8382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383  (eval $ac_try) 2>&5
8384  ac_status=$?
8385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); }; } &&
8387	 { ac_try='test -s conftest$ac_exeext'
8388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389  (eval $ac_try) 2>&5
8390  ac_status=$?
8391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392  (exit $ac_status); }; }; then
8393  ac_cv_lib_fl_yywrap=yes
8394else
8395  echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398ac_cv_lib_fl_yywrap=no
8399fi
8400rm -f conftest.err conftest.$ac_objext \
8401      conftest$ac_exeext conftest.$ac_ext
8402LIBS=$ac_check_lib_save_LIBS
8403fi
8404echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8405echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8406if test $ac_cv_lib_fl_yywrap = yes; then
8407  LEXLIB="-lfl"
8408else
8409  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8410echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8411if test "${ac_cv_lib_l_yywrap+set}" = set; then
8412  echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414  ac_check_lib_save_LIBS=$LIBS
8415LIBS="-ll  $LIBS"
8416cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h.  */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h.  */
8422
8423/* Override any gcc2 internal prototype to avoid an error.  */
8424#ifdef __cplusplus
8425extern "C"
8426#endif
8427/* We use char because int might match the return type of a gcc2
8428   builtin and then its argument prototype would still apply.  */
8429char yywrap ();
8430int
8431main ()
8432{
8433yywrap ();
8434  ;
8435  return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440  (eval $ac_link) 2>conftest.er1
8441  ac_status=$?
8442  grep -v '^ *+' conftest.er1 >conftest.err
8443  rm -f conftest.er1
8444  cat conftest.err >&5
8445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446  (exit $ac_status); } &&
8447	 { ac_try='test -z "$ac_c_werror_flag"
8448			 || test ! -s conftest.err'
8449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450  (eval $ac_try) 2>&5
8451  ac_status=$?
8452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453  (exit $ac_status); }; } &&
8454	 { ac_try='test -s conftest$ac_exeext'
8455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456  (eval $ac_try) 2>&5
8457  ac_status=$?
8458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459  (exit $ac_status); }; }; then
8460  ac_cv_lib_l_yywrap=yes
8461else
8462  echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465ac_cv_lib_l_yywrap=no
8466fi
8467rm -f conftest.err conftest.$ac_objext \
8468      conftest$ac_exeext conftest.$ac_ext
8469LIBS=$ac_check_lib_save_LIBS
8470fi
8471echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8472echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8473if test $ac_cv_lib_l_yywrap = yes; then
8474  LEXLIB="-ll"
8475fi
8476
8477fi
8478
8479fi
8480
8481if test "x$LEX" != "x:"; then
8482  echo "$as_me:$LINENO: checking lex output file root" >&5
8483echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8484if test "${ac_cv_prog_lex_root+set}" = set; then
8485  echo $ECHO_N "(cached) $ECHO_C" >&6
8486else
8487  # The minimal lex program is just a single line: %%.  But some broken lexes
8488# (Solaris, I think it was) want two %% lines, so accommodate them.
8489cat >conftest.l <<_ACEOF
8490%%
8491%%
8492_ACEOF
8493{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8494  (eval $LEX conftest.l) 2>&5
8495  ac_status=$?
8496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497  (exit $ac_status); }
8498if test -f lex.yy.c; then
8499  ac_cv_prog_lex_root=lex.yy
8500elif test -f lexyy.c; then
8501  ac_cv_prog_lex_root=lexyy
8502else
8503  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8504echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8505   { (exit 1); exit 1; }; }
8506fi
8507fi
8508echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8509echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8510rm -f conftest.l
8511LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8512
8513echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8514echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8515if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8516  echo $ECHO_N "(cached) $ECHO_C" >&6
8517else
8518  # POSIX says lex can declare yytext either as a pointer or an array; the
8519# default is implementation-dependent. Figure out which it is, since
8520# not all implementations provide the %pointer and %array declarations.
8521ac_cv_prog_lex_yytext_pointer=no
8522echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8523ac_save_LIBS=$LIBS
8524LIBS="$LIBS $LEXLIB"
8525cat >conftest.$ac_ext <<_ACEOF
8526`cat $LEX_OUTPUT_ROOT.c`
8527_ACEOF
8528rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530  (eval $ac_link) 2>conftest.er1
8531  ac_status=$?
8532  grep -v '^ *+' conftest.er1 >conftest.err
8533  rm -f conftest.er1
8534  cat conftest.err >&5
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); } &&
8537	 { ac_try='test -z "$ac_c_werror_flag"
8538			 || test ! -s conftest.err'
8539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540  (eval $ac_try) 2>&5
8541  ac_status=$?
8542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543  (exit $ac_status); }; } &&
8544	 { ac_try='test -s conftest$ac_exeext'
8545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546  (eval $ac_try) 2>&5
8547  ac_status=$?
8548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549  (exit $ac_status); }; }; then
8550  ac_cv_prog_lex_yytext_pointer=yes
8551else
8552  echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555fi
8556rm -f conftest.err conftest.$ac_objext \
8557      conftest$ac_exeext conftest.$ac_ext
8558LIBS=$ac_save_LIBS
8559rm -f "${LEX_OUTPUT_ROOT}.c"
8560
8561fi
8562echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8563echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8564if test $ac_cv_prog_lex_yytext_pointer = yes; then
8565
8566cat >>confdefs.h <<\_ACEOF
8567#define YYTEXT_POINTER 1
8568_ACEOF
8569
8570fi
8571
8572fi
8573if test "$LEX" = :; then
8574  LEX=${am_missing_run}flex
8575fi
8576
8577echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8578echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8579    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8580if test "${enable_maintainer_mode+set}" = set; then
8581  enableval="$enable_maintainer_mode"
8582  USE_MAINTAINER_MODE=$enableval
8583else
8584  USE_MAINTAINER_MODE=no
8585fi;
8586  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8587echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8588
8589
8590if test $USE_MAINTAINER_MODE = yes; then
8591  MAINTAINER_MODE_TRUE=
8592  MAINTAINER_MODE_FALSE='#'
8593else
8594  MAINTAINER_MODE_TRUE='#'
8595  MAINTAINER_MODE_FALSE=
8596fi
8597
8598  MAINT=$MAINTAINER_MODE_TRUE
8599
8600
8601
8602. ${srcdir}/configure.host
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h
8615do
8616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8617if eval "test \"\${$as_ac_Header+set}\" = set"; then
8618  echo "$as_me:$LINENO: checking for $ac_header" >&5
8619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620if eval "test \"\${$as_ac_Header+set}\" = set"; then
8621  echo $ECHO_N "(cached) $ECHO_C" >&6
8622fi
8623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8625else
8626  # Is the header compilable?
8627echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h.  */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h.  */
8635$ac_includes_default
8636#include <$ac_header>
8637_ACEOF
8638rm -f conftest.$ac_objext
8639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640  (eval $ac_compile) 2>conftest.er1
8641  ac_status=$?
8642  grep -v '^ *+' conftest.er1 >conftest.err
8643  rm -f conftest.er1
8644  cat conftest.err >&5
8645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646  (exit $ac_status); } &&
8647	 { ac_try='test -z "$ac_c_werror_flag"
8648			 || test ! -s conftest.err'
8649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650  (eval $ac_try) 2>&5
8651  ac_status=$?
8652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653  (exit $ac_status); }; } &&
8654	 { ac_try='test -s conftest.$ac_objext'
8655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656  (eval $ac_try) 2>&5
8657  ac_status=$?
8658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659  (exit $ac_status); }; }; then
8660  ac_header_compiler=yes
8661else
8662  echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
8665ac_header_compiler=no
8666fi
8667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8669echo "${ECHO_T}$ac_header_compiler" >&6
8670
8671# Is the header present?
8672echo "$as_me:$LINENO: checking $ac_header presence" >&5
8673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8674cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h.  */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h.  */
8680#include <$ac_header>
8681_ACEOF
8682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8683  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8684  ac_status=$?
8685  grep -v '^ *+' conftest.er1 >conftest.err
8686  rm -f conftest.er1
8687  cat conftest.err >&5
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); } >/dev/null; then
8690  if test -s conftest.err; then
8691    ac_cpp_err=$ac_c_preproc_warn_flag
8692    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693  else
8694    ac_cpp_err=
8695  fi
8696else
8697  ac_cpp_err=yes
8698fi
8699if test -z "$ac_cpp_err"; then
8700  ac_header_preproc=yes
8701else
8702  echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705  ac_header_preproc=no
8706fi
8707rm -f conftest.err conftest.$ac_ext
8708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709echo "${ECHO_T}$ac_header_preproc" >&6
8710
8711# So?  What about this header?
8712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713  yes:no: )
8714    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8716    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8718    ac_header_preproc=yes
8719    ;;
8720  no:yes:* )
8721    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8723    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8724echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8725    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8727    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8728echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8729    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8731    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8733    (
8734      cat <<\_ASBOX
8735## ------------------------------------------ ##
8736## Report this to the AC_PACKAGE_NAME lists.  ##
8737## ------------------------------------------ ##
8738_ASBOX
8739    ) |
8740      sed "s/^/$as_me: WARNING:     /" >&2
8741    ;;
8742esac
8743echo "$as_me:$LINENO: checking for $ac_header" >&5
8744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8745if eval "test \"\${$as_ac_Header+set}\" = set"; then
8746  echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748  eval "$as_ac_Header=\$ac_header_preproc"
8749fi
8750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8752
8753fi
8754if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755  cat >>confdefs.h <<_ACEOF
8756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757_ACEOF
8758
8759fi
8760
8761done
8762
8763
8764
8765
8766for ac_func in sbrk realpath glob
8767do
8768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8769echo "$as_me:$LINENO: checking for $ac_func" >&5
8770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8771if eval "test \"\${$as_ac_var+set}\" = set"; then
8772  echo $ECHO_N "(cached) $ECHO_C" >&6
8773else
8774  cat >conftest.$ac_ext <<_ACEOF
8775/* confdefs.h.  */
8776_ACEOF
8777cat confdefs.h >>conftest.$ac_ext
8778cat >>conftest.$ac_ext <<_ACEOF
8779/* end confdefs.h.  */
8780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8781   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8782#define $ac_func innocuous_$ac_func
8783
8784/* System header to define __stub macros and hopefully few prototypes,
8785    which can conflict with char $ac_func (); below.
8786    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8787    <limits.h> exists even on freestanding compilers.  */
8788
8789#ifdef __STDC__
8790# include <limits.h>
8791#else
8792# include <assert.h>
8793#endif
8794
8795#undef $ac_func
8796
8797/* Override any gcc2 internal prototype to avoid an error.  */
8798#ifdef __cplusplus
8799extern "C"
8800{
8801#endif
8802/* We use char because int might match the return type of a gcc2
8803   builtin and then its argument prototype would still apply.  */
8804char $ac_func ();
8805/* The GNU C library defines this for functions which it implements
8806    to always fail with ENOSYS.  Some functions are actually named
8807    something starting with __ and the normal name is an alias.  */
8808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8809choke me
8810#else
8811char (*f) () = $ac_func;
8812#endif
8813#ifdef __cplusplus
8814}
8815#endif
8816
8817int
8818main ()
8819{
8820return f != $ac_func;
8821  ;
8822  return 0;
8823}
8824_ACEOF
8825rm -f conftest.$ac_objext conftest$ac_exeext
8826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827  (eval $ac_link) 2>conftest.er1
8828  ac_status=$?
8829  grep -v '^ *+' conftest.er1 >conftest.err
8830  rm -f conftest.er1
8831  cat conftest.err >&5
8832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); } &&
8834	 { ac_try='test -z "$ac_c_werror_flag"
8835			 || test ! -s conftest.err'
8836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837  (eval $ac_try) 2>&5
8838  ac_status=$?
8839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840  (exit $ac_status); }; } &&
8841	 { ac_try='test -s conftest$ac_exeext'
8842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843  (eval $ac_try) 2>&5
8844  ac_status=$?
8845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846  (exit $ac_status); }; }; then
8847  eval "$as_ac_var=yes"
8848else
8849  echo "$as_me: failed program was:" >&5
8850sed 's/^/| /' conftest.$ac_ext >&5
8851
8852eval "$as_ac_var=no"
8853fi
8854rm -f conftest.err conftest.$ac_objext \
8855      conftest$ac_exeext conftest.$ac_ext
8856fi
8857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8859if test `eval echo '${'$as_ac_var'}'` = yes; then
8860  cat >>confdefs.h <<_ACEOF
8861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8862_ACEOF
8863
8864fi
8865done
8866
8867
8868
8869
8870
8871
8872ac_header_dirent=no
8873for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8874  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8875echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8876echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8877if eval "test \"\${$as_ac_Header+set}\" = set"; then
8878  echo $ECHO_N "(cached) $ECHO_C" >&6
8879else
8880  cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h.  */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h.  */
8886#include <sys/types.h>
8887#include <$ac_hdr>
8888
8889int
8890main ()
8891{
8892if ((DIR *) 0)
8893return 0;
8894  ;
8895  return 0;
8896}
8897_ACEOF
8898rm -f conftest.$ac_objext
8899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900  (eval $ac_compile) 2>conftest.er1
8901  ac_status=$?
8902  grep -v '^ *+' conftest.er1 >conftest.err
8903  rm -f conftest.er1
8904  cat conftest.err >&5
8905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906  (exit $ac_status); } &&
8907	 { ac_try='test -z "$ac_c_werror_flag"
8908			 || test ! -s conftest.err'
8909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910  (eval $ac_try) 2>&5
8911  ac_status=$?
8912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913  (exit $ac_status); }; } &&
8914	 { ac_try='test -s conftest.$ac_objext'
8915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916  (eval $ac_try) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }; }; then
8920  eval "$as_ac_Header=yes"
8921else
8922  echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925eval "$as_ac_Header=no"
8926fi
8927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8928fi
8929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8931if test `eval echo '${'$as_ac_Header'}'` = yes; then
8932  cat >>confdefs.h <<_ACEOF
8933#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8934_ACEOF
8935
8936ac_header_dirent=$ac_hdr; break
8937fi
8938
8939done
8940# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8941if test $ac_header_dirent = dirent.h; then
8942  echo "$as_me:$LINENO: checking for library containing opendir" >&5
8943echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8944if test "${ac_cv_search_opendir+set}" = set; then
8945  echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947  ac_func_search_save_LIBS=$LIBS
8948ac_cv_search_opendir=no
8949cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h.  */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h.  */
8955
8956/* Override any gcc2 internal prototype to avoid an error.  */
8957#ifdef __cplusplus
8958extern "C"
8959#endif
8960/* We use char because int might match the return type of a gcc2
8961   builtin and then its argument prototype would still apply.  */
8962char opendir ();
8963int
8964main ()
8965{
8966opendir ();
8967  ;
8968  return 0;
8969}
8970_ACEOF
8971rm -f conftest.$ac_objext conftest$ac_exeext
8972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973  (eval $ac_link) 2>conftest.er1
8974  ac_status=$?
8975  grep -v '^ *+' conftest.er1 >conftest.err
8976  rm -f conftest.er1
8977  cat conftest.err >&5
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); } &&
8980	 { ac_try='test -z "$ac_c_werror_flag"
8981			 || test ! -s conftest.err'
8982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983  (eval $ac_try) 2>&5
8984  ac_status=$?
8985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986  (exit $ac_status); }; } &&
8987	 { ac_try='test -s conftest$ac_exeext'
8988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989  (eval $ac_try) 2>&5
8990  ac_status=$?
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); }; }; then
8993  ac_cv_search_opendir="none required"
8994else
8995  echo "$as_me: failed program was:" >&5
8996sed 's/^/| /' conftest.$ac_ext >&5
8997
8998fi
8999rm -f conftest.err conftest.$ac_objext \
9000      conftest$ac_exeext conftest.$ac_ext
9001if test "$ac_cv_search_opendir" = no; then
9002  for ac_lib in dir; do
9003    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9004    cat >conftest.$ac_ext <<_ACEOF
9005/* confdefs.h.  */
9006_ACEOF
9007cat confdefs.h >>conftest.$ac_ext
9008cat >>conftest.$ac_ext <<_ACEOF
9009/* end confdefs.h.  */
9010
9011/* Override any gcc2 internal prototype to avoid an error.  */
9012#ifdef __cplusplus
9013extern "C"
9014#endif
9015/* We use char because int might match the return type of a gcc2
9016   builtin and then its argument prototype would still apply.  */
9017char opendir ();
9018int
9019main ()
9020{
9021opendir ();
9022  ;
9023  return 0;
9024}
9025_ACEOF
9026rm -f conftest.$ac_objext conftest$ac_exeext
9027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028  (eval $ac_link) 2>conftest.er1
9029  ac_status=$?
9030  grep -v '^ *+' conftest.er1 >conftest.err
9031  rm -f conftest.er1
9032  cat conftest.err >&5
9033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034  (exit $ac_status); } &&
9035	 { ac_try='test -z "$ac_c_werror_flag"
9036			 || test ! -s conftest.err'
9037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038  (eval $ac_try) 2>&5
9039  ac_status=$?
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); }; } &&
9042	 { ac_try='test -s conftest$ac_exeext'
9043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044  (eval $ac_try) 2>&5
9045  ac_status=$?
9046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); }; }; then
9048  ac_cv_search_opendir="-l$ac_lib"
9049break
9050else
9051  echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054fi
9055rm -f conftest.err conftest.$ac_objext \
9056      conftest$ac_exeext conftest.$ac_ext
9057  done
9058fi
9059LIBS=$ac_func_search_save_LIBS
9060fi
9061echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9062echo "${ECHO_T}$ac_cv_search_opendir" >&6
9063if test "$ac_cv_search_opendir" != no; then
9064  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9065
9066fi
9067
9068else
9069  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9070echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9071if test "${ac_cv_search_opendir+set}" = set; then
9072  echo $ECHO_N "(cached) $ECHO_C" >&6
9073else
9074  ac_func_search_save_LIBS=$LIBS
9075ac_cv_search_opendir=no
9076cat >conftest.$ac_ext <<_ACEOF
9077/* confdefs.h.  */
9078_ACEOF
9079cat confdefs.h >>conftest.$ac_ext
9080cat >>conftest.$ac_ext <<_ACEOF
9081/* end confdefs.h.  */
9082
9083/* Override any gcc2 internal prototype to avoid an error.  */
9084#ifdef __cplusplus
9085extern "C"
9086#endif
9087/* We use char because int might match the return type of a gcc2
9088   builtin and then its argument prototype would still apply.  */
9089char opendir ();
9090int
9091main ()
9092{
9093opendir ();
9094  ;
9095  return 0;
9096}
9097_ACEOF
9098rm -f conftest.$ac_objext conftest$ac_exeext
9099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100  (eval $ac_link) 2>conftest.er1
9101  ac_status=$?
9102  grep -v '^ *+' conftest.er1 >conftest.err
9103  rm -f conftest.er1
9104  cat conftest.err >&5
9105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106  (exit $ac_status); } &&
9107	 { ac_try='test -z "$ac_c_werror_flag"
9108			 || test ! -s conftest.err'
9109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110  (eval $ac_try) 2>&5
9111  ac_status=$?
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); }; } &&
9114	 { ac_try='test -s conftest$ac_exeext'
9115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116  (eval $ac_try) 2>&5
9117  ac_status=$?
9118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); }; }; then
9120  ac_cv_search_opendir="none required"
9121else
9122  echo "$as_me: failed program was:" >&5
9123sed 's/^/| /' conftest.$ac_ext >&5
9124
9125fi
9126rm -f conftest.err conftest.$ac_objext \
9127      conftest$ac_exeext conftest.$ac_ext
9128if test "$ac_cv_search_opendir" = no; then
9129  for ac_lib in x; do
9130    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9131    cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h.  */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h.  */
9137
9138/* Override any gcc2 internal prototype to avoid an error.  */
9139#ifdef __cplusplus
9140extern "C"
9141#endif
9142/* We use char because int might match the return type of a gcc2
9143   builtin and then its argument prototype would still apply.  */
9144char opendir ();
9145int
9146main ()
9147{
9148opendir ();
9149  ;
9150  return 0;
9151}
9152_ACEOF
9153rm -f conftest.$ac_objext conftest$ac_exeext
9154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155  (eval $ac_link) 2>conftest.er1
9156  ac_status=$?
9157  grep -v '^ *+' conftest.er1 >conftest.err
9158  rm -f conftest.er1
9159  cat conftest.err >&5
9160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161  (exit $ac_status); } &&
9162	 { ac_try='test -z "$ac_c_werror_flag"
9163			 || test ! -s conftest.err'
9164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165  (eval $ac_try) 2>&5
9166  ac_status=$?
9167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168  (exit $ac_status); }; } &&
9169	 { ac_try='test -s conftest$ac_exeext'
9170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171  (eval $ac_try) 2>&5
9172  ac_status=$?
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); }; }; then
9175  ac_cv_search_opendir="-l$ac_lib"
9176break
9177else
9178  echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
9181fi
9182rm -f conftest.err conftest.$ac_objext \
9183      conftest$ac_exeext conftest.$ac_ext
9184  done
9185fi
9186LIBS=$ac_func_search_save_LIBS
9187fi
9188echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9189echo "${ECHO_T}$ac_cv_search_opendir" >&6
9190if test "$ac_cv_search_opendir" != no; then
9191  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9192
9193fi
9194
9195fi
9196
9197
9198echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9199echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9200if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
9201  echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203  cat >conftest.$ac_ext <<_ACEOF
9204/* confdefs.h.  */
9205_ACEOF
9206cat confdefs.h >>conftest.$ac_ext
9207cat >>conftest.$ac_ext <<_ACEOF
9208/* end confdefs.h.  */
9209#include <unistd.h>
9210int
9211main ()
9212{
9213extern int getopt (int, char *const*, const char *);
9214  ;
9215  return 0;
9216}
9217_ACEOF
9218rm -f conftest.$ac_objext
9219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220  (eval $ac_compile) 2>conftest.er1
9221  ac_status=$?
9222  grep -v '^ *+' conftest.er1 >conftest.err
9223  rm -f conftest.er1
9224  cat conftest.err >&5
9225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226  (exit $ac_status); } &&
9227	 { ac_try='test -z "$ac_c_werror_flag"
9228			 || test ! -s conftest.err'
9229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230  (eval $ac_try) 2>&5
9231  ac_status=$?
9232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233  (exit $ac_status); }; } &&
9234	 { ac_try='test -s conftest.$ac_objext'
9235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236  (eval $ac_try) 2>&5
9237  ac_status=$?
9238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239  (exit $ac_status); }; }; then
9240  ld_cv_decl_getopt_unistd_h=yes
9241else
9242  echo "$as_me: failed program was:" >&5
9243sed 's/^/| /' conftest.$ac_ext >&5
9244
9245ld_cv_decl_getopt_unistd_h=no
9246fi
9247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248fi
9249
9250echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
9251echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
9252if test $ld_cv_decl_getopt_unistd_h = yes; then
9253
9254cat >>confdefs.h <<\_ACEOF
9255#define HAVE_DECL_GETOPT 1
9256_ACEOF
9257
9258fi
9259
9260
9261case "${host}" in
9262*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9263
9264cat >>confdefs.h <<\_ACEOF
9265#define USE_BINARY_FOPEN 1
9266_ACEOF
9267 ;;
9268esac
9269
9270echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9271echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9272if test "${ac_cv_have_decl_strstr+set}" = set; then
9273  echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275  cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h.  */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h.  */
9281$ac_includes_default
9282int
9283main ()
9284{
9285#ifndef strstr
9286  char *p = (char *) strstr;
9287#endif
9288
9289  ;
9290  return 0;
9291}
9292_ACEOF
9293rm -f conftest.$ac_objext
9294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9295  (eval $ac_compile) 2>conftest.er1
9296  ac_status=$?
9297  grep -v '^ *+' conftest.er1 >conftest.err
9298  rm -f conftest.er1
9299  cat conftest.err >&5
9300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301  (exit $ac_status); } &&
9302	 { ac_try='test -z "$ac_c_werror_flag"
9303			 || test ! -s conftest.err'
9304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305  (eval $ac_try) 2>&5
9306  ac_status=$?
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); }; } &&
9309	 { ac_try='test -s conftest.$ac_objext'
9310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311  (eval $ac_try) 2>&5
9312  ac_status=$?
9313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314  (exit $ac_status); }; }; then
9315  ac_cv_have_decl_strstr=yes
9316else
9317  echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
9320ac_cv_have_decl_strstr=no
9321fi
9322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323fi
9324echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9325echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9326if test $ac_cv_have_decl_strstr = yes; then
9327
9328cat >>confdefs.h <<_ACEOF
9329#define HAVE_DECL_STRSTR 1
9330_ACEOF
9331
9332
9333else
9334  cat >>confdefs.h <<_ACEOF
9335#define HAVE_DECL_STRSTR 0
9336_ACEOF
9337
9338
9339fi
9340echo "$as_me:$LINENO: checking whether free is declared" >&5
9341echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9342if test "${ac_cv_have_decl_free+set}" = set; then
9343  echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345  cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h.  */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h.  */
9351$ac_includes_default
9352int
9353main ()
9354{
9355#ifndef free
9356  char *p = (char *) free;
9357#endif
9358
9359  ;
9360  return 0;
9361}
9362_ACEOF
9363rm -f conftest.$ac_objext
9364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9365  (eval $ac_compile) 2>conftest.er1
9366  ac_status=$?
9367  grep -v '^ *+' conftest.er1 >conftest.err
9368  rm -f conftest.er1
9369  cat conftest.err >&5
9370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371  (exit $ac_status); } &&
9372	 { ac_try='test -z "$ac_c_werror_flag"
9373			 || test ! -s conftest.err'
9374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375  (eval $ac_try) 2>&5
9376  ac_status=$?
9377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378  (exit $ac_status); }; } &&
9379	 { ac_try='test -s conftest.$ac_objext'
9380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381  (eval $ac_try) 2>&5
9382  ac_status=$?
9383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384  (exit $ac_status); }; }; then
9385  ac_cv_have_decl_free=yes
9386else
9387  echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
9390ac_cv_have_decl_free=no
9391fi
9392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9393fi
9394echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9395echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9396if test $ac_cv_have_decl_free = yes; then
9397
9398cat >>confdefs.h <<_ACEOF
9399#define HAVE_DECL_FREE 1
9400_ACEOF
9401
9402
9403else
9404  cat >>confdefs.h <<_ACEOF
9405#define HAVE_DECL_FREE 0
9406_ACEOF
9407
9408
9409fi
9410echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
9411echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
9412if test "${ac_cv_have_decl_sbrk+set}" = set; then
9413  echo $ECHO_N "(cached) $ECHO_C" >&6
9414else
9415  cat >conftest.$ac_ext <<_ACEOF
9416/* confdefs.h.  */
9417_ACEOF
9418cat confdefs.h >>conftest.$ac_ext
9419cat >>conftest.$ac_ext <<_ACEOF
9420/* end confdefs.h.  */
9421$ac_includes_default
9422int
9423main ()
9424{
9425#ifndef sbrk
9426  char *p = (char *) sbrk;
9427#endif
9428
9429  ;
9430  return 0;
9431}
9432_ACEOF
9433rm -f conftest.$ac_objext
9434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9435  (eval $ac_compile) 2>conftest.er1
9436  ac_status=$?
9437  grep -v '^ *+' conftest.er1 >conftest.err
9438  rm -f conftest.er1
9439  cat conftest.err >&5
9440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441  (exit $ac_status); } &&
9442	 { ac_try='test -z "$ac_c_werror_flag"
9443			 || test ! -s conftest.err'
9444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445  (eval $ac_try) 2>&5
9446  ac_status=$?
9447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448  (exit $ac_status); }; } &&
9449	 { ac_try='test -s conftest.$ac_objext'
9450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451  (eval $ac_try) 2>&5
9452  ac_status=$?
9453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454  (exit $ac_status); }; }; then
9455  ac_cv_have_decl_sbrk=yes
9456else
9457  echo "$as_me: failed program was:" >&5
9458sed 's/^/| /' conftest.$ac_ext >&5
9459
9460ac_cv_have_decl_sbrk=no
9461fi
9462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9463fi
9464echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
9465echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
9466if test $ac_cv_have_decl_sbrk = yes; then
9467
9468cat >>confdefs.h <<_ACEOF
9469#define HAVE_DECL_SBRK 1
9470_ACEOF
9471
9472
9473else
9474  cat >>confdefs.h <<_ACEOF
9475#define HAVE_DECL_SBRK 0
9476_ACEOF
9477
9478
9479fi
9480echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9481echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9482if test "${ac_cv_have_decl_getenv+set}" = set; then
9483  echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485  cat >conftest.$ac_ext <<_ACEOF
9486/* confdefs.h.  */
9487_ACEOF
9488cat confdefs.h >>conftest.$ac_ext
9489cat >>conftest.$ac_ext <<_ACEOF
9490/* end confdefs.h.  */
9491$ac_includes_default
9492int
9493main ()
9494{
9495#ifndef getenv
9496  char *p = (char *) getenv;
9497#endif
9498
9499  ;
9500  return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext
9504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505  (eval $ac_compile) 2>conftest.er1
9506  ac_status=$?
9507  grep -v '^ *+' conftest.er1 >conftest.err
9508  rm -f conftest.er1
9509  cat conftest.err >&5
9510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511  (exit $ac_status); } &&
9512	 { ac_try='test -z "$ac_c_werror_flag"
9513			 || test ! -s conftest.err'
9514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515  (eval $ac_try) 2>&5
9516  ac_status=$?
9517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518  (exit $ac_status); }; } &&
9519	 { ac_try='test -s conftest.$ac_objext'
9520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521  (eval $ac_try) 2>&5
9522  ac_status=$?
9523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524  (exit $ac_status); }; }; then
9525  ac_cv_have_decl_getenv=yes
9526else
9527  echo "$as_me: failed program was:" >&5
9528sed 's/^/| /' conftest.$ac_ext >&5
9529
9530ac_cv_have_decl_getenv=no
9531fi
9532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9533fi
9534echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9535echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9536if test $ac_cv_have_decl_getenv = yes; then
9537
9538cat >>confdefs.h <<_ACEOF
9539#define HAVE_DECL_GETENV 1
9540_ACEOF
9541
9542
9543else
9544  cat >>confdefs.h <<_ACEOF
9545#define HAVE_DECL_GETENV 0
9546_ACEOF
9547
9548
9549fi
9550echo "$as_me:$LINENO: checking whether environ is declared" >&5
9551echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
9552if test "${ac_cv_have_decl_environ+set}" = set; then
9553  echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555  cat >conftest.$ac_ext <<_ACEOF
9556/* confdefs.h.  */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h.  */
9561$ac_includes_default
9562int
9563main ()
9564{
9565#ifndef environ
9566  char *p = (char *) environ;
9567#endif
9568
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573rm -f conftest.$ac_objext
9574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9575  (eval $ac_compile) 2>conftest.er1
9576  ac_status=$?
9577  grep -v '^ *+' conftest.er1 >conftest.err
9578  rm -f conftest.er1
9579  cat conftest.err >&5
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); } &&
9582	 { ac_try='test -z "$ac_c_werror_flag"
9583			 || test ! -s conftest.err'
9584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585  (eval $ac_try) 2>&5
9586  ac_status=$?
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); }; } &&
9589	 { ac_try='test -s conftest.$ac_objext'
9590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591  (eval $ac_try) 2>&5
9592  ac_status=$?
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); }; }; then
9595  ac_cv_have_decl_environ=yes
9596else
9597  echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600ac_cv_have_decl_environ=no
9601fi
9602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
9605echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
9606if test $ac_cv_have_decl_environ = yes; then
9607
9608cat >>confdefs.h <<_ACEOF
9609#define HAVE_DECL_ENVIRON 1
9610_ACEOF
9611
9612
9613else
9614  cat >>confdefs.h <<_ACEOF
9615#define HAVE_DECL_ENVIRON 0
9616_ACEOF
9617
9618
9619fi
9620
9621
9622
9623# When converting linker scripts into strings for use in emulation
9624# files, use astring.sed if the compiler supports ANSI string
9625# concatenation, or ostring.sed otherwise.  This is to support the
9626# broken Microsoft MSVC compiler, which limits the length of string
9627# constants, while still supporting pre-ANSI compilers which do not
9628# support string concatenation.
9629echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9630echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9631if test "${ld_cv_string_concatenation+set}" = set; then
9632  echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634  cat >conftest.$ac_ext <<_ACEOF
9635/* confdefs.h.  */
9636_ACEOF
9637cat confdefs.h >>conftest.$ac_ext
9638cat >>conftest.$ac_ext <<_ACEOF
9639/* end confdefs.h.  */
9640
9641int
9642main ()
9643{
9644char *a = "a" "a";
9645  ;
9646  return 0;
9647}
9648_ACEOF
9649rm -f conftest.$ac_objext
9650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651  (eval $ac_compile) 2>conftest.er1
9652  ac_status=$?
9653  grep -v '^ *+' conftest.er1 >conftest.err
9654  rm -f conftest.er1
9655  cat conftest.err >&5
9656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657  (exit $ac_status); } &&
9658	 { ac_try='test -z "$ac_c_werror_flag"
9659			 || test ! -s conftest.err'
9660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661  (eval $ac_try) 2>&5
9662  ac_status=$?
9663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664  (exit $ac_status); }; } &&
9665	 { ac_try='test -s conftest.$ac_objext'
9666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667  (eval $ac_try) 2>&5
9668  ac_status=$?
9669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670  (exit $ac_status); }; }; then
9671  ld_cv_string_concatenation=yes
9672else
9673  echo "$as_me: failed program was:" >&5
9674sed 's/^/| /' conftest.$ac_ext >&5
9675
9676ld_cv_string_concatenation=no
9677fi
9678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9679fi
9680
9681echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9682echo "${ECHO_T}$ld_cv_string_concatenation" >&6
9683if test "$ld_cv_string_concatenation" = "yes"; then
9684  STRINGIFY=astring.sed
9685else
9686  STRINGIFY=ostring.sed
9687fi
9688
9689
9690# target-specific stuff:
9691
9692all_targets=
9693EMUL=
9694all_emuls=
9695all_emul_extras=
9696all_libpath=
9697
9698rm -f tdirs
9699
9700for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9701do
9702  if test "$targ_alias" = "all"; then
9703    all_targets=true
9704  else
9705    # Canonicalize the secondary target names.
9706    result=`$ac_config_sub $targ_alias 2>/dev/null`
9707    if test -n "$result"; then
9708	targ=$result
9709    else
9710	targ=$targ_alias
9711    fi
9712
9713    . ${srcdir}/configure.tgt
9714
9715    if test "$targ" = "$target"; then
9716      EMUL=$targ_emul
9717    fi
9718
9719    for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
9720	case " $all_emuls " in
9721	*" e${i}.o "*) ;;
9722	*)
9723	  all_emuls="$all_emuls e${i}.o"
9724	  eval result=\$tdir_$i
9725	  test -z "$result" && result=$targ_alias
9726	  echo tdir_$i=$result >> tdirs
9727	  ;;
9728	esac
9729    done
9730
9731    for i in $targ_emul $targ_extra_libpath; do
9732	case " $all_libpath " in
9733	*" ${i} "*) ;;
9734	*)
9735	  if test -z "$all_libpath"; then
9736	    all_libpath=${i}
9737	  else
9738	    all_libpath="$all_libpath ${i}"
9739	  fi
9740	  ;;
9741	esac
9742    done
9743
9744    for i in $targ_extra_ofiles; do
9745	case " $all_emul_extras " in
9746	*" ${i} "*) ;;
9747	*)
9748	  all_emul_extras="$all_emul_extras ${i}"
9749	  ;;
9750	esac
9751    done
9752  fi
9753done
9754
9755
9756
9757TDIRS=tdirs
9758
9759
9760if test x${all_targets} = xtrue; then
9761  if test x${want64} = xtrue; then
9762    EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9763  else
9764    EMULATION_OFILES='$(ALL_EMULATIONS)'
9765  fi
9766  EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9767else
9768  EMULATION_OFILES=$all_emuls
9769  EMUL_EXTRA_OFILES=$all_emul_extras
9770fi
9771
9772
9773
9774
9775EMULATION_LIBPATH=$all_libpath
9776
9777
9778if test x${enable_static} = xno; then
9779  TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9780else
9781  TESTBFDLIB="../bfd/.libs/libbfd.a"
9782fi
9783
9784
9785target_vendor=${target_vendor=$host_vendor}
9786case "$target_vendor" in
9787  hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9788  *)  EXTRA_SHLIB_EXTENSION= ;;
9789esac
9790
9791case "$target_os" in
9792  lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9793esac
9794
9795if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9796
9797cat >>confdefs.h <<_ACEOF
9798#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9799_ACEOF
9800
9801fi
9802
9803
9804
9805
9806
9807                    ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9808          ac_config_commands="$ac_config_commands default"
9809cat >confcache <<\_ACEOF
9810# This file is a shell script that caches the results of configure
9811# tests run on this system so they can be shared between configure
9812# scripts and configure runs, see configure's option --config-cache.
9813# It is not useful on other systems.  If it contains results you don't
9814# want to keep, you may remove or edit it.
9815#
9816# config.status only pays attention to the cache file if you give it
9817# the --recheck option to rerun configure.
9818#
9819# `ac_cv_env_foo' variables (set or unset) will be overridden when
9820# loading this file, other *unset* `ac_cv_foo' will be assigned the
9821# following values.
9822
9823_ACEOF
9824
9825# The following way of writing the cache mishandles newlines in values,
9826# but we know of no workaround that is simple, portable, and efficient.
9827# So, don't put newlines in cache variables' values.
9828# Ultrix sh set writes to stderr and can't be redirected directly,
9829# and sets the high bit in the cache file unless we assign to the vars.
9830{
9831  (set) 2>&1 |
9832    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9833    *ac_space=\ *)
9834      # `set' does not quote correctly, so add quotes (double-quote
9835      # substitution turns \\\\ into \\, and sed turns \\ into \).
9836      sed -n \
9837	"s/'/'\\\\''/g;
9838	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9839      ;;
9840    *)
9841      # `set' quotes correctly as required by POSIX, so do not add quotes.
9842      sed -n \
9843	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9844      ;;
9845    esac;
9846} |
9847  sed '
9848     t clear
9849     : clear
9850     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9851     t end
9852     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9853     : end' >>confcache
9854if diff $cache_file confcache >/dev/null 2>&1; then :; else
9855  if test -w $cache_file; then
9856    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9857    cat confcache >$cache_file
9858  else
9859    echo "not updating unwritable cache $cache_file"
9860  fi
9861fi
9862rm -f confcache
9863
9864test "x$prefix" = xNONE && prefix=$ac_default_prefix
9865# Let make expand exec_prefix.
9866test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9867
9868# VPATH may cause trouble with some makes, so we remove $(srcdir),
9869# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9870# trailing colons and then remove the whole line if VPATH becomes empty
9871# (actually we leave an empty line to preserve line numbers).
9872if test "x$srcdir" = x.; then
9873  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9874s/:*\$(srcdir):*/:/;
9875s/:*\${srcdir}:*/:/;
9876s/:*@srcdir@:*/:/;
9877s/^\([^=]*=[	 ]*\):*/\1/;
9878s/:*$//;
9879s/^[^=]*=[	 ]*$//;
9880}'
9881fi
9882
9883DEFS=-DHAVE_CONFIG_H
9884
9885ac_libobjs=
9886ac_ltlibobjs=
9887for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9888  # 1. Remove the extension, and $U if already installed.
9889  ac_i=`echo "$ac_i" |
9890	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9891  # 2. Add them.
9892  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9893  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9894done
9895LIBOBJS=$ac_libobjs
9896
9897LTLIBOBJS=$ac_ltlibobjs
9898
9899
9900if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9901  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9902Usually this means the macro was only invoked conditionally." >&5
9903echo "$as_me: error: conditional \"AMDEP\" was never defined.
9904Usually this means the macro was only invoked conditionally." >&2;}
9905   { (exit 1); exit 1; }; }
9906fi
9907if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9908  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9909Usually this means the macro was only invoked conditionally." >&5
9910echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9911Usually this means the macro was only invoked conditionally." >&2;}
9912   { (exit 1); exit 1; }; }
9913fi
9914if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9915  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9916Usually this means the macro was only invoked conditionally." >&5
9917echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9918Usually this means the macro was only invoked conditionally." >&2;}
9919   { (exit 1); exit 1; }; }
9920fi
9921
9922: ${CONFIG_STATUS=./config.status}
9923ac_clean_files_save=$ac_clean_files
9924ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9925{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9926echo "$as_me: creating $CONFIG_STATUS" >&6;}
9927cat >$CONFIG_STATUS <<_ACEOF
9928#! $SHELL
9929# Generated by $as_me.
9930# Run this file to recreate the current configuration.
9931# Compiler output produced by configure, useful for debugging
9932# configure, is in config.log if it exists.
9933
9934debug=false
9935ac_cs_recheck=false
9936ac_cs_silent=false
9937SHELL=\${CONFIG_SHELL-$SHELL}
9938_ACEOF
9939
9940cat >>$CONFIG_STATUS <<\_ACEOF
9941## --------------------- ##
9942## M4sh Initialization.  ##
9943## --------------------- ##
9944
9945# Be Bourne compatible
9946if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9947  emulate sh
9948  NULLCMD=:
9949  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9950  # is contrary to our usage.  Disable this feature.
9951  alias -g '${1+"$@"}'='"$@"'
9952elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9953  set -o posix
9954fi
9955DUALCASE=1; export DUALCASE # for MKS sh
9956
9957# Support unset when possible.
9958if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9959  as_unset=unset
9960else
9961  as_unset=false
9962fi
9963
9964
9965# Work around bugs in pre-3.0 UWIN ksh.
9966$as_unset ENV MAIL MAILPATH
9967PS1='$ '
9968PS2='> '
9969PS4='+ '
9970
9971# NLS nuisances.
9972for as_var in \
9973  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9974  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9975  LC_TELEPHONE LC_TIME
9976do
9977  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9978    eval $as_var=C; export $as_var
9979  else
9980    $as_unset $as_var
9981  fi
9982done
9983
9984# Required to use basename.
9985if expr a : '\(a\)' >/dev/null 2>&1; then
9986  as_expr=expr
9987else
9988  as_expr=false
9989fi
9990
9991if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9992  as_basename=basename
9993else
9994  as_basename=false
9995fi
9996
9997
9998# Name of the executable.
9999as_me=`$as_basename "$0" ||
10000$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10001	 X"$0" : 'X\(//\)$' \| \
10002	 X"$0" : 'X\(/\)$' \| \
10003	 .     : '\(.\)' 2>/dev/null ||
10004echo X/"$0" |
10005    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10006  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
10007  	  /^X\/\(\/\).*/{ s//\1/; q; }
10008  	  s/.*/./; q'`
10009
10010
10011# PATH needs CR, and LINENO needs CR and PATH.
10012# Avoid depending upon Character Ranges.
10013as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10014as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10015as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10016as_cr_digits='0123456789'
10017as_cr_alnum=$as_cr_Letters$as_cr_digits
10018
10019# The user is always right.
10020if test "${PATH_SEPARATOR+set}" != set; then
10021  echo "#! /bin/sh" >conf$$.sh
10022  echo  "exit 0"   >>conf$$.sh
10023  chmod +x conf$$.sh
10024  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10025    PATH_SEPARATOR=';'
10026  else
10027    PATH_SEPARATOR=:
10028  fi
10029  rm -f conf$$.sh
10030fi
10031
10032
10033  as_lineno_1=$LINENO
10034  as_lineno_2=$LINENO
10035  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10036  test "x$as_lineno_1" != "x$as_lineno_2" &&
10037  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10038  # Find who we are.  Look in the path if we contain no path at all
10039  # relative or not.
10040  case $0 in
10041    *[\\/]* ) as_myself=$0 ;;
10042    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043for as_dir in $PATH
10044do
10045  IFS=$as_save_IFS
10046  test -z "$as_dir" && as_dir=.
10047  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10048done
10049
10050       ;;
10051  esac
10052  # We did not find ourselves, most probably we were run as `sh COMMAND'
10053  # in which case we are not to be found in the path.
10054  if test "x$as_myself" = x; then
10055    as_myself=$0
10056  fi
10057  if test ! -f "$as_myself"; then
10058    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10059echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10060   { (exit 1); exit 1; }; }
10061  fi
10062  case $CONFIG_SHELL in
10063  '')
10064    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10066do
10067  IFS=$as_save_IFS
10068  test -z "$as_dir" && as_dir=.
10069  for as_base in sh bash ksh sh5; do
10070	 case $as_dir in
10071	 /*)
10072	   if ("$as_dir/$as_base" -c '
10073  as_lineno_1=$LINENO
10074  as_lineno_2=$LINENO
10075  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10076  test "x$as_lineno_1" != "x$as_lineno_2" &&
10077  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10078	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10079	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10080	     CONFIG_SHELL=$as_dir/$as_base
10081	     export CONFIG_SHELL
10082	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10083	   fi;;
10084	 esac
10085       done
10086done
10087;;
10088  esac
10089
10090  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10091  # uniformly replaced by the line number.  The first 'sed' inserts a
10092  # line-number line before each line; the second 'sed' does the real
10093  # work.  The second script uses 'N' to pair each line-number line
10094  # with the numbered line, and appends trailing '-' during
10095  # substitution so that $LINENO is not a special case at line end.
10096  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10097  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10098  sed '=' <$as_myself |
10099    sed '
10100      N
10101      s,$,-,
10102      : loop
10103      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10104      t loop
10105      s,-$,,
10106      s,^['$as_cr_digits']*\n,,
10107    ' >$as_me.lineno &&
10108  chmod +x $as_me.lineno ||
10109    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10110echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10111   { (exit 1); exit 1; }; }
10112
10113  # Don't try to exec as it changes $[0], causing all sort of problems
10114  # (the dirname of $[0] is not the place where we might find the
10115  # original and so on.  Autoconf is especially sensible to this).
10116  . ./$as_me.lineno
10117  # Exit status is that of the last command.
10118  exit
10119}
10120
10121
10122case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10123  *c*,-n*) ECHO_N= ECHO_C='
10124' ECHO_T='	' ;;
10125  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10126  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10127esac
10128
10129if expr a : '\(a\)' >/dev/null 2>&1; then
10130  as_expr=expr
10131else
10132  as_expr=false
10133fi
10134
10135rm -f conf$$ conf$$.exe conf$$.file
10136echo >conf$$.file
10137if ln -s conf$$.file conf$$ 2>/dev/null; then
10138  # We could just check for DJGPP; but this test a) works b) is more generic
10139  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10140  if test -f conf$$.exe; then
10141    # Don't use ln at all; we don't have any links
10142    as_ln_s='cp -p'
10143  else
10144    as_ln_s='ln -s'
10145  fi
10146elif ln conf$$.file conf$$ 2>/dev/null; then
10147  as_ln_s=ln
10148else
10149  as_ln_s='cp -p'
10150fi
10151rm -f conf$$ conf$$.exe conf$$.file
10152
10153if mkdir -p . 2>/dev/null; then
10154  as_mkdir_p=:
10155else
10156  test -d ./-p && rmdir ./-p
10157  as_mkdir_p=false
10158fi
10159
10160as_executable_p="test -f"
10161
10162# Sed expression to map a string onto a valid CPP name.
10163as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10164
10165# Sed expression to map a string onto a valid variable name.
10166as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10167
10168
10169# IFS
10170# We need space, tab and new line, in precisely that order.
10171as_nl='
10172'
10173IFS=" 	$as_nl"
10174
10175# CDPATH.
10176$as_unset CDPATH
10177
10178exec 6>&1
10179
10180# Open the log real soon, to keep \$[0] and so on meaningful, and to
10181# report actual input values of CONFIG_FILES etc. instead of their
10182# values after options handling.  Logging --version etc. is OK.
10183exec 5>>config.log
10184{
10185  echo
10186  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10187## Running $as_me. ##
10188_ASBOX
10189} >&5
10190cat >&5 <<_CSEOF
10191
10192This file was extended by $as_me, which was
10193generated by GNU Autoconf 2.59.  Invocation command line was
10194
10195  CONFIG_FILES    = $CONFIG_FILES
10196  CONFIG_HEADERS  = $CONFIG_HEADERS
10197  CONFIG_LINKS    = $CONFIG_LINKS
10198  CONFIG_COMMANDS = $CONFIG_COMMANDS
10199  $ $0 $@
10200
10201_CSEOF
10202echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10203echo >&5
10204_ACEOF
10205
10206# Files that config.status was made for.
10207if test -n "$ac_config_files"; then
10208  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10209fi
10210
10211if test -n "$ac_config_headers"; then
10212  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10213fi
10214
10215if test -n "$ac_config_links"; then
10216  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10217fi
10218
10219if test -n "$ac_config_commands"; then
10220  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10221fi
10222
10223cat >>$CONFIG_STATUS <<\_ACEOF
10224
10225ac_cs_usage="\
10226\`$as_me' instantiates files from templates according to the
10227current configuration.
10228
10229Usage: $0 [OPTIONS] [FILE]...
10230
10231  -h, --help       print this help, then exit
10232  -V, --version    print version number, then exit
10233  -q, --quiet      do not print progress messages
10234  -d, --debug      don't remove temporary files
10235      --recheck    update $as_me by reconfiguring in the same conditions
10236  --file=FILE[:TEMPLATE]
10237		   instantiate the configuration file FILE
10238  --header=FILE[:TEMPLATE]
10239		   instantiate the configuration header FILE
10240
10241Configuration files:
10242$config_files
10243
10244Configuration headers:
10245$config_headers
10246
10247Configuration commands:
10248$config_commands
10249
10250Report bugs to <bug-autoconf@gnu.org>."
10251_ACEOF
10252
10253cat >>$CONFIG_STATUS <<_ACEOF
10254ac_cs_version="\\
10255config.status
10256configured by $0, generated by GNU Autoconf 2.59,
10257  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10258
10259Copyright (C) 2003 Free Software Foundation, Inc.
10260This config.status script is free software; the Free Software Foundation
10261gives unlimited permission to copy, distribute and modify it."
10262srcdir=$srcdir
10263INSTALL="$INSTALL"
10264_ACEOF
10265
10266cat >>$CONFIG_STATUS <<\_ACEOF
10267# If no file are specified by the user, then we need to provide default
10268# value.  By we need to know if files were specified by the user.
10269ac_need_defaults=:
10270while test $# != 0
10271do
10272  case $1 in
10273  --*=*)
10274    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10275    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10276    ac_shift=:
10277    ;;
10278  -*)
10279    ac_option=$1
10280    ac_optarg=$2
10281    ac_shift=shift
10282    ;;
10283  *) # This is not an option, so the user has probably given explicit
10284     # arguments.
10285     ac_option=$1
10286     ac_need_defaults=false;;
10287  esac
10288
10289  case $ac_option in
10290  # Handling of the options.
10291_ACEOF
10292cat >>$CONFIG_STATUS <<\_ACEOF
10293  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10294    ac_cs_recheck=: ;;
10295  --version | --vers* | -V )
10296    echo "$ac_cs_version"; exit 0 ;;
10297  --he | --h)
10298    # Conflict between --help and --header
10299    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10300Try \`$0 --help' for more information." >&5
10301echo "$as_me: error: ambiguous option: $1
10302Try \`$0 --help' for more information." >&2;}
10303   { (exit 1); exit 1; }; };;
10304  --help | --hel | -h )
10305    echo "$ac_cs_usage"; exit 0 ;;
10306  --debug | --d* | -d )
10307    debug=: ;;
10308  --file | --fil | --fi | --f )
10309    $ac_shift
10310    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10311    ac_need_defaults=false;;
10312  --header | --heade | --head | --hea )
10313    $ac_shift
10314    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10315    ac_need_defaults=false;;
10316  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10317  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10318    ac_cs_silent=: ;;
10319
10320  # This is an error.
10321  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10322Try \`$0 --help' for more information." >&5
10323echo "$as_me: error: unrecognized option: $1
10324Try \`$0 --help' for more information." >&2;}
10325   { (exit 1); exit 1; }; } ;;
10326
10327  *) ac_config_targets="$ac_config_targets $1" ;;
10328
10329  esac
10330  shift
10331done
10332
10333ac_configure_extra_args=
10334
10335if $ac_cs_silent; then
10336  exec 6>/dev/null
10337  ac_configure_extra_args="$ac_configure_extra_args --silent"
10338fi
10339
10340_ACEOF
10341cat >>$CONFIG_STATUS <<_ACEOF
10342if \$ac_cs_recheck; then
10343  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10344  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10345fi
10346
10347_ACEOF
10348
10349cat >>$CONFIG_STATUS <<_ACEOF
10350#
10351# INIT-COMMANDS section.
10352#
10353
10354AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10355
10356_ACEOF
10357
10358
10359
10360cat >>$CONFIG_STATUS <<\_ACEOF
10361for ac_config_target in $ac_config_targets
10362do
10363  case "$ac_config_target" in
10364  # Handling of arguments.
10365  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10366  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10367  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10368  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10369  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10370  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10371echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10372   { (exit 1); exit 1; }; };;
10373  esac
10374done
10375
10376# If the user did not use the arguments to specify the items to instantiate,
10377# then the envvar interface is used.  Set only those that are not.
10378# We use the long form for the default assignment because of an extremely
10379# bizarre bug on SunOS 4.1.3.
10380if $ac_need_defaults; then
10381  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10382  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10383  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10384fi
10385
10386# Have a temporary directory for convenience.  Make it in the build tree
10387# simply because there is no reason to put it here, and in addition,
10388# creating and moving files from /tmp can sometimes cause problems.
10389# Create a temporary directory, and hook for its removal unless debugging.
10390$debug ||
10391{
10392  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10393  trap '{ (exit 1); exit 1; }' 1 2 13 15
10394}
10395
10396# Create a (secure) tmp directory for tmp files.
10397
10398{
10399  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10400  test -n "$tmp" && test -d "$tmp"
10401}  ||
10402{
10403  tmp=./confstat$$-$RANDOM
10404  (umask 077 && mkdir $tmp)
10405} ||
10406{
10407   echo "$me: cannot create a temporary directory in ." >&2
10408   { (exit 1); exit 1; }
10409}
10410
10411_ACEOF
10412
10413cat >>$CONFIG_STATUS <<_ACEOF
10414
10415#
10416# CONFIG_FILES section.
10417#
10418
10419# No need to generate the scripts if there are no CONFIG_FILES.
10420# This happens for instance when ./config.status config.h
10421if test -n "\$CONFIG_FILES"; then
10422  # Protect against being on the right side of a sed subst in config.status.
10423  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10424   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10425s,@SHELL@,$SHELL,;t t
10426s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10427s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10428s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10429s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10430s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10431s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10432s,@exec_prefix@,$exec_prefix,;t t
10433s,@prefix@,$prefix,;t t
10434s,@program_transform_name@,$program_transform_name,;t t
10435s,@bindir@,$bindir,;t t
10436s,@sbindir@,$sbindir,;t t
10437s,@libexecdir@,$libexecdir,;t t
10438s,@datadir@,$datadir,;t t
10439s,@sysconfdir@,$sysconfdir,;t t
10440s,@sharedstatedir@,$sharedstatedir,;t t
10441s,@localstatedir@,$localstatedir,;t t
10442s,@libdir@,$libdir,;t t
10443s,@includedir@,$includedir,;t t
10444s,@oldincludedir@,$oldincludedir,;t t
10445s,@infodir@,$infodir,;t t
10446s,@mandir@,$mandir,;t t
10447s,@build_alias@,$build_alias,;t t
10448s,@host_alias@,$host_alias,;t t
10449s,@target_alias@,$target_alias,;t t
10450s,@DEFS@,$DEFS,;t t
10451s,@ECHO_C@,$ECHO_C,;t t
10452s,@ECHO_N@,$ECHO_N,;t t
10453s,@ECHO_T@,$ECHO_T,;t t
10454s,@LIBS@,$LIBS,;t t
10455s,@build@,$build,;t t
10456s,@build_cpu@,$build_cpu,;t t
10457s,@build_vendor@,$build_vendor,;t t
10458s,@build_os@,$build_os,;t t
10459s,@host@,$host,;t t
10460s,@host_cpu@,$host_cpu,;t t
10461s,@host_vendor@,$host_vendor,;t t
10462s,@host_os@,$host_os,;t t
10463s,@target@,$target,;t t
10464s,@target_cpu@,$target_cpu,;t t
10465s,@target_vendor@,$target_vendor,;t t
10466s,@target_os@,$target_os,;t t
10467s,@CC@,$CC,;t t
10468s,@CFLAGS@,$CFLAGS,;t t
10469s,@LDFLAGS@,$LDFLAGS,;t t
10470s,@CPPFLAGS@,$CPPFLAGS,;t t
10471s,@ac_ct_CC@,$ac_ct_CC,;t t
10472s,@EXEEXT@,$EXEEXT,;t t
10473s,@OBJEXT@,$OBJEXT,;t t
10474s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10475s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10476s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10477s,@CYGPATH_W@,$CYGPATH_W,;t t
10478s,@PACKAGE@,$PACKAGE,;t t
10479s,@VERSION@,$VERSION,;t t
10480s,@ACLOCAL@,$ACLOCAL,;t t
10481s,@AUTOCONF@,$AUTOCONF,;t t
10482s,@AUTOMAKE@,$AUTOMAKE,;t t
10483s,@AUTOHEADER@,$AUTOHEADER,;t t
10484s,@MAKEINFO@,$MAKEINFO,;t t
10485s,@install_sh@,$install_sh,;t t
10486s,@STRIP@,$STRIP,;t t
10487s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10488s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10489s,@mkdir_p@,$mkdir_p,;t t
10490s,@AWK@,$AWK,;t t
10491s,@SET_MAKE@,$SET_MAKE,;t t
10492s,@am__leading_dot@,$am__leading_dot,;t t
10493s,@AMTAR@,$AMTAR,;t t
10494s,@am__tar@,$am__tar,;t t
10495s,@am__untar@,$am__untar,;t t
10496s,@DEPDIR@,$DEPDIR,;t t
10497s,@am__include@,$am__include,;t t
10498s,@am__quote@,$am__quote,;t t
10499s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10500s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10501s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10502s,@CCDEPMODE@,$CCDEPMODE,;t t
10503s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10504s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10505s,@LN_S@,$LN_S,;t t
10506s,@RANLIB@,$RANLIB,;t t
10507s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10508s,@LIBTOOL@,$LIBTOOL,;t t
10509s,@use_sysroot@,$use_sysroot,;t t
10510s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10511s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10512s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10513s,@NO_WERROR@,$NO_WERROR,;t t
10514s,@CPP@,$CPP,;t t
10515s,@EGREP@,$EGREP,;t t
10516s,@ALLOCA@,$ALLOCA,;t t
10517s,@USE_NLS@,$USE_NLS,;t t
10518s,@MSGFMT@,$MSGFMT,;t t
10519s,@GMSGFMT@,$GMSGFMT,;t t
10520s,@XGETTEXT@,$XGETTEXT,;t t
10521s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10522s,@CATALOGS@,$CATALOGS,;t t
10523s,@CATOBJEXT@,$CATOBJEXT,;t t
10524s,@DATADIRNAME@,$DATADIRNAME,;t t
10525s,@GMOFILES@,$GMOFILES,;t t
10526s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10527s,@INTLDEPS@,$INTLDEPS,;t t
10528s,@INTLLIBS@,$INTLLIBS,;t t
10529s,@INTLOBJS@,$INTLOBJS,;t t
10530s,@POFILES@,$POFILES,;t t
10531s,@POSUB@,$POSUB,;t t
10532s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10533s,@GT_NO@,$GT_NO,;t t
10534s,@GT_YES@,$GT_YES,;t t
10535s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10536s,@l@,$l,;t t
10537s,@YACC@,$YACC,;t t
10538s,@LEX@,$LEX,;t t
10539s,@LEXLIB@,$LEXLIB,;t t
10540s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10541s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10542s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10543s,@MAINT@,$MAINT,;t t
10544s,@HDEFINES@,$HDEFINES,;t t
10545s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10546s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10547s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10548s,@STRINGIFY@,$STRINGIFY,;t t
10549s,@EMUL@,$EMUL,;t t
10550s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10551s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10552s,@LIB_PATH@,$LIB_PATH,;t t
10553s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10554s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10555s,@datarootdir@,$datarootdir,;t t
10556s,@docdir@,$docdir,;t t
10557s,@htmldir@,$htmldir,;t t
10558s,@LIBOBJS@,$LIBOBJS,;t t
10559s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10560/@TDIRS@/r $TDIRS
10561s,@TDIRS@,,;t t
10562CEOF
10563
10564_ACEOF
10565
10566  cat >>$CONFIG_STATUS <<\_ACEOF
10567  # Split the substitutions into bite-sized pieces for seds with
10568  # small command number limits, like on Digital OSF/1 and HP-UX.
10569  ac_max_sed_lines=48
10570  ac_sed_frag=1 # Number of current file.
10571  ac_beg=1 # First line for current file.
10572  ac_end=$ac_max_sed_lines # Line after last line for current file.
10573  ac_more_lines=:
10574  ac_sed_cmds=
10575  while $ac_more_lines; do
10576    if test $ac_beg -gt 1; then
10577      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10578    else
10579      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10580    fi
10581    if test ! -s $tmp/subs.frag; then
10582      ac_more_lines=false
10583    else
10584      # The purpose of the label and of the branching condition is to
10585      # speed up the sed processing (if there are no `@' at all, there
10586      # is no need to browse any of the substitutions).
10587      # These are the two extra sed commands mentioned above.
10588      (echo ':t
10589  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10590      if test -z "$ac_sed_cmds"; then
10591	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10592      else
10593	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10594      fi
10595      ac_sed_frag=`expr $ac_sed_frag + 1`
10596      ac_beg=$ac_end
10597      ac_end=`expr $ac_end + $ac_max_sed_lines`
10598    fi
10599  done
10600  if test -z "$ac_sed_cmds"; then
10601    ac_sed_cmds=cat
10602  fi
10603fi # test -n "$CONFIG_FILES"
10604
10605_ACEOF
10606cat >>$CONFIG_STATUS <<\_ACEOF
10607for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10608  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10609  case $ac_file in
10610  - | *:- | *:-:* ) # input from stdin
10611	cat >$tmp/stdin
10612	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10613	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10614  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10615	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10616  * )   ac_file_in=$ac_file.in ;;
10617  esac
10618
10619  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10620  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10621$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10622	 X"$ac_file" : 'X\(//\)[^/]' \| \
10623	 X"$ac_file" : 'X\(//\)$' \| \
10624	 X"$ac_file" : 'X\(/\)' \| \
10625	 .     : '\(.\)' 2>/dev/null ||
10626echo X"$ac_file" |
10627    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10628  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10629  	  /^X\(\/\/\)$/{ s//\1/; q; }
10630  	  /^X\(\/\).*/{ s//\1/; q; }
10631  	  s/.*/./; q'`
10632  { if $as_mkdir_p; then
10633    mkdir -p "$ac_dir"
10634  else
10635    as_dir="$ac_dir"
10636    as_dirs=
10637    while test ! -d "$as_dir"; do
10638      as_dirs="$as_dir $as_dirs"
10639      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10641	 X"$as_dir" : 'X\(//\)[^/]' \| \
10642	 X"$as_dir" : 'X\(//\)$' \| \
10643	 X"$as_dir" : 'X\(/\)' \| \
10644	 .     : '\(.\)' 2>/dev/null ||
10645echo X"$as_dir" |
10646    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10647  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10648  	  /^X\(\/\/\)$/{ s//\1/; q; }
10649  	  /^X\(\/\).*/{ s//\1/; q; }
10650  	  s/.*/./; q'`
10651    done
10652    test ! -n "$as_dirs" || mkdir $as_dirs
10653  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10654echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10655   { (exit 1); exit 1; }; }; }
10656
10657  ac_builddir=.
10658
10659if test "$ac_dir" != .; then
10660  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10661  # A "../" for each directory in $ac_dir_suffix.
10662  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10663else
10664  ac_dir_suffix= ac_top_builddir=
10665fi
10666
10667case $srcdir in
10668  .)  # No --srcdir option.  We are building in place.
10669    ac_srcdir=.
10670    if test -z "$ac_top_builddir"; then
10671       ac_top_srcdir=.
10672    else
10673       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10674    fi ;;
10675  [\\/]* | ?:[\\/]* )  # Absolute path.
10676    ac_srcdir=$srcdir$ac_dir_suffix;
10677    ac_top_srcdir=$srcdir ;;
10678  *) # Relative path.
10679    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10680    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10681esac
10682
10683# Do not use `cd foo && pwd` to compute absolute paths, because
10684# the directories may not exist.
10685case `pwd` in
10686.) ac_abs_builddir="$ac_dir";;
10687*)
10688  case "$ac_dir" in
10689  .) ac_abs_builddir=`pwd`;;
10690  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10691  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10692  esac;;
10693esac
10694case $ac_abs_builddir in
10695.) ac_abs_top_builddir=${ac_top_builddir}.;;
10696*)
10697  case ${ac_top_builddir}. in
10698  .) ac_abs_top_builddir=$ac_abs_builddir;;
10699  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10700  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10701  esac;;
10702esac
10703case $ac_abs_builddir in
10704.) ac_abs_srcdir=$ac_srcdir;;
10705*)
10706  case $ac_srcdir in
10707  .) ac_abs_srcdir=$ac_abs_builddir;;
10708  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10709  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10710  esac;;
10711esac
10712case $ac_abs_builddir in
10713.) ac_abs_top_srcdir=$ac_top_srcdir;;
10714*)
10715  case $ac_top_srcdir in
10716  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10717  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10718  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10719  esac;;
10720esac
10721
10722
10723  case $INSTALL in
10724  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10725  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10726  esac
10727
10728  if test x"$ac_file" != x-; then
10729    { echo "$as_me:$LINENO: creating $ac_file" >&5
10730echo "$as_me: creating $ac_file" >&6;}
10731    rm -f "$ac_file"
10732  fi
10733  # Let's still pretend it is `configure' which instantiates (i.e., don't
10734  # use $as_me), people would be surprised to read:
10735  #    /* config.h.  Generated by config.status.  */
10736  if test x"$ac_file" = x-; then
10737    configure_input=
10738  else
10739    configure_input="$ac_file.  "
10740  fi
10741  configure_input=$configure_input"Generated from `echo $ac_file_in |
10742				     sed 's,.*/,,'` by configure."
10743
10744  # First look for the input files in the build tree, otherwise in the
10745  # src tree.
10746  ac_file_inputs=`IFS=:
10747    for f in $ac_file_in; do
10748      case $f in
10749      -) echo $tmp/stdin ;;
10750      [\\/$]*)
10751	 # Absolute (can't be DOS-style, as IFS=:)
10752	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10753echo "$as_me: error: cannot find input file: $f" >&2;}
10754   { (exit 1); exit 1; }; }
10755	 echo "$f";;
10756      *) # Relative
10757	 if test -f "$f"; then
10758	   # Build tree
10759	   echo "$f"
10760	 elif test -f "$srcdir/$f"; then
10761	   # Source tree
10762	   echo "$srcdir/$f"
10763	 else
10764	   # /dev/null tree
10765	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10766echo "$as_me: error: cannot find input file: $f" >&2;}
10767   { (exit 1); exit 1; }; }
10768	 fi;;
10769      esac
10770    done` || { (exit 1); exit 1; }
10771_ACEOF
10772cat >>$CONFIG_STATUS <<_ACEOF
10773  sed "$ac_vpsub
10774$extrasub
10775_ACEOF
10776cat >>$CONFIG_STATUS <<\_ACEOF
10777:t
10778/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10779s,@configure_input@,$configure_input,;t t
10780s,@srcdir@,$ac_srcdir,;t t
10781s,@abs_srcdir@,$ac_abs_srcdir,;t t
10782s,@top_srcdir@,$ac_top_srcdir,;t t
10783s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10784s,@builddir@,$ac_builddir,;t t
10785s,@abs_builddir@,$ac_abs_builddir,;t t
10786s,@top_builddir@,$ac_top_builddir,;t t
10787s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10788s,@INSTALL@,$ac_INSTALL,;t t
10789" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10790  rm -f $tmp/stdin
10791  if test x"$ac_file" != x-; then
10792    mv $tmp/out $ac_file
10793  else
10794    cat $tmp/out
10795    rm -f $tmp/out
10796  fi
10797
10798done
10799_ACEOF
10800cat >>$CONFIG_STATUS <<\_ACEOF
10801
10802#
10803# CONFIG_HEADER section.
10804#
10805
10806# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10807# NAME is the cpp macro being defined and VALUE is the value it is being given.
10808#
10809# ac_d sets the value in "#define NAME VALUE" lines.
10810ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
10811ac_dB='[	 ].*$,\1#\2'
10812ac_dC=' '
10813ac_dD=',;t'
10814# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10815ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
10816ac_uB='$,\1#\2define\3'
10817ac_uC=' '
10818ac_uD=',;t'
10819
10820for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10821  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10822  case $ac_file in
10823  - | *:- | *:-:* ) # input from stdin
10824	cat >$tmp/stdin
10825	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10826	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10827  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10828	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10829  * )   ac_file_in=$ac_file.in ;;
10830  esac
10831
10832  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10833echo "$as_me: creating $ac_file" >&6;}
10834
10835  # First look for the input files in the build tree, otherwise in the
10836  # src tree.
10837  ac_file_inputs=`IFS=:
10838    for f in $ac_file_in; do
10839      case $f in
10840      -) echo $tmp/stdin ;;
10841      [\\/$]*)
10842	 # Absolute (can't be DOS-style, as IFS=:)
10843	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10844echo "$as_me: error: cannot find input file: $f" >&2;}
10845   { (exit 1); exit 1; }; }
10846	 # Do quote $f, to prevent DOS paths from being IFS'd.
10847	 echo "$f";;
10848      *) # Relative
10849	 if test -f "$f"; then
10850	   # Build tree
10851	   echo "$f"
10852	 elif test -f "$srcdir/$f"; then
10853	   # Source tree
10854	   echo "$srcdir/$f"
10855	 else
10856	   # /dev/null tree
10857	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10858echo "$as_me: error: cannot find input file: $f" >&2;}
10859   { (exit 1); exit 1; }; }
10860	 fi;;
10861      esac
10862    done` || { (exit 1); exit 1; }
10863  # Remove the trailing spaces.
10864  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10865
10866_ACEOF
10867
10868# Transform confdefs.h into two sed scripts, `conftest.defines' and
10869# `conftest.undefs', that substitutes the proper values into
10870# config.h.in to produce config.h.  The first handles `#define'
10871# templates, and the second `#undef' templates.
10872# And first: Protect against being on the right side of a sed subst in
10873# config.status.  Protect against being in an unquoted here document
10874# in config.status.
10875rm -f conftest.defines conftest.undefs
10876# Using a here document instead of a string reduces the quoting nightmare.
10877# Putting comments in sed scripts is not portable.
10878#
10879# `end' is used to avoid that the second main sed command (meant for
10880# 0-ary CPP macros) applies to n-ary macro definitions.
10881# See the Autoconf documentation for `clear'.
10882cat >confdef2sed.sed <<\_ACEOF
10883s/[\\&,]/\\&/g
10884s,[\\$`],\\&,g
10885t clear
10886: clear
10887s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10888t end
10889s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10890: end
10891_ACEOF
10892# If some macros were called several times there might be several times
10893# the same #defines, which is useless.  Nevertheless, we may not want to
10894# sort them, since we want the *last* AC-DEFINE to be honored.
10895uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10896sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10897rm -f confdef2sed.sed
10898
10899# This sed command replaces #undef with comments.  This is necessary, for
10900# example, in the case of _POSIX_SOURCE, which is predefined and required
10901# on some systems where configure will not decide to define it.
10902cat >>conftest.undefs <<\_ACEOF
10903s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10904_ACEOF
10905
10906# Break up conftest.defines because some shells have a limit on the size
10907# of here documents, and old seds have small limits too (100 cmds).
10908echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10909echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10910echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10911echo '  :' >>$CONFIG_STATUS
10912rm -f conftest.tail
10913while grep . conftest.defines >/dev/null
10914do
10915  # Write a limited-size here document to $tmp/defines.sed.
10916  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10917  # Speed up: don't consider the non `#define' lines.
10918  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10919  # Work around the forget-to-reset-the-flag bug.
10920  echo 't clr' >>$CONFIG_STATUS
10921  echo ': clr' >>$CONFIG_STATUS
10922  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10923  echo 'CEOF
10924  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10925  rm -f $tmp/in
10926  mv $tmp/out $tmp/in
10927' >>$CONFIG_STATUS
10928  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10929  rm -f conftest.defines
10930  mv conftest.tail conftest.defines
10931done
10932rm -f conftest.defines
10933echo '  fi # grep' >>$CONFIG_STATUS
10934echo >>$CONFIG_STATUS
10935
10936# Break up conftest.undefs because some shells have a limit on the size
10937# of here documents, and old seds have small limits too (100 cmds).
10938echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10939rm -f conftest.tail
10940while grep . conftest.undefs >/dev/null
10941do
10942  # Write a limited-size here document to $tmp/undefs.sed.
10943  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10944  # Speed up: don't consider the non `#undef'
10945  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10946  # Work around the forget-to-reset-the-flag bug.
10947  echo 't clr' >>$CONFIG_STATUS
10948  echo ': clr' >>$CONFIG_STATUS
10949  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10950  echo 'CEOF
10951  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10952  rm -f $tmp/in
10953  mv $tmp/out $tmp/in
10954' >>$CONFIG_STATUS
10955  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10956  rm -f conftest.undefs
10957  mv conftest.tail conftest.undefs
10958done
10959rm -f conftest.undefs
10960
10961cat >>$CONFIG_STATUS <<\_ACEOF
10962  # Let's still pretend it is `configure' which instantiates (i.e., don't
10963  # use $as_me), people would be surprised to read:
10964  #    /* config.h.  Generated by config.status.  */
10965  if test x"$ac_file" = x-; then
10966    echo "/* Generated by configure.  */" >$tmp/config.h
10967  else
10968    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10969  fi
10970  cat $tmp/in >>$tmp/config.h
10971  rm -f $tmp/in
10972  if test x"$ac_file" != x-; then
10973    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10974      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10975echo "$as_me: $ac_file is unchanged" >&6;}
10976    else
10977      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10978$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10979	 X"$ac_file" : 'X\(//\)[^/]' \| \
10980	 X"$ac_file" : 'X\(//\)$' \| \
10981	 X"$ac_file" : 'X\(/\)' \| \
10982	 .     : '\(.\)' 2>/dev/null ||
10983echo X"$ac_file" |
10984    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10985  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10986  	  /^X\(\/\/\)$/{ s//\1/; q; }
10987  	  /^X\(\/\).*/{ s//\1/; q; }
10988  	  s/.*/./; q'`
10989      { if $as_mkdir_p; then
10990    mkdir -p "$ac_dir"
10991  else
10992    as_dir="$ac_dir"
10993    as_dirs=
10994    while test ! -d "$as_dir"; do
10995      as_dirs="$as_dir $as_dirs"
10996      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10998	 X"$as_dir" : 'X\(//\)[^/]' \| \
10999	 X"$as_dir" : 'X\(//\)$' \| \
11000	 X"$as_dir" : 'X\(/\)' \| \
11001	 .     : '\(.\)' 2>/dev/null ||
11002echo X"$as_dir" |
11003    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11004  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11005  	  /^X\(\/\/\)$/{ s//\1/; q; }
11006  	  /^X\(\/\).*/{ s//\1/; q; }
11007  	  s/.*/./; q'`
11008    done
11009    test ! -n "$as_dirs" || mkdir $as_dirs
11010  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11011echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11012   { (exit 1); exit 1; }; }; }
11013
11014      rm -f $ac_file
11015      mv $tmp/config.h $ac_file
11016    fi
11017  else
11018    cat $tmp/config.h
11019    rm -f $tmp/config.h
11020  fi
11021# Compute $ac_file's index in $config_headers.
11022_am_stamp_count=1
11023for _am_header in $config_headers :; do
11024  case $_am_header in
11025    $ac_file | $ac_file:* )
11026      break ;;
11027    * )
11028      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11029  esac
11030done
11031echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11032$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11033	 X$ac_file : 'X\(//\)[^/]' \| \
11034	 X$ac_file : 'X\(//\)$' \| \
11035	 X$ac_file : 'X\(/\)' \| \
11036	 .     : '\(.\)' 2>/dev/null ||
11037echo X$ac_file |
11038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11039  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11040  	  /^X\(\/\/\)$/{ s//\1/; q; }
11041  	  /^X\(\/\).*/{ s//\1/; q; }
11042  	  s/.*/./; q'`/stamp-h$_am_stamp_count
11043done
11044_ACEOF
11045cat >>$CONFIG_STATUS <<\_ACEOF
11046
11047#
11048# CONFIG_COMMANDS section.
11049#
11050for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11051  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11052  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11053  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11054$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11055	 X"$ac_dest" : 'X\(//\)[^/]' \| \
11056	 X"$ac_dest" : 'X\(//\)$' \| \
11057	 X"$ac_dest" : 'X\(/\)' \| \
11058	 .     : '\(.\)' 2>/dev/null ||
11059echo X"$ac_dest" |
11060    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11061  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11062  	  /^X\(\/\/\)$/{ s//\1/; q; }
11063  	  /^X\(\/\).*/{ s//\1/; q; }
11064  	  s/.*/./; q'`
11065  { if $as_mkdir_p; then
11066    mkdir -p "$ac_dir"
11067  else
11068    as_dir="$ac_dir"
11069    as_dirs=
11070    while test ! -d "$as_dir"; do
11071      as_dirs="$as_dir $as_dirs"
11072      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11074	 X"$as_dir" : 'X\(//\)[^/]' \| \
11075	 X"$as_dir" : 'X\(//\)$' \| \
11076	 X"$as_dir" : 'X\(/\)' \| \
11077	 .     : '\(.\)' 2>/dev/null ||
11078echo X"$as_dir" |
11079    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11080  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11081  	  /^X\(\/\/\)$/{ s//\1/; q; }
11082  	  /^X\(\/\).*/{ s//\1/; q; }
11083  	  s/.*/./; q'`
11084    done
11085    test ! -n "$as_dirs" || mkdir $as_dirs
11086  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11087echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11088   { (exit 1); exit 1; }; }; }
11089
11090  ac_builddir=.
11091
11092if test "$ac_dir" != .; then
11093  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11094  # A "../" for each directory in $ac_dir_suffix.
11095  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11096else
11097  ac_dir_suffix= ac_top_builddir=
11098fi
11099
11100case $srcdir in
11101  .)  # No --srcdir option.  We are building in place.
11102    ac_srcdir=.
11103    if test -z "$ac_top_builddir"; then
11104       ac_top_srcdir=.
11105    else
11106       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11107    fi ;;
11108  [\\/]* | ?:[\\/]* )  # Absolute path.
11109    ac_srcdir=$srcdir$ac_dir_suffix;
11110    ac_top_srcdir=$srcdir ;;
11111  *) # Relative path.
11112    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11113    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11114esac
11115
11116# Do not use `cd foo && pwd` to compute absolute paths, because
11117# the directories may not exist.
11118case `pwd` in
11119.) ac_abs_builddir="$ac_dir";;
11120*)
11121  case "$ac_dir" in
11122  .) ac_abs_builddir=`pwd`;;
11123  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11124  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11125  esac;;
11126esac
11127case $ac_abs_builddir in
11128.) ac_abs_top_builddir=${ac_top_builddir}.;;
11129*)
11130  case ${ac_top_builddir}. in
11131  .) ac_abs_top_builddir=$ac_abs_builddir;;
11132  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11133  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11134  esac;;
11135esac
11136case $ac_abs_builddir in
11137.) ac_abs_srcdir=$ac_srcdir;;
11138*)
11139  case $ac_srcdir in
11140  .) ac_abs_srcdir=$ac_abs_builddir;;
11141  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11142  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11143  esac;;
11144esac
11145case $ac_abs_builddir in
11146.) ac_abs_top_srcdir=$ac_top_srcdir;;
11147*)
11148  case $ac_top_srcdir in
11149  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11150  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11151  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11152  esac;;
11153esac
11154
11155
11156  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11157echo "$as_me: executing $ac_dest commands" >&6;}
11158  case $ac_dest in
11159    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11160  # Strip MF so we end up with the name of the file.
11161  mf=`echo "$mf" | sed -e 's/:.*$//'`
11162  # Check whether this is an Automake generated Makefile or not.
11163  # We used to match only the files named `Makefile.in', but
11164  # some people rename them; so instead we look at the file content.
11165  # Grep'ing the first line is not enough: some people post-process
11166  # each Makefile.in and add a new line on top of each file to say so.
11167  # So let's grep whole file.
11168  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11169    dirpart=`(dirname "$mf") 2>/dev/null ||
11170$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11171	 X"$mf" : 'X\(//\)[^/]' \| \
11172	 X"$mf" : 'X\(//\)$' \| \
11173	 X"$mf" : 'X\(/\)' \| \
11174	 .     : '\(.\)' 2>/dev/null ||
11175echo X"$mf" |
11176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11177  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11178  	  /^X\(\/\/\)$/{ s//\1/; q; }
11179  	  /^X\(\/\).*/{ s//\1/; q; }
11180  	  s/.*/./; q'`
11181  else
11182    continue
11183  fi
11184  # Extract the definition of DEPDIR, am__include, and am__quote
11185  # from the Makefile without running `make'.
11186  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11187  test -z "$DEPDIR" && continue
11188  am__include=`sed -n 's/^am__include = //p' < "$mf"`
11189  test -z "am__include" && continue
11190  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11191  # When using ansi2knr, U may be empty or an underscore; expand it
11192  U=`sed -n 's/^U = //p' < "$mf"`
11193  # Find all dependency output files, they are included files with
11194  # $(DEPDIR) in their names.  We invoke sed twice because it is the
11195  # simplest approach to changing $(DEPDIR) to its actual value in the
11196  # expansion.
11197  for file in `sed -n "
11198    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11199       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11200    # Make sure the directory exists.
11201    test -f "$dirpart/$file" && continue
11202    fdir=`(dirname "$file") 2>/dev/null ||
11203$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11204	 X"$file" : 'X\(//\)[^/]' \| \
11205	 X"$file" : 'X\(//\)$' \| \
11206	 X"$file" : 'X\(/\)' \| \
11207	 .     : '\(.\)' 2>/dev/null ||
11208echo X"$file" |
11209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11210  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11211  	  /^X\(\/\/\)$/{ s//\1/; q; }
11212  	  /^X\(\/\).*/{ s//\1/; q; }
11213  	  s/.*/./; q'`
11214    { if $as_mkdir_p; then
11215    mkdir -p $dirpart/$fdir
11216  else
11217    as_dir=$dirpart/$fdir
11218    as_dirs=
11219    while test ! -d "$as_dir"; do
11220      as_dirs="$as_dir $as_dirs"
11221      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11222$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11223	 X"$as_dir" : 'X\(//\)[^/]' \| \
11224	 X"$as_dir" : 'X\(//\)$' \| \
11225	 X"$as_dir" : 'X\(/\)' \| \
11226	 .     : '\(.\)' 2>/dev/null ||
11227echo X"$as_dir" |
11228    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11229  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11230  	  /^X\(\/\/\)$/{ s//\1/; q; }
11231  	  /^X\(\/\).*/{ s//\1/; q; }
11232  	  s/.*/./; q'`
11233    done
11234    test ! -n "$as_dirs" || mkdir $as_dirs
11235  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11236echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11237   { (exit 1); exit 1; }; }; }
11238
11239    # echo "creating $dirpart/$file"
11240    echo '# dummy' > "$dirpart/$file"
11241  done
11242done
11243 ;;
11244    default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11245  esac
11246done
11247_ACEOF
11248
11249cat >>$CONFIG_STATUS <<\_ACEOF
11250
11251{ (exit 0); exit 0; }
11252_ACEOF
11253chmod +x $CONFIG_STATUS
11254ac_clean_files=$ac_clean_files_save
11255
11256
11257# configure is writing to config.log, and then calls config.status.
11258# config.status does its own redirection, appending to config.log.
11259# Unfortunately, on DOS this fails, as config.log is still kept open
11260# by configure, so config.status won't be able to write to it; its
11261# output is simply discarded.  So we exec the FD to /dev/null,
11262# effectively closing config.log, so it can be properly (re)opened and
11263# appended to by config.status.  When coming back to configure, we
11264# need to make the FD available again.
11265if test "$no_create" != yes; then
11266  ac_cs_success=:
11267  ac_config_status_args=
11268  test "$silent" = yes &&
11269    ac_config_status_args="$ac_config_status_args --quiet"
11270  exec 5>/dev/null
11271  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11272  exec 5>>config.log
11273  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11274  # would make configure fail if this is the last instruction.
11275  $ac_cs_success || { (exit 1); exit 1; }
11276fi
11277
11278