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