configure revision 75937
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --disable-elf            disable builtin ELF support"
16ac_help="$ac_help
17  --disable-elf-core       disable ELF core file support"
18
19# Initialize some variables set by options.
20# The variables have the same names as the options, with
21# dashes changed to underlines.
22build=NONE
23cache_file=./config.cache
24exec_prefix=NONE
25host=NONE
26no_create=
27nonopt=NONE
28no_recursion=
29prefix=NONE
30program_prefix=NONE
31program_suffix=NONE
32program_transform_name=s,x,x,
33silent=
34site=
35srcdir=
36target=NONE
37verbose=
38x_includes=NONE
39x_libraries=NONE
40bindir='${exec_prefix}/bin'
41sbindir='${exec_prefix}/sbin'
42libexecdir='${exec_prefix}/libexec'
43datadir='${prefix}/share'
44sysconfdir='${prefix}/etc'
45sharedstatedir='${prefix}/com'
46localstatedir='${prefix}/var'
47libdir='${exec_prefix}/lib'
48includedir='${prefix}/include'
49oldincludedir='/usr/include'
50infodir='${prefix}/info'
51mandir='${prefix}/man'
52
53# Initialize some other variables.
54subdirs=
55MFLAGS= MAKEFLAGS=
56SHELL=${CONFIG_SHELL-/bin/sh}
57# Maximum number of lines to put in a shell here document.
58ac_max_here_lines=12
59
60ac_prev=
61for ac_option
62do
63
64  # If the previous option needs an argument, assign it.
65  if test -n "$ac_prev"; then
66    eval "$ac_prev=\$ac_option"
67    ac_prev=
68    continue
69  fi
70
71  case "$ac_option" in
72  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73  *) ac_optarg= ;;
74  esac
75
76  # Accept the important Cygnus configure options, so we can diagnose typos.
77
78  case "$ac_option" in
79
80  -bindir | --bindir | --bindi | --bind | --bin | --bi)
81    ac_prev=bindir ;;
82  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83    bindir="$ac_optarg" ;;
84
85  -build | --build | --buil | --bui | --bu)
86    ac_prev=build ;;
87  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88    build="$ac_optarg" ;;
89
90  -cache-file | --cache-file | --cache-fil | --cache-fi \
91  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92    ac_prev=cache_file ;;
93  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95    cache_file="$ac_optarg" ;;
96
97  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98    ac_prev=datadir ;;
99  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100  | --da=*)
101    datadir="$ac_optarg" ;;
102
103  -disable-* | --disable-*)
104    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105    # Reject names that are not valid shell variable names.
106    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108    fi
109    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110    eval "enable_${ac_feature}=no" ;;
111
112  -enable-* | --enable-*)
113    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114    # Reject names that are not valid shell variable names.
115    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117    fi
118    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119    case "$ac_option" in
120      *=*) ;;
121      *) ac_optarg=yes ;;
122    esac
123    eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127  | --exec | --exe | --ex)
128    ac_prev=exec_prefix ;;
129  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131  | --exec=* | --exe=* | --ex=*)
132    exec_prefix="$ac_optarg" ;;
133
134  -gas | --gas | --ga | --g)
135    # Obsolete; use --with-gas.
136    with_gas=yes ;;
137
138  -help | --help | --hel | --he)
139    # Omit some internal or obsolete options to make the list less imposing.
140    # This message is too long to be a string in the A/UX 3.1 sh.
141    cat << EOF
142Usage: configure [options] [host]
143Options: [defaults in brackets after descriptions]
144Configuration:
145  --cache-file=FILE       cache test results in FILE
146  --help                  print this message
147  --no-create             do not create output files
148  --quiet, --silent       do not print \`checking...' messages
149  --version               print the version of autoconf that created configure
150Directory and file names:
151  --prefix=PREFIX         install architecture-independent files in PREFIX
152                          [$ac_default_prefix]
153  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
154                          [same as prefix]
155  --bindir=DIR            user executables in DIR [EPREFIX/bin]
156  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
157  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
158  --datadir=DIR           read-only architecture-independent data in DIR
159                          [PREFIX/share]
160  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
161  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
162                          [PREFIX/com]
163  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
164  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
165  --includedir=DIR        C header files in DIR [PREFIX/include]
166  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
167  --infodir=DIR           info documentation in DIR [PREFIX/info]
168  --mandir=DIR            man documentation in DIR [PREFIX/man]
169  --srcdir=DIR            find the sources in DIR [configure dir or ..]
170  --program-prefix=PREFIX prepend PREFIX to installed program names
171  --program-suffix=SUFFIX append SUFFIX to installed program names
172  --program-transform-name=PROGRAM
173                          run sed PROGRAM on installed program names
174EOF
175    cat << EOF
176Host type:
177  --build=BUILD           configure for building on BUILD [BUILD=HOST]
178  --host=HOST             configure for HOST [guessed]
179  --target=TARGET         configure for TARGET [TARGET=HOST]
180Features and packages:
181  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
182  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
183  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
184  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
185  --x-includes=DIR        X include files are in DIR
186  --x-libraries=DIR       X library files are in DIR
187EOF
188    if test -n "$ac_help"; then
189      echo "--enable and --with options recognized:$ac_help"
190    fi
191    exit 0 ;;
192
193  -host | --host | --hos | --ho)
194    ac_prev=host ;;
195  -host=* | --host=* | --hos=* | --ho=*)
196    host="$ac_optarg" ;;
197
198  -includedir | --includedir | --includedi | --included | --include \
199  | --includ | --inclu | --incl | --inc)
200    ac_prev=includedir ;;
201  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202  | --includ=* | --inclu=* | --incl=* | --inc=*)
203    includedir="$ac_optarg" ;;
204
205  -infodir | --infodir | --infodi | --infod | --info | --inf)
206    ac_prev=infodir ;;
207  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208    infodir="$ac_optarg" ;;
209
210  -libdir | --libdir | --libdi | --libd)
211    ac_prev=libdir ;;
212  -libdir=* | --libdir=* | --libdi=* | --libd=*)
213    libdir="$ac_optarg" ;;
214
215  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216  | --libexe | --libex | --libe)
217    ac_prev=libexecdir ;;
218  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219  | --libexe=* | --libex=* | --libe=*)
220    libexecdir="$ac_optarg" ;;
221
222  -localstatedir | --localstatedir | --localstatedi | --localstated \
223  | --localstate | --localstat | --localsta | --localst \
224  | --locals | --local | --loca | --loc | --lo)
225    ac_prev=localstatedir ;;
226  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229    localstatedir="$ac_optarg" ;;
230
231  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232    ac_prev=mandir ;;
233  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234    mandir="$ac_optarg" ;;
235
236  -nfp | --nfp | --nf)
237    # Obsolete; use --without-fp.
238    with_fp=no ;;
239
240  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241  | --no-cr | --no-c)
242    no_create=yes ;;
243
244  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246    no_recursion=yes ;;
247
248  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250  | --oldin | --oldi | --old | --ol | --o)
251    ac_prev=oldincludedir ;;
252  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255    oldincludedir="$ac_optarg" ;;
256
257  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258    ac_prev=prefix ;;
259  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260    prefix="$ac_optarg" ;;
261
262  -program-prefix | --program-prefix | --program-prefi | --program-pref \
263  | --program-pre | --program-pr | --program-p)
264    ac_prev=program_prefix ;;
265  -program-prefix=* | --program-prefix=* | --program-prefi=* \
266  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267    program_prefix="$ac_optarg" ;;
268
269  -program-suffix | --program-suffix | --program-suffi | --program-suff \
270  | --program-suf | --program-su | --program-s)
271    ac_prev=program_suffix ;;
272  -program-suffix=* | --program-suffix=* | --program-suffi=* \
273  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274    program_suffix="$ac_optarg" ;;
275
276  -program-transform-name | --program-transform-name \
277  | --program-transform-nam | --program-transform-na \
278  | --program-transform-n | --program-transform- \
279  | --program-transform | --program-transfor \
280  | --program-transfo | --program-transf \
281  | --program-trans | --program-tran \
282  | --progr-tra | --program-tr | --program-t)
283    ac_prev=program_transform_name ;;
284  -program-transform-name=* | --program-transform-name=* \
285  | --program-transform-nam=* | --program-transform-na=* \
286  | --program-transform-n=* | --program-transform-=* \
287  | --program-transform=* | --program-transfor=* \
288  | --program-transfo=* | --program-transf=* \
289  | --program-trans=* | --program-tran=* \
290  | --progr-tra=* | --program-tr=* | --program-t=*)
291    program_transform_name="$ac_optarg" ;;
292
293  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294  | -silent | --silent | --silen | --sile | --sil)
295    silent=yes ;;
296
297  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298    ac_prev=sbindir ;;
299  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300  | --sbi=* | --sb=*)
301    sbindir="$ac_optarg" ;;
302
303  -sharedstatedir | --sharedstatedir | --sharedstatedi \
304  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305  | --sharedst | --shareds | --shared | --share | --shar \
306  | --sha | --sh)
307    ac_prev=sharedstatedir ;;
308  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311  | --sha=* | --sh=*)
312    sharedstatedir="$ac_optarg" ;;
313
314  -site | --site | --sit)
315    ac_prev=site ;;
316  -site=* | --site=* | --sit=*)
317    site="$ac_optarg" ;;
318
319  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320    ac_prev=srcdir ;;
321  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322    srcdir="$ac_optarg" ;;
323
324  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325  | --syscon | --sysco | --sysc | --sys | --sy)
326    ac_prev=sysconfdir ;;
327  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329    sysconfdir="$ac_optarg" ;;
330
331  -target | --target | --targe | --targ | --tar | --ta | --t)
332    ac_prev=target ;;
333  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334    target="$ac_optarg" ;;
335
336  -v | -verbose | --verbose | --verbos | --verbo | --verb)
337    verbose=yes ;;
338
339  -version | --version | --versio | --versi | --vers)
340    echo "configure generated by autoconf version 2.13"
341    exit 0 ;;
342
343  -with-* | --with-*)
344    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345    # Reject names that are not valid shell variable names.
346    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348    fi
349    ac_package=`echo $ac_package| sed 's/-/_/g'`
350    case "$ac_option" in
351      *=*) ;;
352      *) ac_optarg=yes ;;
353    esac
354    eval "with_${ac_package}='$ac_optarg'" ;;
355
356  -without-* | --without-*)
357    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358    # Reject names that are not valid shell variable names.
359    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361    fi
362    ac_package=`echo $ac_package| sed 's/-/_/g'`
363    eval "with_${ac_package}=no" ;;
364
365  --x)
366    # Obsolete; use --with-x.
367    with_x=yes ;;
368
369  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370  | --x-incl | --x-inc | --x-in | --x-i)
371    ac_prev=x_includes ;;
372  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374    x_includes="$ac_optarg" ;;
375
376  -x-libraries | --x-libraries | --x-librarie | --x-librari \
377  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378    ac_prev=x_libraries ;;
379  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381    x_libraries="$ac_optarg" ;;
382
383  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384    ;;
385
386  *)
387    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388      echo "configure: warning: $ac_option: invalid host type" 1>&2
389    fi
390    if test "x$nonopt" != xNONE; then
391      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392    fi
393    nonopt="$ac_option"
394    ;;
395
396  esac
397done
398
399if test -n "$ac_prev"; then
400  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401fi
402
403trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405# File descriptor usage:
406# 0 standard input
407# 1 file creation
408# 2 errors and warnings
409# 3 some systems may open it to /dev/tty
410# 4 used on the Kubota Titan
411# 6 checking for... messages and results
412# 5 compiler messages saved in config.log
413if test "$silent" = yes; then
414  exec 6>/dev/null
415else
416  exec 6>&1
417fi
418exec 5>./config.log
419
420echo "\
421This file contains any messages produced by compilers while
422running configure, to aid debugging if configure makes a mistake.
423" 1>&5
424
425# Strip out --no-create and --no-recursion so they do not pile up.
426# Also quote any args containing shell metacharacters.
427ac_configure_args=
428for ac_arg
429do
430  case "$ac_arg" in
431  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432  | --no-cr | --no-c) ;;
433  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438  esac
439done
440
441# NLS nuisances.
442# Only set these to C if already set.  These must not be set unconditionally
443# because not all systems understand e.g. LANG=C (notably SCO).
444# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445# Non-C LC_CTYPE values break the ctype check.
446if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
447if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
450
451# confdefs.h avoids OS command line length limits that DEFS can exceed.
452rm -rf conftest* confdefs.h
453# AIX cpp loses on an empty file, so make sure it contains at least a newline.
454echo > confdefs.h
455
456# A filename unique to this package, relative to the directory that
457# configure is in, which we can look for to find out if srcdir is correct.
458ac_unique_file=file.c
459
460# Find the source files, if location was not specified.
461if test -z "$srcdir"; then
462  ac_srcdir_defaulted=yes
463  # Try the directory containing this script, then its parent.
464  ac_prog=$0
465  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467  srcdir=$ac_confdir
468  if test ! -r $srcdir/$ac_unique_file; then
469    srcdir=..
470  fi
471else
472  ac_srcdir_defaulted=no
473fi
474if test ! -r $srcdir/$ac_unique_file; then
475  if test "$ac_srcdir_defaulted" = yes; then
476    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477  else
478    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479  fi
480fi
481srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483# Prefer explicitly selected file to automatically selected ones.
484if test -z "$CONFIG_SITE"; then
485  if test "x$prefix" != xNONE; then
486    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487  else
488    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489  fi
490fi
491for ac_site_file in $CONFIG_SITE; do
492  if test -r "$ac_site_file"; then
493    echo "loading site script $ac_site_file"
494    . "$ac_site_file"
495  fi
496done
497
498if test -r "$cache_file"; then
499  echo "loading cache $cache_file"
500  . $cache_file
501else
502  echo "creating cache $cache_file"
503  > $cache_file
504fi
505
506ac_ext=c
507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508ac_cpp='$CPP $CPPFLAGS'
509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511cross_compiling=$ac_cv_prog_cc_cross
512
513ac_exeext=
514ac_objext=o
515if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518    ac_n= ac_c='
519' ac_t='	'
520  else
521    ac_n=-n ac_c= ac_t=
522  fi
523else
524  ac_n= ac_c='\c' ac_t=
525fi
526
527
528ac_aux_dir=
529for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
530  if test -f $ac_dir/install-sh; then
531    ac_aux_dir=$ac_dir
532    ac_install_sh="$ac_aux_dir/install-sh -c"
533    break
534  elif test -f $ac_dir/install.sh; then
535    ac_aux_dir=$ac_dir
536    ac_install_sh="$ac_aux_dir/install.sh -c"
537    break
538  fi
539done
540if test -z "$ac_aux_dir"; then
541  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
542fi
543ac_config_guess=$ac_aux_dir/config.guess
544ac_config_sub=$ac_aux_dir/config.sub
545ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
546
547# Find a good install program.  We prefer a C program (faster),
548# so one script is as good as another.  But avoid the broken or
549# incompatible versions:
550# SysV /etc/install, /usr/sbin/install
551# SunOS /usr/etc/install
552# IRIX /sbin/install
553# AIX /bin/install
554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
555# AFS /usr/afsws/bin/install, which mishandles nonexistent args
556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
557# ./install, which can be erroneously created by make from ./install.sh.
558echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
559echo "configure:560: checking for a BSD compatible install" >&5
560if test -z "$INSTALL"; then
561if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
562  echo $ac_n "(cached) $ac_c" 1>&6
563else
564    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
565  for ac_dir in $PATH; do
566    # Account for people who put trailing slashes in PATH elements.
567    case "$ac_dir/" in
568    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
569    *)
570      # OSF1 and SCO ODT 3.0 have their own names for install.
571      # Don't use installbsd from OSF since it installs stuff as root
572      # by default.
573      for ac_prog in ginstall scoinst install; do
574        if test -f $ac_dir/$ac_prog; then
575	  if test $ac_prog = install &&
576            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
577	    # AIX install.  It has an incompatible calling convention.
578	    :
579	  else
580	    ac_cv_path_install="$ac_dir/$ac_prog -c"
581	    break 2
582	  fi
583	fi
584      done
585      ;;
586    esac
587  done
588  IFS="$ac_save_IFS"
589
590fi
591  if test "${ac_cv_path_install+set}" = set; then
592    INSTALL="$ac_cv_path_install"
593  else
594    # As a last resort, use the slow shell script.  We don't cache a
595    # path for INSTALL within a source directory, because that will
596    # break other packages using the cache if that directory is
597    # removed, or if the path is relative.
598    INSTALL="$ac_install_sh"
599  fi
600fi
601echo "$ac_t""$INSTALL" 1>&6
602
603# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
604# It thinks the first close brace ends the variable substitution.
605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
606
607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
608
609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
610
611echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
612echo "configure:613: checking whether build environment is sane" >&5
613# Just in case
614sleep 1
615echo timestamp > conftestfile
616# Do `set' in a subshell so we don't clobber the current shell's
617# arguments.  Must try -L first in case configure is actually a
618# symlink; some systems play weird games with the mod time of symlinks
619# (eg FreeBSD returns the mod time of the symlink's containing
620# directory).
621if (
622   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
623   if test "$*" = "X"; then
624      # -L didn't work.
625      set X `ls -t $srcdir/configure conftestfile`
626   fi
627   if test "$*" != "X $srcdir/configure conftestfile" \
628      && test "$*" != "X conftestfile $srcdir/configure"; then
629
630      # If neither matched, then we have a broken ls.  This can happen
631      # if, for instance, CONFIG_SHELL is bash and it inherits a
632      # broken ls alias from the environment.  This has actually
633      # happened.  Such a system could not be considered "sane".
634      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
635alias in your environment" 1>&2; exit 1; }
636   fi
637
638   test "$2" = conftestfile
639   )
640then
641   # Ok.
642   :
643else
644   { echo "configure: error: newly created file is older than distributed files!
645Check your system clock" 1>&2; exit 1; }
646fi
647rm -f conftest*
648echo "$ac_t""yes" 1>&6
649if test "$program_transform_name" = s,x,x,; then
650  program_transform_name=
651else
652  # Double any \ or $.  echo might interpret backslashes.
653  cat <<\EOF_SED > conftestsed
654s,\\,\\\\,g; s,\$,$$,g
655EOF_SED
656  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
657  rm -f conftestsed
658fi
659test "$program_prefix" != NONE &&
660  program_transform_name="s,^,${program_prefix},; $program_transform_name"
661# Use a double $ so make ignores it.
662test "$program_suffix" != NONE &&
663  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
664
665# sed with no file args requires a program.
666test "$program_transform_name" = "" && program_transform_name="s,x,x,"
667
668echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
669echo "configure:670: checking whether ${MAKE-make} sets \${MAKE}" >&5
670set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
671if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
672  echo $ac_n "(cached) $ac_c" 1>&6
673else
674  cat > conftestmake <<\EOF
675all:
676	@echo 'ac_maketemp="${MAKE}"'
677EOF
678# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
679eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
680if test -n "$ac_maketemp"; then
681  eval ac_cv_prog_make_${ac_make}_set=yes
682else
683  eval ac_cv_prog_make_${ac_make}_set=no
684fi
685rm -f conftestmake
686fi
687if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
688  echo "$ac_t""yes" 1>&6
689  SET_MAKE=
690else
691  echo "$ac_t""no" 1>&6
692  SET_MAKE="MAKE=${MAKE-make}"
693fi
694
695
696PACKAGE=file
697
698VERSION=3.35
699
700if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
701  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
702fi
703cat >> confdefs.h <<EOF
704#define PACKAGE "$PACKAGE"
705EOF
706
707cat >> confdefs.h <<EOF
708#define VERSION "$VERSION"
709EOF
710
711
712
713missing_dir=`cd $ac_aux_dir && pwd`
714echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
715echo "configure:716: checking for working aclocal" >&5
716# Run test in a subshell; some versions of sh will print an error if
717# an executable is not found, even if stderr is redirected.
718# Redirect stdin to placate older versions of autoconf.  Sigh.
719if (aclocal --version) < /dev/null > /dev/null 2>&1; then
720   ACLOCAL=aclocal
721   echo "$ac_t""found" 1>&6
722else
723   ACLOCAL="$missing_dir/missing aclocal"
724   echo "$ac_t""missing" 1>&6
725fi
726
727echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
728echo "configure:729: checking for working autoconf" >&5
729# Run test in a subshell; some versions of sh will print an error if
730# an executable is not found, even if stderr is redirected.
731# Redirect stdin to placate older versions of autoconf.  Sigh.
732if (autoconf --version) < /dev/null > /dev/null 2>&1; then
733   AUTOCONF=autoconf
734   echo "$ac_t""found" 1>&6
735else
736   AUTOCONF="$missing_dir/missing autoconf"
737   echo "$ac_t""missing" 1>&6
738fi
739
740echo $ac_n "checking for working automake""... $ac_c" 1>&6
741echo "configure:742: checking for working automake" >&5
742# Run test in a subshell; some versions of sh will print an error if
743# an executable is not found, even if stderr is redirected.
744# Redirect stdin to placate older versions of autoconf.  Sigh.
745if (automake --version) < /dev/null > /dev/null 2>&1; then
746   AUTOMAKE=automake
747   echo "$ac_t""found" 1>&6
748else
749   AUTOMAKE="$missing_dir/missing automake"
750   echo "$ac_t""missing" 1>&6
751fi
752
753echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
754echo "configure:755: checking for working autoheader" >&5
755# Run test in a subshell; some versions of sh will print an error if
756# an executable is not found, even if stderr is redirected.
757# Redirect stdin to placate older versions of autoconf.  Sigh.
758if (autoheader --version) < /dev/null > /dev/null 2>&1; then
759   AUTOHEADER=autoheader
760   echo "$ac_t""found" 1>&6
761else
762   AUTOHEADER="$missing_dir/missing autoheader"
763   echo "$ac_t""missing" 1>&6
764fi
765
766echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
767echo "configure:768: checking for working makeinfo" >&5
768# Run test in a subshell; some versions of sh will print an error if
769# an executable is not found, even if stderr is redirected.
770# Redirect stdin to placate older versions of autoconf.  Sigh.
771if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
772   MAKEINFO=makeinfo
773   echo "$ac_t""found" 1>&6
774else
775   MAKEINFO="$missing_dir/missing makeinfo"
776   echo "$ac_t""missing" 1>&6
777fi
778
779
780
781
782
783
784echo $ac_n "checking for builtin ELF support""... $ac_c" 1>&6
785echo "configure:786: checking for builtin ELF support" >&5
786# Check whether --enable-elf or --disable-elf was given.
787if test "${enable_elf+set}" = set; then
788  enableval="$enable_elf"
789  if test "${enableval}" = yes; then
790  echo "$ac_t""yes" 1>&6
791  cat >> confdefs.h <<\EOF
792#define BUILTIN_ELF 1
793EOF
794
795else
796  echo "$ac_t""no" 1>&6
797fi
798else
799  
800  # enable by default
801  echo "$ac_t""yes" 1>&6
802  cat >> confdefs.h <<\EOF
803#define BUILTIN_ELF 1
804EOF
805
806
807fi
808
809
810echo $ac_n "checking for ELF core file support""... $ac_c" 1>&6
811echo "configure:812: checking for ELF core file support" >&5
812# Check whether --enable-elf-core or --disable-elf-core was given.
813if test "${enable_elf_core+set}" = set; then
814  enableval="$enable_elf_core"
815  if test "${enableval}" = yes; then
816  echo "$ac_t""yes" 1>&6
817  cat >> confdefs.h <<\EOF
818#define ELFCORE 1
819EOF
820
821else
822  echo "$ac_t""no" 1>&6
823fi
824else
825  
826  # enable by default
827  echo "$ac_t""yes" 1>&6
828  cat >> confdefs.h <<\EOF
829#define ELFCORE 1
830EOF
831
832
833fi
834
835
836# Extract the first word of "gcc", so it can be a program name with args.
837set dummy gcc; ac_word=$2
838echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839echo "configure:840: checking for $ac_word" >&5
840if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841  echo $ac_n "(cached) $ac_c" 1>&6
842else
843  if test -n "$CC"; then
844  ac_cv_prog_CC="$CC" # Let the user override the test.
845else
846  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
847  ac_dummy="$PATH"
848  for ac_dir in $ac_dummy; do
849    test -z "$ac_dir" && ac_dir=.
850    if test -f $ac_dir/$ac_word; then
851      ac_cv_prog_CC="gcc"
852      break
853    fi
854  done
855  IFS="$ac_save_ifs"
856fi
857fi
858CC="$ac_cv_prog_CC"
859if test -n "$CC"; then
860  echo "$ac_t""$CC" 1>&6
861else
862  echo "$ac_t""no" 1>&6
863fi
864
865if test -z "$CC"; then
866  # Extract the first word of "cc", so it can be a program name with args.
867set dummy cc; ac_word=$2
868echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869echo "configure:870: checking for $ac_word" >&5
870if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871  echo $ac_n "(cached) $ac_c" 1>&6
872else
873  if test -n "$CC"; then
874  ac_cv_prog_CC="$CC" # Let the user override the test.
875else
876  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
877  ac_prog_rejected=no
878  ac_dummy="$PATH"
879  for ac_dir in $ac_dummy; do
880    test -z "$ac_dir" && ac_dir=.
881    if test -f $ac_dir/$ac_word; then
882      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
883        ac_prog_rejected=yes
884	continue
885      fi
886      ac_cv_prog_CC="cc"
887      break
888    fi
889  done
890  IFS="$ac_save_ifs"
891if test $ac_prog_rejected = yes; then
892  # We found a bogon in the path, so make sure we never use it.
893  set dummy $ac_cv_prog_CC
894  shift
895  if test $# -gt 0; then
896    # We chose a different compiler from the bogus one.
897    # However, it has the same basename, so the bogon will be chosen
898    # first if we set CC to just the basename; use the full file name.
899    shift
900    set dummy "$ac_dir/$ac_word" "$@"
901    shift
902    ac_cv_prog_CC="$@"
903  fi
904fi
905fi
906fi
907CC="$ac_cv_prog_CC"
908if test -n "$CC"; then
909  echo "$ac_t""$CC" 1>&6
910else
911  echo "$ac_t""no" 1>&6
912fi
913
914  if test -z "$CC"; then
915    case "`uname -s`" in
916    *win32* | *WIN32*)
917      # Extract the first word of "cl", so it can be a program name with args.
918set dummy cl; ac_word=$2
919echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920echo "configure:921: checking for $ac_word" >&5
921if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922  echo $ac_n "(cached) $ac_c" 1>&6
923else
924  if test -n "$CC"; then
925  ac_cv_prog_CC="$CC" # Let the user override the test.
926else
927  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
928  ac_dummy="$PATH"
929  for ac_dir in $ac_dummy; do
930    test -z "$ac_dir" && ac_dir=.
931    if test -f $ac_dir/$ac_word; then
932      ac_cv_prog_CC="cl"
933      break
934    fi
935  done
936  IFS="$ac_save_ifs"
937fi
938fi
939CC="$ac_cv_prog_CC"
940if test -n "$CC"; then
941  echo "$ac_t""$CC" 1>&6
942else
943  echo "$ac_t""no" 1>&6
944fi
945 ;;
946    esac
947  fi
948  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
949fi
950
951echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
953
954ac_ext=c
955# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956ac_cpp='$CPP $CPPFLAGS'
957ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959cross_compiling=$ac_cv_prog_cc_cross
960
961cat > conftest.$ac_ext << EOF
962
963#line 964 "configure"
964#include "confdefs.h"
965
966main(){return(0);}
967EOF
968if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
969  ac_cv_prog_cc_works=yes
970  # If we can't run a trivial program, we are probably using a cross compiler.
971  if (./conftest; exit) 2>/dev/null; then
972    ac_cv_prog_cc_cross=no
973  else
974    ac_cv_prog_cc_cross=yes
975  fi
976else
977  echo "configure: failed program was:" >&5
978  cat conftest.$ac_ext >&5
979  ac_cv_prog_cc_works=no
980fi
981rm -fr conftest*
982ac_ext=c
983# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984ac_cpp='$CPP $CPPFLAGS'
985ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987cross_compiling=$ac_cv_prog_cc_cross
988
989echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990if test $ac_cv_prog_cc_works = no; then
991  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
992fi
993echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996cross_compiling=$ac_cv_prog_cc_cross
997
998echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999echo "configure:1000: checking whether we are using GNU C" >&5
1000if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001  echo $ac_n "(cached) $ac_c" 1>&6
1002else
1003  cat > conftest.c <<EOF
1004#ifdef __GNUC__
1005  yes;
1006#endif
1007EOF
1008if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1009  ac_cv_prog_gcc=yes
1010else
1011  ac_cv_prog_gcc=no
1012fi
1013fi
1014
1015echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1016
1017if test $ac_cv_prog_gcc = yes; then
1018  GCC=yes
1019else
1020  GCC=
1021fi
1022
1023ac_test_CFLAGS="${CFLAGS+set}"
1024ac_save_CFLAGS="$CFLAGS"
1025CFLAGS=
1026echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029  echo $ac_n "(cached) $ac_c" 1>&6
1030else
1031  echo 'void f(){}' > conftest.c
1032if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1033  ac_cv_prog_cc_g=yes
1034else
1035  ac_cv_prog_cc_g=no
1036fi
1037rm -f conftest*
1038
1039fi
1040
1041echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042if test "$ac_test_CFLAGS" = set; then
1043  CFLAGS="$ac_save_CFLAGS"
1044elif test $ac_cv_prog_cc_g = yes; then
1045  if test "$GCC" = yes; then
1046    CFLAGS="-g -O2"
1047  else
1048    CFLAGS="-g"
1049  fi
1050else
1051  if test "$GCC" = yes; then
1052    CFLAGS="-O2"
1053  else
1054    CFLAGS=
1055  fi
1056fi
1057
1058# Find a good install program.  We prefer a C program (faster),
1059# so one script is as good as another.  But avoid the broken or
1060# incompatible versions:
1061# SysV /etc/install, /usr/sbin/install
1062# SunOS /usr/etc/install
1063# IRIX /sbin/install
1064# AIX /bin/install
1065# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1066# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1067# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1068# ./install, which can be erroneously created by make from ./install.sh.
1069echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1070echo "configure:1071: checking for a BSD compatible install" >&5
1071if test -z "$INSTALL"; then
1072if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1073  echo $ac_n "(cached) $ac_c" 1>&6
1074else
1075    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1076  for ac_dir in $PATH; do
1077    # Account for people who put trailing slashes in PATH elements.
1078    case "$ac_dir/" in
1079    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1080    *)
1081      # OSF1 and SCO ODT 3.0 have their own names for install.
1082      # Don't use installbsd from OSF since it installs stuff as root
1083      # by default.
1084      for ac_prog in ginstall scoinst install; do
1085        if test -f $ac_dir/$ac_prog; then
1086	  if test $ac_prog = install &&
1087            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1088	    # AIX install.  It has an incompatible calling convention.
1089	    :
1090	  else
1091	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1092	    break 2
1093	  fi
1094	fi
1095      done
1096      ;;
1097    esac
1098  done
1099  IFS="$ac_save_IFS"
1100
1101fi
1102  if test "${ac_cv_path_install+set}" = set; then
1103    INSTALL="$ac_cv_path_install"
1104  else
1105    # As a last resort, use the slow shell script.  We don't cache a
1106    # path for INSTALL within a source directory, because that will
1107    # break other packages using the cache if that directory is
1108    # removed, or if the path is relative.
1109    INSTALL="$ac_install_sh"
1110  fi
1111fi
1112echo "$ac_t""$INSTALL" 1>&6
1113
1114# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1115# It thinks the first close brace ends the variable substitution.
1116test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1117
1118test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1119
1120test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1121
1122echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1123echo "configure:1124: checking whether ln -s works" >&5
1124if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1125  echo $ac_n "(cached) $ac_c" 1>&6
1126else
1127  rm -f conftestdata
1128if ln -s X conftestdata 2>/dev/null
1129then
1130  rm -f conftestdata
1131  ac_cv_prog_LN_S="ln -s"
1132else
1133  ac_cv_prog_LN_S=ln
1134fi
1135fi
1136LN_S="$ac_cv_prog_LN_S"
1137if test "$ac_cv_prog_LN_S" = "ln -s"; then
1138  echo "$ac_t""yes" 1>&6
1139else
1140  echo "$ac_t""no" 1>&6
1141fi
1142
1143
1144echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1145echo "configure:1146: checking how to run the C preprocessor" >&5
1146# On Suns, sometimes $CPP names a directory.
1147if test -n "$CPP" && test -d "$CPP"; then
1148  CPP=
1149fi
1150if test -z "$CPP"; then
1151if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1152  echo $ac_n "(cached) $ac_c" 1>&6
1153else
1154    # This must be in double quotes, not single quotes, because CPP may get
1155  # substituted into the Makefile and "${CC-cc}" will confuse make.
1156  CPP="${CC-cc} -E"
1157  # On the NeXT, cc -E runs the code through the compiler's parser,
1158  # not just through cpp.
1159  cat > conftest.$ac_ext <<EOF
1160#line 1161 "configure"
1161#include "confdefs.h"
1162#include <assert.h>
1163Syntax Error
1164EOF
1165ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1166{ (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1167ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1168if test -z "$ac_err"; then
1169  :
1170else
1171  echo "$ac_err" >&5
1172  echo "configure: failed program was:" >&5
1173  cat conftest.$ac_ext >&5
1174  rm -rf conftest*
1175  CPP="${CC-cc} -E -traditional-cpp"
1176  cat > conftest.$ac_ext <<EOF
1177#line 1178 "configure"
1178#include "confdefs.h"
1179#include <assert.h>
1180Syntax Error
1181EOF
1182ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1183{ (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1184ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1185if test -z "$ac_err"; then
1186  :
1187else
1188  echo "$ac_err" >&5
1189  echo "configure: failed program was:" >&5
1190  cat conftest.$ac_ext >&5
1191  rm -rf conftest*
1192  CPP="${CC-cc} -nologo -E"
1193  cat > conftest.$ac_ext <<EOF
1194#line 1195 "configure"
1195#include "confdefs.h"
1196#include <assert.h>
1197Syntax Error
1198EOF
1199ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1200{ (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1201ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1202if test -z "$ac_err"; then
1203  :
1204else
1205  echo "$ac_err" >&5
1206  echo "configure: failed program was:" >&5
1207  cat conftest.$ac_ext >&5
1208  rm -rf conftest*
1209  CPP=/lib/cpp
1210fi
1211rm -f conftest*
1212fi
1213rm -f conftest*
1214fi
1215rm -f conftest*
1216  ac_cv_prog_CPP="$CPP"
1217fi
1218  CPP="$ac_cv_prog_CPP"
1219else
1220  ac_cv_prog_CPP="$CPP"
1221fi
1222echo "$ac_t""$CPP" 1>&6
1223
1224echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1225echo "configure:1226: checking for ANSI C header files" >&5
1226if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1227  echo $ac_n "(cached) $ac_c" 1>&6
1228else
1229  cat > conftest.$ac_ext <<EOF
1230#line 1231 "configure"
1231#include "confdefs.h"
1232#include <stdlib.h>
1233#include <stdarg.h>
1234#include <string.h>
1235#include <float.h>
1236EOF
1237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1238{ (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1240if test -z "$ac_err"; then
1241  rm -rf conftest*
1242  ac_cv_header_stdc=yes
1243else
1244  echo "$ac_err" >&5
1245  echo "configure: failed program was:" >&5
1246  cat conftest.$ac_ext >&5
1247  rm -rf conftest*
1248  ac_cv_header_stdc=no
1249fi
1250rm -f conftest*
1251
1252if test $ac_cv_header_stdc = yes; then
1253  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1254cat > conftest.$ac_ext <<EOF
1255#line 1256 "configure"
1256#include "confdefs.h"
1257#include <string.h>
1258EOF
1259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1260  egrep "memchr" >/dev/null 2>&1; then
1261  :
1262else
1263  rm -rf conftest*
1264  ac_cv_header_stdc=no
1265fi
1266rm -f conftest*
1267
1268fi
1269
1270if test $ac_cv_header_stdc = yes; then
1271  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1272cat > conftest.$ac_ext <<EOF
1273#line 1274 "configure"
1274#include "confdefs.h"
1275#include <stdlib.h>
1276EOF
1277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1278  egrep "free" >/dev/null 2>&1; then
1279  :
1280else
1281  rm -rf conftest*
1282  ac_cv_header_stdc=no
1283fi
1284rm -f conftest*
1285
1286fi
1287
1288if test $ac_cv_header_stdc = yes; then
1289  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1290if test "$cross_compiling" = yes; then
1291  :
1292else
1293  cat > conftest.$ac_ext <<EOF
1294#line 1295 "configure"
1295#include "confdefs.h"
1296#include <ctype.h>
1297#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1298#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1299#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1300int main () { int i; for (i = 0; i < 256; i++)
1301if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1302exit (0); }
1303
1304EOF
1305if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1306then
1307  :
1308else
1309  echo "configure: failed program was:" >&5
1310  cat conftest.$ac_ext >&5
1311  rm -fr conftest*
1312  ac_cv_header_stdc=no
1313fi
1314rm -fr conftest*
1315fi
1316
1317fi
1318fi
1319
1320echo "$ac_t""$ac_cv_header_stdc" 1>&6
1321if test $ac_cv_header_stdc = yes; then
1322  cat >> confdefs.h <<\EOF
1323#define STDC_HEADERS 1
1324EOF
1325
1326fi
1327
1328echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
1329echo "configure:1330: checking whether sys/types.h defines makedev" >&5
1330if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
1331  echo $ac_n "(cached) $ac_c" 1>&6
1332else
1333  cat > conftest.$ac_ext <<EOF
1334#line 1335 "configure"
1335#include "confdefs.h"
1336#include <sys/types.h>
1337int main() {
1338return makedev(0, 0);
1339; return 0; }
1340EOF
1341if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1342  rm -rf conftest*
1343  ac_cv_header_sys_types_h_makedev=yes
1344else
1345  echo "configure: failed program was:" >&5
1346  cat conftest.$ac_ext >&5
1347  rm -rf conftest*
1348  ac_cv_header_sys_types_h_makedev=no
1349fi
1350rm -f conftest*
1351
1352fi
1353
1354echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
1355
1356if test $ac_cv_header_sys_types_h_makedev = no; then
1357ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
1358echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
1359echo "configure:1360: checking for sys/mkdev.h" >&5
1360if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1361  echo $ac_n "(cached) $ac_c" 1>&6
1362else
1363  cat > conftest.$ac_ext <<EOF
1364#line 1365 "configure"
1365#include "confdefs.h"
1366#include <sys/mkdev.h>
1367EOF
1368ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1369{ (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1370ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1371if test -z "$ac_err"; then
1372  rm -rf conftest*
1373  eval "ac_cv_header_$ac_safe=yes"
1374else
1375  echo "$ac_err" >&5
1376  echo "configure: failed program was:" >&5
1377  cat conftest.$ac_ext >&5
1378  rm -rf conftest*
1379  eval "ac_cv_header_$ac_safe=no"
1380fi
1381rm -f conftest*
1382fi
1383if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1384  echo "$ac_t""yes" 1>&6
1385  cat >> confdefs.h <<\EOF
1386#define MAJOR_IN_MKDEV 1
1387EOF
1388
1389else
1390  echo "$ac_t""no" 1>&6
1391fi
1392
1393
1394  if test $ac_cv_header_sys_mkdev_h = no; then
1395ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
1396echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
1397echo "configure:1398: checking for sys/sysmacros.h" >&5
1398if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1399  echo $ac_n "(cached) $ac_c" 1>&6
1400else
1401  cat > conftest.$ac_ext <<EOF
1402#line 1403 "configure"
1403#include "confdefs.h"
1404#include <sys/sysmacros.h>
1405EOF
1406ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1407{ (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1408ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1409if test -z "$ac_err"; then
1410  rm -rf conftest*
1411  eval "ac_cv_header_$ac_safe=yes"
1412else
1413  echo "$ac_err" >&5
1414  echo "configure: failed program was:" >&5
1415  cat conftest.$ac_ext >&5
1416  rm -rf conftest*
1417  eval "ac_cv_header_$ac_safe=no"
1418fi
1419rm -f conftest*
1420fi
1421if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1422  echo "$ac_t""yes" 1>&6
1423  cat >> confdefs.h <<\EOF
1424#define MAJOR_IN_SYSMACROS 1
1425EOF
1426
1427else
1428  echo "$ac_t""no" 1>&6
1429fi
1430
1431  fi
1432fi
1433
1434echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1435echo "configure:1436: checking for sys/wait.h that is POSIX.1 compatible" >&5
1436if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1437  echo $ac_n "(cached) $ac_c" 1>&6
1438else
1439  cat > conftest.$ac_ext <<EOF
1440#line 1441 "configure"
1441#include "confdefs.h"
1442#include <sys/types.h>
1443#include <sys/wait.h>
1444#ifndef WEXITSTATUS
1445#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1446#endif
1447#ifndef WIFEXITED
1448#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1449#endif
1450int main() {
1451int s;
1452wait (&s);
1453s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1454; return 0; }
1455EOF
1456if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1457  rm -rf conftest*
1458  ac_cv_header_sys_wait_h=yes
1459else
1460  echo "configure: failed program was:" >&5
1461  cat conftest.$ac_ext >&5
1462  rm -rf conftest*
1463  ac_cv_header_sys_wait_h=no
1464fi
1465rm -f conftest*
1466fi
1467
1468echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1469if test $ac_cv_header_sys_wait_h = yes; then
1470  cat >> confdefs.h <<\EOF
1471#define HAVE_SYS_WAIT_H 1
1472EOF
1473
1474fi
1475
1476for ac_hdr in unistd.h
1477do
1478ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1479echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1480echo "configure:1481: checking for $ac_hdr" >&5
1481if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1482  echo $ac_n "(cached) $ac_c" 1>&6
1483else
1484  cat > conftest.$ac_ext <<EOF
1485#line 1486 "configure"
1486#include "confdefs.h"
1487#include <$ac_hdr>
1488EOF
1489ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1490{ (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1491ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1492if test -z "$ac_err"; then
1493  rm -rf conftest*
1494  eval "ac_cv_header_$ac_safe=yes"
1495else
1496  echo "$ac_err" >&5
1497  echo "configure: failed program was:" >&5
1498  cat conftest.$ac_ext >&5
1499  rm -rf conftest*
1500  eval "ac_cv_header_$ac_safe=no"
1501fi
1502rm -f conftest*
1503fi
1504if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1505  echo "$ac_t""yes" 1>&6
1506    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1507  cat >> confdefs.h <<EOF
1508#define $ac_tr_hdr 1
1509EOF
1510 
1511else
1512  echo "$ac_t""no" 1>&6
1513fi
1514done
1515
1516for ac_hdr in locale.h
1517do
1518ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1519echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1520echo "configure:1521: checking for $ac_hdr" >&5
1521if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1522  echo $ac_n "(cached) $ac_c" 1>&6
1523else
1524  cat > conftest.$ac_ext <<EOF
1525#line 1526 "configure"
1526#include "confdefs.h"
1527#include <$ac_hdr>
1528EOF
1529ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530{ (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532if test -z "$ac_err"; then
1533  rm -rf conftest*
1534  eval "ac_cv_header_$ac_safe=yes"
1535else
1536  echo "$ac_err" >&5
1537  echo "configure: failed program was:" >&5
1538  cat conftest.$ac_ext >&5
1539  rm -rf conftest*
1540  eval "ac_cv_header_$ac_safe=no"
1541fi
1542rm -f conftest*
1543fi
1544if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1545  echo "$ac_t""yes" 1>&6
1546    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1547  cat >> confdefs.h <<EOF
1548#define $ac_tr_hdr 1
1549EOF
1550 
1551else
1552  echo "$ac_t""no" 1>&6
1553fi
1554done
1555
1556
1557echo $ac_n "checking for working const""... $ac_c" 1>&6
1558echo "configure:1559: checking for working const" >&5
1559if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1560  echo $ac_n "(cached) $ac_c" 1>&6
1561else
1562  cat > conftest.$ac_ext <<EOF
1563#line 1564 "configure"
1564#include "confdefs.h"
1565
1566int main() {
1567
1568/* Ultrix mips cc rejects this.  */
1569typedef int charset[2]; const charset x;
1570/* SunOS 4.1.1 cc rejects this.  */
1571char const *const *ccp;
1572char **p;
1573/* NEC SVR4.0.2 mips cc rejects this.  */
1574struct point {int x, y;};
1575static struct point const zero = {0,0};
1576/* AIX XL C 1.02.0.0 rejects this.
1577   It does not let you subtract one const X* pointer from another in an arm
1578   of an if-expression whose if-part is not a constant expression */
1579const char *g = "string";
1580ccp = &g + (g ? g-g : 0);
1581/* HPUX 7.0 cc rejects these. */
1582++ccp;
1583p = (char**) ccp;
1584ccp = (char const *const *) p;
1585{ /* SCO 3.2v4 cc rejects this.  */
1586  char *t;
1587  char const *s = 0 ? (char *) 0 : (char const *) 0;
1588
1589  *t++ = 0;
1590}
1591{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1592  int x[] = {25, 17};
1593  const int *foo = &x[0];
1594  ++foo;
1595}
1596{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1597  typedef const int *iptr;
1598  iptr p = 0;
1599  ++p;
1600}
1601{ /* AIX XL C 1.02.0.0 rejects this saying
1602     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1603  struct s { int j; const int *ap[3]; };
1604  struct s *b; b->j = 5;
1605}
1606{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1607  const int foo = 10;
1608}
1609
1610; return 0; }
1611EOF
1612if { (eval echo configure:1613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1613  rm -rf conftest*
1614  ac_cv_c_const=yes
1615else
1616  echo "configure: failed program was:" >&5
1617  cat conftest.$ac_ext >&5
1618  rm -rf conftest*
1619  ac_cv_c_const=no
1620fi
1621rm -f conftest*
1622fi
1623
1624echo "$ac_t""$ac_cv_c_const" 1>&6
1625if test $ac_cv_c_const = no; then
1626  cat >> confdefs.h <<\EOF
1627#define const 
1628EOF
1629
1630fi
1631
1632echo $ac_n "checking for off_t""... $ac_c" 1>&6
1633echo "configure:1634: checking for off_t" >&5
1634if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1635  echo $ac_n "(cached) $ac_c" 1>&6
1636else
1637  cat > conftest.$ac_ext <<EOF
1638#line 1639 "configure"
1639#include "confdefs.h"
1640#include <sys/types.h>
1641#if STDC_HEADERS
1642#include <stdlib.h>
1643#include <stddef.h>
1644#endif
1645EOF
1646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1647  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1648  rm -rf conftest*
1649  ac_cv_type_off_t=yes
1650else
1651  rm -rf conftest*
1652  ac_cv_type_off_t=no
1653fi
1654rm -f conftest*
1655
1656fi
1657echo "$ac_t""$ac_cv_type_off_t" 1>&6
1658if test $ac_cv_type_off_t = no; then
1659  cat >> confdefs.h <<\EOF
1660#define off_t long
1661EOF
1662
1663fi
1664
1665echo $ac_n "checking for size_t""... $ac_c" 1>&6
1666echo "configure:1667: checking for size_t" >&5
1667if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1668  echo $ac_n "(cached) $ac_c" 1>&6
1669else
1670  cat > conftest.$ac_ext <<EOF
1671#line 1672 "configure"
1672#include "confdefs.h"
1673#include <sys/types.h>
1674#if STDC_HEADERS
1675#include <stdlib.h>
1676#include <stddef.h>
1677#endif
1678EOF
1679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1680  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1681  rm -rf conftest*
1682  ac_cv_type_size_t=yes
1683else
1684  rm -rf conftest*
1685  ac_cv_type_size_t=no
1686fi
1687rm -f conftest*
1688
1689fi
1690echo "$ac_t""$ac_cv_type_size_t" 1>&6
1691if test $ac_cv_type_size_t = no; then
1692  cat >> confdefs.h <<\EOF
1693#define size_t unsigned
1694EOF
1695
1696fi
1697
1698echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1699echo "configure:1700: checking for st_rdev in struct stat" >&5
1700if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1701  echo $ac_n "(cached) $ac_c" 1>&6
1702else
1703  cat > conftest.$ac_ext <<EOF
1704#line 1705 "configure"
1705#include "confdefs.h"
1706#include <sys/types.h>
1707#include <sys/stat.h>
1708int main() {
1709struct stat s; s.st_rdev;
1710; return 0; }
1711EOF
1712if { (eval echo configure:1713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1713  rm -rf conftest*
1714  ac_cv_struct_st_rdev=yes
1715else
1716  echo "configure: failed program was:" >&5
1717  cat conftest.$ac_ext >&5
1718  rm -rf conftest*
1719  ac_cv_struct_st_rdev=no
1720fi
1721rm -f conftest*
1722fi
1723
1724echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1725if test $ac_cv_struct_st_rdev = yes; then
1726  cat >> confdefs.h <<\EOF
1727#define HAVE_ST_RDEV 1
1728EOF
1729
1730fi
1731
1732
1733echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
1734echo "configure:1735: checking for uint8_t" >&5
1735if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
1736  echo $ac_n "(cached) $ac_c" 1>&6
1737else
1738  cat > conftest.$ac_ext <<EOF
1739#line 1740 "configure"
1740#include "confdefs.h"
1741#include <sys/types.h>
1742#if STDC_HEADERS
1743#include <stdlib.h>
1744#include <stddef.h>
1745#endif
1746EOF
1747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1748  egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1749  rm -rf conftest*
1750  ac_cv_type_uint8_t=yes
1751else
1752  rm -rf conftest*
1753  ac_cv_type_uint8_t=no
1754fi
1755rm -f conftest*
1756
1757fi
1758echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
1759if test $ac_cv_type_uint8_t = no; then
1760  cat >> confdefs.h <<\EOF
1761#define uint8_t unsigned char
1762EOF
1763
1764fi
1765
1766echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
1767echo "configure:1768: checking for uint16_t" >&5
1768if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
1769  echo $ac_n "(cached) $ac_c" 1>&6
1770else
1771  cat > conftest.$ac_ext <<EOF
1772#line 1773 "configure"
1773#include "confdefs.h"
1774#include <sys/types.h>
1775#if STDC_HEADERS
1776#include <stdlib.h>
1777#include <stddef.h>
1778#endif
1779EOF
1780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1781  egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1782  rm -rf conftest*
1783  ac_cv_type_uint16_t=yes
1784else
1785  rm -rf conftest*
1786  ac_cv_type_uint16_t=no
1787fi
1788rm -f conftest*
1789
1790fi
1791echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
1792if test $ac_cv_type_uint16_t = no; then
1793  cat >> confdefs.h <<\EOF
1794#define uint16_t unsigned short
1795EOF
1796
1797fi
1798
1799echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
1800echo "configure:1801: checking for uint32_t" >&5
1801if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
1802  echo $ac_n "(cached) $ac_c" 1>&6
1803else
1804  cat > conftest.$ac_ext <<EOF
1805#line 1806 "configure"
1806#include "confdefs.h"
1807#include <sys/types.h>
1808#if STDC_HEADERS
1809#include <stdlib.h>
1810#include <stddef.h>
1811#endif
1812EOF
1813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1814  egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1815  rm -rf conftest*
1816  ac_cv_type_uint32_t=yes
1817else
1818  rm -rf conftest*
1819  ac_cv_type_uint32_t=no
1820fi
1821rm -f conftest*
1822
1823fi
1824echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
1825if test $ac_cv_type_uint32_t = no; then
1826  cat >> confdefs.h <<\EOF
1827#define uint32_t unsigned int
1828EOF
1829
1830fi
1831
1832
1833echo $ac_n "checking for long long""... $ac_c" 1>&6
1834echo "configure:1835: checking for long long" >&5
1835if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1836  echo $ac_n "(cached) $ac_c" 1>&6
1837else
1838  if test "$GCC" = yes; then
1839  ac_cv_c_long_long=yes
1840else
1841if test "$cross_compiling" = yes; then
1842    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1843else
1844  cat > conftest.$ac_ext <<EOF
1845#line 1846 "configure"
1846#include "confdefs.h"
1847int main() {
1848long long foo = 0;
1849exit(sizeof(long long) < sizeof(long)); }
1850EOF
1851if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1852then
1853  ac_cv_c_long_long=yes
1854else
1855  echo "configure: failed program was:" >&5
1856  cat conftest.$ac_ext >&5
1857  rm -fr conftest*
1858  ac_cv_c_long_long=no
1859fi
1860rm -fr conftest*
1861fi
1862
1863fi
1864fi
1865
1866echo "$ac_t""$ac_cv_c_long_long" 1>&6
1867if test $ac_cv_c_long_long = yes; then
1868  cat >> confdefs.h <<\EOF
1869#define HAVE_LONG_LONG 1
1870EOF
1871
1872fi
1873
1874if test $ac_cv_c_long_long = yes; then
1875  long64='unsigned long long';
1876else
1877  long64='unsigned long';
1878fi
1879echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
1880echo "configure:1881: checking for uint64_t" >&5
1881if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
1882  echo $ac_n "(cached) $ac_c" 1>&6
1883else
1884  cat > conftest.$ac_ext <<EOF
1885#line 1886 "configure"
1886#include "confdefs.h"
1887#include <sys/types.h>
1888#if STDC_HEADERS
1889#include <stdlib.h>
1890#include <stddef.h>
1891#endif
1892EOF
1893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1894  egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1895  rm -rf conftest*
1896  eval "ac_cv_type_uint64_t=yes"
1897else
1898  rm -rf conftest*
1899  eval "ac_cv_type_uint64_t=no"
1900fi
1901rm -f conftest*
1902
1903fi
1904if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
1905  echo "$ac_t""yes" 1>&6
1906else
1907  echo "$ac_t""no" 1>&6
1908  cat >> confdefs.h <<EOF
1909#define uint64_t $long64
1910EOF
1911
1912fi
1913
1914
1915echo $ac_n "checking size of uint8_t""... $ac_c" 1>&6
1916echo "configure:1917: checking size of uint8_t" >&5
1917if eval "test \"`echo '$''{'ac_cv_sizeof_uint8_t'+set}'`\" = set"; then
1918  echo $ac_n "(cached) $ac_c" 1>&6
1919else
1920  if test "$cross_compiling" = yes; then
1921  ac_cv_sizeof_uint8_t=0
1922else
1923  cat > conftest.$ac_ext <<EOF
1924#line 1925 "configure"
1925#include "confdefs.h"
1926#include <sys/types.h>
1927#ifdef STDC_HEADERS
1928#include <stdlib.h>
1929#endif
1930
1931#include <stdio.h>
1932main()
1933{
1934  FILE *f=fopen("conftestval", "w");
1935  if (!f) exit(1);
1936  fprintf(f, "%d\n", sizeof(uint8_t));
1937  exit(0);
1938}
1939EOF
1940if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1941then
1942  ac_cv_sizeof_uint8_t=`cat conftestval`
1943else
1944  echo "configure: failed program was:" >&5
1945  cat conftest.$ac_ext >&5
1946  rm -fr conftest*
1947  ac_cv_sizeof_uint8_t=0
1948fi
1949rm -fr conftest*
1950fi
1951
1952fi
1953echo "$ac_t""$ac_cv_sizeof_uint8_t" 1>&6
1954cat >> confdefs.h <<EOF
1955#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
1956EOF
1957
1958
1959
1960echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6
1961echo "configure:1962: checking size of uint16_t" >&5
1962if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then
1963  echo $ac_n "(cached) $ac_c" 1>&6
1964else
1965  if test "$cross_compiling" = yes; then
1966  ac_cv_sizeof_uint16_t=0
1967else
1968  cat > conftest.$ac_ext <<EOF
1969#line 1970 "configure"
1970#include "confdefs.h"
1971#include <sys/types.h>
1972#ifdef STDC_HEADERS
1973#include <stdlib.h>
1974#endif
1975
1976#include <stdio.h>
1977main()
1978{
1979  FILE *f=fopen("conftestval", "w");
1980  if (!f) exit(1);
1981  fprintf(f, "%d\n", sizeof(uint16_t));
1982  exit(0);
1983}
1984EOF
1985if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1986then
1987  ac_cv_sizeof_uint16_t=`cat conftestval`
1988else
1989  echo "configure: failed program was:" >&5
1990  cat conftest.$ac_ext >&5
1991  rm -fr conftest*
1992  ac_cv_sizeof_uint16_t=0
1993fi
1994rm -fr conftest*
1995fi
1996
1997fi
1998echo "$ac_t""$ac_cv_sizeof_uint16_t" 1>&6
1999cat >> confdefs.h <<EOF
2000#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
2001EOF
2002
2003
2004
2005echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6
2006echo "configure:2007: checking size of uint32_t" >&5
2007if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then
2008  echo $ac_n "(cached) $ac_c" 1>&6
2009else
2010  if test "$cross_compiling" = yes; then
2011  ac_cv_sizeof_uint32_t=0
2012else
2013  cat > conftest.$ac_ext <<EOF
2014#line 2015 "configure"
2015#include "confdefs.h"
2016#include <sys/types.h>
2017#ifdef STDC_HEADERS
2018#include <stdlib.h>
2019#endif
2020
2021#include <stdio.h>
2022main()
2023{
2024  FILE *f=fopen("conftestval", "w");
2025  if (!f) exit(1);
2026  fprintf(f, "%d\n", sizeof(uint32_t));
2027  exit(0);
2028}
2029EOF
2030if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2031then
2032  ac_cv_sizeof_uint32_t=`cat conftestval`
2033else
2034  echo "configure: failed program was:" >&5
2035  cat conftest.$ac_ext >&5
2036  rm -fr conftest*
2037  ac_cv_sizeof_uint32_t=0
2038fi
2039rm -fr conftest*
2040fi
2041
2042fi
2043echo "$ac_t""$ac_cv_sizeof_uint32_t" 1>&6
2044cat >> confdefs.h <<EOF
2045#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
2046EOF
2047
2048
2049
2050echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6
2051echo "configure:2052: checking size of uint64_t" >&5
2052if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then
2053  echo $ac_n "(cached) $ac_c" 1>&6
2054else
2055  if test "$cross_compiling" = yes; then
2056  ac_cv_sizeof_uint64_t=0
2057else
2058  cat > conftest.$ac_ext <<EOF
2059#line 2060 "configure"
2060#include "confdefs.h"
2061#include <sys/types.h>
2062#ifdef STDC_HEADERS
2063#include <stdlib.h>
2064#endif
2065
2066#include <stdio.h>
2067main()
2068{
2069  FILE *f=fopen("conftestval", "w");
2070  if (!f) exit(1);
2071  fprintf(f, "%d\n", sizeof(uint64_t));
2072  exit(0);
2073}
2074EOF
2075if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2076then
2077  ac_cv_sizeof_uint64_t=`cat conftestval`
2078else
2079  echo "configure: failed program was:" >&5
2080  cat conftest.$ac_ext >&5
2081  rm -fr conftest*
2082  ac_cv_sizeof_uint64_t=0
2083fi
2084rm -fr conftest*
2085fi
2086
2087fi
2088echo "$ac_t""$ac_cv_sizeof_uint64_t" 1>&6
2089cat >> confdefs.h <<EOF
2090#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
2091EOF
2092
2093
2094
2095
2096for ac_func in strerror strtoul
2097do
2098echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2099echo "configure:2100: checking for $ac_func" >&5
2100if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2101  echo $ac_n "(cached) $ac_c" 1>&6
2102else
2103  cat > conftest.$ac_ext <<EOF
2104#line 2105 "configure"
2105#include "confdefs.h"
2106/* System header to define __stub macros and hopefully few prototypes,
2107    which can conflict with char $ac_func(); below.  */
2108#include <assert.h>
2109/* Override any gcc2 internal prototype to avoid an error.  */
2110/* We use char because int might match the return type of a gcc2
2111    builtin and then its argument prototype would still apply.  */
2112char $ac_func();
2113
2114int main() {
2115
2116/* The GNU C library defines this for functions which it implements
2117    to always fail with ENOSYS.  Some functions are actually named
2118    something starting with __ and the normal name is an alias.  */
2119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2120choke me
2121#else
2122$ac_func();
2123#endif
2124
2125; return 0; }
2126EOF
2127if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2128  rm -rf conftest*
2129  eval "ac_cv_func_$ac_func=yes"
2130else
2131  echo "configure: failed program was:" >&5
2132  cat conftest.$ac_ext >&5
2133  rm -rf conftest*
2134  eval "ac_cv_func_$ac_func=no"
2135fi
2136rm -f conftest*
2137fi
2138
2139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2140  echo "$ac_t""yes" 1>&6
2141    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2142  cat >> confdefs.h <<EOF
2143#define $ac_tr_func 1
2144EOF
2145 
2146else
2147  echo "$ac_t""no" 1>&6
2148fi
2149done
2150
2151
2152trap '' 1 2 15
2153cat > confcache <<\EOF
2154# This file is a shell script that caches the results of configure
2155# tests run on this system so they can be shared between configure
2156# scripts and configure runs.  It is not useful on other systems.
2157# If it contains results you don't want to keep, you may remove or edit it.
2158#
2159# By default, configure uses ./config.cache as the cache file,
2160# creating it if it does not exist already.  You can give configure
2161# the --cache-file=FILE option to use a different cache file; that is
2162# what configure does when it calls configure scripts in
2163# subdirectories, so they share the cache.
2164# Giving --cache-file=/dev/null disables caching, for debugging configure.
2165# config.status only pays attention to the cache file if you give it the
2166# --recheck option to rerun configure.
2167#
2168EOF
2169# The following way of writing the cache mishandles newlines in values,
2170# but we know of no workaround that is simple, portable, and efficient.
2171# So, don't put newlines in cache variables' values.
2172# Ultrix sh set writes to stderr and can't be redirected directly,
2173# and sets the high bit in the cache file unless we assign to the vars.
2174(set) 2>&1 |
2175  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2176  *ac_space=\ *)
2177    # `set' does not quote correctly, so add quotes (double-quote substitution
2178    # turns \\\\ into \\, and sed turns \\ into \).
2179    sed -n \
2180      -e "s/'/'\\\\''/g" \
2181      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2182    ;;
2183  *)
2184    # `set' quotes correctly as required by POSIX, so do not add quotes.
2185    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2186    ;;
2187  esac >> confcache
2188if cmp -s $cache_file confcache; then
2189  :
2190else
2191  if test -w $cache_file; then
2192    echo "updating cache $cache_file"
2193    cat confcache > $cache_file
2194  else
2195    echo "not updating unwritable cache $cache_file"
2196  fi
2197fi
2198rm -f confcache
2199
2200trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2201
2202test "x$prefix" = xNONE && prefix=$ac_default_prefix
2203# Let make expand exec_prefix.
2204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2205
2206# Any assignment to VPATH causes Sun make to only execute
2207# the first set of double-colon rules, so remove it if not needed.
2208# If there is a colon in the path, we need to keep it.
2209if test "x$srcdir" = x.; then
2210  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2211fi
2212
2213trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2214
2215DEFS=-DHAVE_CONFIG_H
2216
2217# Without the "./", some shells look in PATH for config.status.
2218: ${CONFIG_STATUS=./config.status}
2219
2220echo creating $CONFIG_STATUS
2221rm -f $CONFIG_STATUS
2222cat > $CONFIG_STATUS <<EOF
2223#! /bin/sh
2224# Generated automatically by configure.
2225# Run this file to recreate the current configuration.
2226# This directory was configured as follows,
2227# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2228#
2229# $0 $ac_configure_args
2230#
2231# Compiler output produced by configure, useful for debugging
2232# configure, is in ./config.log if it exists.
2233
2234ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2235for ac_option
2236do
2237  case "\$ac_option" in
2238  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2239    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2240    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2241  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2242    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2243    exit 0 ;;
2244  -help | --help | --hel | --he | --h)
2245    echo "\$ac_cs_usage"; exit 0 ;;
2246  *) echo "\$ac_cs_usage"; exit 1 ;;
2247  esac
2248done
2249
2250ac_given_srcdir=$srcdir
2251ac_given_INSTALL="$INSTALL"
2252
2253trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2254EOF
2255cat >> $CONFIG_STATUS <<EOF
2256
2257# Protect against being on the right side of a sed subst in config.status.
2258sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2259 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2260$ac_vpsub
2261$extrasub
2262s%@SHELL@%$SHELL%g
2263s%@CFLAGS@%$CFLAGS%g
2264s%@CPPFLAGS@%$CPPFLAGS%g
2265s%@CXXFLAGS@%$CXXFLAGS%g
2266s%@FFLAGS@%$FFLAGS%g
2267s%@DEFS@%$DEFS%g
2268s%@LDFLAGS@%$LDFLAGS%g
2269s%@LIBS@%$LIBS%g
2270s%@exec_prefix@%$exec_prefix%g
2271s%@prefix@%$prefix%g
2272s%@program_transform_name@%$program_transform_name%g
2273s%@bindir@%$bindir%g
2274s%@sbindir@%$sbindir%g
2275s%@libexecdir@%$libexecdir%g
2276s%@datadir@%$datadir%g
2277s%@sysconfdir@%$sysconfdir%g
2278s%@sharedstatedir@%$sharedstatedir%g
2279s%@localstatedir@%$localstatedir%g
2280s%@libdir@%$libdir%g
2281s%@includedir@%$includedir%g
2282s%@oldincludedir@%$oldincludedir%g
2283s%@infodir@%$infodir%g
2284s%@mandir@%$mandir%g
2285s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2286s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2287s%@INSTALL_DATA@%$INSTALL_DATA%g
2288s%@PACKAGE@%$PACKAGE%g
2289s%@VERSION@%$VERSION%g
2290s%@ACLOCAL@%$ACLOCAL%g
2291s%@AUTOCONF@%$AUTOCONF%g
2292s%@AUTOMAKE@%$AUTOMAKE%g
2293s%@AUTOHEADER@%$AUTOHEADER%g
2294s%@MAKEINFO@%$MAKEINFO%g
2295s%@SET_MAKE@%$SET_MAKE%g
2296s%@CC@%$CC%g
2297s%@LN_S@%$LN_S%g
2298s%@CPP@%$CPP%g
2299
2300CEOF
2301EOF
2302
2303cat >> $CONFIG_STATUS <<\EOF
2304
2305# Split the substitutions into bite-sized pieces for seds with
2306# small command number limits, like on Digital OSF/1 and HP-UX.
2307ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2308ac_file=1 # Number of current file.
2309ac_beg=1 # First line for current file.
2310ac_end=$ac_max_sed_cmds # Line after last line for current file.
2311ac_more_lines=:
2312ac_sed_cmds=""
2313while $ac_more_lines; do
2314  if test $ac_beg -gt 1; then
2315    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2316  else
2317    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2318  fi
2319  if test ! -s conftest.s$ac_file; then
2320    ac_more_lines=false
2321    rm -f conftest.s$ac_file
2322  else
2323    if test -z "$ac_sed_cmds"; then
2324      ac_sed_cmds="sed -f conftest.s$ac_file"
2325    else
2326      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2327    fi
2328    ac_file=`expr $ac_file + 1`
2329    ac_beg=$ac_end
2330    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2331  fi
2332done
2333if test -z "$ac_sed_cmds"; then
2334  ac_sed_cmds=cat
2335fi
2336EOF
2337
2338cat >> $CONFIG_STATUS <<EOF
2339
2340CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2341EOF
2342cat >> $CONFIG_STATUS <<\EOF
2343for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2344  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2345  case "$ac_file" in
2346  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2347       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2348  *) ac_file_in="${ac_file}.in" ;;
2349  esac
2350
2351  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2352
2353  # Remove last slash and all that follows it.  Not all systems have dirname.
2354  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2355  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2356    # The file is in a subdirectory.
2357    test ! -d "$ac_dir" && mkdir "$ac_dir"
2358    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2359    # A "../" for each directory in $ac_dir_suffix.
2360    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2361  else
2362    ac_dir_suffix= ac_dots=
2363  fi
2364
2365  case "$ac_given_srcdir" in
2366  .)  srcdir=.
2367      if test -z "$ac_dots"; then top_srcdir=.
2368      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2369  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2370  *) # Relative path.
2371    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2372    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2373  esac
2374
2375  case "$ac_given_INSTALL" in
2376  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2377  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2378  esac
2379
2380  echo creating "$ac_file"
2381  rm -f "$ac_file"
2382  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2383  case "$ac_file" in
2384  *Makefile*) ac_comsub="1i\\
2385# $configure_input" ;;
2386  *) ac_comsub= ;;
2387  esac
2388
2389  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2390  sed -e "$ac_comsub
2391s%@configure_input@%$configure_input%g
2392s%@srcdir@%$srcdir%g
2393s%@top_srcdir@%$top_srcdir%g
2394s%@INSTALL@%$INSTALL%g
2395" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2396fi; done
2397rm -f conftest.s*
2398
2399# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2400# NAME is the cpp macro being defined and VALUE is the value it is being given.
2401#
2402# ac_d sets the value in "#define NAME VALUE" lines.
2403ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
2404ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
2405ac_dC='\3'
2406ac_dD='%g'
2407# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2408ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2409ac_uB='\([ 	]\)%\1#\2define\3'
2410ac_uC=' '
2411ac_uD='\4%g'
2412# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2413ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2414ac_eB='$%\1#\2define\3'
2415ac_eC=' '
2416ac_eD='%g'
2417
2418if test "${CONFIG_HEADERS+set}" != set; then
2419EOF
2420cat >> $CONFIG_STATUS <<EOF
2421  CONFIG_HEADERS="config.h"
2422EOF
2423cat >> $CONFIG_STATUS <<\EOF
2424fi
2425for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2426  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2427  case "$ac_file" in
2428  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2429       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2430  *) ac_file_in="${ac_file}.in" ;;
2431  esac
2432
2433  echo creating $ac_file
2434
2435  rm -f conftest.frag conftest.in conftest.out
2436  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2437  cat $ac_file_inputs > conftest.in
2438
2439EOF
2440
2441# Transform confdefs.h into a sed script conftest.vals that substitutes
2442# the proper values into config.h.in to produce config.h.  And first:
2443# Protect against being on the right side of a sed subst in config.status.
2444# Protect against being in an unquoted here document in config.status.
2445rm -f conftest.vals
2446cat > conftest.hdr <<\EOF
2447s/[\\&%]/\\&/g
2448s%[\\$`]%\\&%g
2449s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2450s%ac_d%ac_u%gp
2451s%ac_u%ac_e%gp
2452EOF
2453sed -n -f conftest.hdr confdefs.h > conftest.vals
2454rm -f conftest.hdr
2455
2456# This sed command replaces #undef with comments.  This is necessary, for
2457# example, in the case of _POSIX_SOURCE, which is predefined and required
2458# on some systems where configure will not decide to define it.
2459cat >> conftest.vals <<\EOF
2460s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2461EOF
2462
2463# Break up conftest.vals because some shells have a limit on
2464# the size of here documents, and old seds have small limits too.
2465
2466rm -f conftest.tail
2467while :
2468do
2469  ac_lines=`grep -c . conftest.vals`
2470  # grep -c gives empty output for an empty file on some AIX systems.
2471  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2472  # Write a limited-size here document to conftest.frag.
2473  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2474  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2475  echo 'CEOF
2476  sed -f conftest.frag conftest.in > conftest.out
2477  rm -f conftest.in
2478  mv conftest.out conftest.in
2479' >> $CONFIG_STATUS
2480  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2481  rm -f conftest.vals
2482  mv conftest.tail conftest.vals
2483done
2484rm -f conftest.vals
2485
2486cat >> $CONFIG_STATUS <<\EOF
2487  rm -f conftest.frag conftest.h
2488  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2489  cat conftest.in >> conftest.h
2490  rm -f conftest.in
2491  if cmp -s $ac_file conftest.h 2>/dev/null; then
2492    echo "$ac_file is unchanged"
2493    rm -f conftest.h
2494  else
2495    # Remove last slash and all that follows it.  Not all systems have dirname.
2496      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2497      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2498      # The file is in a subdirectory.
2499      test ! -d "$ac_dir" && mkdir "$ac_dir"
2500    fi
2501    rm -f $ac_file
2502    mv conftest.h $ac_file
2503  fi
2504fi; done
2505
2506EOF
2507cat >> $CONFIG_STATUS <<EOF
2508
2509
2510EOF
2511cat >> $CONFIG_STATUS <<\EOF
2512test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2513
2514exit 0
2515EOF
2516chmod +x $CONFIG_STATUS
2517rm -fr confdefs* $ac_clean_files
2518test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2519
2520