1#! /bin/sh
2# From configure.in Id: configure.in,v 1.7 2004/07/20 04:04:22 hpa Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.60a.
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24fi
25BIN_SH=xpg4; export BIN_SH # for Tru64
26DUALCASE=1; export DUALCASE # for MKS sh
27
28
29# PATH needs CR
30# Avoid depending upon Character Ranges.
31as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34as_cr_digits='0123456789'
35as_cr_alnum=$as_cr_Letters$as_cr_digits
36
37# The user is always right.
38if test "${PATH_SEPARATOR+set}" != set; then
39  echo "#! /bin/sh" >conf$$.sh
40  echo  "exit 0"   >>conf$$.sh
41  chmod +x conf$$.sh
42  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43    PATH_SEPARATOR=';'
44  else
45    PATH_SEPARATOR=:
46  fi
47  rm -f conf$$.sh
48fi
49
50# Support unset when possible.
51if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52  as_unset=unset
53else
54  as_unset=false
55fi
56
57
58# IFS
59# We need space, tab and new line, in precisely that order.  Quoting is
60# there to prevent editors from complaining about space-tab.
61# (If _AS_PATH_WALK were called with IFS unset, it would disable word
62# splitting by setting IFS to empty value.)
63as_nl='
64'
65IFS=" ""	$as_nl"
66
67# Find who we are.  Look in the path if we contain no directory separator.
68case $0 in
69  *[\\/]* ) as_myself=$0 ;;
70  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71for as_dir in $PATH
72do
73  IFS=$as_save_IFS
74  test -z "$as_dir" && as_dir=.
75  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
76done
77IFS=$as_save_IFS
78
79     ;;
80esac
81# We did not find ourselves, most probably we were run as `sh COMMAND'
82# in which case we are not to be found in the path.
83if test "x$as_myself" = x; then
84  as_myself=$0
85fi
86if test ! -f "$as_myself"; then
87  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
88  { (exit 1); exit 1; }
89fi
90
91# Work around bugs in pre-3.0 UWIN ksh.
92for as_var in ENV MAIL MAILPATH
93do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
94done
95PS1='$ '
96PS2='> '
97PS4='+ '
98
99# NLS nuisances.
100for as_var in \
101  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
103  LC_TELEPHONE LC_TIME
104do
105  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106    eval $as_var=C; export $as_var
107  else
108    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109  fi
110done
111
112# Required to use basename.
113if expr a : '\(a\)' >/dev/null 2>&1 &&
114   test "X`expr 00001 : '.*\(...\)'`" = X001; then
115  as_expr=expr
116else
117  as_expr=false
118fi
119
120if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
121  as_basename=basename
122else
123  as_basename=false
124fi
125
126
127# Name of the executable.
128as_me=`$as_basename -- "$0" ||
129$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130	 X"$0" : 'X\(//\)$' \| \
131	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132echo X/"$0" |
133    sed '/^.*\/\([^/][^/]*\)\/*$/{
134	    s//\1/
135	    q
136	  }
137	  /^X\/\(\/\/\)$/{
138	    s//\1/
139	    q
140	  }
141	  /^X\/\(\/\).*/{
142	    s//\1/
143	    q
144	  }
145	  s/.*/./; q'`
146
147# CDPATH.
148$as_unset CDPATH
149
150
151if test "x$CONFIG_SHELL" = x; then
152  if (eval ":") 2>/dev/null; then
153  as_have_required=yes
154else
155  as_have_required=no
156fi
157
158  if test $as_have_required = yes && 	 (eval ":
159(as_func_return () {
160  (exit \$1)
161}
162as_func_success () {
163  as_func_return 0
164}
165as_func_failure () {
166  as_func_return 1
167}
168as_func_ret_success () {
169  return 0
170}
171as_func_ret_failure () {
172  return 1
173}
174
175exitcode=0
176if as_func_success; then
177  :
178else
179  exitcode=1
180  echo as_func_success failed.
181fi
182
183if as_func_failure; then
184  exitcode=1
185  echo as_func_failure succeeded.
186fi
187
188if as_func_ret_success; then
189  :
190else
191  exitcode=1
192  echo as_func_ret_success failed.
193fi
194
195if as_func_ret_failure; then
196  exitcode=1
197  echo as_func_ret_failure succeeded.
198fi
199
200if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201  :
202else
203  exitcode=1
204  echo positional parameters were not saved.
205fi
206
207test \$exitcode = 0) || { (exit 1); exit 1; }
208
209(
210  as_lineno_1=\$LINENO
211  as_lineno_2=\$LINENO
212  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214") 2> /dev/null; then
215  :
216else
217  as_candidate_shells=
218    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220do
221  IFS=$as_save_IFS
222  test -z "$as_dir" && as_dir=.
223  case $as_dir in
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
227	   done;;
228       esac
229done
230IFS=$as_save_IFS
231
232
233      for as_shell in $as_candidate_shells $SHELL; do
234	 # Try only shells that exist, to save several forks.
235	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236		{ ("$as_shell") 2> /dev/null <<\_ASEOF
237# Be Bourne compatible
238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
239  emulate sh
240  NULLCMD=:
241  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242  # is contrary to our usage.  Disable this feature.
243  alias -g '${1+"$@"}'='"$@"'
244  setopt NO_GLOB_SUBST
245else
246  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247fi
248BIN_SH=xpg4; export BIN_SH # for Tru64
249DUALCASE=1; export DUALCASE # for MKS sh
250
251:
252_ASEOF
253}; then
254  CONFIG_SHELL=$as_shell
255	       as_have_required=yes
256	       if { "$as_shell" 2> /dev/null <<\_ASEOF
257# Be Bourne compatible
258if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259  emulate sh
260  NULLCMD=:
261  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262  # is contrary to our usage.  Disable this feature.
263  alias -g '${1+"$@"}'='"$@"'
264  setopt NO_GLOB_SUBST
265else
266  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267fi
268BIN_SH=xpg4; export BIN_SH # for Tru64
269DUALCASE=1; export DUALCASE # for MKS sh
270
271:
272(as_func_return () {
273  (exit $1)
274}
275as_func_success () {
276  as_func_return 0
277}
278as_func_failure () {
279  as_func_return 1
280}
281as_func_ret_success () {
282  return 0
283}
284as_func_ret_failure () {
285  return 1
286}
287
288exitcode=0
289if as_func_success; then
290  :
291else
292  exitcode=1
293  echo as_func_success failed.
294fi
295
296if as_func_failure; then
297  exitcode=1
298  echo as_func_failure succeeded.
299fi
300
301if as_func_ret_success; then
302  :
303else
304  exitcode=1
305  echo as_func_ret_success failed.
306fi
307
308if as_func_ret_failure; then
309  exitcode=1
310  echo as_func_ret_failure succeeded.
311fi
312
313if ( set x; as_func_ret_success y && test x = "$1" ); then
314  :
315else
316  exitcode=1
317  echo positional parameters were not saved.
318fi
319
320test $exitcode = 0) || { (exit 1); exit 1; }
321
322(
323  as_lineno_1=$LINENO
324  as_lineno_2=$LINENO
325  test "x$as_lineno_1" != "x$as_lineno_2" &&
326  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327
328_ASEOF
329}; then
330  break
331fi
332
333fi
334
335      done
336
337      if test "x$CONFIG_SHELL" != x; then
338  for as_var in BASH_ENV ENV
339        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
340        done
341        export CONFIG_SHELL
342        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
343fi
344
345
346    if test $as_have_required = no; then
347  echo This script requires a shell more modern than all the
348      echo shells that I found on your system.  Please install a
349      echo modern shell, or manually run the script under such a
350      echo shell if you do have one.
351      { (exit 1); exit 1; }
352fi
353
354
355fi
356
357fi
358
359
360
361(eval "as_func_return () {
362  (exit \$1)
363}
364as_func_success () {
365  as_func_return 0
366}
367as_func_failure () {
368  as_func_return 1
369}
370as_func_ret_success () {
371  return 0
372}
373as_func_ret_failure () {
374  return 1
375}
376
377exitcode=0
378if as_func_success; then
379  :
380else
381  exitcode=1
382  echo as_func_success failed.
383fi
384
385if as_func_failure; then
386  exitcode=1
387  echo as_func_failure succeeded.
388fi
389
390if as_func_ret_success; then
391  :
392else
393  exitcode=1
394  echo as_func_ret_success failed.
395fi
396
397if as_func_ret_failure; then
398  exitcode=1
399  echo as_func_ret_failure succeeded.
400fi
401
402if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403  :
404else
405  exitcode=1
406  echo positional parameters were not saved.
407fi
408
409test \$exitcode = 0") || {
410  echo No shell found that supports shell functions.
411  echo Please tell autoconf@gnu.org about your system,
412  echo including any error possibly output before this
413  echo message
414}
415
416
417
418  as_lineno_1=$LINENO
419  as_lineno_2=$LINENO
420  test "x$as_lineno_1" != "x$as_lineno_2" &&
421  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422
423  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424  # uniformly replaced by the line number.  The first 'sed' inserts a
425  # line-number line after each line using $LINENO; the second 'sed'
426  # does the real work.  The second script uses 'N' to pair each
427  # line-number line with the line containing $LINENO, and appends
428  # trailing '-' during substitution so that $LINENO is not a special
429  # case at line end.
430  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431  # scripts with optimization help from Paolo Bonzini.  Blame Lee
432  # E. McMahon (1931-1989) for sed's syntax.  :-)
433  sed -n '
434    p
435    /[$]LINENO/=
436  ' <$as_myself |
437    sed '
438      s/[$]LINENO.*/&-/
439      t lineno
440      b
441      :lineno
442      N
443      :loop
444      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445      t loop
446      s/-\n.*//
447    ' >$as_me.lineno &&
448  chmod +x "$as_me.lineno" ||
449    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450   { (exit 1); exit 1; }; }
451
452  # Don't try to exec as it changes $[0], causing all sort of problems
453  # (the dirname of $[0] is not the place where we might find the
454  # original and so on.  Autoconf is especially sensitive to this).
455  . "./$as_me.lineno"
456  # Exit status is that of the last command.
457  exit
458}
459
460
461if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
462  as_dirname=dirname
463else
464  as_dirname=false
465fi
466
467ECHO_C= ECHO_N= ECHO_T=
468case `echo -n x` in
469-n*)
470  case `echo 'x\c'` in
471  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
472  *)   ECHO_C='\c';;
473  esac;;
474*)
475  ECHO_N='-n';;
476esac
477
478if expr a : '\(a\)' >/dev/null 2>&1 &&
479   test "X`expr 00001 : '.*\(...\)'`" = X001; then
480  as_expr=expr
481else
482  as_expr=false
483fi
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir
491fi
492echo >conf$$.file
493if ln -s conf$$.file conf$$ 2>/dev/null; then
494  as_ln_s='ln -s'
495  # ... but there are two gotchas:
496  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498  # In both cases, we have to default to `cp -p'.
499  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500    as_ln_s='cp -p'
501elif ln conf$$.file conf$$ 2>/dev/null; then
502  as_ln_s=ln
503else
504  as_ln_s='cp -p'
505fi
506rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507rmdir conf$$.dir 2>/dev/null
508
509if mkdir -p . 2>/dev/null; then
510  as_mkdir_p=:
511else
512  test -d ./-p && rmdir ./-p
513  as_mkdir_p=false
514fi
515
516# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
517# systems may use methods other than mode bits to determine executability.
518cat >conf$$.file <<_ASEOF
519#! /bin/sh
520exit 0
521_ASEOF
522chmod +x conf$$.file
523if test -x conf$$.file >/dev/null 2>&1; then
524  as_executable_p="test -x"
525else
526  as_executable_p=:
527fi
528rm -f conf$$.file
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538exec 7<&0 </dev/null 6>&1
539
540# Name of the host.
541# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558# Identity of this package.
559PACKAGE_NAME=
560PACKAGE_TARNAME=
561PACKAGE_VERSION=
562PACKAGE_STRING=
563PACKAGE_BUGREPORT=
564
565ac_unique_file="MCONFIG.in"
566ac_default_prefix=/usr
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640CC
641CFLAGS
642LDFLAGS
643CPPFLAGS
644ac_ct_CC
645EXEEXT
646OBJEXT
647CPP
648GREP
649EGREP
650RANLIB
651INSTALL_PROGRAM
652INSTALL_SCRIPT
653INSTALL_DATA
654LIBOBJS
655LTLIBOBJS'
656ac_subst_files=''
657      ac_precious_vars='build_alias
658host_alias
659target_alias
660CC
661CFLAGS
662LDFLAGS
663CPPFLAGS
664CPP'
665
666
667# Initialize some variables set by options.
668ac_init_help=
669ac_init_version=false
670# The variables have the same names as the options, with
671# dashes changed to underlines.
672cache_file=/dev/null
673exec_prefix=NONE
674no_create=
675no_recursion=
676prefix=NONE
677program_prefix=NONE
678program_suffix=NONE
679program_transform_name=s,x,x,
680silent=
681site=
682srcdir=
683verbose=
684x_includes=NONE
685x_libraries=NONE
686
687# Installation directory options.
688# These are left unexpanded so users can "make install exec_prefix=/foo"
689# and all the variables that are supposed to be based on exec_prefix
690# by default will actually change.
691# Use braces instead of parens because sh, perl, etc. also accept them.
692# (The list follows the same order as the GNU Coding Standards.)
693bindir='${exec_prefix}/bin'
694sbindir='${exec_prefix}/sbin'
695libexecdir='${exec_prefix}/libexec'
696datarootdir='${prefix}/share'
697datadir='${datarootdir}'
698sysconfdir='${prefix}/etc'
699sharedstatedir='${prefix}/com'
700localstatedir='${prefix}/var'
701includedir='${prefix}/include'
702oldincludedir='/usr/include'
703docdir='${datarootdir}/doc/${PACKAGE}'
704infodir='${datarootdir}/info'
705htmldir='${docdir}'
706dvidir='${docdir}'
707pdfdir='${docdir}'
708psdir='${docdir}'
709libdir='${exec_prefix}/lib'
710localedir='${datarootdir}/locale'
711mandir='${datarootdir}/man'
712
713ac_prev=
714ac_dashdash=
715for ac_option
716do
717  # If the previous option needs an argument, assign it.
718  if test -n "$ac_prev"; then
719    eval $ac_prev=\$ac_option
720    ac_prev=
721    continue
722  fi
723
724  case $ac_option in
725  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
726  *)	ac_optarg=yes ;;
727  esac
728
729  # Accept the important Cygnus configure options, so we can diagnose typos.
730
731  case $ac_dashdash$ac_option in
732  --)
733    ac_dashdash=yes ;;
734
735  -bindir | --bindir | --bindi | --bind | --bin | --bi)
736    ac_prev=bindir ;;
737  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
738    bindir=$ac_optarg ;;
739
740  -build | --build | --buil | --bui | --bu)
741    ac_prev=build_alias ;;
742  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
743    build_alias=$ac_optarg ;;
744
745  -cache-file | --cache-file | --cache-fil | --cache-fi \
746  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
747    ac_prev=cache_file ;;
748  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
749  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
750    cache_file=$ac_optarg ;;
751
752  --config-cache | -C)
753    cache_file=config.cache ;;
754
755  -datadir | --datadir | --datadi | --datad)
756    ac_prev=datadir ;;
757  -datadir=* | --datadir=* | --datadi=* | --datad=*)
758    datadir=$ac_optarg ;;
759
760  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
761  | --dataroo | --dataro | --datar)
762    ac_prev=datarootdir ;;
763  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
764  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
765    datarootdir=$ac_optarg ;;
766
767  -disable-* | --disable-*)
768    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
769    # Reject names that are not valid shell variable names.
770    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
772   { (exit 1); exit 1; }; }
773    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
774    eval enable_$ac_feature=no ;;
775
776  -docdir | --docdir | --docdi | --doc | --do)
777    ac_prev=docdir ;;
778  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
779    docdir=$ac_optarg ;;
780
781  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
782    ac_prev=dvidir ;;
783  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
784    dvidir=$ac_optarg ;;
785
786  -enable-* | --enable-*)
787    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
791   { (exit 1); exit 1; }; }
792    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
793    eval enable_$ac_feature=\$ac_optarg ;;
794
795  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
796  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
797  | --exec | --exe | --ex)
798    ac_prev=exec_prefix ;;
799  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
800  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
801  | --exec=* | --exe=* | --ex=*)
802    exec_prefix=$ac_optarg ;;
803
804  -gas | --gas | --ga | --g)
805    # Obsolete; use --with-gas.
806    with_gas=yes ;;
807
808  -help | --help | --hel | --he | -h)
809    ac_init_help=long ;;
810  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
811    ac_init_help=recursive ;;
812  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
813    ac_init_help=short ;;
814
815  -host | --host | --hos | --ho)
816    ac_prev=host_alias ;;
817  -host=* | --host=* | --hos=* | --ho=*)
818    host_alias=$ac_optarg ;;
819
820  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
821    ac_prev=htmldir ;;
822  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
823  | --ht=*)
824    htmldir=$ac_optarg ;;
825
826  -includedir | --includedir | --includedi | --included | --include \
827  | --includ | --inclu | --incl | --inc)
828    ac_prev=includedir ;;
829  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
830  | --includ=* | --inclu=* | --incl=* | --inc=*)
831    includedir=$ac_optarg ;;
832
833  -infodir | --infodir | --infodi | --infod | --info | --inf)
834    ac_prev=infodir ;;
835  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
836    infodir=$ac_optarg ;;
837
838  -libdir | --libdir | --libdi | --libd)
839    ac_prev=libdir ;;
840  -libdir=* | --libdir=* | --libdi=* | --libd=*)
841    libdir=$ac_optarg ;;
842
843  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
844  | --libexe | --libex | --libe)
845    ac_prev=libexecdir ;;
846  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
847  | --libexe=* | --libex=* | --libe=*)
848    libexecdir=$ac_optarg ;;
849
850  -localedir | --localedir | --localedi | --localed | --locale)
851    ac_prev=localedir ;;
852  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
853    localedir=$ac_optarg ;;
854
855  -localstatedir | --localstatedir | --localstatedi | --localstated \
856  | --localstate | --localstat | --localsta | --localst | --locals)
857    ac_prev=localstatedir ;;
858  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
859  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
860    localstatedir=$ac_optarg ;;
861
862  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
863    ac_prev=mandir ;;
864  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
865    mandir=$ac_optarg ;;
866
867  -nfp | --nfp | --nf)
868    # Obsolete; use --without-fp.
869    with_fp=no ;;
870
871  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
872  | --no-cr | --no-c | -n)
873    no_create=yes ;;
874
875  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
876  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
877    no_recursion=yes ;;
878
879  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
880  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
881  | --oldin | --oldi | --old | --ol | --o)
882    ac_prev=oldincludedir ;;
883  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
884  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
885  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
886    oldincludedir=$ac_optarg ;;
887
888  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
889    ac_prev=prefix ;;
890  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
891    prefix=$ac_optarg ;;
892
893  -program-prefix | --program-prefix | --program-prefi | --program-pref \
894  | --program-pre | --program-pr | --program-p)
895    ac_prev=program_prefix ;;
896  -program-prefix=* | --program-prefix=* | --program-prefi=* \
897  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
898    program_prefix=$ac_optarg ;;
899
900  -program-suffix | --program-suffix | --program-suffi | --program-suff \
901  | --program-suf | --program-su | --program-s)
902    ac_prev=program_suffix ;;
903  -program-suffix=* | --program-suffix=* | --program-suffi=* \
904  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
905    program_suffix=$ac_optarg ;;
906
907  -program-transform-name | --program-transform-name \
908  | --program-transform-nam | --program-transform-na \
909  | --program-transform-n | --program-transform- \
910  | --program-transform | --program-transfor \
911  | --program-transfo | --program-transf \
912  | --program-trans | --program-tran \
913  | --progr-tra | --program-tr | --program-t)
914    ac_prev=program_transform_name ;;
915  -program-transform-name=* | --program-transform-name=* \
916  | --program-transform-nam=* | --program-transform-na=* \
917  | --program-transform-n=* | --program-transform-=* \
918  | --program-transform=* | --program-transfor=* \
919  | --program-transfo=* | --program-transf=* \
920  | --program-trans=* | --program-tran=* \
921  | --progr-tra=* | --program-tr=* | --program-t=*)
922    program_transform_name=$ac_optarg ;;
923
924  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
925    ac_prev=pdfdir ;;
926  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
927    pdfdir=$ac_optarg ;;
928
929  -psdir | --psdir | --psdi | --psd | --ps)
930    ac_prev=psdir ;;
931  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
932    psdir=$ac_optarg ;;
933
934  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
935  | -silent | --silent | --silen | --sile | --sil)
936    silent=yes ;;
937
938  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
939    ac_prev=sbindir ;;
940  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
941  | --sbi=* | --sb=*)
942    sbindir=$ac_optarg ;;
943
944  -sharedstatedir | --sharedstatedir | --sharedstatedi \
945  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
946  | --sharedst | --shareds | --shared | --share | --shar \
947  | --sha | --sh)
948    ac_prev=sharedstatedir ;;
949  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
950  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
951  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
952  | --sha=* | --sh=*)
953    sharedstatedir=$ac_optarg ;;
954
955  -site | --site | --sit)
956    ac_prev=site ;;
957  -site=* | --site=* | --sit=*)
958    site=$ac_optarg ;;
959
960  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
961    ac_prev=srcdir ;;
962  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
963    srcdir=$ac_optarg ;;
964
965  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
966  | --syscon | --sysco | --sysc | --sys | --sy)
967    ac_prev=sysconfdir ;;
968  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
969  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
970    sysconfdir=$ac_optarg ;;
971
972  -target | --target | --targe | --targ | --tar | --ta | --t)
973    ac_prev=target_alias ;;
974  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
975    target_alias=$ac_optarg ;;
976
977  -v | -verbose | --verbose | --verbos | --verbo | --verb)
978    verbose=yes ;;
979
980  -version | --version | --versio | --versi | --vers | -V)
981    ac_init_version=: ;;
982
983  -with-* | --with-*)
984    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
987      { echo "$as_me: error: invalid package name: $ac_package" >&2
988   { (exit 1); exit 1; }; }
989    ac_package=`echo $ac_package| sed 's/-/_/g'`
990    eval with_$ac_package=\$ac_optarg ;;
991
992  -without-* | --without-*)
993    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
994    # Reject names that are not valid shell variable names.
995    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
996      { echo "$as_me: error: invalid package name: $ac_package" >&2
997   { (exit 1); exit 1; }; }
998    ac_package=`echo $ac_package | sed 's/-/_/g'`
999    eval with_$ac_package=no ;;
1000
1001  --x)
1002    # Obsolete; use --with-x.
1003    with_x=yes ;;
1004
1005  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1006  | --x-incl | --x-inc | --x-in | --x-i)
1007    ac_prev=x_includes ;;
1008  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1009  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1010    x_includes=$ac_optarg ;;
1011
1012  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1013  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1014    ac_prev=x_libraries ;;
1015  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1016  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1017    x_libraries=$ac_optarg ;;
1018
1019  -*) { echo "$as_me: error: unrecognized option: $ac_option
1020Try \`$0 --help' for more information." >&2
1021   { (exit 1); exit 1; }; }
1022    ;;
1023
1024  *=*)
1025    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1028      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1029   { (exit 1); exit 1; }; }
1030    eval $ac_envvar=\$ac_optarg
1031    export $ac_envvar ;;
1032
1033  *)
1034    # FIXME: should be removed in autoconf 3.0.
1035    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1036    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1038    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1039    ;;
1040
1041  esac
1042done
1043
1044if test -n "$ac_prev"; then
1045  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1046  { echo "$as_me: error: missing argument to $ac_option" >&2
1047   { (exit 1); exit 1; }; }
1048fi
1049
1050# Be sure to have absolute directory names.
1051for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1052		datadir sysconfdir sharedstatedir localstatedir includedir \
1053		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1054		libdir localedir mandir
1055do
1056  eval ac_val=\$$ac_var
1057  case $ac_val in
1058    [\\/$]* | ?:[\\/]* )  continue;;
1059    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1060  esac
1061  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1062   { (exit 1); exit 1; }; }
1063done
1064
1065# There might be people who depend on the old broken behavior: `$host'
1066# used to hold the argument of --host etc.
1067# FIXME: To remove some day.
1068build=$build_alias
1069host=$host_alias
1070target=$target_alias
1071
1072# FIXME: To remove some day.
1073if test "x$host_alias" != x; then
1074  if test "x$build_alias" = x; then
1075    cross_compiling=maybe
1076    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1077    If a cross compiler is detected then cross compile mode will be used." >&2
1078  elif test "x$build_alias" != "x$host_alias"; then
1079    cross_compiling=yes
1080  fi
1081fi
1082
1083ac_tool_prefix=
1084test -n "$host_alias" && ac_tool_prefix=$host_alias-
1085
1086test "$silent" = yes && exec 6>/dev/null
1087
1088
1089ac_pwd=`pwd` && test -n "$ac_pwd" &&
1090ac_ls_di=`ls -di .` &&
1091ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1092  { echo "$as_me: error: Working directory cannot be determined" >&2
1093   { (exit 1); exit 1; }; }
1094test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1095  { echo "$as_me: error: pwd does not report name of working directory" >&2
1096   { (exit 1); exit 1; }; }
1097
1098
1099# Find the source files, if location was not specified.
1100if test -z "$srcdir"; then
1101  ac_srcdir_defaulted=yes
1102  # Try the directory containing this script, then the parent directory.
1103  ac_confdir=`$as_dirname -- "$0" ||
1104$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1105	 X"$0" : 'X\(//\)[^/]' \| \
1106	 X"$0" : 'X\(//\)$' \| \
1107	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1108echo X"$0" |
1109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1110	    s//\1/
1111	    q
1112	  }
1113	  /^X\(\/\/\)[^/].*/{
1114	    s//\1/
1115	    q
1116	  }
1117	  /^X\(\/\/\)$/{
1118	    s//\1/
1119	    q
1120	  }
1121	  /^X\(\/\).*/{
1122	    s//\1/
1123	    q
1124	  }
1125	  s/.*/./; q'`
1126  srcdir=$ac_confdir
1127  if test ! -r "$srcdir/$ac_unique_file"; then
1128    srcdir=..
1129  fi
1130else
1131  ac_srcdir_defaulted=no
1132fi
1133if test ! -r "$srcdir/$ac_unique_file"; then
1134  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1135  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1136   { (exit 1); exit 1; }; }
1137fi
1138ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1139ac_abs_confdir=`(
1140	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1141   { (exit 1); exit 1; }; }
1142	pwd)`
1143# When building in place, set srcdir=.
1144if test "$ac_abs_confdir" = "$ac_pwd"; then
1145  srcdir=.
1146fi
1147# Remove unnecessary trailing slashes from srcdir.
1148# Double slashes in file names in object file debugging info
1149# mess up M-x gdb in Emacs.
1150case $srcdir in
1151*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1152esac
1153for ac_var in $ac_precious_vars; do
1154  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1155  eval ac_env_${ac_var}_value=\$${ac_var}
1156  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1157  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1158done
1159
1160#
1161# Report the --help message.
1162#
1163if test "$ac_init_help" = "long"; then
1164  # Omit some internal or obsolete options to make the list less imposing.
1165  # This message is too long to be a string in the A/UX 3.1 sh.
1166  cat <<_ACEOF
1167\`configure' configures this package to adapt to many kinds of systems.
1168
1169Usage: $0 [OPTION]... [VAR=VALUE]...
1170
1171To assign environment variables (e.g., CC, CFLAGS...), specify them as
1172VAR=VALUE.  See below for descriptions of some of the useful variables.
1173
1174Defaults for the options are specified in brackets.
1175
1176Configuration:
1177  -h, --help              display this help and exit
1178      --help=short        display options specific to this package
1179      --help=recursive    display the short help of all the included packages
1180  -V, --version           display version information and exit
1181  -q, --quiet, --silent   do not print \`checking...' messages
1182      --cache-file=FILE   cache test results in FILE [disabled]
1183  -C, --config-cache      alias for \`--cache-file=config.cache'
1184  -n, --no-create         do not create output files
1185      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1186
1187Installation directories:
1188  --prefix=PREFIX         install architecture-independent files in PREFIX
1189			  [$ac_default_prefix]
1190  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1191			  [PREFIX]
1192
1193By default, \`make install' will install all the files in
1194\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1195an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1196for instance \`--prefix=\$HOME'.
1197
1198For better control, use the options below.
1199
1200Fine tuning of the installation directories:
1201  --bindir=DIR           user executables [EPREFIX/bin]
1202  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1203  --libexecdir=DIR       program executables [EPREFIX/libexec]
1204  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1205  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1206  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1207  --libdir=DIR           object code libraries [EPREFIX/lib]
1208  --includedir=DIR       C header files [PREFIX/include]
1209  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1210  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1211  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1212  --infodir=DIR          info documentation [DATAROOTDIR/info]
1213  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1214  --mandir=DIR           man documentation [DATAROOTDIR/man]
1215  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1216  --htmldir=DIR          html documentation [DOCDIR]
1217  --dvidir=DIR           dvi documentation [DOCDIR]
1218  --pdfdir=DIR           pdf documentation [DOCDIR]
1219  --psdir=DIR            ps documentation [DOCDIR]
1220_ACEOF
1221
1222  cat <<\_ACEOF
1223_ACEOF
1224fi
1225
1226if test -n "$ac_init_help"; then
1227
1228  cat <<\_ACEOF
1229
1230Optional Features:
1231  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1232  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1233  --disable-largefile     omit support for large files
1234
1235Some influential environment variables:
1236  CC          C compiler command
1237  CFLAGS      C compiler flags
1238  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1239              nonstandard directory <lib dir>
1240  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1241              you have headers in a nonstandard directory <include dir>
1242  CPP         C preprocessor
1243
1244Use these variables to override the choices made by `configure' or to help
1245it to find libraries and programs with nonstandard names/locations.
1246
1247_ACEOF
1248ac_status=$?
1249fi
1250
1251if test "$ac_init_help" = "recursive"; then
1252  # If there are subdirs, report their specific --help.
1253  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1254    test -d "$ac_dir" || continue
1255    ac_builddir=.
1256
1257case "$ac_dir" in
1258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1259*)
1260  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1261  # A ".." for each directory in $ac_dir_suffix.
1262  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1263  case $ac_top_builddir_sub in
1264  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1265  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1266  esac ;;
1267esac
1268ac_abs_top_builddir=$ac_pwd
1269ac_abs_builddir=$ac_pwd$ac_dir_suffix
1270# for backward compatibility:
1271ac_top_builddir=$ac_top_build_prefix
1272
1273case $srcdir in
1274  .)  # We are building in place.
1275    ac_srcdir=.
1276    ac_top_srcdir=$ac_top_builddir_sub
1277    ac_abs_top_srcdir=$ac_pwd ;;
1278  [\\/]* | ?:[\\/]* )  # Absolute name.
1279    ac_srcdir=$srcdir$ac_dir_suffix;
1280    ac_top_srcdir=$srcdir
1281    ac_abs_top_srcdir=$srcdir ;;
1282  *) # Relative name.
1283    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1284    ac_top_srcdir=$ac_top_build_prefix$srcdir
1285    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1286esac
1287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1288
1289    cd "$ac_dir" || { ac_status=$?; continue; }
1290    # Check for guested configure.
1291    if test -f "$ac_srcdir/configure.gnu"; then
1292      echo &&
1293      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1294    elif test -f "$ac_srcdir/configure"; then
1295      echo &&
1296      $SHELL "$ac_srcdir/configure" --help=recursive
1297    else
1298      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1299    fi || ac_status=$?
1300    cd "$ac_pwd" || { ac_status=$?; break; }
1301  done
1302fi
1303
1304test -n "$ac_init_help" && exit $ac_status
1305if $ac_init_version; then
1306  cat <<\_ACEOF
1307configure
1308generated by GNU Autoconf 2.60a
1309
1310Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13112002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314_ACEOF
1315  exit
1316fi
1317cat >config.log <<_ACEOF
1318This file contains any messages produced by compilers while
1319running configure, to aid debugging if configure makes a mistake.
1320
1321It was created by $as_me, which was
1322generated by GNU Autoconf 2.60a.  Invocation command line was
1323
1324  $ $0 $@
1325
1326_ACEOF
1327exec 5>>config.log
1328{
1329cat <<_ASUNAME
1330## --------- ##
1331## Platform. ##
1332## --------- ##
1333
1334hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1335uname -m = `(uname -m) 2>/dev/null || echo unknown`
1336uname -r = `(uname -r) 2>/dev/null || echo unknown`
1337uname -s = `(uname -s) 2>/dev/null || echo unknown`
1338uname -v = `(uname -v) 2>/dev/null || echo unknown`
1339
1340/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1341/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1342
1343/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1344/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1345/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1346/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1347/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1348/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1349/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1350
1351_ASUNAME
1352
1353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354for as_dir in $PATH
1355do
1356  IFS=$as_save_IFS
1357  test -z "$as_dir" && as_dir=.
1358  echo "PATH: $as_dir"
1359done
1360IFS=$as_save_IFS
1361
1362} >&5
1363
1364cat >&5 <<_ACEOF
1365
1366
1367## ----------- ##
1368## Core tests. ##
1369## ----------- ##
1370
1371_ACEOF
1372
1373
1374# Keep a trace of the command line.
1375# Strip out --no-create and --no-recursion so they do not pile up.
1376# Strip out --silent because we don't want to record it for future runs.
1377# Also quote any args containing shell meta-characters.
1378# Make two passes to allow for proper duplicate-argument suppression.
1379ac_configure_args=
1380ac_configure_args0=
1381ac_configure_args1=
1382ac_must_keep_next=false
1383for ac_pass in 1 2
1384do
1385  for ac_arg
1386  do
1387    case $ac_arg in
1388    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1389    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1390    | -silent | --silent | --silen | --sile | --sil)
1391      continue ;;
1392    *\'*)
1393      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1394    esac
1395    case $ac_pass in
1396    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1397    2)
1398      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1399      if test $ac_must_keep_next = true; then
1400	ac_must_keep_next=false # Got value, back to normal.
1401      else
1402	case $ac_arg in
1403	  *=* | --config-cache | -C | -disable-* | --disable-* \
1404	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1405	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1406	  | -with-* | --with-* | -without-* | --without-* | --x)
1407	    case "$ac_configure_args0 " in
1408	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1409	    esac
1410	    ;;
1411	  -* ) ac_must_keep_next=true ;;
1412	esac
1413      fi
1414      ac_configure_args="$ac_configure_args '$ac_arg'"
1415      ;;
1416    esac
1417  done
1418done
1419$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1420$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1421
1422# When interrupted or exit'd, cleanup temporary files, and complete
1423# config.log.  We remove comments because anyway the quotes in there
1424# would cause problems or look ugly.
1425# WARNING: Use '\'' to represent an apostrophe within the trap.
1426# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1427trap 'exit_status=$?
1428  # Save into config.log some information that might help in debugging.
1429  {
1430    echo
1431
1432    cat <<\_ASBOX
1433## ---------------- ##
1434## Cache variables. ##
1435## ---------------- ##
1436_ASBOX
1437    echo
1438    # The following way of writing the cache mishandles newlines in values,
1439(
1440  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1441    eval ac_val=\$$ac_var
1442    case $ac_val in #(
1443    *${as_nl}*)
1444      case $ac_var in #(
1445      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1446echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1447      esac
1448      case $ac_var in #(
1449      _ | IFS | as_nl) ;; #(
1450      *) $as_unset $ac_var ;;
1451      esac ;;
1452    esac
1453  done
1454  (set) 2>&1 |
1455    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1456    *${as_nl}ac_space=\ *)
1457      sed -n \
1458	"s/'\''/'\''\\\\'\'''\''/g;
1459	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1460      ;; #(
1461    *)
1462      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1463      ;;
1464    esac |
1465    sort
1466)
1467    echo
1468
1469    cat <<\_ASBOX
1470## ----------------- ##
1471## Output variables. ##
1472## ----------------- ##
1473_ASBOX
1474    echo
1475    for ac_var in $ac_subst_vars
1476    do
1477      eval ac_val=\$$ac_var
1478      case $ac_val in
1479      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1480      esac
1481      echo "$ac_var='\''$ac_val'\''"
1482    done | sort
1483    echo
1484
1485    if test -n "$ac_subst_files"; then
1486      cat <<\_ASBOX
1487## ------------------- ##
1488## File substitutions. ##
1489## ------------------- ##
1490_ASBOX
1491      echo
1492      for ac_var in $ac_subst_files
1493      do
1494	eval ac_val=\$$ac_var
1495	case $ac_val in
1496	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1497	esac
1498	echo "$ac_var='\''$ac_val'\''"
1499      done | sort
1500      echo
1501    fi
1502
1503    if test -s confdefs.h; then
1504      cat <<\_ASBOX
1505## ----------- ##
1506## confdefs.h. ##
1507## ----------- ##
1508_ASBOX
1509      echo
1510      cat confdefs.h
1511      echo
1512    fi
1513    test "$ac_signal" != 0 &&
1514      echo "$as_me: caught signal $ac_signal"
1515    echo "$as_me: exit $exit_status"
1516  } >&5
1517  rm -f core *.core core.conftest.* &&
1518    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1519    exit $exit_status
1520' 0
1521for ac_signal in 1 2 13 15; do
1522  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1523done
1524ac_signal=0
1525
1526# confdefs.h avoids OS command line length limits that DEFS can exceed.
1527rm -f -r conftest* confdefs.h
1528
1529# Predefined preprocessor variables.
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_NAME "$PACKAGE_NAME"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_VERSION "$PACKAGE_VERSION"
1543_ACEOF
1544
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_STRING "$PACKAGE_STRING"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1553_ACEOF
1554
1555
1556# Let the site file select an alternate cache file if it wants to.
1557# Prefer explicitly selected file to automatically selected ones.
1558if test -n "$CONFIG_SITE"; then
1559  set x "$CONFIG_SITE"
1560elif test "x$prefix" != xNONE; then
1561  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1562else
1563  set x "$ac_default_prefix/share/config.site" \
1564	"$ac_default_prefix/etc/config.site"
1565fi
1566shift
1567for ac_site_file
1568do
1569  if test -r "$ac_site_file"; then
1570    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1571echo "$as_me: loading site script $ac_site_file" >&6;}
1572    sed 's/^/| /' "$ac_site_file" >&5
1573    . "$ac_site_file"
1574  fi
1575done
1576
1577if test -r "$cache_file"; then
1578  # Some versions of bash will fail to source /dev/null (special
1579  # files actually), so we avoid doing that.
1580  if test -f "$cache_file"; then
1581    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1582echo "$as_me: loading cache $cache_file" >&6;}
1583    case $cache_file in
1584      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1585      *)                      . "./$cache_file";;
1586    esac
1587  fi
1588else
1589  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1590echo "$as_me: creating cache $cache_file" >&6;}
1591  >$cache_file
1592fi
1593
1594# Check that the precious variables saved in the cache have kept the same
1595# value.
1596ac_cache_corrupted=false
1597for ac_var in $ac_precious_vars; do
1598  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1599  eval ac_new_set=\$ac_env_${ac_var}_set
1600  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1601  eval ac_new_val=\$ac_env_${ac_var}_value
1602  case $ac_old_set,$ac_new_set in
1603    set,)
1604      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1605echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1606      ac_cache_corrupted=: ;;
1607    ,set)
1608      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1609echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1610      ac_cache_corrupted=: ;;
1611    ,);;
1612    *)
1613      if test "x$ac_old_val" != "x$ac_new_val"; then
1614	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1615echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1616	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1617echo "$as_me:   former value:  $ac_old_val" >&2;}
1618	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1619echo "$as_me:   current value: $ac_new_val" >&2;}
1620	ac_cache_corrupted=:
1621      fi;;
1622  esac
1623  # Pass precious variables to config.status.
1624  if test "$ac_new_set" = set; then
1625    case $ac_new_val in
1626    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1627    *) ac_arg=$ac_var=$ac_new_val ;;
1628    esac
1629    case " $ac_configure_args " in
1630      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1631      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1632    esac
1633  fi
1634done
1635if $ac_cache_corrupted; then
1636  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1637echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1638  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1639echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1640   { (exit 1); exit 1; }; }
1641fi
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659ac_ext=c
1660ac_cpp='$CPP $CPPFLAGS'
1661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1663ac_compiler_gnu=$ac_cv_c_compiler_gnu
1664
1665
1666
1667
1668ac_ext=c
1669ac_cpp='$CPP $CPPFLAGS'
1670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1672ac_compiler_gnu=$ac_cv_c_compiler_gnu
1673if test -n "$ac_tool_prefix"; then
1674  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1675set dummy ${ac_tool_prefix}gcc; ac_word=$2
1676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1678if test "${ac_cv_prog_CC+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  if test -n "$CC"; then
1682  ac_cv_prog_CC="$CC" # Let the user override the test.
1683else
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687  IFS=$as_save_IFS
1688  test -z "$as_dir" && as_dir=.
1689  for ac_exec_ext in '' $ac_executable_extensions; do
1690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1691    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693    break 2
1694  fi
1695done
1696done
1697IFS=$as_save_IFS
1698
1699fi
1700fi
1701CC=$ac_cv_prog_CC
1702if test -n "$CC"; then
1703  { echo "$as_me:$LINENO: result: $CC" >&5
1704echo "${ECHO_T}$CC" >&6; }
1705else
1706  { echo "$as_me:$LINENO: result: no" >&5
1707echo "${ECHO_T}no" >&6; }
1708fi
1709
1710
1711fi
1712if test -z "$ac_cv_prog_CC"; then
1713  ac_ct_CC=$CC
1714  # Extract the first word of "gcc", so it can be a program name with args.
1715set dummy gcc; ac_word=$2
1716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1718if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  if test -n "$ac_ct_CC"; then
1722  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1723else
1724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725for as_dir in $PATH
1726do
1727  IFS=$as_save_IFS
1728  test -z "$as_dir" && as_dir=.
1729  for ac_exec_ext in '' $ac_executable_extensions; do
1730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1731    ac_cv_prog_ac_ct_CC="gcc"
1732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733    break 2
1734  fi
1735done
1736done
1737IFS=$as_save_IFS
1738
1739fi
1740fi
1741ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742if test -n "$ac_ct_CC"; then
1743  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744echo "${ECHO_T}$ac_ct_CC" >&6; }
1745else
1746  { echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6; }
1748fi
1749
1750  if test "x$ac_ct_CC" = x; then
1751    CC=""
1752  else
1753    case $cross_compiling:$ac_tool_warned in
1754yes:)
1755{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1756whose name does not start with the host triplet.  If you think this
1757configuration is useful to you, please write to autoconf@gnu.org." >&5
1758echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1759whose name does not start with the host triplet.  If you think this
1760configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1761ac_tool_warned=yes ;;
1762esac
1763    CC=$ac_ct_CC
1764  fi
1765else
1766  CC="$ac_cv_prog_CC"
1767fi
1768
1769if test -z "$CC"; then
1770          if test -n "$ac_tool_prefix"; then
1771    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1772set dummy ${ac_tool_prefix}cc; ac_word=$2
1773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1775if test "${ac_cv_prog_CC+set}" = set; then
1776  echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778  if test -n "$CC"; then
1779  ac_cv_prog_CC="$CC" # Let the user override the test.
1780else
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784  IFS=$as_save_IFS
1785  test -z "$as_dir" && as_dir=.
1786  for ac_exec_ext in '' $ac_executable_extensions; do
1787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1788    ac_cv_prog_CC="${ac_tool_prefix}cc"
1789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790    break 2
1791  fi
1792done
1793done
1794IFS=$as_save_IFS
1795
1796fi
1797fi
1798CC=$ac_cv_prog_CC
1799if test -n "$CC"; then
1800  { echo "$as_me:$LINENO: result: $CC" >&5
1801echo "${ECHO_T}$CC" >&6; }
1802else
1803  { echo "$as_me:$LINENO: result: no" >&5
1804echo "${ECHO_T}no" >&6; }
1805fi
1806
1807
1808  fi
1809fi
1810if test -z "$CC"; then
1811  # Extract the first word of "cc", so it can be a program name with args.
1812set dummy cc; ac_word=$2
1813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1815if test "${ac_cv_prog_CC+set}" = set; then
1816  echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818  if test -n "$CC"; then
1819  ac_cv_prog_CC="$CC" # Let the user override the test.
1820else
1821  ac_prog_rejected=no
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  test -z "$as_dir" && as_dir=.
1827  for ac_exec_ext in '' $ac_executable_extensions; do
1828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1829    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1830       ac_prog_rejected=yes
1831       continue
1832     fi
1833    ac_cv_prog_CC="cc"
1834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835    break 2
1836  fi
1837done
1838done
1839IFS=$as_save_IFS
1840
1841if test $ac_prog_rejected = yes; then
1842  # We found a bogon in the path, so make sure we never use it.
1843  set dummy $ac_cv_prog_CC
1844  shift
1845  if test $# != 0; then
1846    # We chose a different compiler from the bogus one.
1847    # However, it has the same basename, so the bogon will be chosen
1848    # first if we set CC to just the basename; use the full file name.
1849    shift
1850    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1851  fi
1852fi
1853fi
1854fi
1855CC=$ac_cv_prog_CC
1856if test -n "$CC"; then
1857  { echo "$as_me:$LINENO: result: $CC" >&5
1858echo "${ECHO_T}$CC" >&6; }
1859else
1860  { echo "$as_me:$LINENO: result: no" >&5
1861echo "${ECHO_T}no" >&6; }
1862fi
1863
1864
1865fi
1866if test -z "$CC"; then
1867  if test -n "$ac_tool_prefix"; then
1868  for ac_prog in cl.exe
1869  do
1870    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1874if test "${ac_cv_prog_CC+set}" = set; then
1875  echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
1877  if test -n "$CC"; then
1878  ac_cv_prog_CC="$CC" # Let the user override the test.
1879else
1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881for as_dir in $PATH
1882do
1883  IFS=$as_save_IFS
1884  test -z "$as_dir" && as_dir=.
1885  for ac_exec_ext in '' $ac_executable_extensions; do
1886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1887    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889    break 2
1890  fi
1891done
1892done
1893IFS=$as_save_IFS
1894
1895fi
1896fi
1897CC=$ac_cv_prog_CC
1898if test -n "$CC"; then
1899  { echo "$as_me:$LINENO: result: $CC" >&5
1900echo "${ECHO_T}$CC" >&6; }
1901else
1902  { echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6; }
1904fi
1905
1906
1907    test -n "$CC" && break
1908  done
1909fi
1910if test -z "$CC"; then
1911  ac_ct_CC=$CC
1912  for ac_prog in cl.exe
1913do
1914  # Extract the first word of "$ac_prog", so it can be a program name with args.
1915set dummy $ac_prog; ac_word=$2
1916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919  echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921  if test -n "$ac_ct_CC"; then
1922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923else
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927  IFS=$as_save_IFS
1928  test -z "$as_dir" && as_dir=.
1929  for ac_exec_ext in '' $ac_executable_extensions; do
1930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1931    ac_cv_prog_ac_ct_CC="$ac_prog"
1932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933    break 2
1934  fi
1935done
1936done
1937IFS=$as_save_IFS
1938
1939fi
1940fi
1941ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942if test -n "$ac_ct_CC"; then
1943  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944echo "${ECHO_T}$ac_ct_CC" >&6; }
1945else
1946  { echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6; }
1948fi
1949
1950
1951  test -n "$ac_ct_CC" && break
1952done
1953
1954  if test "x$ac_ct_CC" = x; then
1955    CC=""
1956  else
1957    case $cross_compiling:$ac_tool_warned in
1958yes:)
1959{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1960whose name does not start with the host triplet.  If you think this
1961configuration is useful to you, please write to autoconf@gnu.org." >&5
1962echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1963whose name does not start with the host triplet.  If you think this
1964configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1965ac_tool_warned=yes ;;
1966esac
1967    CC=$ac_ct_CC
1968  fi
1969fi
1970
1971fi
1972
1973
1974test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1975See \`config.log' for more details." >&5
1976echo "$as_me: error: no acceptable C compiler found in \$PATH
1977See \`config.log' for more details." >&2;}
1978   { (exit 1); exit 1; }; }
1979
1980# Provide some information about the compiler.
1981echo "$as_me:$LINENO: checking for C compiler version" >&5
1982ac_compiler=`set X $ac_compile; echo $2`
1983{ (ac_try="$ac_compiler --version >&5"
1984case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1989  (eval "$ac_compiler --version >&5") 2>&5
1990  ac_status=$?
1991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992  (exit $ac_status); }
1993{ (ac_try="$ac_compiler -v >&5"
1994case "(($ac_try" in
1995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996  *) ac_try_echo=$ac_try;;
1997esac
1998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1999  (eval "$ac_compiler -v >&5") 2>&5
2000  ac_status=$?
2001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002  (exit $ac_status); }
2003{ (ac_try="$ac_compiler -V >&5"
2004case "(($ac_try" in
2005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006  *) ac_try_echo=$ac_try;;
2007esac
2008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2009  (eval "$ac_compiler -V >&5") 2>&5
2010  ac_status=$?
2011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012  (exit $ac_status); }
2013
2014cat >conftest.$ac_ext <<_ACEOF
2015/* confdefs.h.  */
2016_ACEOF
2017cat confdefs.h >>conftest.$ac_ext
2018cat >>conftest.$ac_ext <<_ACEOF
2019/* end confdefs.h.  */
2020
2021int
2022main ()
2023{
2024
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029ac_clean_files_save=$ac_clean_files
2030ac_clean_files="$ac_clean_files a.out a.exe b.out"
2031# Try to create an executable without -o first, disregard a.out.
2032# It will help us diagnose broken compilers, and finding out an intuition
2033# of exeext.
2034{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2035echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2036ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2037#
2038# List of possible output files, starting from the most likely.
2039# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2040# only as a last resort.  b.out is created by i960 compilers.
2041ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2042#
2043# The IRIX 6 linker writes into existing files which may not be
2044# executable, retaining their permissions.  Remove them first so a
2045# subsequent execution test works.
2046ac_rmfiles=
2047for ac_file in $ac_files
2048do
2049  case $ac_file in
2050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2051    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2052  esac
2053done
2054rm -f $ac_rmfiles
2055
2056if { (ac_try="$ac_link_default"
2057case "(($ac_try" in
2058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059  *) ac_try_echo=$ac_try;;
2060esac
2061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2062  (eval "$ac_link_default") 2>&5
2063  ac_status=$?
2064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065  (exit $ac_status); }; then
2066  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2067# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2068# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2069# so that the user can short-circuit this test for compilers unknown to
2070# Autoconf.
2071for ac_file in $ac_files ''
2072do
2073  test -f "$ac_file" || continue
2074  case $ac_file in
2075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2076	;;
2077    [ab].out )
2078	# We found the default executable, but exeext='' is most
2079	# certainly right.
2080	break;;
2081    *.* )
2082        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2083	then :; else
2084	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2085	fi
2086	# We set ac_cv_exeext here because the later test for it is not
2087	# safe: cross compilers may not add the suffix if given an `-o'
2088	# argument, so we may need to know it at that point already.
2089	# Even if this section looks crufty: it has the advantage of
2090	# actually working.
2091	break;;
2092    * )
2093	break;;
2094  esac
2095done
2096test "$ac_cv_exeext" = no && ac_cv_exeext=
2097
2098else
2099  ac_file=''
2100fi
2101
2102{ echo "$as_me:$LINENO: result: $ac_file" >&5
2103echo "${ECHO_T}$ac_file" >&6; }
2104if test -z "$ac_file"; then
2105  echo "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: C compiler cannot create executables
2111See \`config.log' for more details." >&2;}
2112   { (exit 77); exit 77; }; }
2113fi
2114
2115ac_exeext=$ac_cv_exeext
2116
2117# Check that the compiler produces executables we can run.  If not, either
2118# the compiler is broken, or we cross compile.
2119{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2120echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2121# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2122# If not cross compiling, check that we can run a simple program.
2123if test "$cross_compiling" != yes; then
2124  if { ac_try='./$ac_file'
2125  { (case "(($ac_try" in
2126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127  *) ac_try_echo=$ac_try;;
2128esac
2129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130  (eval "$ac_try") 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }; }; then
2134    cross_compiling=no
2135  else
2136    if test "$cross_compiling" = maybe; then
2137	cross_compiling=yes
2138    else
2139	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2140If you meant to cross compile, use \`--host'.
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: cannot run C compiled programs.
2143If you meant to cross compile, use \`--host'.
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146    fi
2147  fi
2148fi
2149{ echo "$as_me:$LINENO: result: yes" >&5
2150echo "${ECHO_T}yes" >&6; }
2151
2152rm -f a.out a.exe conftest$ac_cv_exeext b.out
2153ac_clean_files=$ac_clean_files_save
2154# Check that the compiler produces executables we can run.  If not, either
2155# the compiler is broken, or we cross compile.
2156{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2157echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2158{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2159echo "${ECHO_T}$cross_compiling" >&6; }
2160
2161{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2162echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2163if { (ac_try="$ac_link"
2164case "(($ac_try" in
2165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166  *) ac_try_echo=$ac_try;;
2167esac
2168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169  (eval "$ac_link") 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }; then
2173  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2174# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2175# work properly (i.e., refer to `conftest.exe'), while it won't with
2176# `rm'.
2177for ac_file in conftest.exe conftest conftest.*; do
2178  test -f "$ac_file" || continue
2179  case $ac_file in
2180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182	  break;;
2183    * ) break;;
2184  esac
2185done
2186else
2187  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2188See \`config.log' for more details." >&5
2189echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2190See \`config.log' for more details." >&2;}
2191   { (exit 1); exit 1; }; }
2192fi
2193
2194rm -f conftest$ac_cv_exeext
2195{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2196echo "${ECHO_T}$ac_cv_exeext" >&6; }
2197
2198rm -f conftest.$ac_ext
2199EXEEXT=$ac_cv_exeext
2200ac_exeext=$EXEEXT
2201{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2202echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2203if test "${ac_cv_objext+set}" = set; then
2204  echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206  cat >conftest.$ac_ext <<_ACEOF
2207/* confdefs.h.  */
2208_ACEOF
2209cat confdefs.h >>conftest.$ac_ext
2210cat >>conftest.$ac_ext <<_ACEOF
2211/* end confdefs.h.  */
2212
2213int
2214main ()
2215{
2216
2217  ;
2218  return 0;
2219}
2220_ACEOF
2221rm -f conftest.o conftest.obj
2222if { (ac_try="$ac_compile"
2223case "(($ac_try" in
2224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225  *) ac_try_echo=$ac_try;;
2226esac
2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228  (eval "$ac_compile") 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; then
2232  for ac_file in conftest.o conftest.obj conftest.*; do
2233  test -f "$ac_file" || continue;
2234  case $ac_file in
2235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2236    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2237       break;;
2238  esac
2239done
2240else
2241  echo "$as_me: failed program was:" >&5
2242sed 's/^/| /' conftest.$ac_ext >&5
2243
2244{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2245See \`config.log' for more details." >&5
2246echo "$as_me: error: cannot compute suffix of object files: cannot compile
2247See \`config.log' for more details." >&2;}
2248   { (exit 1); exit 1; }; }
2249fi
2250
2251rm -f conftest.$ac_cv_objext conftest.$ac_ext
2252fi
2253{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2254echo "${ECHO_T}$ac_cv_objext" >&6; }
2255OBJEXT=$ac_cv_objext
2256ac_objext=$OBJEXT
2257{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2258echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2259if test "${ac_cv_c_compiler_gnu+set}" = set; then
2260  echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262  cat >conftest.$ac_ext <<_ACEOF
2263/* confdefs.h.  */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h.  */
2268
2269int
2270main ()
2271{
2272#ifndef __GNUC__
2273       choke me
2274#endif
2275
2276  ;
2277  return 0;
2278}
2279_ACEOF
2280rm -f conftest.$ac_objext
2281if { (ac_try="$ac_compile"
2282case "(($ac_try" in
2283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284  *) ac_try_echo=$ac_try;;
2285esac
2286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287  (eval "$ac_compile") 2>conftest.er1
2288  ac_status=$?
2289  grep -v '^ *+' conftest.er1 >conftest.err
2290  rm -f conftest.er1
2291  cat conftest.err >&5
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); } &&
2294	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2295  { (case "(($ac_try" in
2296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297  *) ac_try_echo=$ac_try;;
2298esac
2299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2300  (eval "$ac_try") 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }; } &&
2304	 { ac_try='test -s conftest.$ac_objext'
2305  { (case "(($ac_try" in
2306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307  *) ac_try_echo=$ac_try;;
2308esac
2309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310  (eval "$ac_try") 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  ac_compiler_gnu=yes
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319	ac_compiler_gnu=no
2320fi
2321
2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324
2325fi
2326{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2328GCC=`test $ac_compiler_gnu = yes && echo yes`
2329ac_test_CFLAGS=${CFLAGS+set}
2330ac_save_CFLAGS=$CFLAGS
2331{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2332echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2333if test "${ac_cv_prog_cc_g+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  ac_save_c_werror_flag=$ac_c_werror_flag
2337   ac_c_werror_flag=yes
2338   ac_cv_prog_cc_g=no
2339   CFLAGS="-g"
2340   cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h.  */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h.  */
2346
2347int
2348main ()
2349{
2350
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355rm -f conftest.$ac_objext
2356if { (ac_try="$ac_compile"
2357case "(($ac_try" in
2358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359  *) ac_try_echo=$ac_try;;
2360esac
2361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362  (eval "$ac_compile") 2>conftest.er1
2363  ac_status=$?
2364  grep -v '^ *+' conftest.er1 >conftest.err
2365  rm -f conftest.er1
2366  cat conftest.err >&5
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); } &&
2369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2370  { (case "(($ac_try" in
2371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372  *) ac_try_echo=$ac_try;;
2373esac
2374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375  (eval "$ac_try") 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; } &&
2379	 { ac_try='test -s conftest.$ac_objext'
2380  { (case "(($ac_try" in
2381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382  *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385  (eval "$ac_try") 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; }; then
2389  ac_cv_prog_cc_g=yes
2390else
2391  echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394	CFLAGS=""
2395      cat >conftest.$ac_ext <<_ACEOF
2396/* confdefs.h.  */
2397_ACEOF
2398cat confdefs.h >>conftest.$ac_ext
2399cat >>conftest.$ac_ext <<_ACEOF
2400/* end confdefs.h.  */
2401
2402int
2403main ()
2404{
2405
2406  ;
2407  return 0;
2408}
2409_ACEOF
2410rm -f conftest.$ac_objext
2411if { (ac_try="$ac_compile"
2412case "(($ac_try" in
2413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414  *) ac_try_echo=$ac_try;;
2415esac
2416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417  (eval "$ac_compile") 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2425  { (case "(($ac_try" in
2426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427  *) ac_try_echo=$ac_try;;
2428esac
2429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430  (eval "$ac_try") 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; } &&
2434	 { ac_try='test -s conftest.$ac_objext'
2435  { (case "(($ac_try" in
2436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437  *) ac_try_echo=$ac_try;;
2438esac
2439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440  (eval "$ac_try") 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; }; then
2444  :
2445else
2446  echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449	ac_c_werror_flag=$ac_save_c_werror_flag
2450	 CFLAGS="-g"
2451	 cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457
2458int
2459main ()
2460{
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.$ac_objext
2467if { (ac_try="$ac_compile"
2468case "(($ac_try" in
2469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470  *) ac_try_echo=$ac_try;;
2471esac
2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473  (eval "$ac_compile") 2>conftest.er1
2474  ac_status=$?
2475  grep -v '^ *+' conftest.er1 >conftest.err
2476  rm -f conftest.er1
2477  cat conftest.err >&5
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); } &&
2480	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481  { (case "(($ac_try" in
2482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483  *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486  (eval "$ac_try") 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; } &&
2490	 { ac_try='test -s conftest.$ac_objext'
2491  { (case "(($ac_try" in
2492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493  *) ac_try_echo=$ac_try;;
2494esac
2495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496  (eval "$ac_try") 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }; }; then
2500  ac_cv_prog_cc_g=yes
2501else
2502  echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505
2506fi
2507
2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509fi
2510
2511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512fi
2513
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515   ac_c_werror_flag=$ac_save_c_werror_flag
2516fi
2517{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2518echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2519if test "$ac_test_CFLAGS" = set; then
2520  CFLAGS=$ac_save_CFLAGS
2521elif test $ac_cv_prog_cc_g = yes; then
2522  if test "$GCC" = yes; then
2523    CFLAGS="-g -O2"
2524  else
2525    CFLAGS="-g"
2526  fi
2527else
2528  if test "$GCC" = yes; then
2529    CFLAGS="-O2"
2530  else
2531    CFLAGS=
2532  fi
2533fi
2534{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2535echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2536if test "${ac_cv_prog_cc_c89+set}" = set; then
2537  echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539  ac_cv_prog_cc_c89=no
2540ac_save_CC=$CC
2541cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h.  */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h.  */
2547#include <stdarg.h>
2548#include <stdio.h>
2549#include <sys/types.h>
2550#include <sys/stat.h>
2551/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2552struct buf { int x; };
2553FILE * (*rcsopen) (struct buf *, struct stat *, int);
2554static char *e (p, i)
2555     char **p;
2556     int i;
2557{
2558  return p[i];
2559}
2560static char *f (char * (*g) (char **, int), char **p, ...)
2561{
2562  char *s;
2563  va_list v;
2564  va_start (v,p);
2565  s = g (p, va_arg (v,int));
2566  va_end (v);
2567  return s;
2568}
2569
2570/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2571   function prototypes and stuff, but not '\xHH' hex character constants.
2572   These don't provoke an error unfortunately, instead are silently treated
2573   as 'x'.  The following induces an error, until -std is added to get
2574   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2575   array size at least.  It's necessary to write '\x00'==0 to get something
2576   that's true only with -std.  */
2577int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2578
2579/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2580   inside strings and character constants.  */
2581#define FOO(x) 'x'
2582int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2583
2584int test (int i, double x);
2585struct s1 {int (*f) (int a);};
2586struct s2 {int (*f) (double a);};
2587int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2588int argc;
2589char **argv;
2590int
2591main ()
2592{
2593return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2594  ;
2595  return 0;
2596}
2597_ACEOF
2598for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2599	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600do
2601  CC="$ac_save_CC $ac_arg"
2602  rm -f conftest.$ac_objext
2603if { (ac_try="$ac_compile"
2604case "(($ac_try" in
2605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606  *) ac_try_echo=$ac_try;;
2607esac
2608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609  (eval "$ac_compile") 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2617  { (case "(($ac_try" in
2618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619  *) ac_try_echo=$ac_try;;
2620esac
2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622  (eval "$ac_try") 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; } &&
2626	 { ac_try='test -s conftest.$ac_objext'
2627  { (case "(($ac_try" in
2628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629  *) ac_try_echo=$ac_try;;
2630esac
2631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632  (eval "$ac_try") 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; }; then
2636  ac_cv_prog_cc_c89=$ac_arg
2637else
2638  echo "$as_me: failed program was:" >&5
2639sed 's/^/| /' conftest.$ac_ext >&5
2640
2641
2642fi
2643
2644rm -f core conftest.err conftest.$ac_objext
2645  test "x$ac_cv_prog_cc_c89" != "xno" && break
2646done
2647rm -f conftest.$ac_ext
2648CC=$ac_save_CC
2649
2650fi
2651# AC_CACHE_VAL
2652case "x$ac_cv_prog_cc_c89" in
2653  x)
2654    { echo "$as_me:$LINENO: result: none needed" >&5
2655echo "${ECHO_T}none needed" >&6; } ;;
2656  xno)
2657    { echo "$as_me:$LINENO: result: unsupported" >&5
2658echo "${ECHO_T}unsupported" >&6; } ;;
2659  *)
2660    CC="$CC $ac_cv_prog_cc_c89"
2661    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2662echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2663esac
2664
2665
2666ac_ext=c
2667ac_cpp='$CPP $CPPFLAGS'
2668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
2672
2673cat >>confdefs.h <<\_ACEOF
2674#define _GNU_SOURCE 1
2675_ACEOF
2676
2677
2678
2679# Check whether --enable-largefile was given.
2680if test "${enable_largefile+set}" = set; then
2681  enableval=$enable_largefile;
2682fi
2683
2684if test "$enable_largefile" != no; then
2685
2686  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2687echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
2688if test "${ac_cv_sys_largefile_CC+set}" = set; then
2689  echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691  ac_cv_sys_largefile_CC=no
2692     if test "$GCC" != yes; then
2693       ac_save_CC=$CC
2694       while :; do
2695	 # IRIX 6.2 and later do not support large files by default,
2696	 # so use the C compiler's -n32 option if that helps.
2697	 cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703#include <sys/types.h>
2704 /* Check that off_t can represent 2**63 - 1 correctly.
2705    We can't simply define LARGE_OFF_T to be 9223372036854775807,
2706    since some C++ compilers masquerading as C compilers
2707    incorrectly reject 9223372036854775807.  */
2708#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2709  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2710		       && LARGE_OFF_T % 2147483647 == 1)
2711		      ? 1 : -1];
2712int
2713main ()
2714{
2715
2716  ;
2717  return 0;
2718}
2719_ACEOF
2720	 rm -f conftest.$ac_objext
2721if { (ac_try="$ac_compile"
2722case "(($ac_try" in
2723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724  *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727  (eval "$ac_compile") 2>conftest.er1
2728  ac_status=$?
2729  grep -v '^ *+' conftest.er1 >conftest.err
2730  rm -f conftest.er1
2731  cat conftest.err >&5
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); } &&
2734	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2735  { (case "(($ac_try" in
2736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737  *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740  (eval "$ac_try") 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }; } &&
2744	 { ac_try='test -s conftest.$ac_objext'
2745  { (case "(($ac_try" in
2746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747  *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750  (eval "$ac_try") 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; }; then
2754  break
2755else
2756  echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759
2760fi
2761
2762rm -f core conftest.err conftest.$ac_objext
2763	 CC="$CC -n32"
2764	 rm -f conftest.$ac_objext
2765if { (ac_try="$ac_compile"
2766case "(($ac_try" in
2767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768  *) ac_try_echo=$ac_try;;
2769esac
2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771  (eval "$ac_compile") 2>conftest.er1
2772  ac_status=$?
2773  grep -v '^ *+' conftest.er1 >conftest.err
2774  rm -f conftest.er1
2775  cat conftest.err >&5
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); } &&
2778	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2779  { (case "(($ac_try" in
2780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781  *) ac_try_echo=$ac_try;;
2782esac
2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784  (eval "$ac_try") 2>&5
2785  ac_status=$?
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); }; } &&
2788	 { ac_try='test -s conftest.$ac_objext'
2789  { (case "(($ac_try" in
2790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791  *) ac_try_echo=$ac_try;;
2792esac
2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794  (eval "$ac_try") 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }; }; then
2798  ac_cv_sys_largefile_CC=' -n32'; break
2799else
2800  echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
2802
2803
2804fi
2805
2806rm -f core conftest.err conftest.$ac_objext
2807	 break
2808       done
2809       CC=$ac_save_CC
2810       rm -f conftest.$ac_ext
2811    fi
2812fi
2813{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2814echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
2815  if test "$ac_cv_sys_largefile_CC" != no; then
2816    CC=$CC$ac_cv_sys_largefile_CC
2817  fi
2818
2819  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2820echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
2821if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824  while :; do
2825  ac_cv_sys_file_offset_bits=no
2826  cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832#include <sys/types.h>
2833 /* Check that off_t can represent 2**63 - 1 correctly.
2834    We can't simply define LARGE_OFF_T to be 9223372036854775807,
2835    since some C++ compilers masquerading as C compilers
2836    incorrectly reject 9223372036854775807.  */
2837#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2838  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2839		       && LARGE_OFF_T % 2147483647 == 1)
2840		      ? 1 : -1];
2841int
2842main ()
2843{
2844
2845  ;
2846  return 0;
2847}
2848_ACEOF
2849rm -f conftest.$ac_objext
2850if { (ac_try="$ac_compile"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856  (eval "$ac_compile") 2>conftest.er1
2857  ac_status=$?
2858  grep -v '^ *+' conftest.er1 >conftest.err
2859  rm -f conftest.er1
2860  cat conftest.err >&5
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); } &&
2863	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2864  { (case "(($ac_try" in
2865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866  *) ac_try_echo=$ac_try;;
2867esac
2868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869  (eval "$ac_try") 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; } &&
2873	 { ac_try='test -s conftest.$ac_objext'
2874  { (case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879  (eval "$ac_try") 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }; }; then
2883  break
2884else
2885  echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888
2889fi
2890
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892  cat >conftest.$ac_ext <<_ACEOF
2893/* confdefs.h.  */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h.  */
2898#define _FILE_OFFSET_BITS 64
2899#include <sys/types.h>
2900 /* Check that off_t can represent 2**63 - 1 correctly.
2901    We can't simply define LARGE_OFF_T to be 9223372036854775807,
2902    since some C++ compilers masquerading as C compilers
2903    incorrectly reject 9223372036854775807.  */
2904#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2905  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2906		       && LARGE_OFF_T % 2147483647 == 1)
2907		      ? 1 : -1];
2908int
2909main ()
2910{
2911
2912  ;
2913  return 0;
2914}
2915_ACEOF
2916rm -f conftest.$ac_objext
2917if { (ac_try="$ac_compile"
2918case "(($ac_try" in
2919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920  *) ac_try_echo=$ac_try;;
2921esac
2922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923  (eval "$ac_compile") 2>conftest.er1
2924  ac_status=$?
2925  grep -v '^ *+' conftest.er1 >conftest.err
2926  rm -f conftest.er1
2927  cat conftest.err >&5
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); } &&
2930	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2931  { (case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_try") 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; } &&
2940	 { ac_try='test -s conftest.$ac_objext'
2941  { (case "(($ac_try" in
2942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943  *) ac_try_echo=$ac_try;;
2944esac
2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946  (eval "$ac_try") 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; }; then
2950  ac_cv_sys_file_offset_bits=64; break
2951else
2952  echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
2955
2956fi
2957
2958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959  break
2960done
2961fi
2962{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2963echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
2964if test "$ac_cv_sys_file_offset_bits" != no; then
2965
2966cat >>confdefs.h <<_ACEOF
2967#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2968_ACEOF
2969
2970fi
2971rm -f conftest*
2972  { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2973echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
2974if test "${ac_cv_sys_large_files+set}" = set; then
2975  echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977  while :; do
2978  ac_cv_sys_large_files=no
2979  cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h.  */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h.  */
2985#include <sys/types.h>
2986 /* Check that off_t can represent 2**63 - 1 correctly.
2987    We can't simply define LARGE_OFF_T to be 9223372036854775807,
2988    since some C++ compilers masquerading as C compilers
2989    incorrectly reject 9223372036854775807.  */
2990#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2991  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2992		       && LARGE_OFF_T % 2147483647 == 1)
2993		      ? 1 : -1];
2994int
2995main ()
2996{
2997
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006  *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009  (eval "$ac_compile") 2>conftest.er1
3010  ac_status=$?
3011  grep -v '^ *+' conftest.er1 >conftest.err
3012  rm -f conftest.er1
3013  cat conftest.err >&5
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); } &&
3016	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3017  { (case "(($ac_try" in
3018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019  *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022  (eval "$ac_try") 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; } &&
3026	 { ac_try='test -s conftest.$ac_objext'
3027  { (case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032  (eval "$ac_try") 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; }; then
3036  break
3037else
3038  echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041
3042fi
3043
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045  cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h.  */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h.  */
3051#define _LARGE_FILES 1
3052#include <sys/types.h>
3053 /* Check that off_t can represent 2**63 - 1 correctly.
3054    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3055    since some C++ compilers masquerading as C compilers
3056    incorrectly reject 9223372036854775807.  */
3057#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3058  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3059		       && LARGE_OFF_T % 2147483647 == 1)
3060		      ? 1 : -1];
3061int
3062main ()
3063{
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073  *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076  (eval "$ac_compile") 2>conftest.er1
3077  ac_status=$?
3078  grep -v '^ *+' conftest.er1 >conftest.err
3079  rm -f conftest.er1
3080  cat conftest.err >&5
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); } &&
3083	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084  { (case "(($ac_try" in
3085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086  *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089  (eval "$ac_try") 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; } &&
3093	 { ac_try='test -s conftest.$ac_objext'
3094  { (case "(($ac_try" in
3095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096  *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099  (eval "$ac_try") 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; }; then
3103  ac_cv_sys_large_files=1; break
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108
3109fi
3110
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112  break
3113done
3114fi
3115{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3116echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3117if test "$ac_cv_sys_large_files" != no; then
3118
3119cat >>confdefs.h <<_ACEOF
3120#define _LARGE_FILES $ac_cv_sys_large_files
3121_ACEOF
3122
3123fi
3124rm -f conftest*
3125fi
3126
3127{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3128echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3129if test "${ac_cv_c_const+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h.  */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h.  */
3138
3139int
3140main ()
3141{
3142/* FIXME: Include the comments suggested by Paul. */
3143#ifndef __cplusplus
3144  /* Ultrix mips cc rejects this.  */
3145  typedef int charset[2];
3146  const charset cs;
3147  /* SunOS 4.1.1 cc rejects this.  */
3148  char const *const *pcpcc;
3149  char **ppc;
3150  /* NEC SVR4.0.2 mips cc rejects this.  */
3151  struct point {int x, y;};
3152  static struct point const zero = {0,0};
3153  /* AIX XL C 1.02.0.0 rejects this.
3154     It does not let you subtract one const X* pointer from another in
3155     an arm of an if-expression whose if-part is not a constant
3156     expression */
3157  const char *g = "string";
3158  pcpcc = &g + (g ? g-g : 0);
3159  /* HPUX 7.0 cc rejects these. */
3160  ++pcpcc;
3161  ppc = (char**) pcpcc;
3162  pcpcc = (char const *const *) ppc;
3163  { /* SCO 3.2v4 cc rejects this.  */
3164    char *t;
3165    char const *s = 0 ? (char *) 0 : (char const *) 0;
3166
3167    *t++ = 0;
3168    if (s) return 0;
3169  }
3170  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3171    int x[] = {25, 17};
3172    const int *foo = &x[0];
3173    ++foo;
3174  }
3175  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3176    typedef const int *iptr;
3177    iptr p = 0;
3178    ++p;
3179  }
3180  { /* AIX XL C 1.02.0.0 rejects this saying
3181       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3182    struct s { int j; const int *ap[3]; };
3183    struct s *b; b->j = 5;
3184  }
3185  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3186    const int foo = 10;
3187    if (!foo) return 0;
3188  }
3189  return !cs[0] && !zero.x;
3190#endif
3191
3192  ;
3193  return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext
3197if { (ac_try="$ac_compile"
3198case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203  (eval "$ac_compile") 2>conftest.er1
3204  ac_status=$?
3205  grep -v '^ *+' conftest.er1 >conftest.err
3206  rm -f conftest.er1
3207  cat conftest.err >&5
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); } &&
3210	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3211  { (case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216  (eval "$ac_try") 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }; } &&
3220	 { ac_try='test -s conftest.$ac_objext'
3221  { (case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226  (eval "$ac_try") 2>&5
3227  ac_status=$?
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); }; }; then
3230  ac_cv_c_const=yes
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235	ac_cv_c_const=no
3236fi
3237
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3241echo "${ECHO_T}$ac_cv_c_const" >&6; }
3242if test $ac_cv_c_const = no; then
3243
3244cat >>confdefs.h <<\_ACEOF
3245#define const
3246_ACEOF
3247
3248fi
3249
3250{ echo "$as_me:$LINENO: checking for inline" >&5
3251echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3252if test "${ac_cv_c_inline+set}" = set; then
3253  echo $ECHO_N "(cached) $ECHO_C" >&6
3254else
3255  ac_cv_c_inline=no
3256for ac_kw in inline __inline__ __inline; do
3257  cat >conftest.$ac_ext <<_ACEOF
3258/* confdefs.h.  */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h.  */
3263#ifndef __cplusplus
3264typedef int foo_t;
3265static $ac_kw foo_t static_foo () {return 0; }
3266$ac_kw foo_t foo () {return 0; }
3267#endif
3268
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277  (eval "$ac_compile") 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } &&
3284	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3285  { (case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290  (eval "$ac_try") 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }; } &&
3294	 { ac_try='test -s conftest.$ac_objext'
3295  { (case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300  (eval "$ac_try") 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; }; then
3304  ac_cv_c_inline=$ac_kw
3305else
3306  echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309
3310fi
3311
3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313  test "$ac_cv_c_inline" != no && break
3314done
3315
3316fi
3317{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3318echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3319
3320
3321case $ac_cv_c_inline in
3322  inline | yes) ;;
3323  *)
3324    case $ac_cv_c_inline in
3325      no) ac_val=;;
3326      *) ac_val=$ac_cv_c_inline;;
3327    esac
3328    cat >>confdefs.h <<_ACEOF
3329#ifndef __cplusplus
3330#define inline $ac_val
3331#endif
3332_ACEOF
3333    ;;
3334esac
3335
3336
3337{ echo "$as_me:$LINENO: checking if $CC accepts -Wall" >&5
3338echo $ECHO_N "checking if $CC accepts -Wall... $ECHO_C" >&6; }
3339 pa_add_cflags__old_cflags="$CFLAGS"
3340 CFLAGS="$CFLAGS -Wall"
3341 cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h.  */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h.  */
3347#include <stdio.h>
3348int
3349main ()
3350{
3351printf("Hello, World!\n");
3352  ;
3353  return 0;
3354}
3355_ACEOF
3356rm -f conftest.$ac_objext conftest$ac_exeext
3357if { (ac_try="$ac_link"
3358case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363  (eval "$ac_link") 2>conftest.er1
3364  ac_status=$?
3365  grep -v '^ *+' conftest.er1 >conftest.err
3366  rm -f conftest.er1
3367  cat conftest.err >&5
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); } &&
3370	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3371  { (case "(($ac_try" in
3372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373  *) ac_try_echo=$ac_try;;
3374esac
3375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376  (eval "$ac_try") 2>&5
3377  ac_status=$?
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); }; } &&
3380	 { ac_try='test -s conftest$ac_exeext'
3381  { (case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386  (eval "$ac_try") 2>&5
3387  ac_status=$?
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); }; }; then
3390  { echo "$as_me:$LINENO: result: yes" >&5
3391echo "${ECHO_T}yes" >&6; }
3392else
3393  echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396	{ echo "$as_me:$LINENO: result: no" >&5
3397echo "${ECHO_T}no" >&6; }
3398 CFLAGS="$pa_add_cflags__old_cflags"
3399fi
3400
3401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3402      conftest$ac_exeext conftest.$ac_ext
3403{ echo "$as_me:$LINENO: checking if $CC accepts -W" >&5
3404echo $ECHO_N "checking if $CC accepts -W... $ECHO_C" >&6; }
3405 pa_add_cflags__old_cflags="$CFLAGS"
3406 CFLAGS="$CFLAGS -W"
3407 cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h.  */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h.  */
3413#include <stdio.h>
3414int
3415main ()
3416{
3417printf("Hello, World!\n");
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422rm -f conftest.$ac_objext conftest$ac_exeext
3423if { (ac_try="$ac_link"
3424case "(($ac_try" in
3425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426  *) ac_try_echo=$ac_try;;
3427esac
3428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429  (eval "$ac_link") 2>conftest.er1
3430  ac_status=$?
3431  grep -v '^ *+' conftest.er1 >conftest.err
3432  rm -f conftest.er1
3433  cat conftest.err >&5
3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435  (exit $ac_status); } &&
3436	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3437  { (case "(($ac_try" in
3438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439  *) ac_try_echo=$ac_try;;
3440esac
3441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442  (eval "$ac_try") 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); }; } &&
3446	 { ac_try='test -s conftest$ac_exeext'
3447  { (case "(($ac_try" in
3448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449  *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452  (eval "$ac_try") 2>&5
3453  ac_status=$?
3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455  (exit $ac_status); }; }; then
3456  { echo "$as_me:$LINENO: result: yes" >&5
3457echo "${ECHO_T}yes" >&6; }
3458else
3459  echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462	{ echo "$as_me:$LINENO: result: no" >&5
3463echo "${ECHO_T}no" >&6; }
3464 CFLAGS="$pa_add_cflags__old_cflags"
3465fi
3466
3467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3468      conftest$ac_exeext conftest.$ac_ext
3469{ echo "$as_me:$LINENO: checking if $CC accepts -Wpointer-arith" >&5
3470echo $ECHO_N "checking if $CC accepts -Wpointer-arith... $ECHO_C" >&6; }
3471 pa_add_cflags__old_cflags="$CFLAGS"
3472 CFLAGS="$CFLAGS -Wpointer-arith"
3473 cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h.  */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h.  */
3479#include <stdio.h>
3480int
3481main ()
3482{
3483printf("Hello, World!\n");
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext conftest$ac_exeext
3489if { (ac_try="$ac_link"
3490case "(($ac_try" in
3491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492  *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495  (eval "$ac_link") 2>conftest.er1
3496  ac_status=$?
3497  grep -v '^ *+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } &&
3502	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3503  { (case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508  (eval "$ac_try") 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; } &&
3512	 { ac_try='test -s conftest$ac_exeext'
3513  { (case "(($ac_try" in
3514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515  *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518  (eval "$ac_try") 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; }; then
3522  { echo "$as_me:$LINENO: result: yes" >&5
3523echo "${ECHO_T}yes" >&6; }
3524else
3525  echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528	{ echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6; }
3530 CFLAGS="$pa_add_cflags__old_cflags"
3531fi
3532
3533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3534      conftest$ac_exeext conftest.$ac_ext
3535{ echo "$as_me:$LINENO: checking if $CC accepts -Wbad-function-cast" >&5
3536echo $ECHO_N "checking if $CC accepts -Wbad-function-cast... $ECHO_C" >&6; }
3537 pa_add_cflags__old_cflags="$CFLAGS"
3538 CFLAGS="$CFLAGS -Wbad-function-cast"
3539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#include <stdio.h>
3546int
3547main ()
3548{
3549printf("Hello, World!\n");
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554rm -f conftest.$ac_objext conftest$ac_exeext
3555if { (ac_try="$ac_link"
3556case "(($ac_try" in
3557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558  *) ac_try_echo=$ac_try;;
3559esac
3560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561  (eval "$ac_link") 2>conftest.er1
3562  ac_status=$?
3563  grep -v '^ *+' conftest.er1 >conftest.err
3564  rm -f conftest.er1
3565  cat conftest.err >&5
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); } &&
3568	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3569  { (case "(($ac_try" in
3570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571  *) ac_try_echo=$ac_try;;
3572esac
3573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574  (eval "$ac_try") 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; } &&
3578	 { ac_try='test -s conftest$ac_exeext'
3579  { (case "(($ac_try" in
3580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581  *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584  (eval "$ac_try") 2>&5
3585  ac_status=$?
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); }; }; then
3588  { echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6; }
3590else
3591  echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594	{ echo "$as_me:$LINENO: result: no" >&5
3595echo "${ECHO_T}no" >&6; }
3596 CFLAGS="$pa_add_cflags__old_cflags"
3597fi
3598
3599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3600      conftest$ac_exeext conftest.$ac_ext
3601{ echo "$as_me:$LINENO: checking if $CC accepts -Wcast-equal" >&5
3602echo $ECHO_N "checking if $CC accepts -Wcast-equal... $ECHO_C" >&6; }
3603 pa_add_cflags__old_cflags="$CFLAGS"
3604 CFLAGS="$CFLAGS -Wcast-equal"
3605 cat >conftest.$ac_ext <<_ACEOF
3606/* confdefs.h.  */
3607_ACEOF
3608cat confdefs.h >>conftest.$ac_ext
3609cat >>conftest.$ac_ext <<_ACEOF
3610/* end confdefs.h.  */
3611#include <stdio.h>
3612int
3613main ()
3614{
3615printf("Hello, World!\n");
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620rm -f conftest.$ac_objext conftest$ac_exeext
3621if { (ac_try="$ac_link"
3622case "(($ac_try" in
3623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624  *) ac_try_echo=$ac_try;;
3625esac
3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627  (eval "$ac_link") 2>conftest.er1
3628  ac_status=$?
3629  grep -v '^ *+' conftest.er1 >conftest.err
3630  rm -f conftest.er1
3631  cat conftest.err >&5
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); } &&
3634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3635  { (case "(($ac_try" in
3636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637  *) ac_try_echo=$ac_try;;
3638esac
3639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640  (eval "$ac_try") 2>&5
3641  ac_status=$?
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); }; } &&
3644	 { ac_try='test -s conftest$ac_exeext'
3645  { (case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650  (eval "$ac_try") 2>&5
3651  ac_status=$?
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); }; }; then
3654  { echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6; }
3656else
3657  echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660	{ echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6; }
3662 CFLAGS="$pa_add_cflags__old_cflags"
3663fi
3664
3665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3666      conftest$ac_exeext conftest.$ac_ext
3667{ echo "$as_me:$LINENO: checking if $CC accepts -Wstrict-prototypes" >&5
3668echo $ECHO_N "checking if $CC accepts -Wstrict-prototypes... $ECHO_C" >&6; }
3669 pa_add_cflags__old_cflags="$CFLAGS"
3670 CFLAGS="$CFLAGS -Wstrict-prototypes"
3671 cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h.  */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h.  */
3677#include <stdio.h>
3678int
3679main ()
3680{
3681printf("Hello, World!\n");
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686rm -f conftest.$ac_objext conftest$ac_exeext
3687if { (ac_try="$ac_link"
3688case "(($ac_try" in
3689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690  *) ac_try_echo=$ac_try;;
3691esac
3692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693  (eval "$ac_link") 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3701  { (case "(($ac_try" in
3702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703  *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706  (eval "$ac_try") 2>&5
3707  ac_status=$?
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); }; } &&
3710	 { ac_try='test -s conftest$ac_exeext'
3711  { (case "(($ac_try" in
3712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713  *) ac_try_echo=$ac_try;;
3714esac
3715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716  (eval "$ac_try") 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; }; then
3720  { echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6; }
3722else
3723  echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726	{ echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6; }
3728 CFLAGS="$pa_add_cflags__old_cflags"
3729fi
3730
3731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3732      conftest$ac_exeext conftest.$ac_ext
3733{ echo "$as_me:$LINENO: checking if $CC accepts -Wmissing-prototypes" >&5
3734echo $ECHO_N "checking if $CC accepts -Wmissing-prototypes... $ECHO_C" >&6; }
3735 pa_add_cflags__old_cflags="$CFLAGS"
3736 CFLAGS="$CFLAGS -Wmissing-prototypes"
3737 cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h.  */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h.  */
3743#include <stdio.h>
3744int
3745main ()
3746{
3747printf("Hello, World!\n");
3748  ;
3749  return 0;
3750}
3751_ACEOF
3752rm -f conftest.$ac_objext conftest$ac_exeext
3753if { (ac_try="$ac_link"
3754case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759  (eval "$ac_link") 2>conftest.er1
3760  ac_status=$?
3761  grep -v '^ *+' conftest.er1 >conftest.err
3762  rm -f conftest.er1
3763  cat conftest.err >&5
3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765  (exit $ac_status); } &&
3766	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3767  { (case "(($ac_try" in
3768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769  *) ac_try_echo=$ac_try;;
3770esac
3771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772  (eval "$ac_try") 2>&5
3773  ac_status=$?
3774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775  (exit $ac_status); }; } &&
3776	 { ac_try='test -s conftest$ac_exeext'
3777  { (case "(($ac_try" in
3778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779  *) ac_try_echo=$ac_try;;
3780esac
3781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3782  (eval "$ac_try") 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); }; }; then
3786  { echo "$as_me:$LINENO: result: yes" >&5
3787echo "${ECHO_T}yes" >&6; }
3788else
3789  echo "$as_me: failed program was:" >&5
3790sed 's/^/| /' conftest.$ac_ext >&5
3791
3792	{ echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6; }
3794 CFLAGS="$pa_add_cflags__old_cflags"
3795fi
3796
3797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3798      conftest$ac_exeext conftest.$ac_ext
3799{ echo "$as_me:$LINENO: checking if $CC accepts -Wmissing-declarations" >&5
3800echo $ECHO_N "checking if $CC accepts -Wmissing-declarations... $ECHO_C" >&6; }
3801 pa_add_cflags__old_cflags="$CFLAGS"
3802 CFLAGS="$CFLAGS -Wmissing-declarations"
3803 cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809#include <stdio.h>
3810int
3811main ()
3812{
3813printf("Hello, World!\n");
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818rm -f conftest.$ac_objext conftest$ac_exeext
3819if { (ac_try="$ac_link"
3820case "(($ac_try" in
3821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822  *) ac_try_echo=$ac_try;;
3823esac
3824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825  (eval "$ac_link") 2>conftest.er1
3826  ac_status=$?
3827  grep -v '^ *+' conftest.er1 >conftest.err
3828  rm -f conftest.er1
3829  cat conftest.err >&5
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); } &&
3832	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3833  { (case "(($ac_try" in
3834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835  *) ac_try_echo=$ac_try;;
3836esac
3837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838  (eval "$ac_try") 2>&5
3839  ac_status=$?
3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841  (exit $ac_status); }; } &&
3842	 { ac_try='test -s conftest$ac_exeext'
3843  { (case "(($ac_try" in
3844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845  *) ac_try_echo=$ac_try;;
3846esac
3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848  (eval "$ac_try") 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; }; then
3852  { echo "$as_me:$LINENO: result: yes" >&5
3853echo "${ECHO_T}yes" >&6; }
3854else
3855  echo "$as_me: failed program was:" >&5
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
3858	{ echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6; }
3860 CFLAGS="$pa_add_cflags__old_cflags"
3861fi
3862
3863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3864      conftest$ac_exeext conftest.$ac_ext
3865{ echo "$as_me:$LINENO: checking if $CC accepts -Wnested-externs" >&5
3866echo $ECHO_N "checking if $CC accepts -Wnested-externs... $ECHO_C" >&6; }
3867 pa_add_cflags__old_cflags="$CFLAGS"
3868 CFLAGS="$CFLAGS -Wnested-externs"
3869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h.  */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h.  */
3875#include <stdio.h>
3876int
3877main ()
3878{
3879printf("Hello, World!\n");
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884rm -f conftest.$ac_objext conftest$ac_exeext
3885if { (ac_try="$ac_link"
3886case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891  (eval "$ac_link") 2>conftest.er1
3892  ac_status=$?
3893  grep -v '^ *+' conftest.er1 >conftest.err
3894  rm -f conftest.er1
3895  cat conftest.err >&5
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); } &&
3898	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3899  { (case "(($ac_try" in
3900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901  *) ac_try_echo=$ac_try;;
3902esac
3903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904  (eval "$ac_try") 2>&5
3905  ac_status=$?
3906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); }; } &&
3908	 { ac_try='test -s conftest$ac_exeext'
3909  { (case "(($ac_try" in
3910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911  *) ac_try_echo=$ac_try;;
3912esac
3913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914  (eval "$ac_try") 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; }; then
3918  { echo "$as_me:$LINENO: result: yes" >&5
3919echo "${ECHO_T}yes" >&6; }
3920else
3921  echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924	{ echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6; }
3926 CFLAGS="$pa_add_cflags__old_cflags"
3927fi
3928
3929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3930      conftest$ac_exeext conftest.$ac_ext
3931{ echo "$as_me:$LINENO: checking if $CC accepts -Winline" >&5
3932echo $ECHO_N "checking if $CC accepts -Winline... $ECHO_C" >&6; }
3933 pa_add_cflags__old_cflags="$CFLAGS"
3934 CFLAGS="$CFLAGS -Winline"
3935 cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941#include <stdio.h>
3942int
3943main ()
3944{
3945printf("Hello, World!\n");
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950rm -f conftest.$ac_objext conftest$ac_exeext
3951if { (ac_try="$ac_link"
3952case "(($ac_try" in
3953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954  *) ac_try_echo=$ac_try;;
3955esac
3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957  (eval "$ac_link") 2>conftest.er1
3958  ac_status=$?
3959  grep -v '^ *+' conftest.er1 >conftest.err
3960  rm -f conftest.er1
3961  cat conftest.err >&5
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); } &&
3964	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3965  { (case "(($ac_try" in
3966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967  *) ac_try_echo=$ac_try;;
3968esac
3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970  (eval "$ac_try") 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; } &&
3974	 { ac_try='test -s conftest$ac_exeext'
3975  { (case "(($ac_try" in
3976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977  *) ac_try_echo=$ac_try;;
3978esac
3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980  (eval "$ac_try") 2>&5
3981  ac_status=$?
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); }; }; then
3984  { echo "$as_me:$LINENO: result: yes" >&5
3985echo "${ECHO_T}yes" >&6; }
3986else
3987  echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990	{ echo "$as_me:$LINENO: result: no" >&5
3991echo "${ECHO_T}no" >&6; }
3992 CFLAGS="$pa_add_cflags__old_cflags"
3993fi
3994
3995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3996      conftest$ac_exeext conftest.$ac_ext
3997{ echo "$as_me:$LINENO: checking if $CC accepts -Wshadow" >&5
3998echo $ECHO_N "checking if $CC accepts -Wshadow... $ECHO_C" >&6; }
3999 pa_add_cflags__old_cflags="$CFLAGS"
4000 CFLAGS="$CFLAGS -Wshadow"
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h.  */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h.  */
4007#include <stdio.h>
4008int
4009main ()
4010{
4011printf("Hello, World!\n");
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext conftest$ac_exeext
4017if { (ac_try="$ac_link"
4018case "(($ac_try" in
4019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020  *) ac_try_echo=$ac_try;;
4021esac
4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023  (eval "$ac_link") 2>conftest.er1
4024  ac_status=$?
4025  grep -v '^ *+' conftest.er1 >conftest.err
4026  rm -f conftest.er1
4027  cat conftest.err >&5
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); } &&
4030	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031  { (case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036  (eval "$ac_try") 2>&5
4037  ac_status=$?
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); }; } &&
4040	 { ac_try='test -s conftest$ac_exeext'
4041  { (case "(($ac_try" in
4042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043  *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046  (eval "$ac_try") 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; }; then
4050  { echo "$as_me:$LINENO: result: yes" >&5
4051echo "${ECHO_T}yes" >&6; }
4052else
4053  echo "$as_me: failed program was:" >&5
4054sed 's/^/| /' conftest.$ac_ext >&5
4055
4056	{ echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6; }
4058 CFLAGS="$pa_add_cflags__old_cflags"
4059fi
4060
4061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4062      conftest$ac_exeext conftest.$ac_ext
4063{ echo "$as_me:$LINENO: checking if $CC accepts -Wcast-align" >&5
4064echo $ECHO_N "checking if $CC accepts -Wcast-align... $ECHO_C" >&6; }
4065 pa_add_cflags__old_cflags="$CFLAGS"
4066 CFLAGS="$CFLAGS -Wcast-align"
4067 cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h.  */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h.  */
4073#include <stdio.h>
4074int
4075main ()
4076{
4077printf("Hello, World!\n");
4078  ;
4079  return 0;
4080}
4081_ACEOF
4082rm -f conftest.$ac_objext conftest$ac_exeext
4083if { (ac_try="$ac_link"
4084case "(($ac_try" in
4085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086  *) ac_try_echo=$ac_try;;
4087esac
4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089  (eval "$ac_link") 2>conftest.er1
4090  ac_status=$?
4091  grep -v '^ *+' conftest.er1 >conftest.err
4092  rm -f conftest.er1
4093  cat conftest.err >&5
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); } &&
4096	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4097  { (case "(($ac_try" in
4098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099  *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102  (eval "$ac_try") 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); }; } &&
4106	 { ac_try='test -s conftest$ac_exeext'
4107  { (case "(($ac_try" in
4108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109  *) ac_try_echo=$ac_try;;
4110esac
4111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112  (eval "$ac_try") 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; }; then
4116  { echo "$as_me:$LINENO: result: yes" >&5
4117echo "${ECHO_T}yes" >&6; }
4118else
4119  echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122	{ echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6; }
4124 CFLAGS="$pa_add_cflags__old_cflags"
4125fi
4126
4127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4128      conftest$ac_exeext conftest.$ac_ext
4129{ echo "$as_me:$LINENO: checking if $CC accepts -pipe" >&5
4130echo $ECHO_N "checking if $CC accepts -pipe... $ECHO_C" >&6; }
4131 pa_add_cflags__old_cflags="$CFLAGS"
4132 CFLAGS="$CFLAGS -pipe"
4133 cat >conftest.$ac_ext <<_ACEOF
4134/* confdefs.h.  */
4135_ACEOF
4136cat confdefs.h >>conftest.$ac_ext
4137cat >>conftest.$ac_ext <<_ACEOF
4138/* end confdefs.h.  */
4139#include <stdio.h>
4140int
4141main ()
4142{
4143printf("Hello, World!\n");
4144  ;
4145  return 0;
4146}
4147_ACEOF
4148rm -f conftest.$ac_objext conftest$ac_exeext
4149if { (ac_try="$ac_link"
4150case "(($ac_try" in
4151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152  *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155  (eval "$ac_link") 2>conftest.er1
4156  ac_status=$?
4157  grep -v '^ *+' conftest.er1 >conftest.err
4158  rm -f conftest.er1
4159  cat conftest.err >&5
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } &&
4162	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163  { (case "(($ac_try" in
4164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165  *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168  (eval "$ac_try") 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; } &&
4172	 { ac_try='test -s conftest$ac_exeext'
4173  { (case "(($ac_try" in
4174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175  *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178  (eval "$ac_try") 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; }; then
4182  { echo "$as_me:$LINENO: result: yes" >&5
4183echo "${ECHO_T}yes" >&6; }
4184else
4185  echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188	{ echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6; }
4190 CFLAGS="$pa_add_cflags__old_cflags"
4191fi
4192
4193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4194      conftest$ac_exeext conftest.$ac_ext
4195
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4202echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4203# On Suns, sometimes $CPP names a directory.
4204if test -n "$CPP" && test -d "$CPP"; then
4205  CPP=
4206fi
4207if test -z "$CPP"; then
4208  if test "${ac_cv_prog_CPP+set}" = set; then
4209  echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211      # Double quotes because CPP needs to be expanded
4212    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213    do
4214      ac_preproc_ok=false
4215for ac_c_preproc_warn_flag in '' yes
4216do
4217  # Use a header file that comes with gcc, so configuring glibc
4218  # with a fresh cross-compiler works.
4219  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220  # <limits.h> exists even on freestanding compilers.
4221  # On the NeXT, cc -E runs the code through the compiler's parser,
4222  # not just through cpp. "Syntax error" is here to catch this case.
4223  cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h.  */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h.  */
4229#ifdef __STDC__
4230# include <limits.h>
4231#else
4232# include <assert.h>
4233#endif
4234		     Syntax error
4235_ACEOF
4236if { (ac_try="$ac_cpp conftest.$ac_ext"
4237case "(($ac_try" in
4238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239  *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4243  ac_status=$?
4244  grep -v '^ *+' conftest.er1 >conftest.err
4245  rm -f conftest.er1
4246  cat conftest.err >&5
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); } >/dev/null; then
4249  if test -s conftest.err; then
4250    ac_cpp_err=$ac_c_preproc_warn_flag
4251    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4252  else
4253    ac_cpp_err=
4254  fi
4255else
4256  ac_cpp_err=yes
4257fi
4258if test -z "$ac_cpp_err"; then
4259  :
4260else
4261  echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264  # Broken: fails on valid input.
4265continue
4266fi
4267
4268rm -f conftest.err conftest.$ac_ext
4269
4270  # OK, works on sane cases.  Now check whether nonexistent headers
4271  # can be detected and how.
4272  cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h.  */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h.  */
4278#include <ac_nonexistent.h>
4279_ACEOF
4280if { (ac_try="$ac_cpp conftest.$ac_ext"
4281case "(($ac_try" in
4282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283  *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4287  ac_status=$?
4288  grep -v '^ *+' conftest.er1 >conftest.err
4289  rm -f conftest.er1
4290  cat conftest.err >&5
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); } >/dev/null; then
4293  if test -s conftest.err; then
4294    ac_cpp_err=$ac_c_preproc_warn_flag
4295    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4296  else
4297    ac_cpp_err=
4298  fi
4299else
4300  ac_cpp_err=yes
4301fi
4302if test -z "$ac_cpp_err"; then
4303  # Broken: success on invalid input.
4304continue
4305else
4306  echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309  # Passes both tests.
4310ac_preproc_ok=:
4311break
4312fi
4313
4314rm -f conftest.err conftest.$ac_ext
4315
4316done
4317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4318rm -f conftest.err conftest.$ac_ext
4319if $ac_preproc_ok; then
4320  break
4321fi
4322
4323    done
4324    ac_cv_prog_CPP=$CPP
4325
4326fi
4327  CPP=$ac_cv_prog_CPP
4328else
4329  ac_cv_prog_CPP=$CPP
4330fi
4331{ echo "$as_me:$LINENO: result: $CPP" >&5
4332echo "${ECHO_T}$CPP" >&6; }
4333ac_preproc_ok=false
4334for ac_c_preproc_warn_flag in '' yes
4335do
4336  # Use a header file that comes with gcc, so configuring glibc
4337  # with a fresh cross-compiler works.
4338  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339  # <limits.h> exists even on freestanding compilers.
4340  # On the NeXT, cc -E runs the code through the compiler's parser,
4341  # not just through cpp. "Syntax error" is here to catch this case.
4342  cat >conftest.$ac_ext <<_ACEOF
4343/* confdefs.h.  */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h.  */
4348#ifdef __STDC__
4349# include <limits.h>
4350#else
4351# include <assert.h>
4352#endif
4353		     Syntax error
4354_ACEOF
4355if { (ac_try="$ac_cpp conftest.$ac_ext"
4356case "(($ac_try" in
4357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358  *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4362  ac_status=$?
4363  grep -v '^ *+' conftest.er1 >conftest.err
4364  rm -f conftest.er1
4365  cat conftest.err >&5
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); } >/dev/null; then
4368  if test -s conftest.err; then
4369    ac_cpp_err=$ac_c_preproc_warn_flag
4370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4371  else
4372    ac_cpp_err=
4373  fi
4374else
4375  ac_cpp_err=yes
4376fi
4377if test -z "$ac_cpp_err"; then
4378  :
4379else
4380  echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
4383  # Broken: fails on valid input.
4384continue
4385fi
4386
4387rm -f conftest.err conftest.$ac_ext
4388
4389  # OK, works on sane cases.  Now check whether nonexistent headers
4390  # can be detected and how.
4391  cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h.  */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h.  */
4397#include <ac_nonexistent.h>
4398_ACEOF
4399if { (ac_try="$ac_cpp conftest.$ac_ext"
4400case "(($ac_try" in
4401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402  *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4406  ac_status=$?
4407  grep -v '^ *+' conftest.er1 >conftest.err
4408  rm -f conftest.er1
4409  cat conftest.err >&5
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); } >/dev/null; then
4412  if test -s conftest.err; then
4413    ac_cpp_err=$ac_c_preproc_warn_flag
4414    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4415  else
4416    ac_cpp_err=
4417  fi
4418else
4419  ac_cpp_err=yes
4420fi
4421if test -z "$ac_cpp_err"; then
4422  # Broken: success on invalid input.
4423continue
4424else
4425  echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428  # Passes both tests.
4429ac_preproc_ok=:
4430break
4431fi
4432
4433rm -f conftest.err conftest.$ac_ext
4434
4435done
4436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4437rm -f conftest.err conftest.$ac_ext
4438if $ac_preproc_ok; then
4439  :
4440else
4441  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4442See \`config.log' for more details." >&5
4443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4444See \`config.log' for more details." >&2;}
4445   { (exit 1); exit 1; }; }
4446fi
4447
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454
4455{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4456echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4457if test "${ac_cv_path_GREP+set}" = set; then
4458  echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460  # Extract the first word of "grep ggrep" to use in msg output
4461if test -z "$GREP"; then
4462set dummy grep ggrep; ac_prog_name=$2
4463if test "${ac_cv_path_GREP+set}" = set; then
4464  echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466  ac_path_GREP_found=false
4467# Loop through the user's path and test for each of PROGNAME-LIST
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470do
4471  IFS=$as_save_IFS
4472  test -z "$as_dir" && as_dir=.
4473  for ac_prog in grep ggrep; do
4474  for ac_exec_ext in '' $ac_executable_extensions; do
4475    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4476    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4477    # Check for GNU ac_path_GREP and select it if it is found.
4478  # Check for GNU $ac_path_GREP
4479case `"$ac_path_GREP" --version 2>&1` in
4480*GNU*)
4481  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4482*)
4483  ac_count=0
4484  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4485  while :
4486  do
4487    cat "conftest.in" "conftest.in" >"conftest.tmp"
4488    mv "conftest.tmp" "conftest.in"
4489    cp "conftest.in" "conftest.nl"
4490    echo 'GREP' >> "conftest.nl"
4491    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493    ac_count=`expr $ac_count + 1`
4494    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4495      # Best one so far, save it but keep looking for a better one
4496      ac_cv_path_GREP="$ac_path_GREP"
4497      ac_path_GREP_max=$ac_count
4498    fi
4499    # 10*(2^10) chars as input seems more than enough
4500    test $ac_count -gt 10 && break
4501  done
4502  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503esac
4504
4505
4506    $ac_path_GREP_found && break 3
4507  done
4508done
4509
4510done
4511IFS=$as_save_IFS
4512
4513
4514fi
4515
4516GREP="$ac_cv_path_GREP"
4517if test -z "$GREP"; then
4518  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4519echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4520   { (exit 1); exit 1; }; }
4521fi
4522
4523else
4524  ac_cv_path_GREP=$GREP
4525fi
4526
4527
4528fi
4529{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4530echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4531 GREP="$ac_cv_path_GREP"
4532
4533
4534{ echo "$as_me:$LINENO: checking for egrep" >&5
4535echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4536if test "${ac_cv_path_EGREP+set}" = set; then
4537  echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4540   then ac_cv_path_EGREP="$GREP -E"
4541   else
4542     # Extract the first word of "egrep" to use in msg output
4543if test -z "$EGREP"; then
4544set dummy egrep; ac_prog_name=$2
4545if test "${ac_cv_path_EGREP+set}" = set; then
4546  echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548  ac_path_EGREP_found=false
4549# Loop through the user's path and test for each of PROGNAME-LIST
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552do
4553  IFS=$as_save_IFS
4554  test -z "$as_dir" && as_dir=.
4555  for ac_prog in egrep; do
4556  for ac_exec_ext in '' $ac_executable_extensions; do
4557    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4558    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4559    # Check for GNU ac_path_EGREP and select it if it is found.
4560  # Check for GNU $ac_path_EGREP
4561case `"$ac_path_EGREP" --version 2>&1` in
4562*GNU*)
4563  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4564*)
4565  ac_count=0
4566  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4567  while :
4568  do
4569    cat "conftest.in" "conftest.in" >"conftest.tmp"
4570    mv "conftest.tmp" "conftest.in"
4571    cp "conftest.in" "conftest.nl"
4572    echo 'EGREP' >> "conftest.nl"
4573    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575    ac_count=`expr $ac_count + 1`
4576    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4577      # Best one so far, save it but keep looking for a better one
4578      ac_cv_path_EGREP="$ac_path_EGREP"
4579      ac_path_EGREP_max=$ac_count
4580    fi
4581    # 10*(2^10) chars as input seems more than enough
4582    test $ac_count -gt 10 && break
4583  done
4584  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585esac
4586
4587
4588    $ac_path_EGREP_found && break 3
4589  done
4590done
4591
4592done
4593IFS=$as_save_IFS
4594
4595
4596fi
4597
4598EGREP="$ac_cv_path_EGREP"
4599if test -z "$EGREP"; then
4600  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4601echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4602   { (exit 1); exit 1; }; }
4603fi
4604
4605else
4606  ac_cv_path_EGREP=$EGREP
4607fi
4608
4609
4610   fi
4611fi
4612{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4613echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4614 EGREP="$ac_cv_path_EGREP"
4615
4616
4617{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4618echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4619if test "${ac_cv_header_stdc+set}" = set; then
4620  echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622  cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h.  */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h.  */
4628#include <stdlib.h>
4629#include <stdarg.h>
4630#include <string.h>
4631#include <float.h>
4632
4633int
4634main ()
4635{
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641rm -f conftest.$ac_objext
4642if { (ac_try="$ac_compile"
4643case "(($ac_try" in
4644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645  *) ac_try_echo=$ac_try;;
4646esac
4647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648  (eval "$ac_compile") 2>conftest.er1
4649  ac_status=$?
4650  grep -v '^ *+' conftest.er1 >conftest.err
4651  rm -f conftest.er1
4652  cat conftest.err >&5
4653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654  (exit $ac_status); } &&
4655	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4656  { (case "(($ac_try" in
4657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658  *) ac_try_echo=$ac_try;;
4659esac
4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661  (eval "$ac_try") 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); }; } &&
4665	 { ac_try='test -s conftest.$ac_objext'
4666  { (case "(($ac_try" in
4667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668  *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671  (eval "$ac_try") 2>&5
4672  ac_status=$?
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); }; }; then
4675  ac_cv_header_stdc=yes
4676else
4677  echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680	ac_cv_header_stdc=no
4681fi
4682
4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684
4685if test $ac_cv_header_stdc = yes; then
4686  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4687  cat >conftest.$ac_ext <<_ACEOF
4688/* confdefs.h.  */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h.  */
4693#include <string.h>
4694
4695_ACEOF
4696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4697  $EGREP "memchr" >/dev/null 2>&1; then
4698  :
4699else
4700  ac_cv_header_stdc=no
4701fi
4702rm -f conftest*
4703
4704fi
4705
4706if test $ac_cv_header_stdc = yes; then
4707  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4708  cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h.  */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h.  */
4714#include <stdlib.h>
4715
4716_ACEOF
4717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718  $EGREP "free" >/dev/null 2>&1; then
4719  :
4720else
4721  ac_cv_header_stdc=no
4722fi
4723rm -f conftest*
4724
4725fi
4726
4727if test $ac_cv_header_stdc = yes; then
4728  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4729  if test "$cross_compiling" = yes; then
4730  :
4731else
4732  cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h.  */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h.  */
4738#include <ctype.h>
4739#include <stdlib.h>
4740#if ((' ' & 0x0FF) == 0x020)
4741# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4742# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4743#else
4744# define ISLOWER(c) \
4745		   (('a' <= (c) && (c) <= 'i') \
4746		     || ('j' <= (c) && (c) <= 'r') \
4747		     || ('s' <= (c) && (c) <= 'z'))
4748# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4749#endif
4750
4751#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4752int
4753main ()
4754{
4755  int i;
4756  for (i = 0; i < 256; i++)
4757    if (XOR (islower (i), ISLOWER (i))
4758	|| toupper (i) != TOUPPER (i))
4759      return 2;
4760  return 0;
4761}
4762_ACEOF
4763rm -f conftest$ac_exeext
4764if { (ac_try="$ac_link"
4765case "(($ac_try" in
4766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767  *) ac_try_echo=$ac_try;;
4768esac
4769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770  (eval "$ac_link") 2>&5
4771  ac_status=$?
4772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4774  { (case "(($ac_try" in
4775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776  *) ac_try_echo=$ac_try;;
4777esac
4778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779  (eval "$ac_try") 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; }; then
4783  :
4784else
4785  echo "$as_me: program exited with status $ac_status" >&5
4786echo "$as_me: failed program was:" >&5
4787sed 's/^/| /' conftest.$ac_ext >&5
4788
4789( exit $ac_status )
4790ac_cv_header_stdc=no
4791fi
4792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4793fi
4794
4795
4796fi
4797fi
4798{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4799echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4800if test $ac_cv_header_stdc = yes; then
4801
4802cat >>confdefs.h <<\_ACEOF
4803#define STDC_HEADERS 1
4804_ACEOF
4805
4806fi
4807
4808# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4819		  inttypes.h stdint.h unistd.h
4820do
4821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4822{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h.  */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h.  */
4833$ac_includes_default
4834
4835#include <$ac_header>
4836_ACEOF
4837rm -f conftest.$ac_objext
4838if { (ac_try="$ac_compile"
4839case "(($ac_try" in
4840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841  *) ac_try_echo=$ac_try;;
4842esac
4843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844  (eval "$ac_compile") 2>conftest.er1
4845  ac_status=$?
4846  grep -v '^ *+' conftest.er1 >conftest.err
4847  rm -f conftest.er1
4848  cat conftest.err >&5
4849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); } &&
4851	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4852  { (case "(($ac_try" in
4853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854  *) ac_try_echo=$ac_try;;
4855esac
4856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857  (eval "$ac_try") 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); }; } &&
4861	 { ac_try='test -s conftest.$ac_objext'
4862  { (case "(($ac_try" in
4863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864  *) ac_try_echo=$ac_try;;
4865esac
4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867  (eval "$ac_try") 2>&5
4868  ac_status=$?
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); }; }; then
4871  eval "$as_ac_Header=yes"
4872else
4873  echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
4875
4876	eval "$as_ac_Header=no"
4877fi
4878
4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880fi
4881ac_res=`eval echo '${'$as_ac_Header'}'`
4882	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4883echo "${ECHO_T}$ac_res" >&6; }
4884if test `eval echo '${'$as_ac_Header'}'` = yes; then
4885  cat >>confdefs.h <<_ACEOF
4886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4887_ACEOF
4888
4889fi
4890
4891done
4892
4893
4894
4895for ac_header in inttypes.h
4896do
4897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4899  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4902  echo $ECHO_N "(cached) $ECHO_C" >&6
4903fi
4904ac_res=`eval echo '${'$as_ac_Header'}'`
4905	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4906echo "${ECHO_T}$ac_res" >&6; }
4907else
4908  # Is the header compilable?
4909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4911cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h.  */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h.  */
4917$ac_includes_default
4918#include <$ac_header>
4919_ACEOF
4920rm -f conftest.$ac_objext
4921if { (ac_try="$ac_compile"
4922case "(($ac_try" in
4923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924  *) ac_try_echo=$ac_try;;
4925esac
4926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927  (eval "$ac_compile") 2>conftest.er1
4928  ac_status=$?
4929  grep -v '^ *+' conftest.er1 >conftest.err
4930  rm -f conftest.er1
4931  cat conftest.err >&5
4932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933  (exit $ac_status); } &&
4934	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4935  { (case "(($ac_try" in
4936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937  *) ac_try_echo=$ac_try;;
4938esac
4939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940  (eval "$ac_try") 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); }; } &&
4944	 { ac_try='test -s conftest.$ac_objext'
4945  { (case "(($ac_try" in
4946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947  *) ac_try_echo=$ac_try;;
4948esac
4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950  (eval "$ac_try") 2>&5
4951  ac_status=$?
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); }; }; then
4954  ac_header_compiler=yes
4955else
4956  echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959	ac_header_compiler=no
4960fi
4961
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4964echo "${ECHO_T}$ac_header_compiler" >&6; }
4965
4966# Is the header present?
4967{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4969cat >conftest.$ac_ext <<_ACEOF
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975#include <$ac_header>
4976_ACEOF
4977if { (ac_try="$ac_cpp conftest.$ac_ext"
4978case "(($ac_try" in
4979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980  *) ac_try_echo=$ac_try;;
4981esac
4982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4984  ac_status=$?
4985  grep -v '^ *+' conftest.er1 >conftest.err
4986  rm -f conftest.er1
4987  cat conftest.err >&5
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); } >/dev/null; then
4990  if test -s conftest.err; then
4991    ac_cpp_err=$ac_c_preproc_warn_flag
4992    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4993  else
4994    ac_cpp_err=
4995  fi
4996else
4997  ac_cpp_err=yes
4998fi
4999if test -z "$ac_cpp_err"; then
5000  ac_header_preproc=yes
5001else
5002  echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005  ac_header_preproc=no
5006fi
5007
5008rm -f conftest.err conftest.$ac_ext
5009{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5010echo "${ECHO_T}$ac_header_preproc" >&6; }
5011
5012# So?  What about this header?
5013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5014  yes:no: )
5015    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5019    ac_header_preproc=yes
5020    ;;
5021  no:yes:* )
5022    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5024    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5025echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5026    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5028    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5029echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5032    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5034
5035    ;;
5036esac
5037{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5040  echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042  eval "$as_ac_Header=\$ac_header_preproc"
5043fi
5044ac_res=`eval echo '${'$as_ac_Header'}'`
5045	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5046echo "${ECHO_T}$ac_res" >&6; }
5047
5048fi
5049if test `eval echo '${'$as_ac_Header'}'` = yes; then
5050  cat >>confdefs.h <<_ACEOF
5051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5052_ACEOF
5053
5054fi
5055
5056done
5057
5058
5059for ac_header in sysexits.h
5060do
5061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5063  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5066  echo $ECHO_N "(cached) $ECHO_C" >&6
5067fi
5068ac_res=`eval echo '${'$as_ac_Header'}'`
5069	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5070echo "${ECHO_T}$ac_res" >&6; }
5071else
5072  # Is the header compilable?
5073{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5075cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h.  */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h.  */
5081$ac_includes_default
5082#include <$ac_header>
5083_ACEOF
5084rm -f conftest.$ac_objext
5085if { (ac_try="$ac_compile"
5086case "(($ac_try" in
5087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088  *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091  (eval "$ac_compile") 2>conftest.er1
5092  ac_status=$?
5093  grep -v '^ *+' conftest.er1 >conftest.err
5094  rm -f conftest.er1
5095  cat conftest.err >&5
5096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097  (exit $ac_status); } &&
5098	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5099  { (case "(($ac_try" in
5100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101  *) ac_try_echo=$ac_try;;
5102esac
5103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104  (eval "$ac_try") 2>&5
5105  ac_status=$?
5106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107  (exit $ac_status); }; } &&
5108	 { ac_try='test -s conftest.$ac_objext'
5109  { (case "(($ac_try" in
5110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111  *) ac_try_echo=$ac_try;;
5112esac
5113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114  (eval "$ac_try") 2>&5
5115  ac_status=$?
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); }; }; then
5118  ac_header_compiler=yes
5119else
5120  echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123	ac_header_compiler=no
5124fi
5125
5126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5128echo "${ECHO_T}$ac_header_compiler" >&6; }
5129
5130# Is the header present?
5131{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5133cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h.  */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h.  */
5139#include <$ac_header>
5140_ACEOF
5141if { (ac_try="$ac_cpp conftest.$ac_ext"
5142case "(($ac_try" in
5143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144  *) ac_try_echo=$ac_try;;
5145esac
5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5148  ac_status=$?
5149  grep -v '^ *+' conftest.er1 >conftest.err
5150  rm -f conftest.er1
5151  cat conftest.err >&5
5152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } >/dev/null; then
5154  if test -s conftest.err; then
5155    ac_cpp_err=$ac_c_preproc_warn_flag
5156    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5157  else
5158    ac_cpp_err=
5159  fi
5160else
5161  ac_cpp_err=yes
5162fi
5163if test -z "$ac_cpp_err"; then
5164  ac_header_preproc=yes
5165else
5166  echo "$as_me: failed program was:" >&5
5167sed 's/^/| /' conftest.$ac_ext >&5
5168
5169  ac_header_preproc=no
5170fi
5171
5172rm -f conftest.err conftest.$ac_ext
5173{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5174echo "${ECHO_T}$ac_header_preproc" >&6; }
5175
5176# So?  What about this header?
5177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5178  yes:no: )
5179    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5183    ac_header_preproc=yes
5184    ;;
5185  no:yes:* )
5186    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5188    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5189echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5190    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5192    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5193echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5194    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5196    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5198
5199    ;;
5200esac
5201{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5204  echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206  eval "$as_ac_Header=\$ac_header_preproc"
5207fi
5208ac_res=`eval echo '${'$as_ac_Header'}'`
5209	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5210echo "${ECHO_T}$ac_res" >&6; }
5211
5212fi
5213if test `eval echo '${'$as_ac_Header'}'` = yes; then
5214  cat >>confdefs.h <<_ACEOF
5215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216_ACEOF
5217
5218fi
5219
5220done
5221
5222
5223for ac_header in getopt.h
5224do
5225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5227  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5230  echo $ECHO_N "(cached) $ECHO_C" >&6
5231fi
5232ac_res=`eval echo '${'$as_ac_Header'}'`
5233	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5234echo "${ECHO_T}$ac_res" >&6; }
5235else
5236  # Is the header compilable?
5237{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5239cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h.  */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h.  */
5245$ac_includes_default
5246#include <$ac_header>
5247_ACEOF
5248rm -f conftest.$ac_objext
5249if { (ac_try="$ac_compile"
5250case "(($ac_try" in
5251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252  *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255  (eval "$ac_compile") 2>conftest.er1
5256  ac_status=$?
5257  grep -v '^ *+' conftest.er1 >conftest.err
5258  rm -f conftest.er1
5259  cat conftest.err >&5
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); } &&
5262	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5263  { (case "(($ac_try" in
5264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265  *) ac_try_echo=$ac_try;;
5266esac
5267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268  (eval "$ac_try") 2>&5
5269  ac_status=$?
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); }; } &&
5272	 { ac_try='test -s conftest.$ac_objext'
5273  { (case "(($ac_try" in
5274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275  *) ac_try_echo=$ac_try;;
5276esac
5277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278  (eval "$ac_try") 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); }; }; then
5282  ac_header_compiler=yes
5283else
5284  echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287	ac_header_compiler=no
5288fi
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292echo "${ECHO_T}$ac_header_compiler" >&6; }
5293
5294# Is the header present?
5295{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5297cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h.  */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h.  */
5303#include <$ac_header>
5304_ACEOF
5305if { (ac_try="$ac_cpp conftest.$ac_ext"
5306case "(($ac_try" in
5307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308  *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5312  ac_status=$?
5313  grep -v '^ *+' conftest.er1 >conftest.err
5314  rm -f conftest.er1
5315  cat conftest.err >&5
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); } >/dev/null; then
5318  if test -s conftest.err; then
5319    ac_cpp_err=$ac_c_preproc_warn_flag
5320    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5321  else
5322    ac_cpp_err=
5323  fi
5324else
5325  ac_cpp_err=yes
5326fi
5327if test -z "$ac_cpp_err"; then
5328  ac_header_preproc=yes
5329else
5330  echo "$as_me: failed program was:" >&5
5331sed 's/^/| /' conftest.$ac_ext >&5
5332
5333  ac_header_preproc=no
5334fi
5335
5336rm -f conftest.err conftest.$ac_ext
5337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5338echo "${ECHO_T}$ac_header_preproc" >&6; }
5339
5340# So?  What about this header?
5341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5342  yes:no: )
5343    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5347    ac_header_preproc=yes
5348    ;;
5349  no:yes:* )
5350    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5352    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5353echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5354    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5356    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5357echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5360    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5362
5363    ;;
5364esac
5365{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  eval "$as_ac_Header=\$ac_header_preproc"
5371fi
5372ac_res=`eval echo '${'$as_ac_Header'}'`
5373	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5374echo "${ECHO_T}$ac_res" >&6; }
5375
5376fi
5377if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378  cat >>confdefs.h <<_ACEOF
5379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380_ACEOF
5381
5382fi
5383
5384done
5385
5386
5387for ac_header in endian.h
5388do
5389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5391  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5394  echo $ECHO_N "(cached) $ECHO_C" >&6
5395fi
5396ac_res=`eval echo '${'$as_ac_Header'}'`
5397	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5398echo "${ECHO_T}$ac_res" >&6; }
5399else
5400  # Is the header compilable?
5401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5403cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h.  */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h.  */
5409$ac_includes_default
5410#include <$ac_header>
5411_ACEOF
5412rm -f conftest.$ac_objext
5413if { (ac_try="$ac_compile"
5414case "(($ac_try" in
5415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416  *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419  (eval "$ac_compile") 2>conftest.er1
5420  ac_status=$?
5421  grep -v '^ *+' conftest.er1 >conftest.err
5422  rm -f conftest.er1
5423  cat conftest.err >&5
5424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); } &&
5426	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5427  { (case "(($ac_try" in
5428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429  *) ac_try_echo=$ac_try;;
5430esac
5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432  (eval "$ac_try") 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); }; } &&
5436	 { ac_try='test -s conftest.$ac_objext'
5437  { (case "(($ac_try" in
5438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439  *) ac_try_echo=$ac_try;;
5440esac
5441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442  (eval "$ac_try") 2>&5
5443  ac_status=$?
5444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); }; }; then
5446  ac_header_compiler=yes
5447else
5448  echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451	ac_header_compiler=no
5452fi
5453
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5456echo "${ECHO_T}$ac_header_compiler" >&6; }
5457
5458# Is the header present?
5459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5461cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h.  */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h.  */
5467#include <$ac_header>
5468_ACEOF
5469if { (ac_try="$ac_cpp conftest.$ac_ext"
5470case "(($ac_try" in
5471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472  *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476  ac_status=$?
5477  grep -v '^ *+' conftest.er1 >conftest.err
5478  rm -f conftest.er1
5479  cat conftest.err >&5
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); } >/dev/null; then
5482  if test -s conftest.err; then
5483    ac_cpp_err=$ac_c_preproc_warn_flag
5484    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485  else
5486    ac_cpp_err=
5487  fi
5488else
5489  ac_cpp_err=yes
5490fi
5491if test -z "$ac_cpp_err"; then
5492  ac_header_preproc=yes
5493else
5494  echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497  ac_header_preproc=no
5498fi
5499
5500rm -f conftest.err conftest.$ac_ext
5501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502echo "${ECHO_T}$ac_header_preproc" >&6; }
5503
5504# So?  What about this header?
5505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5506  yes:no: )
5507    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5511    ac_header_preproc=yes
5512    ;;
5513  no:yes:* )
5514    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5516    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5517echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5518    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5520    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5521echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5522    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5524    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5526
5527    ;;
5528esac
5529{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5532  echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534  eval "$as_ac_Header=\$ac_header_preproc"
5535fi
5536ac_res=`eval echo '${'$as_ac_Header'}'`
5537	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5538echo "${ECHO_T}$ac_res" >&6; }
5539
5540fi
5541if test `eval echo '${'$as_ac_Header'}'` = yes; then
5542  cat >>confdefs.h <<_ACEOF
5543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5544_ACEOF
5545
5546fi
5547
5548done
5549
5550
5551{ echo "$as_me:$LINENO: checking for off_t" >&5
5552echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5553if test "${ac_cv_type_off_t+set}" = set; then
5554  echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556  cat >conftest.$ac_ext <<_ACEOF
5557/* confdefs.h.  */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h.  */
5562$ac_includes_default
5563typedef off_t ac__type_new_;
5564int
5565main ()
5566{
5567if ((ac__type_new_ *) 0)
5568  return 0;
5569if (sizeof (ac__type_new_))
5570  return 0;
5571  ;
5572  return 0;
5573}
5574_ACEOF
5575rm -f conftest.$ac_objext
5576if { (ac_try="$ac_compile"
5577case "(($ac_try" in
5578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579  *) ac_try_echo=$ac_try;;
5580esac
5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582  (eval "$ac_compile") 2>conftest.er1
5583  ac_status=$?
5584  grep -v '^ *+' conftest.er1 >conftest.err
5585  rm -f conftest.er1
5586  cat conftest.err >&5
5587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588  (exit $ac_status); } &&
5589	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5590  { (case "(($ac_try" in
5591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592  *) ac_try_echo=$ac_try;;
5593esac
5594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595  (eval "$ac_try") 2>&5
5596  ac_status=$?
5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598  (exit $ac_status); }; } &&
5599	 { ac_try='test -s conftest.$ac_objext'
5600  { (case "(($ac_try" in
5601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602  *) ac_try_echo=$ac_try;;
5603esac
5604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605  (eval "$ac_try") 2>&5
5606  ac_status=$?
5607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608  (exit $ac_status); }; }; then
5609  ac_cv_type_off_t=yes
5610else
5611  echo "$as_me: failed program was:" >&5
5612sed 's/^/| /' conftest.$ac_ext >&5
5613
5614	ac_cv_type_off_t=no
5615fi
5616
5617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618fi
5619{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5620echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5621if test $ac_cv_type_off_t = yes; then
5622  :
5623else
5624
5625cat >>confdefs.h <<_ACEOF
5626#define off_t signed long
5627_ACEOF
5628
5629fi
5630
5631{ echo "$as_me:$LINENO: checking for size_t" >&5
5632echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5633if test "${ac_cv_type_size_t+set}" = set; then
5634  echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636  cat >conftest.$ac_ext <<_ACEOF
5637/* confdefs.h.  */
5638_ACEOF
5639cat confdefs.h >>conftest.$ac_ext
5640cat >>conftest.$ac_ext <<_ACEOF
5641/* end confdefs.h.  */
5642$ac_includes_default
5643typedef size_t ac__type_new_;
5644int
5645main ()
5646{
5647if ((ac__type_new_ *) 0)
5648  return 0;
5649if (sizeof (ac__type_new_))
5650  return 0;
5651  ;
5652  return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext
5656if { (ac_try="$ac_compile"
5657case "(($ac_try" in
5658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659  *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662  (eval "$ac_compile") 2>conftest.er1
5663  ac_status=$?
5664  grep -v '^ *+' conftest.er1 >conftest.err
5665  rm -f conftest.er1
5666  cat conftest.err >&5
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } &&
5669	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670  { (case "(($ac_try" in
5671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672  *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675  (eval "$ac_try") 2>&5
5676  ac_status=$?
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); }; } &&
5679	 { ac_try='test -s conftest.$ac_objext'
5680  { (case "(($ac_try" in
5681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682  *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685  (eval "$ac_try") 2>&5
5686  ac_status=$?
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); }; }; then
5689  ac_cv_type_size_t=yes
5690else
5691  echo "$as_me: failed program was:" >&5
5692sed 's/^/| /' conftest.$ac_ext >&5
5693
5694	ac_cv_type_size_t=no
5695fi
5696
5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698fi
5699{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5700echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5701if test $ac_cv_type_size_t = yes; then
5702  :
5703else
5704
5705cat >>confdefs.h <<_ACEOF
5706#define size_t unsigned long
5707_ACEOF
5708
5709fi
5710
5711{ echo "$as_me:$LINENO: checking for ssize_t" >&5
5712echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5713if test "${ac_cv_type_ssize_t+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h.  */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h.  */
5722$ac_includes_default
5723typedef ssize_t ac__type_new_;
5724int
5725main ()
5726{
5727if ((ac__type_new_ *) 0)
5728  return 0;
5729if (sizeof (ac__type_new_))
5730  return 0;
5731  ;
5732  return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext
5736if { (ac_try="$ac_compile"
5737case "(($ac_try" in
5738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739  *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742  (eval "$ac_compile") 2>conftest.er1
5743  ac_status=$?
5744  grep -v '^ *+' conftest.er1 >conftest.err
5745  rm -f conftest.er1
5746  cat conftest.err >&5
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); } &&
5749	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5750  { (case "(($ac_try" in
5751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752  *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755  (eval "$ac_try") 2>&5
5756  ac_status=$?
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); }; } &&
5759	 { ac_try='test -s conftest.$ac_objext'
5760  { (case "(($ac_try" in
5761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762  *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765  (eval "$ac_try") 2>&5
5766  ac_status=$?
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); }; }; then
5769  ac_cv_type_ssize_t=yes
5770else
5771  echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774	ac_cv_type_ssize_t=no
5775fi
5776
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5780echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5781if test $ac_cv_type_ssize_t = yes; then
5782  :
5783else
5784
5785cat >>confdefs.h <<_ACEOF
5786#define ssize_t signed long
5787_ACEOF
5788
5789fi
5790
5791
5792
5793for ac_func in lchown
5794do
5795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5799  echo $ECHO_N "(cached) $ECHO_C" >&6
5800else
5801  cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h.  */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h.  */
5807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5809#define $ac_func innocuous_$ac_func
5810
5811/* System header to define __stub macros and hopefully few prototypes,
5812    which can conflict with char $ac_func (); below.
5813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814    <limits.h> exists even on freestanding compilers.  */
5815
5816#ifdef __STDC__
5817# include <limits.h>
5818#else
5819# include <assert.h>
5820#endif
5821
5822#undef $ac_func
5823
5824/* Override any GCC internal prototype to avoid an error.
5825   Use char because int might match the return type of a GCC
5826   builtin and then its argument prototype would still apply.  */
5827#ifdef __cplusplus
5828extern "C"
5829#endif
5830char $ac_func ();
5831/* The GNU C library defines this for functions which it implements
5832    to always fail with ENOSYS.  Some functions are actually named
5833    something starting with __ and the normal name is an alias.  */
5834#if defined __stub_$ac_func || defined __stub___$ac_func
5835choke me
5836#endif
5837
5838int
5839main ()
5840{
5841return $ac_func ();
5842  ;
5843  return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext conftest$ac_exeext
5847if { (ac_try="$ac_link"
5848case "(($ac_try" in
5849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850  *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853  (eval "$ac_link") 2>conftest.er1
5854  ac_status=$?
5855  grep -v '^ *+' conftest.er1 >conftest.err
5856  rm -f conftest.er1
5857  cat conftest.err >&5
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); } &&
5860	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5861  { (case "(($ac_try" in
5862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863  *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866  (eval "$ac_try") 2>&5
5867  ac_status=$?
5868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869  (exit $ac_status); }; } &&
5870	 { ac_try='test -s conftest$ac_exeext'
5871  { (case "(($ac_try" in
5872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873  *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876  (eval "$ac_try") 2>&5
5877  ac_status=$?
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); }; }; then
5880  eval "$as_ac_var=yes"
5881else
5882  echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885	eval "$as_ac_var=no"
5886fi
5887
5888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5889      conftest$ac_exeext conftest.$ac_ext
5890fi
5891ac_res=`eval echo '${'$as_ac_var'}'`
5892	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5893echo "${ECHO_T}$ac_res" >&6; }
5894if test `eval echo '${'$as_ac_var'}'` = yes; then
5895  cat >>confdefs.h <<_ACEOF
5896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5897_ACEOF
5898
5899fi
5900done
5901
5902
5903for ac_func in utimes
5904do
5905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5906{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911  cat >conftest.$ac_ext <<_ACEOF
5912/* confdefs.h.  */
5913_ACEOF
5914cat confdefs.h >>conftest.$ac_ext
5915cat >>conftest.$ac_ext <<_ACEOF
5916/* end confdefs.h.  */
5917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5918   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5919#define $ac_func innocuous_$ac_func
5920
5921/* System header to define __stub macros and hopefully few prototypes,
5922    which can conflict with char $ac_func (); below.
5923    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5924    <limits.h> exists even on freestanding compilers.  */
5925
5926#ifdef __STDC__
5927# include <limits.h>
5928#else
5929# include <assert.h>
5930#endif
5931
5932#undef $ac_func
5933
5934/* Override any GCC internal prototype to avoid an error.
5935   Use char because int might match the return type of a GCC
5936   builtin and then its argument prototype would still apply.  */
5937#ifdef __cplusplus
5938extern "C"
5939#endif
5940char $ac_func ();
5941/* The GNU C library defines this for functions which it implements
5942    to always fail with ENOSYS.  Some functions are actually named
5943    something starting with __ and the normal name is an alias.  */
5944#if defined __stub_$ac_func || defined __stub___$ac_func
5945choke me
5946#endif
5947
5948int
5949main ()
5950{
5951return $ac_func ();
5952  ;
5953  return 0;
5954}
5955_ACEOF
5956rm -f conftest.$ac_objext conftest$ac_exeext
5957if { (ac_try="$ac_link"
5958case "(($ac_try" in
5959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960  *) ac_try_echo=$ac_try;;
5961esac
5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963  (eval "$ac_link") 2>conftest.er1
5964  ac_status=$?
5965  grep -v '^ *+' conftest.er1 >conftest.err
5966  rm -f conftest.er1
5967  cat conftest.err >&5
5968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); } &&
5970	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5971  { (case "(($ac_try" in
5972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973  *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976  (eval "$ac_try") 2>&5
5977  ac_status=$?
5978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979  (exit $ac_status); }; } &&
5980	 { ac_try='test -s conftest$ac_exeext'
5981  { (case "(($ac_try" in
5982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983  *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986  (eval "$ac_try") 2>&5
5987  ac_status=$?
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); }; }; then
5990  eval "$as_ac_var=yes"
5991else
5992  echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995	eval "$as_ac_var=no"
5996fi
5997
5998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999      conftest$ac_exeext conftest.$ac_ext
6000fi
6001ac_res=`eval echo '${'$as_ac_var'}'`
6002	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6003echo "${ECHO_T}$ac_res" >&6; }
6004if test `eval echo '${'$as_ac_var'}'` = yes; then
6005  cat >>confdefs.h <<_ACEOF
6006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6007_ACEOF
6008
6009fi
6010done
6011
6012
6013{ echo "$as_me:$LINENO: checking for struct stat.st_mtim.tv_usec" >&5
6014echo $ECHO_N "checking for struct stat.st_mtim.tv_usec... $ECHO_C" >&6; }
6015if test "${ac_cv_member_struct_stat_st_mtim_tv_usec+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024#include <sys/stat.h>
6025
6026int
6027main ()
6028{
6029static struct stat ac_aggr;
6030if (ac_aggr.st_mtim.tv_usec)
6031return 0;
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036rm -f conftest.$ac_objext
6037if { (ac_try="$ac_compile"
6038case "(($ac_try" in
6039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040  *) ac_try_echo=$ac_try;;
6041esac
6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043  (eval "$ac_compile") 2>conftest.er1
6044  ac_status=$?
6045  grep -v '^ *+' conftest.er1 >conftest.err
6046  rm -f conftest.er1
6047  cat conftest.err >&5
6048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); } &&
6050	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6051  { (case "(($ac_try" in
6052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053  *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056  (eval "$ac_try") 2>&5
6057  ac_status=$?
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); }; } &&
6060	 { ac_try='test -s conftest.$ac_objext'
6061  { (case "(($ac_try" in
6062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063  *) ac_try_echo=$ac_try;;
6064esac
6065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066  (eval "$ac_try") 2>&5
6067  ac_status=$?
6068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069  (exit $ac_status); }; }; then
6070  ac_cv_member_struct_stat_st_mtim_tv_usec=yes
6071else
6072  echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075	cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h.  */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h.  */
6081#include <sys/stat.h>
6082
6083int
6084main ()
6085{
6086static struct stat ac_aggr;
6087if (sizeof ac_aggr.st_mtim.tv_usec)
6088return 0;
6089  ;
6090  return 0;
6091}
6092_ACEOF
6093rm -f conftest.$ac_objext
6094if { (ac_try="$ac_compile"
6095case "(($ac_try" in
6096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097  *) ac_try_echo=$ac_try;;
6098esac
6099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100  (eval "$ac_compile") 2>conftest.er1
6101  ac_status=$?
6102  grep -v '^ *+' conftest.er1 >conftest.err
6103  rm -f conftest.er1
6104  cat conftest.err >&5
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); } &&
6107	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6108  { (case "(($ac_try" in
6109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110  *) ac_try_echo=$ac_try;;
6111esac
6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113  (eval "$ac_try") 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; } &&
6117	 { ac_try='test -s conftest.$ac_objext'
6118  { (case "(($ac_try" in
6119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120  *) ac_try_echo=$ac_try;;
6121esac
6122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123  (eval "$ac_try") 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; }; then
6127  ac_cv_member_struct_stat_st_mtim_tv_usec=yes
6128else
6129  echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132	ac_cv_member_struct_stat_st_mtim_tv_usec=no
6133fi
6134
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136fi
6137
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_tv_usec" >&5
6141echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_tv_usec" >&6; }
6142if test $ac_cv_member_struct_stat_st_mtim_tv_usec = yes; then
6143
6144cat >>confdefs.h <<_ACEOF
6145#define HAVE_STRUCT_STAT_ST_MTIM_TV_USEC 1
6146_ACEOF
6147
6148
6149fi
6150
6151
6152
6153{ echo "$as_me:$LINENO: checking for struct stat.st_mtim.tv_nsec" >&5
6154echo $ECHO_N "checking for struct stat.st_mtim.tv_nsec... $ECHO_C" >&6; }
6155if test "${ac_cv_member_struct_stat_st_mtim_tv_nsec+set}" = set; then
6156  echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158  cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h.  */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h.  */
6164#include <sys/stat.h>
6165
6166int
6167main ()
6168{
6169static struct stat ac_aggr;
6170if (ac_aggr.st_mtim.tv_nsec)
6171return 0;
6172  ;
6173  return 0;
6174}
6175_ACEOF
6176rm -f conftest.$ac_objext
6177if { (ac_try="$ac_compile"
6178case "(($ac_try" in
6179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180  *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183  (eval "$ac_compile") 2>conftest.er1
6184  ac_status=$?
6185  grep -v '^ *+' conftest.er1 >conftest.err
6186  rm -f conftest.er1
6187  cat conftest.err >&5
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); } &&
6190	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6191  { (case "(($ac_try" in
6192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193  *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196  (eval "$ac_try") 2>&5
6197  ac_status=$?
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); }; } &&
6200	 { ac_try='test -s conftest.$ac_objext'
6201  { (case "(($ac_try" in
6202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203  *) ac_try_echo=$ac_try;;
6204esac
6205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206  (eval "$ac_try") 2>&5
6207  ac_status=$?
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); }; }; then
6210  ac_cv_member_struct_stat_st_mtim_tv_nsec=yes
6211else
6212  echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215	cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h.  */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h.  */
6221#include <sys/stat.h>
6222
6223int
6224main ()
6225{
6226static struct stat ac_aggr;
6227if (sizeof ac_aggr.st_mtim.tv_nsec)
6228return 0;
6229  ;
6230  return 0;
6231}
6232_ACEOF
6233rm -f conftest.$ac_objext
6234if { (ac_try="$ac_compile"
6235case "(($ac_try" in
6236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237  *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240  (eval "$ac_compile") 2>conftest.er1
6241  ac_status=$?
6242  grep -v '^ *+' conftest.er1 >conftest.err
6243  rm -f conftest.er1
6244  cat conftest.err >&5
6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); } &&
6247	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6248  { (case "(($ac_try" in
6249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250  *) ac_try_echo=$ac_try;;
6251esac
6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253  (eval "$ac_try") 2>&5
6254  ac_status=$?
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); }; } &&
6257	 { ac_try='test -s conftest.$ac_objext'
6258  { (case "(($ac_try" in
6259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260  *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263  (eval "$ac_try") 2>&5
6264  ac_status=$?
6265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266  (exit $ac_status); }; }; then
6267  ac_cv_member_struct_stat_st_mtim_tv_nsec=yes
6268else
6269  echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272	ac_cv_member_struct_stat_st_mtim_tv_nsec=no
6273fi
6274
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276fi
6277
6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279fi
6280{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_tv_nsec" >&5
6281echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_tv_nsec" >&6; }
6282if test $ac_cv_member_struct_stat_st_mtim_tv_nsec = yes; then
6283
6284cat >>confdefs.h <<_ACEOF
6285#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
6286_ACEOF
6287
6288
6289fi
6290
6291
6292
6293
6294{ echo "$as_me:$LINENO: checking for library containing compress2" >&5
6295echo $ECHO_N "checking for library containing compress2... $ECHO_C" >&6; }
6296if test "${ac_cv_search_compress2+set}" = set; then
6297  echo $ECHO_N "(cached) $ECHO_C" >&6
6298else
6299  ac_func_search_save_LIBS=$LIBS
6300cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h.  */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h.  */
6306
6307/* Override any GCC internal prototype to avoid an error.
6308   Use char because int might match the return type of a GCC
6309   builtin and then its argument prototype would still apply.  */
6310#ifdef __cplusplus
6311extern "C"
6312#endif
6313char compress2 ();
6314int
6315main ()
6316{
6317return compress2 ();
6318  ;
6319  return 0;
6320}
6321_ACEOF
6322for ac_lib in '' z; do
6323  if test -z "$ac_lib"; then
6324    ac_res="none required"
6325  else
6326    ac_res=-l$ac_lib
6327    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6328  fi
6329  rm -f conftest.$ac_objext conftest$ac_exeext
6330if { (ac_try="$ac_link"
6331case "(($ac_try" in
6332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333  *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336  (eval "$ac_link") 2>conftest.er1
6337  ac_status=$?
6338  grep -v '^ *+' conftest.er1 >conftest.err
6339  rm -f conftest.er1
6340  cat conftest.err >&5
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); } &&
6343	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6344  { (case "(($ac_try" in
6345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346  *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349  (eval "$ac_try") 2>&5
6350  ac_status=$?
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); }; } &&
6353	 { ac_try='test -s conftest$ac_exeext'
6354  { (case "(($ac_try" in
6355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356  *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359  (eval "$ac_try") 2>&5
6360  ac_status=$?
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); }; }; then
6363  ac_cv_search_compress2=$ac_res
6364else
6365  echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368
6369fi
6370
6371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6372      conftest$ac_exeext
6373  if test "${ac_cv_search_compress2+set}" = set; then
6374  break
6375fi
6376done
6377if test "${ac_cv_search_compress2+set}" = set; then
6378  :
6379else
6380  ac_cv_search_compress2=no
6381fi
6382rm conftest.$ac_ext
6383LIBS=$ac_func_search_save_LIBS
6384fi
6385{ echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
6386echo "${ECHO_T}$ac_cv_search_compress2" >&6; }
6387ac_res=$ac_cv_search_compress2
6388if test "$ac_res" != no; then
6389  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6390
6391else
6392  { { echo "$as_me:$LINENO: error: zlib not found" >&5
6393echo "$as_me: error: zlib not found" >&2;}
6394   { (exit cannot continue); exit cannot continue; }; }
6395fi
6396
6397{ echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6398echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6399if test "${ac_cv_search_getopt_long+set}" = set; then
6400  echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402  ac_func_search_save_LIBS=$LIBS
6403cat >conftest.$ac_ext <<_ACEOF
6404/* confdefs.h.  */
6405_ACEOF
6406cat confdefs.h >>conftest.$ac_ext
6407cat >>conftest.$ac_ext <<_ACEOF
6408/* end confdefs.h.  */
6409
6410/* Override any GCC internal prototype to avoid an error.
6411   Use char because int might match the return type of a GCC
6412   builtin and then its argument prototype would still apply.  */
6413#ifdef __cplusplus
6414extern "C"
6415#endif
6416char getopt_long ();
6417int
6418main ()
6419{
6420return getopt_long ();
6421  ;
6422  return 0;
6423}
6424_ACEOF
6425for ac_lib in '' getopt getopt_long; do
6426  if test -z "$ac_lib"; then
6427    ac_res="none required"
6428  else
6429    ac_res=-l$ac_lib
6430    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6431  fi
6432  rm -f conftest.$ac_objext conftest$ac_exeext
6433if { (ac_try="$ac_link"
6434case "(($ac_try" in
6435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436  *) ac_try_echo=$ac_try;;
6437esac
6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439  (eval "$ac_link") 2>conftest.er1
6440  ac_status=$?
6441  grep -v '^ *+' conftest.er1 >conftest.err
6442  rm -f conftest.er1
6443  cat conftest.err >&5
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); } &&
6446	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6447  { (case "(($ac_try" in
6448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449  *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452  (eval "$ac_try") 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; } &&
6456	 { ac_try='test -s conftest$ac_exeext'
6457  { (case "(($ac_try" in
6458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459  *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462  (eval "$ac_try") 2>&5
6463  ac_status=$?
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); }; }; then
6466  ac_cv_search_getopt_long=$ac_res
6467else
6468  echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471
6472fi
6473
6474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6475      conftest$ac_exeext
6476  if test "${ac_cv_search_getopt_long+set}" = set; then
6477  break
6478fi
6479done
6480if test "${ac_cv_search_getopt_long+set}" = set; then
6481  :
6482else
6483  ac_cv_search_getopt_long=no
6484fi
6485rm conftest.$ac_ext
6486LIBS=$ac_func_search_save_LIBS
6487fi
6488{ echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6489echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6490ac_res=$ac_cv_search_getopt_long
6491if test "$ac_res" != no; then
6492  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6493
6494fi
6495
6496
6497for ac_func in getopt_long
6498do
6499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6500{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6502if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6503  echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505  cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h.  */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h.  */
6511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6512   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6513#define $ac_func innocuous_$ac_func
6514
6515/* System header to define __stub macros and hopefully few prototypes,
6516    which can conflict with char $ac_func (); below.
6517    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6518    <limits.h> exists even on freestanding compilers.  */
6519
6520#ifdef __STDC__
6521# include <limits.h>
6522#else
6523# include <assert.h>
6524#endif
6525
6526#undef $ac_func
6527
6528/* Override any GCC internal prototype to avoid an error.
6529   Use char because int might match the return type of a GCC
6530   builtin and then its argument prototype would still apply.  */
6531#ifdef __cplusplus
6532extern "C"
6533#endif
6534char $ac_func ();
6535/* The GNU C library defines this for functions which it implements
6536    to always fail with ENOSYS.  Some functions are actually named
6537    something starting with __ and the normal name is an alias.  */
6538#if defined __stub_$ac_func || defined __stub___$ac_func
6539choke me
6540#endif
6541
6542int
6543main ()
6544{
6545return $ac_func ();
6546  ;
6547  return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
6551if { (ac_try="$ac_link"
6552case "(($ac_try" in
6553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554  *) ac_try_echo=$ac_try;;
6555esac
6556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557  (eval "$ac_link") 2>conftest.er1
6558  ac_status=$?
6559  grep -v '^ *+' conftest.er1 >conftest.err
6560  rm -f conftest.er1
6561  cat conftest.err >&5
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); } &&
6564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6565  { (case "(($ac_try" in
6566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567  *) ac_try_echo=$ac_try;;
6568esac
6569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570  (eval "$ac_try") 2>&5
6571  ac_status=$?
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); }; } &&
6574	 { ac_try='test -s conftest$ac_exeext'
6575  { (case "(($ac_try" in
6576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577  *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580  (eval "$ac_try") 2>&5
6581  ac_status=$?
6582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583  (exit $ac_status); }; }; then
6584  eval "$as_ac_var=yes"
6585else
6586  echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589	eval "$as_ac_var=no"
6590fi
6591
6592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6593      conftest$ac_exeext conftest.$ac_ext
6594fi
6595ac_res=`eval echo '${'$as_ac_var'}'`
6596	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6597echo "${ECHO_T}$ac_res" >&6; }
6598if test `eval echo '${'$as_ac_var'}'` = yes; then
6599  cat >>confdefs.h <<_ACEOF
6600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6601_ACEOF
6602
6603fi
6604done
6605
6606
6607
6608
6609if test -n "$ac_tool_prefix"; then
6610  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6611set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614if test "${ac_cv_prog_RANLIB+set}" = set; then
6615  echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617  if test -n "$RANLIB"; then
6618  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6619else
6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621for as_dir in $PATH
6622do
6623  IFS=$as_save_IFS
6624  test -z "$as_dir" && as_dir=.
6625  for ac_exec_ext in '' $ac_executable_extensions; do
6626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629    break 2
6630  fi
6631done
6632done
6633IFS=$as_save_IFS
6634
6635fi
6636fi
6637RANLIB=$ac_cv_prog_RANLIB
6638if test -n "$RANLIB"; then
6639  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6640echo "${ECHO_T}$RANLIB" >&6; }
6641else
6642  { echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6; }
6644fi
6645
6646
6647fi
6648if test -z "$ac_cv_prog_RANLIB"; then
6649  ac_ct_RANLIB=$RANLIB
6650  # Extract the first word of "ranlib", so it can be a program name with args.
6651set dummy ranlib; ac_word=$2
6652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657  if test -n "$ac_ct_RANLIB"; then
6658  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6659else
6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663  IFS=$as_save_IFS
6664  test -z "$as_dir" && as_dir=.
6665  for ac_exec_ext in '' $ac_executable_extensions; do
6666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667    ac_cv_prog_ac_ct_RANLIB="ranlib"
6668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669    break 2
6670  fi
6671done
6672done
6673IFS=$as_save_IFS
6674
6675fi
6676fi
6677ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6678if test -n "$ac_ct_RANLIB"; then
6679  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6680echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6681else
6682  { echo "$as_me:$LINENO: result: no" >&5
6683echo "${ECHO_T}no" >&6; }
6684fi
6685
6686  if test "x$ac_ct_RANLIB" = x; then
6687    RANLIB=":"
6688  else
6689    case $cross_compiling:$ac_tool_warned in
6690yes:)
6691{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6692whose name does not start with the host triplet.  If you think this
6693configuration is useful to you, please write to autoconf@gnu.org." >&5
6694echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6695whose name does not start with the host triplet.  If you think this
6696configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6697ac_tool_warned=yes ;;
6698esac
6699    RANLIB=$ac_ct_RANLIB
6700  fi
6701else
6702  RANLIB="$ac_cv_prog_RANLIB"
6703fi
6704
6705ac_aux_dir=
6706for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6707  if test -f "$ac_dir/install-sh"; then
6708    ac_aux_dir=$ac_dir
6709    ac_install_sh="$ac_aux_dir/install-sh -c"
6710    break
6711  elif test -f "$ac_dir/install.sh"; then
6712    ac_aux_dir=$ac_dir
6713    ac_install_sh="$ac_aux_dir/install.sh -c"
6714    break
6715  elif test -f "$ac_dir/shtool"; then
6716    ac_aux_dir=$ac_dir
6717    ac_install_sh="$ac_aux_dir/shtool install -c"
6718    break
6719  fi
6720done
6721if test -z "$ac_aux_dir"; then
6722  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6723echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6724   { (exit 1); exit 1; }; }
6725fi
6726
6727# These three variables are undocumented and unsupported,
6728# and are intended to be withdrawn in a future Autoconf release.
6729# They can cause serious problems if a builder's source tree is in a directory
6730# whose full name contains unusual characters.
6731ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6732ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6733ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6734
6735
6736# Find a good install program.  We prefer a C program (faster),
6737# so one script is as good as another.  But avoid the broken or
6738# incompatible versions:
6739# SysV /etc/install, /usr/sbin/install
6740# SunOS /usr/etc/install
6741# IRIX /sbin/install
6742# AIX /bin/install
6743# AmigaOS /C/install, which installs bootblocks on floppy discs
6744# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6745# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6746# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6747# OS/2's system install, which has a completely different semantic
6748# ./install, which can be erroneously created by make from ./install.sh.
6749{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6750echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6751if test -z "$INSTALL"; then
6752if test "${ac_cv_path_install+set}" = set; then
6753  echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760  # Account for people who put trailing slashes in PATH elements.
6761case $as_dir/ in
6762  ./ | .// | /cC/* | \
6763  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6764  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6765  /usr/ucb/* ) ;;
6766  *)
6767    # OSF1 and SCO ODT 3.0 have their own names for install.
6768    # Don't use installbsd from OSF since it installs stuff as root
6769    # by default.
6770    for ac_prog in ginstall scoinst install; do
6771      for ac_exec_ext in '' $ac_executable_extensions; do
6772	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6773	  if test $ac_prog = install &&
6774	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6775	    # AIX install.  It has an incompatible calling convention.
6776	    :
6777	  elif test $ac_prog = install &&
6778	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6779	    # program-specific install script used by HP pwplus--don't use.
6780	    :
6781	  else
6782	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6783	    break 3
6784	  fi
6785	fi
6786      done
6787    done
6788    ;;
6789esac
6790done
6791IFS=$as_save_IFS
6792
6793
6794fi
6795  if test "${ac_cv_path_install+set}" = set; then
6796    INSTALL=$ac_cv_path_install
6797  else
6798    # As a last resort, use the slow shell script.  Don't cache a
6799    # value for INSTALL within a source directory, because that will
6800    # break other packages using the cache if that directory is
6801    # removed, or if the value is a relative name.
6802    INSTALL=$ac_install_sh
6803  fi
6804fi
6805{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6806echo "${ECHO_T}$INSTALL" >&6; }
6807
6808# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6809# It thinks the first close brace ends the variable substitution.
6810test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6811
6812test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6813
6814test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6815
6816
6817ac_config_headers="$ac_config_headers config.h"
6818
6819ac_config_files="$ac_config_files MCONFIG"
6820
6821cat >confcache <<\_ACEOF
6822# This file is a shell script that caches the results of configure
6823# tests run on this system so they can be shared between configure
6824# scripts and configure runs, see configure's option --config-cache.
6825# It is not useful on other systems.  If it contains results you don't
6826# want to keep, you may remove or edit it.
6827#
6828# config.status only pays attention to the cache file if you give it
6829# the --recheck option to rerun configure.
6830#
6831# `ac_cv_env_foo' variables (set or unset) will be overridden when
6832# loading this file, other *unset* `ac_cv_foo' will be assigned the
6833# following values.
6834
6835_ACEOF
6836
6837# The following way of writing the cache mishandles newlines in values,
6838# but we know of no workaround that is simple, portable, and efficient.
6839# So, we kill variables containing newlines.
6840# Ultrix sh set writes to stderr and can't be redirected directly,
6841# and sets the high bit in the cache file unless we assign to the vars.
6842(
6843  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6844    eval ac_val=\$$ac_var
6845    case $ac_val in #(
6846    *${as_nl}*)
6847      case $ac_var in #(
6848      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6849echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6850      esac
6851      case $ac_var in #(
6852      _ | IFS | as_nl) ;; #(
6853      *) $as_unset $ac_var ;;
6854      esac ;;
6855    esac
6856  done
6857
6858  (set) 2>&1 |
6859    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6860    *${as_nl}ac_space=\ *)
6861      # `set' does not quote correctly, so add quotes (double-quote
6862      # substitution turns \\\\ into \\, and sed turns \\ into \).
6863      sed -n \
6864	"s/'/'\\\\''/g;
6865	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6866      ;; #(
6867    *)
6868      # `set' quotes correctly as required by POSIX, so do not add quotes.
6869      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6870      ;;
6871    esac |
6872    sort
6873) |
6874  sed '
6875     /^ac_cv_env_/b end
6876     t clear
6877     :clear
6878     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6879     t end
6880     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6881     :end' >>confcache
6882if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6883  if test -w "$cache_file"; then
6884    test "x$cache_file" != "x/dev/null" &&
6885      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6886echo "$as_me: updating cache $cache_file" >&6;}
6887    cat confcache >$cache_file
6888  else
6889    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6890echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6891  fi
6892fi
6893rm -f confcache
6894
6895test "x$prefix" = xNONE && prefix=$ac_default_prefix
6896# Let make expand exec_prefix.
6897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6898
6899DEFS=-DHAVE_CONFIG_H
6900
6901ac_libobjs=
6902ac_ltlibobjs=
6903for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6904  # 1. Remove the extension, and $U if already installed.
6905  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6906  ac_i=`echo "$ac_i" | sed "$ac_script"`
6907  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6908  #    will be set to the directory where LIBOBJS objects are built.
6909  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6910  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6911done
6912LIBOBJS=$ac_libobjs
6913
6914LTLIBOBJS=$ac_ltlibobjs
6915
6916
6917
6918: ${CONFIG_STATUS=./config.status}
6919ac_clean_files_save=$ac_clean_files
6920ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6921{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6922echo "$as_me: creating $CONFIG_STATUS" >&6;}
6923cat >$CONFIG_STATUS <<_ACEOF
6924#! $SHELL
6925# Generated by $as_me.
6926# Run this file to recreate the current configuration.
6927# Compiler output produced by configure, useful for debugging
6928# configure, is in config.log if it exists.
6929
6930debug=false
6931ac_cs_recheck=false
6932ac_cs_silent=false
6933SHELL=\${CONFIG_SHELL-$SHELL}
6934_ACEOF
6935
6936cat >>$CONFIG_STATUS <<\_ACEOF
6937## --------------------- ##
6938## M4sh Initialization.  ##
6939## --------------------- ##
6940
6941# Be Bourne compatible
6942if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6943  emulate sh
6944  NULLCMD=:
6945  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6946  # is contrary to our usage.  Disable this feature.
6947  alias -g '${1+"$@"}'='"$@"'
6948  setopt NO_GLOB_SUBST
6949else
6950  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6951fi
6952BIN_SH=xpg4; export BIN_SH # for Tru64
6953DUALCASE=1; export DUALCASE # for MKS sh
6954
6955
6956# PATH needs CR
6957# Avoid depending upon Character Ranges.
6958as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6959as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6960as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6961as_cr_digits='0123456789'
6962as_cr_alnum=$as_cr_Letters$as_cr_digits
6963
6964# The user is always right.
6965if test "${PATH_SEPARATOR+set}" != set; then
6966  echo "#! /bin/sh" >conf$$.sh
6967  echo  "exit 0"   >>conf$$.sh
6968  chmod +x conf$$.sh
6969  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6970    PATH_SEPARATOR=';'
6971  else
6972    PATH_SEPARATOR=:
6973  fi
6974  rm -f conf$$.sh
6975fi
6976
6977# Support unset when possible.
6978if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6979  as_unset=unset
6980else
6981  as_unset=false
6982fi
6983
6984
6985# IFS
6986# We need space, tab and new line, in precisely that order.  Quoting is
6987# there to prevent editors from complaining about space-tab.
6988# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6989# splitting by setting IFS to empty value.)
6990as_nl='
6991'
6992IFS=" ""	$as_nl"
6993
6994# Find who we are.  Look in the path if we contain no directory separator.
6995case $0 in
6996  *[\\/]* ) as_myself=$0 ;;
6997  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000  IFS=$as_save_IFS
7001  test -z "$as_dir" && as_dir=.
7002  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7003done
7004IFS=$as_save_IFS
7005
7006     ;;
7007esac
7008# We did not find ourselves, most probably we were run as `sh COMMAND'
7009# in which case we are not to be found in the path.
7010if test "x$as_myself" = x; then
7011  as_myself=$0
7012fi
7013if test ! -f "$as_myself"; then
7014  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7015  { (exit 1); exit 1; }
7016fi
7017
7018# Work around bugs in pre-3.0 UWIN ksh.
7019for as_var in ENV MAIL MAILPATH
7020do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7021done
7022PS1='$ '
7023PS2='> '
7024PS4='+ '
7025
7026# NLS nuisances.
7027for as_var in \
7028  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7029  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7030  LC_TELEPHONE LC_TIME
7031do
7032  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7033    eval $as_var=C; export $as_var
7034  else
7035    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7036  fi
7037done
7038
7039# Required to use basename.
7040if expr a : '\(a\)' >/dev/null 2>&1 &&
7041   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7042  as_expr=expr
7043else
7044  as_expr=false
7045fi
7046
7047if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7048  as_basename=basename
7049else
7050  as_basename=false
7051fi
7052
7053
7054# Name of the executable.
7055as_me=`$as_basename -- "$0" ||
7056$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7057	 X"$0" : 'X\(//\)$' \| \
7058	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7059echo X/"$0" |
7060    sed '/^.*\/\([^/][^/]*\)\/*$/{
7061	    s//\1/
7062	    q
7063	  }
7064	  /^X\/\(\/\/\)$/{
7065	    s//\1/
7066	    q
7067	  }
7068	  /^X\/\(\/\).*/{
7069	    s//\1/
7070	    q
7071	  }
7072	  s/.*/./; q'`
7073
7074# CDPATH.
7075$as_unset CDPATH
7076
7077
7078
7079  as_lineno_1=$LINENO
7080  as_lineno_2=$LINENO
7081  test "x$as_lineno_1" != "x$as_lineno_2" &&
7082  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7083
7084  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7085  # uniformly replaced by the line number.  The first 'sed' inserts a
7086  # line-number line after each line using $LINENO; the second 'sed'
7087  # does the real work.  The second script uses 'N' to pair each
7088  # line-number line with the line containing $LINENO, and appends
7089  # trailing '-' during substitution so that $LINENO is not a special
7090  # case at line end.
7091  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7092  # scripts with optimization help from Paolo Bonzini.  Blame Lee
7093  # E. McMahon (1931-1989) for sed's syntax.  :-)
7094  sed -n '
7095    p
7096    /[$]LINENO/=
7097  ' <$as_myself |
7098    sed '
7099      s/[$]LINENO.*/&-/
7100      t lineno
7101      b
7102      :lineno
7103      N
7104      :loop
7105      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7106      t loop
7107      s/-\n.*//
7108    ' >$as_me.lineno &&
7109  chmod +x "$as_me.lineno" ||
7110    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7111   { (exit 1); exit 1; }; }
7112
7113  # Don't try to exec as it changes $[0], causing all sort of problems
7114  # (the dirname of $[0] is not the place where we might find the
7115  # original and so on.  Autoconf is especially sensitive to this).
7116  . "./$as_me.lineno"
7117  # Exit status is that of the last command.
7118  exit
7119}
7120
7121
7122if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7123  as_dirname=dirname
7124else
7125  as_dirname=false
7126fi
7127
7128ECHO_C= ECHO_N= ECHO_T=
7129case `echo -n x` in
7130-n*)
7131  case `echo 'x\c'` in
7132  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7133  *)   ECHO_C='\c';;
7134  esac;;
7135*)
7136  ECHO_N='-n';;
7137esac
7138
7139if expr a : '\(a\)' >/dev/null 2>&1 &&
7140   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7141  as_expr=expr
7142else
7143  as_expr=false
7144fi
7145
7146rm -f conf$$ conf$$.exe conf$$.file
7147if test -d conf$$.dir; then
7148  rm -f conf$$.dir/conf$$.file
7149else
7150  rm -f conf$$.dir
7151  mkdir conf$$.dir
7152fi
7153echo >conf$$.file
7154if ln -s conf$$.file conf$$ 2>/dev/null; then
7155  as_ln_s='ln -s'
7156  # ... but there are two gotchas:
7157  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7158  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7159  # In both cases, we have to default to `cp -p'.
7160  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7161    as_ln_s='cp -p'
7162elif ln conf$$.file conf$$ 2>/dev/null; then
7163  as_ln_s=ln
7164else
7165  as_ln_s='cp -p'
7166fi
7167rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7168rmdir conf$$.dir 2>/dev/null
7169
7170if mkdir -p . 2>/dev/null; then
7171  as_mkdir_p=:
7172else
7173  test -d ./-p && rmdir ./-p
7174  as_mkdir_p=false
7175fi
7176
7177# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
7178# systems may use methods other than mode bits to determine executability.
7179cat >conf$$.file <<_ASEOF
7180#! /bin/sh
7181exit 0
7182_ASEOF
7183chmod +x conf$$.file
7184if test -x conf$$.file >/dev/null 2>&1; then
7185  as_executable_p="test -x"
7186else
7187  as_executable_p=:
7188fi
7189rm -f conf$$.file
7190
7191# Sed expression to map a string onto a valid CPP name.
7192as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7193
7194# Sed expression to map a string onto a valid variable name.
7195as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7196
7197
7198exec 6>&1
7199
7200# Save the log message, to keep $[0] and so on meaningful, and to
7201# report actual input values of CONFIG_FILES etc. instead of their
7202# values after options handling.
7203ac_log="
7204This file was extended by $as_me, which was
7205generated by GNU Autoconf 2.60a.  Invocation command line was
7206
7207  CONFIG_FILES    = $CONFIG_FILES
7208  CONFIG_HEADERS  = $CONFIG_HEADERS
7209  CONFIG_LINKS    = $CONFIG_LINKS
7210  CONFIG_COMMANDS = $CONFIG_COMMANDS
7211  $ $0 $@
7212
7213on `(hostname || uname -n) 2>/dev/null | sed 1q`
7214"
7215
7216_ACEOF
7217
7218cat >>$CONFIG_STATUS <<_ACEOF
7219# Files that config.status was made for.
7220config_files="$ac_config_files"
7221config_headers="$ac_config_headers"
7222
7223_ACEOF
7224
7225cat >>$CONFIG_STATUS <<\_ACEOF
7226ac_cs_usage="\
7227\`$as_me' instantiates files from templates according to the
7228current configuration.
7229
7230Usage: $0 [OPTIONS] [FILE]...
7231
7232  -h, --help       print this help, then exit
7233  -V, --version    print version number and configuration settings, then exit
7234  -q, --quiet      do not print progress messages
7235  -d, --debug      don't remove temporary files
7236      --recheck    update $as_me by reconfiguring in the same conditions
7237  --file=FILE[:TEMPLATE]
7238		   instantiate the configuration file FILE
7239  --header=FILE[:TEMPLATE]
7240		   instantiate the configuration header FILE
7241
7242Configuration files:
7243$config_files
7244
7245Configuration headers:
7246$config_headers
7247
7248Report bugs to <bug-autoconf@gnu.org>."
7249
7250_ACEOF
7251cat >>$CONFIG_STATUS <<_ACEOF
7252ac_cs_version="\\
7253config.status
7254configured by $0, generated by GNU Autoconf 2.60a,
7255  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7256
7257Copyright (C) 2006 Free Software Foundation, Inc.
7258This config.status script is free software; the Free Software Foundation
7259gives unlimited permission to copy, distribute and modify it."
7260
7261ac_pwd='$ac_pwd'
7262srcdir='$srcdir'
7263INSTALL='$INSTALL'
7264_ACEOF
7265
7266cat >>$CONFIG_STATUS <<\_ACEOF
7267# If no file are specified by the user, then we need to provide default
7268# value.  By we need to know if files were specified by the user.
7269ac_need_defaults=:
7270while test $# != 0
7271do
7272  case $1 in
7273  --*=*)
7274    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7275    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7276    ac_shift=:
7277    ;;
7278  *)
7279    ac_option=$1
7280    ac_optarg=$2
7281    ac_shift=shift
7282    ;;
7283  esac
7284
7285  case $ac_option in
7286  # Handling of the options.
7287  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7288    ac_cs_recheck=: ;;
7289  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7290    echo "$ac_cs_version"; exit ;;
7291  --debug | --debu | --deb | --de | --d | -d )
7292    debug=: ;;
7293  --file | --fil | --fi | --f )
7294    $ac_shift
7295    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7296    ac_need_defaults=false;;
7297  --header | --heade | --head | --hea )
7298    $ac_shift
7299    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7300    ac_need_defaults=false;;
7301  --he | --h)
7302    # Conflict between --help and --header
7303    { echo "$as_me: error: ambiguous option: $1
7304Try \`$0 --help' for more information." >&2
7305   { (exit 1); exit 1; }; };;
7306  --help | --hel | -h )
7307    echo "$ac_cs_usage"; exit ;;
7308  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7309  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7310    ac_cs_silent=: ;;
7311
7312  # This is an error.
7313  -*) { echo "$as_me: error: unrecognized option: $1
7314Try \`$0 --help' for more information." >&2
7315   { (exit 1); exit 1; }; } ;;
7316
7317  *) ac_config_targets="$ac_config_targets $1"
7318     ac_need_defaults=false ;;
7319
7320  esac
7321  shift
7322done
7323
7324ac_configure_extra_args=
7325
7326if $ac_cs_silent; then
7327  exec 6>/dev/null
7328  ac_configure_extra_args="$ac_configure_extra_args --silent"
7329fi
7330
7331_ACEOF
7332cat >>$CONFIG_STATUS <<_ACEOF
7333if \$ac_cs_recheck; then
7334  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7335  CONFIG_SHELL=$SHELL
7336  export CONFIG_SHELL
7337  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7338fi
7339
7340_ACEOF
7341cat >>$CONFIG_STATUS <<\_ACEOF
7342exec 5>>config.log
7343{
7344  echo
7345  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7346## Running $as_me. ##
7347_ASBOX
7348  echo "$ac_log"
7349} >&5
7350
7351_ACEOF
7352cat >>$CONFIG_STATUS <<_ACEOF
7353_ACEOF
7354
7355cat >>$CONFIG_STATUS <<\_ACEOF
7356
7357# Handling of arguments.
7358for ac_config_target in $ac_config_targets
7359do
7360  case $ac_config_target in
7361    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7362    "MCONFIG") CONFIG_FILES="$CONFIG_FILES MCONFIG" ;;
7363
7364  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7365echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7366   { (exit 1); exit 1; }; };;
7367  esac
7368done
7369
7370
7371# If the user did not use the arguments to specify the items to instantiate,
7372# then the envvar interface is used.  Set only those that are not.
7373# We use the long form for the default assignment because of an extremely
7374# bizarre bug on SunOS 4.1.3.
7375if $ac_need_defaults; then
7376  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7377  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7378fi
7379
7380# Have a temporary directory for convenience.  Make it in the build tree
7381# simply because there is no reason against having it here, and in addition,
7382# creating and moving files from /tmp can sometimes cause problems.
7383# Hook for its removal unless debugging.
7384# Note that there is a small window in which the directory will not be cleaned:
7385# after its creation but before its name has been assigned to `$tmp'.
7386$debug ||
7387{
7388  tmp=
7389  trap 'exit_status=$?
7390  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7391' 0
7392  trap '{ (exit 1); exit 1; }' 1 2 13 15
7393}
7394# Create a (secure) tmp directory for tmp files.
7395
7396{
7397  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7398  test -n "$tmp" && test -d "$tmp"
7399}  ||
7400{
7401  tmp=./conf$$-$RANDOM
7402  (umask 077 && mkdir "$tmp")
7403} ||
7404{
7405   echo "$me: cannot create a temporary directory in ." >&2
7406   { (exit 1); exit 1; }
7407}
7408
7409#
7410# Set up the sed scripts for CONFIG_FILES section.
7411#
7412
7413# No need to generate the scripts if there are no CONFIG_FILES.
7414# This happens for instance when ./config.status config.h
7415if test -n "$CONFIG_FILES"; then
7416
7417_ACEOF
7418
7419
7420
7421ac_delim='%!_!# '
7422for ac_last_try in false false false false false :; do
7423  cat >conf$$subs.sed <<_ACEOF
7424SHELL!$SHELL$ac_delim
7425PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7426PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7427PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7428PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7429PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7430PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7431exec_prefix!$exec_prefix$ac_delim
7432prefix!$prefix$ac_delim
7433program_transform_name!$program_transform_name$ac_delim
7434bindir!$bindir$ac_delim
7435sbindir!$sbindir$ac_delim
7436libexecdir!$libexecdir$ac_delim
7437datarootdir!$datarootdir$ac_delim
7438datadir!$datadir$ac_delim
7439sysconfdir!$sysconfdir$ac_delim
7440sharedstatedir!$sharedstatedir$ac_delim
7441localstatedir!$localstatedir$ac_delim
7442includedir!$includedir$ac_delim
7443oldincludedir!$oldincludedir$ac_delim
7444docdir!$docdir$ac_delim
7445infodir!$infodir$ac_delim
7446htmldir!$htmldir$ac_delim
7447dvidir!$dvidir$ac_delim
7448pdfdir!$pdfdir$ac_delim
7449psdir!$psdir$ac_delim
7450libdir!$libdir$ac_delim
7451localedir!$localedir$ac_delim
7452mandir!$mandir$ac_delim
7453DEFS!$DEFS$ac_delim
7454ECHO_C!$ECHO_C$ac_delim
7455ECHO_N!$ECHO_N$ac_delim
7456ECHO_T!$ECHO_T$ac_delim
7457LIBS!$LIBS$ac_delim
7458build_alias!$build_alias$ac_delim
7459host_alias!$host_alias$ac_delim
7460target_alias!$target_alias$ac_delim
7461CC!$CC$ac_delim
7462CFLAGS!$CFLAGS$ac_delim
7463LDFLAGS!$LDFLAGS$ac_delim
7464CPPFLAGS!$CPPFLAGS$ac_delim
7465ac_ct_CC!$ac_ct_CC$ac_delim
7466EXEEXT!$EXEEXT$ac_delim
7467OBJEXT!$OBJEXT$ac_delim
7468CPP!$CPP$ac_delim
7469GREP!$GREP$ac_delim
7470EGREP!$EGREP$ac_delim
7471RANLIB!$RANLIB$ac_delim
7472INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7473INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7474INSTALL_DATA!$INSTALL_DATA$ac_delim
7475LIBOBJS!$LIBOBJS$ac_delim
7476LTLIBOBJS!$LTLIBOBJS$ac_delim
7477_ACEOF
7478
7479  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
7480    break
7481  elif $ac_last_try; then
7482    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7483echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7484   { (exit 1); exit 1; }; }
7485  else
7486    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7487  fi
7488done
7489
7490ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7491if test -n "$ac_eof"; then
7492  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7493  ac_eof=`expr $ac_eof + 1`
7494fi
7495
7496cat >>$CONFIG_STATUS <<_ACEOF
7497cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7499_ACEOF
7500sed '
7501s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7502s/^/s,@/; s/!/@,|#_!!_#|/
7503:n
7504t n
7505s/'"$ac_delim"'$/,g/; t
7506s/$/\\/; p
7507N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7508' >>$CONFIG_STATUS <conf$$subs.sed
7509rm -f conf$$subs.sed
7510cat >>$CONFIG_STATUS <<_ACEOF
7511:end
7512s/|#_!!_#|//g
7513CEOF$ac_eof
7514_ACEOF
7515
7516
7517# VPATH may cause trouble with some makes, so we remove $(srcdir),
7518# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7519# trailing colons and then remove the whole line if VPATH becomes empty
7520# (actually we leave an empty line to preserve line numbers).
7521if test "x$srcdir" = x.; then
7522  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7523s/:*\$(srcdir):*/:/
7524s/:*\${srcdir}:*/:/
7525s/:*@srcdir@:*/:/
7526s/^\([^=]*=[	 ]*\):*/\1/
7527s/:*$//
7528s/^[^=]*=[	 ]*$//
7529}'
7530fi
7531
7532cat >>$CONFIG_STATUS <<\_ACEOF
7533fi # test -n "$CONFIG_FILES"
7534
7535
7536for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
7537do
7538  case $ac_tag in
7539  :[FHLC]) ac_mode=$ac_tag; continue;;
7540  esac
7541  case $ac_mode$ac_tag in
7542  :[FHL]*:*);;
7543  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7544echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7545   { (exit 1); exit 1; }; };;
7546  :[FH]-) ac_tag=-:-;;
7547  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7548  esac
7549  ac_save_IFS=$IFS
7550  IFS=:
7551  set x $ac_tag
7552  IFS=$ac_save_IFS
7553  shift
7554  ac_file=$1
7555  shift
7556
7557  case $ac_mode in
7558  :L) ac_source=$1;;
7559  :[FH])
7560    ac_file_inputs=
7561    for ac_f
7562    do
7563      case $ac_f in
7564      -) ac_f="$tmp/stdin";;
7565      *) # Look for the file first in the build tree, then in the source tree
7566	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7567	 # because $ac_f cannot contain `:'.
7568	 test -f "$ac_f" ||
7569	   case $ac_f in
7570	   [\\/$]*) false;;
7571	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7572	   esac ||
7573	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7574echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7575   { (exit 1); exit 1; }; };;
7576      esac
7577      ac_file_inputs="$ac_file_inputs $ac_f"
7578    done
7579
7580    # Let's still pretend it is `configure' which instantiates (i.e., don't
7581    # use $as_me), people would be surprised to read:
7582    #    /* config.h.  Generated by config.status.  */
7583    configure_input="Generated from "`IFS=:
7584	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7585    if test x"$ac_file" != x-; then
7586      configure_input="$ac_file.  $configure_input"
7587      { echo "$as_me:$LINENO: creating $ac_file" >&5
7588echo "$as_me: creating $ac_file" >&6;}
7589    fi
7590
7591    case $ac_tag in
7592    *:-:* | *:-) cat >"$tmp/stdin";;
7593    esac
7594    ;;
7595  esac
7596
7597  ac_dir=`$as_dirname -- "$ac_file" ||
7598$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7599	 X"$ac_file" : 'X\(//\)[^/]' \| \
7600	 X"$ac_file" : 'X\(//\)$' \| \
7601	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7602echo X"$ac_file" |
7603    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7604	    s//\1/
7605	    q
7606	  }
7607	  /^X\(\/\/\)[^/].*/{
7608	    s//\1/
7609	    q
7610	  }
7611	  /^X\(\/\/\)$/{
7612	    s//\1/
7613	    q
7614	  }
7615	  /^X\(\/\).*/{
7616	    s//\1/
7617	    q
7618	  }
7619	  s/.*/./; q'`
7620  { as_dir="$ac_dir"
7621  case $as_dir in #(
7622  -*) as_dir=./$as_dir;;
7623  esac
7624  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7625    as_dirs=
7626    while :; do
7627      case $as_dir in #(
7628      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7629      *) as_qdir=$as_dir;;
7630      esac
7631      as_dirs="'$as_qdir' $as_dirs"
7632      as_dir=`$as_dirname -- "$as_dir" ||
7633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7634	 X"$as_dir" : 'X\(//\)[^/]' \| \
7635	 X"$as_dir" : 'X\(//\)$' \| \
7636	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7637echo X"$as_dir" |
7638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7639	    s//\1/
7640	    q
7641	  }
7642	  /^X\(\/\/\)[^/].*/{
7643	    s//\1/
7644	    q
7645	  }
7646	  /^X\(\/\/\)$/{
7647	    s//\1/
7648	    q
7649	  }
7650	  /^X\(\/\).*/{
7651	    s//\1/
7652	    q
7653	  }
7654	  s/.*/./; q'`
7655      test -d "$as_dir" && break
7656    done
7657    test -z "$as_dirs" || eval "mkdir $as_dirs"
7658  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7659echo "$as_me: error: cannot create directory $as_dir" >&2;}
7660   { (exit 1); exit 1; }; }; }
7661  ac_builddir=.
7662
7663case "$ac_dir" in
7664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7665*)
7666  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7667  # A ".." for each directory in $ac_dir_suffix.
7668  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7669  case $ac_top_builddir_sub in
7670  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7671  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7672  esac ;;
7673esac
7674ac_abs_top_builddir=$ac_pwd
7675ac_abs_builddir=$ac_pwd$ac_dir_suffix
7676# for backward compatibility:
7677ac_top_builddir=$ac_top_build_prefix
7678
7679case $srcdir in
7680  .)  # We are building in place.
7681    ac_srcdir=.
7682    ac_top_srcdir=$ac_top_builddir_sub
7683    ac_abs_top_srcdir=$ac_pwd ;;
7684  [\\/]* | ?:[\\/]* )  # Absolute name.
7685    ac_srcdir=$srcdir$ac_dir_suffix;
7686    ac_top_srcdir=$srcdir
7687    ac_abs_top_srcdir=$srcdir ;;
7688  *) # Relative name.
7689    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7690    ac_top_srcdir=$ac_top_build_prefix$srcdir
7691    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7692esac
7693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7694
7695
7696  case $ac_mode in
7697  :F)
7698  #
7699  # CONFIG_FILE
7700  #
7701
7702  case $INSTALL in
7703  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7704  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7705  esac
7706_ACEOF
7707
7708cat >>$CONFIG_STATUS <<\_ACEOF
7709# If the template does not know about datarootdir, expand it.
7710# FIXME: This hack should be removed a few years after 2.60.
7711ac_datarootdir_hack=; ac_datarootdir_seen=
7712
7713case `sed -n '/datarootdir/ {
7714  p
7715  q
7716}
7717/@datadir@/p
7718/@docdir@/p
7719/@infodir@/p
7720/@localedir@/p
7721/@mandir@/p
7722' $ac_file_inputs` in
7723*datarootdir*) ac_datarootdir_seen=yes;;
7724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7725  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7726echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7727_ACEOF
7728cat >>$CONFIG_STATUS <<_ACEOF
7729  ac_datarootdir_hack='
7730  s&@datadir@&$datadir&g
7731  s&@docdir@&$docdir&g
7732  s&@infodir@&$infodir&g
7733  s&@localedir@&$localedir&g
7734  s&@mandir@&$mandir&g
7735    s&\\\${datarootdir}&$datarootdir&g' ;;
7736esac
7737_ACEOF
7738
7739# Neutralize VPATH when `$srcdir' = `.'.
7740# Shell code in configure.ac might set extrasub.
7741# FIXME: do we really want to maintain this feature?
7742cat >>$CONFIG_STATUS <<_ACEOF
7743  sed "$ac_vpsub
7744$extrasub
7745_ACEOF
7746cat >>$CONFIG_STATUS <<\_ACEOF
7747:t
7748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7749s&@configure_input@&$configure_input&;t t
7750s&@top_builddir@&$ac_top_builddir_sub&;t t
7751s&@srcdir@&$ac_srcdir&;t t
7752s&@abs_srcdir@&$ac_abs_srcdir&;t t
7753s&@top_srcdir@&$ac_top_srcdir&;t t
7754s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7755s&@builddir@&$ac_builddir&;t t
7756s&@abs_builddir@&$ac_abs_builddir&;t t
7757s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7758s&@INSTALL@&$ac_INSTALL&;t t
7759$ac_datarootdir_hack
7760" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7761
7762test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7763  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7764  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7765  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7766which seems to be undefined.  Please make sure it is defined." >&5
7767echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7768which seems to be undefined.  Please make sure it is defined." >&2;}
7769
7770  rm -f "$tmp/stdin"
7771  case $ac_file in
7772  -) cat "$tmp/out"; rm -f "$tmp/out";;
7773  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7774  esac
7775 ;;
7776  :H)
7777  #
7778  # CONFIG_HEADER
7779  #
7780_ACEOF
7781
7782# Transform confdefs.h into a sed script `conftest.defines', that
7783# substitutes the proper values into config.h.in to produce config.h.
7784rm -f conftest.defines conftest.tail
7785# First, append a space to every undef/define line, to ease matching.
7786echo 's/$/ /' >conftest.defines
7787# Then, protect against being on the right side of a sed subst, or in
7788# an unquoted here document, in config.status.  If some macros were
7789# called several times there might be several #defines for the same
7790# symbol, which is useless.  But do not sort them, since the last
7791# AC_DEFINE must be honored.
7792ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7793# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7794# NAME is the cpp macro being defined, VALUE is the value it is being given.
7795# PARAMS is the parameter list in the macro definition--in most cases, it's
7796# just an empty string.
7797ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
7798ac_dB='\\)[	 (].*,\\1define\\2'
7799ac_dC=' '
7800ac_dD=' ,'
7801
7802uniq confdefs.h |
7803  sed -n '
7804	t rset
7805	:rset
7806	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
7807	t ok
7808	d
7809	:ok
7810	s/[\\&,]/\\&/g
7811	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7812	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7813  ' >>conftest.defines
7814
7815# Remove the space that was appended to ease matching.
7816# Then replace #undef with comments.  This is necessary, for
7817# example, in the case of _POSIX_SOURCE, which is predefined and required
7818# on some systems where configure will not decide to define it.
7819# (The regexp can be short, since the line contains either #define or #undef.)
7820echo 's/ $//
7821s,^[	 #]*u.*,/* & */,' >>conftest.defines
7822
7823# Break up conftest.defines:
7824ac_max_sed_lines=50
7825
7826# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7827# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7828# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7829# et cetera.
7830ac_in='$ac_file_inputs'
7831ac_out='"$tmp/out1"'
7832ac_nxt='"$tmp/out2"'
7833
7834while :
7835do
7836  # Write a here document:
7837    cat >>$CONFIG_STATUS <<_ACEOF
7838    # First, check the format of the line:
7839    cat >"\$tmp/defines.sed" <<\\CEOF
7840/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
7841/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
7842b
7843:def
7844_ACEOF
7845  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7846  echo 'CEOF
7847    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7848  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7849  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7850  grep . conftest.tail >/dev/null || break
7851  rm -f conftest.defines
7852  mv conftest.tail conftest.defines
7853done
7854rm -f conftest.defines conftest.tail
7855
7856echo "ac_result=$ac_in" >>$CONFIG_STATUS
7857cat >>$CONFIG_STATUS <<\_ACEOF
7858  if test x"$ac_file" != x-; then
7859    echo "/* $configure_input  */" >"$tmp/config.h"
7860    cat "$ac_result" >>"$tmp/config.h"
7861    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7862      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7863echo "$as_me: $ac_file is unchanged" >&6;}
7864    else
7865      rm -f $ac_file
7866      mv "$tmp/config.h" $ac_file
7867    fi
7868  else
7869    echo "/* $configure_input  */"
7870    cat "$ac_result"
7871  fi
7872  rm -f "$tmp/out12"
7873 ;;
7874
7875
7876  esac
7877
7878done # for ac_tag
7879
7880
7881{ (exit 0); exit 0; }
7882_ACEOF
7883chmod +x $CONFIG_STATUS
7884ac_clean_files=$ac_clean_files_save
7885
7886
7887# configure is writing to config.log, and then calls config.status.
7888# config.status does its own redirection, appending to config.log.
7889# Unfortunately, on DOS this fails, as config.log is still kept open
7890# by configure, so config.status won't be able to write to it; its
7891# output is simply discarded.  So we exec the FD to /dev/null,
7892# effectively closing config.log, so it can be properly (re)opened and
7893# appended to by config.status.  When coming back to configure, we
7894# need to make the FD available again.
7895if test "$no_create" != yes; then
7896  ac_cs_success=:
7897  ac_config_status_args=
7898  test "$silent" = yes &&
7899    ac_config_status_args="$ac_config_status_args --quiet"
7900  exec 5>/dev/null
7901  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7902  exec 5>>config.log
7903  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7904  # would make configure fail if this is the last instruction.
7905  $ac_cs_success || { (exit 1); exit 1; }
7906fi
7907
7908