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