xref: /minix3/tools/compat/configure (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1c8a0e2f4SThomas Veerman#! /bin/sh
2c8a0e2f4SThomas Veerman# Guess values for system-dependent variables and create Makefiles.
3c8a0e2f4SThomas Veerman# Generated by Autoconf 2.52 for libnbcompat noversion.
4c8a0e2f4SThomas Veerman#
5c8a0e2f4SThomas Veerman# Report bugs to <lib-bug-people@NetBSD.org>.
6c8a0e2f4SThomas Veerman#
7c8a0e2f4SThomas Veerman# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8c8a0e2f4SThomas Veerman# Free Software Foundation, Inc.
9c8a0e2f4SThomas Veerman# This configure script is free software; the Free Software Foundation
10c8a0e2f4SThomas Veerman# gives unlimited permission to copy, distribute and modify it.
11c8a0e2f4SThomas Veerman
12c8a0e2f4SThomas Veerman# Avoid depending upon Character Ranges.
13c8a0e2f4SThomas Veermanas_cr_letters='abcdefghijklmnopqrstuvwxyz'
14c8a0e2f4SThomas Veermanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15c8a0e2f4SThomas Veermanas_cr_Letters=$as_cr_letters$as_cr_LETTERS
16c8a0e2f4SThomas Veermanas_cr_digits='0123456789'
17c8a0e2f4SThomas Veermanas_cr_alnum=$as_cr_Letters$as_cr_digits
18c8a0e2f4SThomas Veerman
19c8a0e2f4SThomas Veerman# Sed expression to map a string onto a valid variable name.
20c8a0e2f4SThomas Veermanas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21c8a0e2f4SThomas Veerman
22c8a0e2f4SThomas Veerman# Sed expression to map a string onto a valid CPP name.
23c8a0e2f4SThomas Veermanas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24c8a0e2f4SThomas Veerman
25c8a0e2f4SThomas Veerman# Be Bourne compatible
26c8a0e2f4SThomas Veermanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27c8a0e2f4SThomas Veerman  emulate sh
28c8a0e2f4SThomas Veerman  NULLCMD=:
29c8a0e2f4SThomas Veermanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30c8a0e2f4SThomas Veerman  set -o posix
31c8a0e2f4SThomas Veermanfi
32c8a0e2f4SThomas Veerman
33c8a0e2f4SThomas Veerman# Name of the executable.
34c8a0e2f4SThomas Veermanas_me=`echo "$0" |sed 's,.*[\\/],,'`
35c8a0e2f4SThomas Veerman
36c8a0e2f4SThomas Veermanif expr a : '\(a\)' >/dev/null 2>&1; then
37c8a0e2f4SThomas Veerman  as_expr=expr
38c8a0e2f4SThomas Veermanelse
39c8a0e2f4SThomas Veerman  as_expr=false
40c8a0e2f4SThomas Veermanfi
41c8a0e2f4SThomas Veerman
42c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
43c8a0e2f4SThomas Veermanecho >conf$$.file
44c8a0e2f4SThomas Veermanif ln -s conf$$.file conf$$ 2>/dev/null; then
45c8a0e2f4SThomas Veerman  # We could just check for DJGPP; but this test a) works b) is more generic
46c8a0e2f4SThomas Veerman  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47c8a0e2f4SThomas Veerman  if test -f conf$$.exe; then
48c8a0e2f4SThomas Veerman    # Don't use ln at all; we don't have any links
49c8a0e2f4SThomas Veerman    as_ln_s='cp -p'
50c8a0e2f4SThomas Veerman  else
51c8a0e2f4SThomas Veerman    as_ln_s='ln -s'
52c8a0e2f4SThomas Veerman  fi
53c8a0e2f4SThomas Veermanelif ln conf$$.file conf$$ 2>/dev/null; then
54c8a0e2f4SThomas Veerman  as_ln_s=ln
55c8a0e2f4SThomas Veermanelse
56c8a0e2f4SThomas Veerman  as_ln_s='cp -p'
57c8a0e2f4SThomas Veermanfi
58c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
59c8a0e2f4SThomas Veerman
60c8a0e2f4SThomas Veermanas_executable_p="test -f"
61c8a0e2f4SThomas Veerman
62c8a0e2f4SThomas Veerman# Support unset when possible.
63c8a0e2f4SThomas Veermanif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64c8a0e2f4SThomas Veerman  as_unset=unset
65c8a0e2f4SThomas Veermanelse
66c8a0e2f4SThomas Veerman  as_unset=false
67c8a0e2f4SThomas Veermanfi
68c8a0e2f4SThomas Veerman
69c8a0e2f4SThomas Veerman# NLS nuisances.
70c8a0e2f4SThomas Veerman$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71c8a0e2f4SThomas Veerman$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72c8a0e2f4SThomas Veerman$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73c8a0e2f4SThomas Veerman$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74c8a0e2f4SThomas Veerman$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75c8a0e2f4SThomas Veerman$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76c8a0e2f4SThomas Veerman$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77c8a0e2f4SThomas Veerman$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78c8a0e2f4SThomas Veerman
79c8a0e2f4SThomas Veerman# IFS
80c8a0e2f4SThomas Veerman# We need space, tab and new line, in precisely that order.
81c8a0e2f4SThomas Veermanas_nl='
82c8a0e2f4SThomas Veerman'
83c8a0e2f4SThomas VeermanIFS=" 	$as_nl"
84c8a0e2f4SThomas Veerman
85c8a0e2f4SThomas Veerman# CDPATH.
86c8a0e2f4SThomas Veerman$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87c8a0e2f4SThomas Veerman
88c8a0e2f4SThomas Veerman# Name of the host.
89c8a0e2f4SThomas Veerman# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90c8a0e2f4SThomas Veerman# so uname gets run too.
91c8a0e2f4SThomas Veermanac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92c8a0e2f4SThomas Veerman
93c8a0e2f4SThomas Veermanexec 6>&1
94c8a0e2f4SThomas Veerman
95c8a0e2f4SThomas Veerman#
96c8a0e2f4SThomas Veerman# Initializations.
97c8a0e2f4SThomas Veerman#
98c8a0e2f4SThomas Veermanac_default_prefix=/usr/local
99c8a0e2f4SThomas Veermancross_compiling=no
100c8a0e2f4SThomas Veermansubdirs=
101c8a0e2f4SThomas VeermanMFLAGS= MAKEFLAGS=
102c8a0e2f4SThomas VeermanSHELL=${CONFIG_SHELL-/bin/sh}
103c8a0e2f4SThomas Veerman
104c8a0e2f4SThomas Veerman# Maximum number of lines to put in a shell here document.
105c8a0e2f4SThomas Veerman# This variable seems obsolete.  It should probably be removed, and
106c8a0e2f4SThomas Veerman# only ac_max_sed_lines should be used.
107c8a0e2f4SThomas Veerman: ${ac_max_here_lines=38}
108c8a0e2f4SThomas Veerman
109c8a0e2f4SThomas Veerman# Factoring default headers for most tests.
110c8a0e2f4SThomas Veermanac_includes_default="\
111c8a0e2f4SThomas Veerman#include <stdio.h>
112c8a0e2f4SThomas Veerman#if HAVE_SYS_TYPES_H
113c8a0e2f4SThomas Veerman# include <sys/types.h>
114c8a0e2f4SThomas Veerman#endif
115c8a0e2f4SThomas Veerman#if HAVE_SYS_STAT_H
116c8a0e2f4SThomas Veerman# include <sys/stat.h>
117c8a0e2f4SThomas Veerman#endif
118c8a0e2f4SThomas Veerman#if STDC_HEADERS
119c8a0e2f4SThomas Veerman# include <stdlib.h>
120c8a0e2f4SThomas Veerman# include <stddef.h>
121c8a0e2f4SThomas Veerman#else
122c8a0e2f4SThomas Veerman# if HAVE_STDLIB_H
123c8a0e2f4SThomas Veerman#  include <stdlib.h>
124c8a0e2f4SThomas Veerman# endif
125c8a0e2f4SThomas Veerman#endif
126c8a0e2f4SThomas Veerman#if HAVE_STRING_H
127c8a0e2f4SThomas Veerman# if !STDC_HEADERS && HAVE_MEMORY_H
128c8a0e2f4SThomas Veerman#  include <memory.h>
129c8a0e2f4SThomas Veerman# endif
130c8a0e2f4SThomas Veerman# include <string.h>
131c8a0e2f4SThomas Veerman#endif
132c8a0e2f4SThomas Veerman#if HAVE_STRINGS_H
133c8a0e2f4SThomas Veerman# include <strings.h>
134c8a0e2f4SThomas Veerman#endif
135c8a0e2f4SThomas Veerman#if HAVE_INTTYPES_H
136c8a0e2f4SThomas Veerman# include <inttypes.h>
137c8a0e2f4SThomas Veerman#else
138c8a0e2f4SThomas Veerman# if HAVE_STDINT_H
139c8a0e2f4SThomas Veerman#  include <stdint.h>
140c8a0e2f4SThomas Veerman# endif
141c8a0e2f4SThomas Veerman#endif
142c8a0e2f4SThomas Veerman#if HAVE_UNISTD_H
143c8a0e2f4SThomas Veerman# include <unistd.h>
144c8a0e2f4SThomas Veerman#endif"
145c8a0e2f4SThomas Veerman
146c8a0e2f4SThomas Veerman# Initialize some variables set by options.
147c8a0e2f4SThomas Veermanac_init_help=
148c8a0e2f4SThomas Veermanac_init_version=false
149c8a0e2f4SThomas Veerman# The variables have the same names as the options, with
150c8a0e2f4SThomas Veerman# dashes changed to underlines.
151c8a0e2f4SThomas Veermancache_file=/dev/null
152c8a0e2f4SThomas Veermanexec_prefix=NONE
153c8a0e2f4SThomas Veermanno_create=
154c8a0e2f4SThomas Veermanno_recursion=
155c8a0e2f4SThomas Veermanprefix=NONE
156c8a0e2f4SThomas Veermanprogram_prefix=NONE
157c8a0e2f4SThomas Veermanprogram_suffix=NONE
158c8a0e2f4SThomas Veermanprogram_transform_name=s,x,x,
159c8a0e2f4SThomas Veermansilent=
160c8a0e2f4SThomas Veermansite=
161c8a0e2f4SThomas Veermansrcdir=
162c8a0e2f4SThomas Veermanverbose=
163c8a0e2f4SThomas Veermanx_includes=NONE
164c8a0e2f4SThomas Veermanx_libraries=NONE
165c8a0e2f4SThomas Veerman
166c8a0e2f4SThomas Veerman# Installation directory options.
167c8a0e2f4SThomas Veerman# These are left unexpanded so users can "make install exec_prefix=/foo"
168c8a0e2f4SThomas Veerman# and all the variables that are supposed to be based on exec_prefix
169c8a0e2f4SThomas Veerman# by default will actually change.
170c8a0e2f4SThomas Veerman# Use braces instead of parens because sh, perl, etc. also accept them.
171c8a0e2f4SThomas Veermanbindir='${exec_prefix}/bin'
172c8a0e2f4SThomas Veermansbindir='${exec_prefix}/sbin'
173c8a0e2f4SThomas Veermanlibexecdir='${exec_prefix}/libexec'
174c8a0e2f4SThomas Veermandatadir='${prefix}/share'
175c8a0e2f4SThomas Veermansysconfdir='${prefix}/etc'
176c8a0e2f4SThomas Veermansharedstatedir='${prefix}/com'
177c8a0e2f4SThomas Veermanlocalstatedir='${prefix}/var'
178c8a0e2f4SThomas Veermanlibdir='${exec_prefix}/lib'
179c8a0e2f4SThomas Veermanincludedir='${prefix}/include'
180c8a0e2f4SThomas Veermanoldincludedir='/usr/include'
181c8a0e2f4SThomas Veermaninfodir='${prefix}/info'
182c8a0e2f4SThomas Veermanmandir='${prefix}/man'
183c8a0e2f4SThomas Veerman
184c8a0e2f4SThomas Veerman# Identity of this package.
185c8a0e2f4SThomas VeermanPACKAGE_NAME='libnbcompat'
186c8a0e2f4SThomas VeermanPACKAGE_TARNAME='libnbcompat'
187c8a0e2f4SThomas VeermanPACKAGE_VERSION='noversion'
188c8a0e2f4SThomas VeermanPACKAGE_STRING='libnbcompat noversion'
189c8a0e2f4SThomas VeermanPACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
190c8a0e2f4SThomas Veerman
191c8a0e2f4SThomas Veermanac_prev=
192c8a0e2f4SThomas Veermanfor ac_option
193c8a0e2f4SThomas Veermando
194c8a0e2f4SThomas Veerman  # If the previous option needs an argument, assign it.
195c8a0e2f4SThomas Veerman  if test -n "$ac_prev"; then
196c8a0e2f4SThomas Veerman    eval "$ac_prev=\$ac_option"
197c8a0e2f4SThomas Veerman    ac_prev=
198c8a0e2f4SThomas Veerman    continue
199c8a0e2f4SThomas Veerman  fi
200c8a0e2f4SThomas Veerman
201c8a0e2f4SThomas Veerman  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202c8a0e2f4SThomas Veerman
203c8a0e2f4SThomas Veerman  # Accept the important Cygnus configure options, so we can diagnose typos.
204c8a0e2f4SThomas Veerman
205c8a0e2f4SThomas Veerman  case $ac_option in
206c8a0e2f4SThomas Veerman
207c8a0e2f4SThomas Veerman  -bindir | --bindir | --bindi | --bind | --bin | --bi)
208c8a0e2f4SThomas Veerman    ac_prev=bindir ;;
209c8a0e2f4SThomas Veerman  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210c8a0e2f4SThomas Veerman    bindir=$ac_optarg ;;
211c8a0e2f4SThomas Veerman
212c8a0e2f4SThomas Veerman  -build | --build | --buil | --bui | --bu)
213c8a0e2f4SThomas Veerman    ac_prev=build_alias ;;
214c8a0e2f4SThomas Veerman  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215c8a0e2f4SThomas Veerman    build_alias=$ac_optarg ;;
216c8a0e2f4SThomas Veerman
217c8a0e2f4SThomas Veerman  -cache-file | --cache-file | --cache-fil | --cache-fi \
218c8a0e2f4SThomas Veerman  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219c8a0e2f4SThomas Veerman    ac_prev=cache_file ;;
220c8a0e2f4SThomas Veerman  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221c8a0e2f4SThomas Veerman  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222c8a0e2f4SThomas Veerman    cache_file=$ac_optarg ;;
223c8a0e2f4SThomas Veerman
224c8a0e2f4SThomas Veerman  --config-cache | -C)
225c8a0e2f4SThomas Veerman    cache_file=config.cache ;;
226c8a0e2f4SThomas Veerman
227c8a0e2f4SThomas Veerman  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228c8a0e2f4SThomas Veerman    ac_prev=datadir ;;
229c8a0e2f4SThomas Veerman  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230c8a0e2f4SThomas Veerman  | --da=*)
231c8a0e2f4SThomas Veerman    datadir=$ac_optarg ;;
232c8a0e2f4SThomas Veerman
233c8a0e2f4SThomas Veerman  -disable-* | --disable-*)
234c8a0e2f4SThomas Veerman    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
236c8a0e2f4SThomas Veerman    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
239c8a0e2f4SThomas Veerman    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240c8a0e2f4SThomas Veerman    eval "enable_$ac_feature=no" ;;
241c8a0e2f4SThomas Veerman
242c8a0e2f4SThomas Veerman  -enable-* | --enable-*)
243c8a0e2f4SThomas Veerman    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
245c8a0e2f4SThomas Veerman    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
248c8a0e2f4SThomas Veerman    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249c8a0e2f4SThomas Veerman    case $ac_option in
250c8a0e2f4SThomas Veerman      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251c8a0e2f4SThomas Veerman      *) ac_optarg=yes ;;
252c8a0e2f4SThomas Veerman    esac
253c8a0e2f4SThomas Veerman    eval "enable_$ac_feature='$ac_optarg'" ;;
254c8a0e2f4SThomas Veerman
255c8a0e2f4SThomas Veerman  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256c8a0e2f4SThomas Veerman  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257c8a0e2f4SThomas Veerman  | --exec | --exe | --ex)
258c8a0e2f4SThomas Veerman    ac_prev=exec_prefix ;;
259c8a0e2f4SThomas Veerman  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260c8a0e2f4SThomas Veerman  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261c8a0e2f4SThomas Veerman  | --exec=* | --exe=* | --ex=*)
262c8a0e2f4SThomas Veerman    exec_prefix=$ac_optarg ;;
263c8a0e2f4SThomas Veerman
264c8a0e2f4SThomas Veerman  -gas | --gas | --ga | --g)
265c8a0e2f4SThomas Veerman    # Obsolete; use --with-gas.
266c8a0e2f4SThomas Veerman    with_gas=yes ;;
267c8a0e2f4SThomas Veerman
268c8a0e2f4SThomas Veerman  -help | --help | --hel | --he | -h)
269c8a0e2f4SThomas Veerman    ac_init_help=long ;;
270c8a0e2f4SThomas Veerman  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271c8a0e2f4SThomas Veerman    ac_init_help=recursive ;;
272c8a0e2f4SThomas Veerman  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273c8a0e2f4SThomas Veerman    ac_init_help=short ;;
274c8a0e2f4SThomas Veerman
275c8a0e2f4SThomas Veerman  -host | --host | --hos | --ho)
276c8a0e2f4SThomas Veerman    ac_prev=host_alias ;;
277c8a0e2f4SThomas Veerman  -host=* | --host=* | --hos=* | --ho=*)
278c8a0e2f4SThomas Veerman    host_alias=$ac_optarg ;;
279c8a0e2f4SThomas Veerman
280c8a0e2f4SThomas Veerman  -includedir | --includedir | --includedi | --included | --include \
281c8a0e2f4SThomas Veerman  | --includ | --inclu | --incl | --inc)
282c8a0e2f4SThomas Veerman    ac_prev=includedir ;;
283c8a0e2f4SThomas Veerman  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284c8a0e2f4SThomas Veerman  | --includ=* | --inclu=* | --incl=* | --inc=*)
285c8a0e2f4SThomas Veerman    includedir=$ac_optarg ;;
286c8a0e2f4SThomas Veerman
287c8a0e2f4SThomas Veerman  -infodir | --infodir | --infodi | --infod | --info | --inf)
288c8a0e2f4SThomas Veerman    ac_prev=infodir ;;
289c8a0e2f4SThomas Veerman  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290c8a0e2f4SThomas Veerman    infodir=$ac_optarg ;;
291c8a0e2f4SThomas Veerman
292c8a0e2f4SThomas Veerman  -libdir | --libdir | --libdi | --libd)
293c8a0e2f4SThomas Veerman    ac_prev=libdir ;;
294c8a0e2f4SThomas Veerman  -libdir=* | --libdir=* | --libdi=* | --libd=*)
295c8a0e2f4SThomas Veerman    libdir=$ac_optarg ;;
296c8a0e2f4SThomas Veerman
297c8a0e2f4SThomas Veerman  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298c8a0e2f4SThomas Veerman  | --libexe | --libex | --libe)
299c8a0e2f4SThomas Veerman    ac_prev=libexecdir ;;
300c8a0e2f4SThomas Veerman  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301c8a0e2f4SThomas Veerman  | --libexe=* | --libex=* | --libe=*)
302c8a0e2f4SThomas Veerman    libexecdir=$ac_optarg ;;
303c8a0e2f4SThomas Veerman
304c8a0e2f4SThomas Veerman  -localstatedir | --localstatedir | --localstatedi | --localstated \
305c8a0e2f4SThomas Veerman  | --localstate | --localstat | --localsta | --localst \
306c8a0e2f4SThomas Veerman  | --locals | --local | --loca | --loc | --lo)
307c8a0e2f4SThomas Veerman    ac_prev=localstatedir ;;
308c8a0e2f4SThomas Veerman  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309c8a0e2f4SThomas Veerman  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310c8a0e2f4SThomas Veerman  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311c8a0e2f4SThomas Veerman    localstatedir=$ac_optarg ;;
312c8a0e2f4SThomas Veerman
313c8a0e2f4SThomas Veerman  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314c8a0e2f4SThomas Veerman    ac_prev=mandir ;;
315c8a0e2f4SThomas Veerman  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316c8a0e2f4SThomas Veerman    mandir=$ac_optarg ;;
317c8a0e2f4SThomas Veerman
318c8a0e2f4SThomas Veerman  -nfp | --nfp | --nf)
319c8a0e2f4SThomas Veerman    # Obsolete; use --without-fp.
320c8a0e2f4SThomas Veerman    with_fp=no ;;
321c8a0e2f4SThomas Veerman
322c8a0e2f4SThomas Veerman  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323c8a0e2f4SThomas Veerman  | --no-cr | --no-c)
324c8a0e2f4SThomas Veerman    no_create=yes ;;
325c8a0e2f4SThomas Veerman
326c8a0e2f4SThomas Veerman  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327c8a0e2f4SThomas Veerman  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328c8a0e2f4SThomas Veerman    no_recursion=yes ;;
329c8a0e2f4SThomas Veerman
330c8a0e2f4SThomas Veerman  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331c8a0e2f4SThomas Veerman  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332c8a0e2f4SThomas Veerman  | --oldin | --oldi | --old | --ol | --o)
333c8a0e2f4SThomas Veerman    ac_prev=oldincludedir ;;
334c8a0e2f4SThomas Veerman  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335c8a0e2f4SThomas Veerman  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336c8a0e2f4SThomas Veerman  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337c8a0e2f4SThomas Veerman    oldincludedir=$ac_optarg ;;
338c8a0e2f4SThomas Veerman
339c8a0e2f4SThomas Veerman  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340c8a0e2f4SThomas Veerman    ac_prev=prefix ;;
341c8a0e2f4SThomas Veerman  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342c8a0e2f4SThomas Veerman    prefix=$ac_optarg ;;
343c8a0e2f4SThomas Veerman
344c8a0e2f4SThomas Veerman  -program-prefix | --program-prefix | --program-prefi | --program-pref \
345c8a0e2f4SThomas Veerman  | --program-pre | --program-pr | --program-p)
346c8a0e2f4SThomas Veerman    ac_prev=program_prefix ;;
347c8a0e2f4SThomas Veerman  -program-prefix=* | --program-prefix=* | --program-prefi=* \
348c8a0e2f4SThomas Veerman  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349c8a0e2f4SThomas Veerman    program_prefix=$ac_optarg ;;
350c8a0e2f4SThomas Veerman
351c8a0e2f4SThomas Veerman  -program-suffix | --program-suffix | --program-suffi | --program-suff \
352c8a0e2f4SThomas Veerman  | --program-suf | --program-su | --program-s)
353c8a0e2f4SThomas Veerman    ac_prev=program_suffix ;;
354c8a0e2f4SThomas Veerman  -program-suffix=* | --program-suffix=* | --program-suffi=* \
355c8a0e2f4SThomas Veerman  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356c8a0e2f4SThomas Veerman    program_suffix=$ac_optarg ;;
357c8a0e2f4SThomas Veerman
358c8a0e2f4SThomas Veerman  -program-transform-name | --program-transform-name \
359c8a0e2f4SThomas Veerman  | --program-transform-nam | --program-transform-na \
360c8a0e2f4SThomas Veerman  | --program-transform-n | --program-transform- \
361c8a0e2f4SThomas Veerman  | --program-transform | --program-transfor \
362c8a0e2f4SThomas Veerman  | --program-transfo | --program-transf \
363c8a0e2f4SThomas Veerman  | --program-trans | --program-tran \
364c8a0e2f4SThomas Veerman  | --progr-tra | --program-tr | --program-t)
365c8a0e2f4SThomas Veerman    ac_prev=program_transform_name ;;
366c8a0e2f4SThomas Veerman  -program-transform-name=* | --program-transform-name=* \
367c8a0e2f4SThomas Veerman  | --program-transform-nam=* | --program-transform-na=* \
368c8a0e2f4SThomas Veerman  | --program-transform-n=* | --program-transform-=* \
369c8a0e2f4SThomas Veerman  | --program-transform=* | --program-transfor=* \
370c8a0e2f4SThomas Veerman  | --program-transfo=* | --program-transf=* \
371c8a0e2f4SThomas Veerman  | --program-trans=* | --program-tran=* \
372c8a0e2f4SThomas Veerman  | --progr-tra=* | --program-tr=* | --program-t=*)
373c8a0e2f4SThomas Veerman    program_transform_name=$ac_optarg ;;
374c8a0e2f4SThomas Veerman
375c8a0e2f4SThomas Veerman  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376c8a0e2f4SThomas Veerman  | -silent | --silent | --silen | --sile | --sil)
377c8a0e2f4SThomas Veerman    silent=yes ;;
378c8a0e2f4SThomas Veerman
379c8a0e2f4SThomas Veerman  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380c8a0e2f4SThomas Veerman    ac_prev=sbindir ;;
381c8a0e2f4SThomas Veerman  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382c8a0e2f4SThomas Veerman  | --sbi=* | --sb=*)
383c8a0e2f4SThomas Veerman    sbindir=$ac_optarg ;;
384c8a0e2f4SThomas Veerman
385c8a0e2f4SThomas Veerman  -sharedstatedir | --sharedstatedir | --sharedstatedi \
386c8a0e2f4SThomas Veerman  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387c8a0e2f4SThomas Veerman  | --sharedst | --shareds | --shared | --share | --shar \
388c8a0e2f4SThomas Veerman  | --sha | --sh)
389c8a0e2f4SThomas Veerman    ac_prev=sharedstatedir ;;
390c8a0e2f4SThomas Veerman  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391c8a0e2f4SThomas Veerman  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392c8a0e2f4SThomas Veerman  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393c8a0e2f4SThomas Veerman  | --sha=* | --sh=*)
394c8a0e2f4SThomas Veerman    sharedstatedir=$ac_optarg ;;
395c8a0e2f4SThomas Veerman
396c8a0e2f4SThomas Veerman  -site | --site | --sit)
397c8a0e2f4SThomas Veerman    ac_prev=site ;;
398c8a0e2f4SThomas Veerman  -site=* | --site=* | --sit=*)
399c8a0e2f4SThomas Veerman    site=$ac_optarg ;;
400c8a0e2f4SThomas Veerman
401c8a0e2f4SThomas Veerman  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402c8a0e2f4SThomas Veerman    ac_prev=srcdir ;;
403c8a0e2f4SThomas Veerman  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404c8a0e2f4SThomas Veerman    srcdir=$ac_optarg ;;
405c8a0e2f4SThomas Veerman
406c8a0e2f4SThomas Veerman  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407c8a0e2f4SThomas Veerman  | --syscon | --sysco | --sysc | --sys | --sy)
408c8a0e2f4SThomas Veerman    ac_prev=sysconfdir ;;
409c8a0e2f4SThomas Veerman  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410c8a0e2f4SThomas Veerman  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411c8a0e2f4SThomas Veerman    sysconfdir=$ac_optarg ;;
412c8a0e2f4SThomas Veerman
413c8a0e2f4SThomas Veerman  -target | --target | --targe | --targ | --tar | --ta | --t)
414c8a0e2f4SThomas Veerman    ac_prev=target_alias ;;
415c8a0e2f4SThomas Veerman  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416c8a0e2f4SThomas Veerman    target_alias=$ac_optarg ;;
417c8a0e2f4SThomas Veerman
418c8a0e2f4SThomas Veerman  -v | -verbose | --verbose | --verbos | --verbo | --verb)
419c8a0e2f4SThomas Veerman    verbose=yes ;;
420c8a0e2f4SThomas Veerman
421c8a0e2f4SThomas Veerman  -version | --version | --versio | --versi | --vers | -V)
422c8a0e2f4SThomas Veerman    ac_init_version=: ;;
423c8a0e2f4SThomas Veerman
424c8a0e2f4SThomas Veerman  -with-* | --with-*)
425c8a0e2f4SThomas Veerman    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
427c8a0e2f4SThomas Veerman    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid package name: $ac_package" >&2
429c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
430c8a0e2f4SThomas Veerman    ac_package=`echo $ac_package| sed 's/-/_/g'`
431c8a0e2f4SThomas Veerman    case $ac_option in
432c8a0e2f4SThomas Veerman      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433c8a0e2f4SThomas Veerman      *) ac_optarg=yes ;;
434c8a0e2f4SThomas Veerman    esac
435c8a0e2f4SThomas Veerman    eval "with_$ac_package='$ac_optarg'" ;;
436c8a0e2f4SThomas Veerman
437c8a0e2f4SThomas Veerman  -without-* | --without-*)
438c8a0e2f4SThomas Veerman    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
440c8a0e2f4SThomas Veerman    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid package name: $ac_package" >&2
442c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
443c8a0e2f4SThomas Veerman    ac_package=`echo $ac_package | sed 's/-/_/g'`
444c8a0e2f4SThomas Veerman    eval "with_$ac_package=no" ;;
445c8a0e2f4SThomas Veerman
446c8a0e2f4SThomas Veerman  --x)
447c8a0e2f4SThomas Veerman    # Obsolete; use --with-x.
448c8a0e2f4SThomas Veerman    with_x=yes ;;
449c8a0e2f4SThomas Veerman
450c8a0e2f4SThomas Veerman  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451c8a0e2f4SThomas Veerman  | --x-incl | --x-inc | --x-in | --x-i)
452c8a0e2f4SThomas Veerman    ac_prev=x_includes ;;
453c8a0e2f4SThomas Veerman  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454c8a0e2f4SThomas Veerman  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455c8a0e2f4SThomas Veerman    x_includes=$ac_optarg ;;
456c8a0e2f4SThomas Veerman
457c8a0e2f4SThomas Veerman  -x-libraries | --x-libraries | --x-librarie | --x-librari \
458c8a0e2f4SThomas Veerman  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459c8a0e2f4SThomas Veerman    ac_prev=x_libraries ;;
460c8a0e2f4SThomas Veerman  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461c8a0e2f4SThomas Veerman  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462c8a0e2f4SThomas Veerman    x_libraries=$ac_optarg ;;
463c8a0e2f4SThomas Veerman
464c8a0e2f4SThomas Veerman  -*) { echo "$as_me: error: unrecognized option: $ac_option
465c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&2
466c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
467c8a0e2f4SThomas Veerman    ;;
468c8a0e2f4SThomas Veerman
469c8a0e2f4SThomas Veerman  *=*)
470c8a0e2f4SThomas Veerman    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471c8a0e2f4SThomas Veerman    # Reject names that are not valid shell variable names.
472c8a0e2f4SThomas Veerman    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473c8a0e2f4SThomas Veerman      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
475c8a0e2f4SThomas Veerman    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476c8a0e2f4SThomas Veerman    eval "$ac_envvar='$ac_optarg'"
477c8a0e2f4SThomas Veerman    export $ac_envvar ;;
478c8a0e2f4SThomas Veerman
479c8a0e2f4SThomas Veerman  *)
480c8a0e2f4SThomas Veerman    # FIXME: should be removed in autoconf 3.0.
481c8a0e2f4SThomas Veerman    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482c8a0e2f4SThomas Veerman    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483c8a0e2f4SThomas Veerman      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484c8a0e2f4SThomas Veerman    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485c8a0e2f4SThomas Veerman    ;;
486c8a0e2f4SThomas Veerman
487c8a0e2f4SThomas Veerman  esac
488c8a0e2f4SThomas Veermandone
489c8a0e2f4SThomas Veerman
490c8a0e2f4SThomas Veermanif test -n "$ac_prev"; then
491c8a0e2f4SThomas Veerman  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492c8a0e2f4SThomas Veerman  { echo "$as_me: error: missing argument to $ac_option" >&2
493c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
494c8a0e2f4SThomas Veermanfi
495c8a0e2f4SThomas Veerman
496c8a0e2f4SThomas Veerman# Be sure to have absolute paths.
497c8a0e2f4SThomas Veermanfor ac_var in exec_prefix prefix
498c8a0e2f4SThomas Veermando
499c8a0e2f4SThomas Veerman  eval ac_val=$`echo $ac_var`
500c8a0e2f4SThomas Veerman  case $ac_val in
501c8a0e2f4SThomas Veerman    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502c8a0e2f4SThomas Veerman    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
504c8a0e2f4SThomas Veerman  esac
505c8a0e2f4SThomas Veermandone
506c8a0e2f4SThomas Veerman
507c8a0e2f4SThomas Veerman# Be sure to have absolute paths.
508c8a0e2f4SThomas Veermanfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509c8a0e2f4SThomas Veerman              localstatedir libdir includedir oldincludedir infodir mandir
510c8a0e2f4SThomas Veermando
511c8a0e2f4SThomas Veerman  eval ac_val=$`echo $ac_var`
512c8a0e2f4SThomas Veerman  case $ac_val in
513c8a0e2f4SThomas Veerman    [\\/$]* | ?:[\\/]* ) ;;
514c8a0e2f4SThomas Veerman    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
516c8a0e2f4SThomas Veerman  esac
517c8a0e2f4SThomas Veermandone
518c8a0e2f4SThomas Veerman
519c8a0e2f4SThomas Veerman# There might be people who depend on the old broken behavior: `$host'
520c8a0e2f4SThomas Veerman# used to hold the argument of --host etc.
521c8a0e2f4SThomas Veermanbuild=$build_alias
522c8a0e2f4SThomas Veermanhost=$host_alias
523c8a0e2f4SThomas Veermantarget=$target_alias
524c8a0e2f4SThomas Veerman
525c8a0e2f4SThomas Veerman# FIXME: should be removed in autoconf 3.0.
526c8a0e2f4SThomas Veermanif test "x$host_alias" != x; then
527c8a0e2f4SThomas Veerman  if test "x$build_alias" = x; then
528c8a0e2f4SThomas Veerman    cross_compiling=maybe
529c8a0e2f4SThomas Veerman    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530c8a0e2f4SThomas Veerman    If a cross compiler is detected then cross compile mode will be used." >&2
531c8a0e2f4SThomas Veerman  elif test "x$build_alias" != "x$host_alias"; then
532c8a0e2f4SThomas Veerman    cross_compiling=yes
533c8a0e2f4SThomas Veerman  fi
534c8a0e2f4SThomas Veermanfi
535c8a0e2f4SThomas Veerman
536c8a0e2f4SThomas Veermanac_tool_prefix=
537c8a0e2f4SThomas Veermantest -n "$host_alias" && ac_tool_prefix=$host_alias-
538c8a0e2f4SThomas Veerman
539c8a0e2f4SThomas Veermantest "$silent" = yes && exec 6>/dev/null
540c8a0e2f4SThomas Veerman
541c8a0e2f4SThomas Veerman# Find the source files, if location was not specified.
542c8a0e2f4SThomas Veermanif test -z "$srcdir"; then
543c8a0e2f4SThomas Veerman  ac_srcdir_defaulted=yes
544c8a0e2f4SThomas Veerman  # Try the directory containing this script, then its parent.
545c8a0e2f4SThomas Veerman  ac_prog=$0
546c8a0e2f4SThomas Veerman  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547c8a0e2f4SThomas Veerman  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548c8a0e2f4SThomas Veerman  srcdir=$ac_confdir
549c8a0e2f4SThomas Veerman  if test ! -r $srcdir/$ac_unique_file; then
550c8a0e2f4SThomas Veerman    srcdir=..
551c8a0e2f4SThomas Veerman  fi
552c8a0e2f4SThomas Veermanelse
553c8a0e2f4SThomas Veerman  ac_srcdir_defaulted=no
554c8a0e2f4SThomas Veermanfi
555c8a0e2f4SThomas Veermanif test ! -r $srcdir/$ac_unique_file; then
556c8a0e2f4SThomas Veerman  if test "$ac_srcdir_defaulted" = yes; then
557c8a0e2f4SThomas Veerman    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
559c8a0e2f4SThomas Veerman  else
560c8a0e2f4SThomas Veerman    { echo "$as_me: error: cannot find sources in $srcdir" >&2
561c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
562c8a0e2f4SThomas Veerman  fi
563c8a0e2f4SThomas Veermanfi
564c8a0e2f4SThomas Veermansrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565c8a0e2f4SThomas Veermanac_env_build_alias_set=${build_alias+set}
566c8a0e2f4SThomas Veermanac_env_build_alias_value=$build_alias
567c8a0e2f4SThomas Veermanac_cv_env_build_alias_set=${build_alias+set}
568c8a0e2f4SThomas Veermanac_cv_env_build_alias_value=$build_alias
569c8a0e2f4SThomas Veermanac_env_host_alias_set=${host_alias+set}
570c8a0e2f4SThomas Veermanac_env_host_alias_value=$host_alias
571c8a0e2f4SThomas Veermanac_cv_env_host_alias_set=${host_alias+set}
572c8a0e2f4SThomas Veermanac_cv_env_host_alias_value=$host_alias
573c8a0e2f4SThomas Veermanac_env_target_alias_set=${target_alias+set}
574c8a0e2f4SThomas Veermanac_env_target_alias_value=$target_alias
575c8a0e2f4SThomas Veermanac_cv_env_target_alias_set=${target_alias+set}
576c8a0e2f4SThomas Veermanac_cv_env_target_alias_value=$target_alias
577c8a0e2f4SThomas Veermanac_env_CC_set=${CC+set}
578c8a0e2f4SThomas Veermanac_env_CC_value=$CC
579c8a0e2f4SThomas Veermanac_cv_env_CC_set=${CC+set}
580c8a0e2f4SThomas Veermanac_cv_env_CC_value=$CC
581c8a0e2f4SThomas Veermanac_env_CFLAGS_set=${CFLAGS+set}
582c8a0e2f4SThomas Veermanac_env_CFLAGS_value=$CFLAGS
583c8a0e2f4SThomas Veermanac_cv_env_CFLAGS_set=${CFLAGS+set}
584c8a0e2f4SThomas Veermanac_cv_env_CFLAGS_value=$CFLAGS
585c8a0e2f4SThomas Veermanac_env_LDFLAGS_set=${LDFLAGS+set}
586c8a0e2f4SThomas Veermanac_env_LDFLAGS_value=$LDFLAGS
587c8a0e2f4SThomas Veermanac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588c8a0e2f4SThomas Veermanac_cv_env_LDFLAGS_value=$LDFLAGS
589c8a0e2f4SThomas Veermanac_env_CPPFLAGS_set=${CPPFLAGS+set}
590c8a0e2f4SThomas Veermanac_env_CPPFLAGS_value=$CPPFLAGS
591c8a0e2f4SThomas Veermanac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592c8a0e2f4SThomas Veermanac_cv_env_CPPFLAGS_value=$CPPFLAGS
593c8a0e2f4SThomas Veermanac_env_CPP_set=${CPP+set}
594c8a0e2f4SThomas Veermanac_env_CPP_value=$CPP
595c8a0e2f4SThomas Veermanac_cv_env_CPP_set=${CPP+set}
596c8a0e2f4SThomas Veermanac_cv_env_CPP_value=$CPP
597c8a0e2f4SThomas Veerman
598c8a0e2f4SThomas Veerman#
599c8a0e2f4SThomas Veerman# Report the --help message.
600c8a0e2f4SThomas Veerman#
601c8a0e2f4SThomas Veermanif test "$ac_init_help" = "long"; then
602c8a0e2f4SThomas Veerman  # Omit some internal or obsolete options to make the list less imposing.
603c8a0e2f4SThomas Veerman  # This message is too long to be a string in the A/UX 3.1 sh.
604c8a0e2f4SThomas Veerman  cat <<EOF
605c8a0e2f4SThomas Veerman\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
606c8a0e2f4SThomas Veerman
607c8a0e2f4SThomas VeermanUsage: $0 [OPTION]... [VAR=VALUE]...
608c8a0e2f4SThomas Veerman
609c8a0e2f4SThomas VeermanTo assign environment variables (e.g., CC, CFLAGS...), specify them as
610c8a0e2f4SThomas VeermanVAR=VALUE.  See below for descriptions of some of the useful variables.
611c8a0e2f4SThomas Veerman
612c8a0e2f4SThomas VeermanDefaults for the options are specified in brackets.
613c8a0e2f4SThomas Veerman
614c8a0e2f4SThomas VeermanConfiguration:
615c8a0e2f4SThomas Veerman  -h, --help              display this help and exit
616c8a0e2f4SThomas Veerman      --help=short        display options specific to this package
617c8a0e2f4SThomas Veerman      --help=recursive    display the short help of all the included packages
618c8a0e2f4SThomas Veerman  -V, --version           display version information and exit
619c8a0e2f4SThomas Veerman  -q, --quiet, --silent   do not print \`checking...' messages
620c8a0e2f4SThomas Veerman      --cache-file=FILE   cache test results in FILE [disabled]
621c8a0e2f4SThomas Veerman  -C, --config-cache      alias for \`--cache-file=config.cache'
622c8a0e2f4SThomas Veerman  -n, --no-create         do not create output files
623c8a0e2f4SThomas Veerman      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
624c8a0e2f4SThomas Veerman
625c8a0e2f4SThomas VeermanEOF
626c8a0e2f4SThomas Veerman
627c8a0e2f4SThomas Veerman  cat <<EOF
628c8a0e2f4SThomas VeermanInstallation directories:
629c8a0e2f4SThomas Veerman  --prefix=PREFIX         install architecture-independent files in PREFIX
630c8a0e2f4SThomas Veerman                          [$ac_default_prefix]
631c8a0e2f4SThomas Veerman  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
632c8a0e2f4SThomas Veerman                          [PREFIX]
633c8a0e2f4SThomas Veerman
634c8a0e2f4SThomas VeermanBy default, \`make install' will install all the files in
635c8a0e2f4SThomas Veerman\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
636c8a0e2f4SThomas Veermanan installation prefix other than \`$ac_default_prefix' using \`--prefix',
637c8a0e2f4SThomas Veermanfor instance \`--prefix=\$HOME'.
638c8a0e2f4SThomas Veerman
639c8a0e2f4SThomas VeermanFor better control, use the options below.
640c8a0e2f4SThomas Veerman
641c8a0e2f4SThomas VeermanFine tuning of the installation directories:
642c8a0e2f4SThomas Veerman  --bindir=DIR           user executables [EPREFIX/bin]
643c8a0e2f4SThomas Veerman  --sbindir=DIR          system admin executables [EPREFIX/sbin]
644c8a0e2f4SThomas Veerman  --libexecdir=DIR       program executables [EPREFIX/libexec]
645c8a0e2f4SThomas Veerman  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
646c8a0e2f4SThomas Veerman  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
647c8a0e2f4SThomas Veerman  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
648c8a0e2f4SThomas Veerman  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
649c8a0e2f4SThomas Veerman  --libdir=DIR           object code libraries [EPREFIX/lib]
650c8a0e2f4SThomas Veerman  --includedir=DIR       C header files [PREFIX/include]
651c8a0e2f4SThomas Veerman  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
652c8a0e2f4SThomas Veerman  --infodir=DIR          info documentation [PREFIX/info]
653c8a0e2f4SThomas Veerman  --mandir=DIR           man documentation [PREFIX/man]
654c8a0e2f4SThomas VeermanEOF
655c8a0e2f4SThomas Veerman
656c8a0e2f4SThomas Veerman  cat <<\EOF
657c8a0e2f4SThomas VeermanEOF
658c8a0e2f4SThomas Veermanfi
659c8a0e2f4SThomas Veerman
660c8a0e2f4SThomas Veermanif test -n "$ac_init_help"; then
661c8a0e2f4SThomas Veerman  case $ac_init_help in
662c8a0e2f4SThomas Veerman     short | recursive ) echo "Configuration of libnbcompat noversion:";;
663c8a0e2f4SThomas Veerman   esac
664c8a0e2f4SThomas Veerman  cat <<\EOF
665c8a0e2f4SThomas Veerman
666c8a0e2f4SThomas VeermanSome influential environment variables:
667c8a0e2f4SThomas Veerman  CC          C compiler command
668c8a0e2f4SThomas Veerman  CFLAGS      C compiler flags
669c8a0e2f4SThomas Veerman  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
670c8a0e2f4SThomas Veerman              nonstandard directory <lib dir>
671c8a0e2f4SThomas Veerman  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
672c8a0e2f4SThomas Veerman              headers in a nonstandard directory <include dir>
673c8a0e2f4SThomas Veerman  CPP         C preprocessor
674c8a0e2f4SThomas Veerman
675c8a0e2f4SThomas VeermanUse these variables to override the choices made by `configure' or to help
676c8a0e2f4SThomas Veermanit to find libraries and programs with nonstandard names/locations.
677c8a0e2f4SThomas Veerman
678c8a0e2f4SThomas VeermanReport bugs to <lib-bug-people@NetBSD.org>.
679c8a0e2f4SThomas VeermanEOF
680c8a0e2f4SThomas Veermanfi
681c8a0e2f4SThomas Veerman
682c8a0e2f4SThomas Veermanif test "$ac_init_help" = "recursive"; then
683c8a0e2f4SThomas Veerman  # If there are subdirs, report their specific --help.
684c8a0e2f4SThomas Veerman  ac_popdir=`pwd`
685c8a0e2f4SThomas Veerman  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686c8a0e2f4SThomas Veerman    cd $ac_subdir
687c8a0e2f4SThomas Veerman    # A "../" for each directory in /$ac_subdir.
688c8a0e2f4SThomas Veerman    ac_dots=`echo $ac_subdir |
689c8a0e2f4SThomas Veerman             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690c8a0e2f4SThomas Veerman
691c8a0e2f4SThomas Veerman    case $srcdir in
692c8a0e2f4SThomas Veerman    .) # No --srcdir option.  We are building in place.
693c8a0e2f4SThomas Veerman      ac_sub_srcdir=$srcdir ;;
694c8a0e2f4SThomas Veerman    [\\/]* | ?:[\\/]* ) # Absolute path.
695c8a0e2f4SThomas Veerman      ac_sub_srcdir=$srcdir/$ac_subdir ;;
696c8a0e2f4SThomas Veerman    *) # Relative path.
697c8a0e2f4SThomas Veerman      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698c8a0e2f4SThomas Veerman    esac
699c8a0e2f4SThomas Veerman
700c8a0e2f4SThomas Veerman    # Check for guested configure; otherwise get Cygnus style configure.
701c8a0e2f4SThomas Veerman    if test -f $ac_sub_srcdir/configure.gnu; then
702c8a0e2f4SThomas Veerman      echo
703c8a0e2f4SThomas Veerman      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
704c8a0e2f4SThomas Veerman    elif test -f $ac_sub_srcdir/configure; then
705c8a0e2f4SThomas Veerman      echo
706c8a0e2f4SThomas Veerman      $SHELL $ac_sub_srcdir/configure  --help=recursive
707c8a0e2f4SThomas Veerman    elif test -f $ac_sub_srcdir/configure.ac ||
708c8a0e2f4SThomas Veerman           test -f $ac_sub_srcdir/configure.in; then
709c8a0e2f4SThomas Veerman      echo
710c8a0e2f4SThomas Veerman      $ac_configure --help
711c8a0e2f4SThomas Veerman    else
712c8a0e2f4SThomas Veerman      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713c8a0e2f4SThomas Veerman    fi
714c8a0e2f4SThomas Veerman    cd $ac_popdir
715c8a0e2f4SThomas Veerman  done
716c8a0e2f4SThomas Veermanfi
717c8a0e2f4SThomas Veerman
718c8a0e2f4SThomas Veermantest -n "$ac_init_help" && exit 0
719c8a0e2f4SThomas Veermanif $ac_init_version; then
720c8a0e2f4SThomas Veerman  cat <<\EOF
721c8a0e2f4SThomas Veermanlibnbcompat configure noversion
722c8a0e2f4SThomas Veermangenerated by GNU Autoconf 2.52
723c8a0e2f4SThomas Veerman
724c8a0e2f4SThomas VeermanCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
725c8a0e2f4SThomas VeermanFree Software Foundation, Inc.
726c8a0e2f4SThomas VeermanThis configure script is free software; the Free Software Foundation
727c8a0e2f4SThomas Veermangives unlimited permission to copy, distribute and modify it.
728c8a0e2f4SThomas VeermanEOF
729c8a0e2f4SThomas Veerman  exit 0
730c8a0e2f4SThomas Veermanfi
731c8a0e2f4SThomas Veermanexec 5>config.log
732c8a0e2f4SThomas Veermancat >&5 <<EOF
733c8a0e2f4SThomas VeermanThis file contains any messages produced by compilers while
734c8a0e2f4SThomas Veermanrunning configure, to aid debugging if configure makes a mistake.
735c8a0e2f4SThomas Veerman
736c8a0e2f4SThomas VeermanIt was created by libnbcompat $as_me noversion, which was
737c8a0e2f4SThomas Veermangenerated by GNU Autoconf 2.52.  Invocation command line was
738c8a0e2f4SThomas Veerman
739c8a0e2f4SThomas Veerman  $ $0 $@
740c8a0e2f4SThomas Veerman
741c8a0e2f4SThomas VeermanEOF
742c8a0e2f4SThomas Veerman{
743c8a0e2f4SThomas Veermancat <<_ASUNAME
744c8a0e2f4SThomas Veerman## ---------- ##
745c8a0e2f4SThomas Veerman## Platform.  ##
746c8a0e2f4SThomas Veerman## ---------- ##
747c8a0e2f4SThomas Veerman
748c8a0e2f4SThomas Veermanhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
749c8a0e2f4SThomas Veermanuname -m = `(uname -m) 2>/dev/null || echo unknown`
750c8a0e2f4SThomas Veermanuname -r = `(uname -r) 2>/dev/null || echo unknown`
751c8a0e2f4SThomas Veermanuname -s = `(uname -s) 2>/dev/null || echo unknown`
752c8a0e2f4SThomas Veermanuname -v = `(uname -v) 2>/dev/null || echo unknown`
753c8a0e2f4SThomas Veerman
754c8a0e2f4SThomas Veerman/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
755c8a0e2f4SThomas Veerman/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
756c8a0e2f4SThomas Veerman
757c8a0e2f4SThomas Veerman/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
758c8a0e2f4SThomas Veerman/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
759c8a0e2f4SThomas Veerman/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
760c8a0e2f4SThomas Veermanhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
761c8a0e2f4SThomas Veerman/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
762c8a0e2f4SThomas Veerman/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
763c8a0e2f4SThomas Veerman/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
764c8a0e2f4SThomas Veerman
765c8a0e2f4SThomas VeermanPATH = $PATH
766c8a0e2f4SThomas Veerman
767c8a0e2f4SThomas Veerman_ASUNAME
768c8a0e2f4SThomas Veerman} >&5
769c8a0e2f4SThomas Veerman
770c8a0e2f4SThomas Veermancat >&5 <<EOF
771c8a0e2f4SThomas Veerman## ------------ ##
772c8a0e2f4SThomas Veerman## Core tests.  ##
773c8a0e2f4SThomas Veerman## ------------ ##
774c8a0e2f4SThomas Veerman
775c8a0e2f4SThomas VeermanEOF
776c8a0e2f4SThomas Veerman
777c8a0e2f4SThomas Veerman# Keep a trace of the command line.
778c8a0e2f4SThomas Veerman# Strip out --no-create and --no-recursion so they do not pile up.
779c8a0e2f4SThomas Veerman# Also quote any args containing shell meta-characters.
780c8a0e2f4SThomas Veermanac_configure_args=
781c8a0e2f4SThomas Veermanac_sep=
782c8a0e2f4SThomas Veermanfor ac_arg
783c8a0e2f4SThomas Veermando
784c8a0e2f4SThomas Veerman  case $ac_arg in
785c8a0e2f4SThomas Veerman  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786c8a0e2f4SThomas Veerman  | --no-cr | --no-c) ;;
787c8a0e2f4SThomas Veerman  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788c8a0e2f4SThomas Veerman  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789c8a0e2f4SThomas Veerman  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790c8a0e2f4SThomas Veerman    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791c8a0e2f4SThomas Veerman    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792c8a0e2f4SThomas Veerman    ac_sep=" " ;;
793c8a0e2f4SThomas Veerman  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794c8a0e2f4SThomas Veerman     ac_sep=" " ;;
795c8a0e2f4SThomas Veerman  esac
796c8a0e2f4SThomas Veerman  # Get rid of the leading space.
797c8a0e2f4SThomas Veermandone
798c8a0e2f4SThomas Veerman
799c8a0e2f4SThomas Veerman# When interrupted or exit'd, cleanup temporary files, and complete
800c8a0e2f4SThomas Veerman# config.log.  We remove comments because anyway the quotes in there
801c8a0e2f4SThomas Veerman# would cause problems or look ugly.
802c8a0e2f4SThomas Veermantrap 'exit_status=$?
803c8a0e2f4SThomas Veerman  # Save into config.log some information that might help in debugging.
804c8a0e2f4SThomas Veerman  echo >&5
805c8a0e2f4SThomas Veerman  echo "## ----------------- ##" >&5
806c8a0e2f4SThomas Veerman  echo "## Cache variables.  ##" >&5
807c8a0e2f4SThomas Veerman  echo "## ----------------- ##" >&5
808c8a0e2f4SThomas Veerman  echo >&5
809c8a0e2f4SThomas Veerman  # The following way of writing the cache mishandles newlines in values,
810c8a0e2f4SThomas Veerman{
811c8a0e2f4SThomas Veerman  (set) 2>&1 |
812c8a0e2f4SThomas Veerman    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
813c8a0e2f4SThomas Veerman    *ac_space=\ *)
814c8a0e2f4SThomas Veerman      sed -n \
815c8a0e2f4SThomas Veerman        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
816c8a0e2f4SThomas Veerman    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
817c8a0e2f4SThomas Veerman      ;;
818c8a0e2f4SThomas Veerman    *)
819c8a0e2f4SThomas Veerman      sed -n \
820c8a0e2f4SThomas Veerman        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
821c8a0e2f4SThomas Veerman      ;;
822c8a0e2f4SThomas Veerman    esac;
823c8a0e2f4SThomas Veerman} >&5
824c8a0e2f4SThomas Veerman  sed "/^$/d" confdefs.h >conftest.log
825c8a0e2f4SThomas Veerman  if test -s conftest.log; then
826c8a0e2f4SThomas Veerman    echo >&5
827c8a0e2f4SThomas Veerman    echo "## ------------ ##" >&5
828c8a0e2f4SThomas Veerman    echo "## confdefs.h.  ##" >&5
829c8a0e2f4SThomas Veerman    echo "## ------------ ##" >&5
830c8a0e2f4SThomas Veerman    echo >&5
831c8a0e2f4SThomas Veerman    cat conftest.log >&5
832c8a0e2f4SThomas Veerman  fi
833c8a0e2f4SThomas Veerman  (echo; echo) >&5
834c8a0e2f4SThomas Veerman  test "$ac_signal" != 0 &&
835c8a0e2f4SThomas Veerman    echo "$as_me: caught signal $ac_signal" >&5
836c8a0e2f4SThomas Veerman  echo "$as_me: exit $exit_status" >&5
837c8a0e2f4SThomas Veerman  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
838c8a0e2f4SThomas Veerman    exit $exit_status
839c8a0e2f4SThomas Veerman     ' 0
840c8a0e2f4SThomas Veermanfor ac_signal in 1 2 13 15; do
841c8a0e2f4SThomas Veerman  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
842c8a0e2f4SThomas Veermandone
843c8a0e2f4SThomas Veermanac_signal=0
844c8a0e2f4SThomas Veerman
845c8a0e2f4SThomas Veerman# confdefs.h avoids OS command line length limits that DEFS can exceed.
846c8a0e2f4SThomas Veermanrm -rf conftest* confdefs.h
847c8a0e2f4SThomas Veerman# AIX cpp loses on an empty file, so make sure it contains at least a newline.
848c8a0e2f4SThomas Veermanecho >confdefs.h
849c8a0e2f4SThomas Veerman
850c8a0e2f4SThomas Veerman# Let the site file select an alternate cache file if it wants to.
851c8a0e2f4SThomas Veerman# Prefer explicitly selected file to automatically selected ones.
852c8a0e2f4SThomas Veermanif test -z "$CONFIG_SITE"; then
853c8a0e2f4SThomas Veerman  if test "x$prefix" != xNONE; then
854c8a0e2f4SThomas Veerman    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855c8a0e2f4SThomas Veerman  else
856c8a0e2f4SThomas Veerman    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857c8a0e2f4SThomas Veerman  fi
858c8a0e2f4SThomas Veermanfi
859c8a0e2f4SThomas Veermanfor ac_site_file in $CONFIG_SITE; do
860c8a0e2f4SThomas Veerman  if test -r "$ac_site_file"; then
861c8a0e2f4SThomas Veerman    { echo "$as_me:861: loading site script $ac_site_file" >&5
862c8a0e2f4SThomas Veermanecho "$as_me: loading site script $ac_site_file" >&6;}
863c8a0e2f4SThomas Veerman    cat "$ac_site_file" >&5
864c8a0e2f4SThomas Veerman    . "$ac_site_file"
865c8a0e2f4SThomas Veerman  fi
866c8a0e2f4SThomas Veermandone
867c8a0e2f4SThomas Veerman
868c8a0e2f4SThomas Veermanif test -r "$cache_file"; then
869c8a0e2f4SThomas Veerman  # Some versions of bash will fail to source /dev/null (special
870c8a0e2f4SThomas Veerman  # files actually), so we avoid doing that.
871c8a0e2f4SThomas Veerman  if test -f "$cache_file"; then
872c8a0e2f4SThomas Veerman    { echo "$as_me:872: loading cache $cache_file" >&5
873c8a0e2f4SThomas Veermanecho "$as_me: loading cache $cache_file" >&6;}
874c8a0e2f4SThomas Veerman    case $cache_file in
875c8a0e2f4SThomas Veerman      [\\/]* | ?:[\\/]* ) . $cache_file;;
876c8a0e2f4SThomas Veerman      *)                      . ./$cache_file;;
877c8a0e2f4SThomas Veerman    esac
878c8a0e2f4SThomas Veerman  fi
879c8a0e2f4SThomas Veermanelse
880c8a0e2f4SThomas Veerman  { echo "$as_me:880: creating cache $cache_file" >&5
881c8a0e2f4SThomas Veermanecho "$as_me: creating cache $cache_file" >&6;}
882c8a0e2f4SThomas Veerman  >$cache_file
883c8a0e2f4SThomas Veermanfi
884c8a0e2f4SThomas Veerman
885c8a0e2f4SThomas Veerman# Check that the precious variables saved in the cache have kept the same
886c8a0e2f4SThomas Veerman# value.
887c8a0e2f4SThomas Veermanac_cache_corrupted=false
888c8a0e2f4SThomas Veermanfor ac_var in `(set) 2>&1 |
889c8a0e2f4SThomas Veerman               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
890c8a0e2f4SThomas Veerman  eval ac_old_set=\$ac_cv_env_${ac_var}_set
891c8a0e2f4SThomas Veerman  eval ac_new_set=\$ac_env_${ac_var}_set
892c8a0e2f4SThomas Veerman  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
893c8a0e2f4SThomas Veerman  eval ac_new_val="\$ac_env_${ac_var}_value"
894c8a0e2f4SThomas Veerman  case $ac_old_set,$ac_new_set in
895c8a0e2f4SThomas Veerman    set,)
896c8a0e2f4SThomas Veerman      { echo "$as_me:896: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
897c8a0e2f4SThomas Veermanecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
898c8a0e2f4SThomas Veerman      ac_cache_corrupted=: ;;
899c8a0e2f4SThomas Veerman    ,set)
900c8a0e2f4SThomas Veerman      { echo "$as_me:900: error: \`$ac_var' was not set in the previous run" >&5
901c8a0e2f4SThomas Veermanecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
902c8a0e2f4SThomas Veerman      ac_cache_corrupted=: ;;
903c8a0e2f4SThomas Veerman    ,);;
904c8a0e2f4SThomas Veerman    *)
905c8a0e2f4SThomas Veerman      if test "x$ac_old_val" != "x$ac_new_val"; then
906c8a0e2f4SThomas Veerman        { echo "$as_me:906: error: \`$ac_var' has changed since the previous run:" >&5
907c8a0e2f4SThomas Veermanecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
908c8a0e2f4SThomas Veerman        { echo "$as_me:908:   former value:  $ac_old_val" >&5
909c8a0e2f4SThomas Veermanecho "$as_me:   former value:  $ac_old_val" >&2;}
910c8a0e2f4SThomas Veerman        { echo "$as_me:910:   current value: $ac_new_val" >&5
911c8a0e2f4SThomas Veermanecho "$as_me:   current value: $ac_new_val" >&2;}
912c8a0e2f4SThomas Veerman        ac_cache_corrupted=:
913c8a0e2f4SThomas Veerman      fi;;
914c8a0e2f4SThomas Veerman  esac
915c8a0e2f4SThomas Veerman  # Pass precious variables to config.status.  It doesn't matter if
916c8a0e2f4SThomas Veerman  # we pass some twice (in addition to the command line arguments).
917c8a0e2f4SThomas Veerman  if test "$ac_new_set" = set; then
918c8a0e2f4SThomas Veerman    case $ac_new_val in
919c8a0e2f4SThomas Veerman    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
920c8a0e2f4SThomas Veerman      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
921c8a0e2f4SThomas Veerman      ac_configure_args="$ac_configure_args '$ac_arg'"
922c8a0e2f4SThomas Veerman      ;;
923c8a0e2f4SThomas Veerman    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924c8a0e2f4SThomas Veerman       ;;
925c8a0e2f4SThomas Veerman    esac
926c8a0e2f4SThomas Veerman  fi
927c8a0e2f4SThomas Veermandone
928c8a0e2f4SThomas Veermanif $ac_cache_corrupted; then
929c8a0e2f4SThomas Veerman  { echo "$as_me:929: error: changes in the environment can compromise the build" >&5
930c8a0e2f4SThomas Veermanecho "$as_me: error: changes in the environment can compromise the build" >&2;}
931c8a0e2f4SThomas Veerman  { { echo "$as_me:931: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
932c8a0e2f4SThomas Veermanecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
933c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
934c8a0e2f4SThomas Veermanfi
935c8a0e2f4SThomas Veerman
936c8a0e2f4SThomas Veermanac_ext=c
937c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
938c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
939c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
940c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
941c8a0e2f4SThomas Veerman
942c8a0e2f4SThomas Veermancase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943c8a0e2f4SThomas Veerman  *c*,-n*) ECHO_N= ECHO_C='
944c8a0e2f4SThomas Veerman' ECHO_T='	' ;;
945c8a0e2f4SThomas Veerman  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946c8a0e2f4SThomas Veerman  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
947c8a0e2f4SThomas Veermanesac
948c8a0e2f4SThomas Veermanecho "#! $SHELL" >conftest.sh
949c8a0e2f4SThomas Veermanecho  "exit 0"   >>conftest.sh
950c8a0e2f4SThomas Veermanchmod +x conftest.sh
951c8a0e2f4SThomas Veermanif { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952c8a0e2f4SThomas Veerman  (PATH=".;."; conftest.sh) 2>&5
953c8a0e2f4SThomas Veerman  ac_status=$?
954c8a0e2f4SThomas Veerman  echo "$as_me:954: \$? = $ac_status" >&5
955c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
956c8a0e2f4SThomas Veerman  ac_path_separator=';'
957c8a0e2f4SThomas Veermanelse
958c8a0e2f4SThomas Veerman  ac_path_separator=:
959c8a0e2f4SThomas Veermanfi
960c8a0e2f4SThomas VeermanPATH_SEPARATOR="$ac_path_separator"
961c8a0e2f4SThomas Veermanrm -f conftest.sh
962c8a0e2f4SThomas Veerman
963c8a0e2f4SThomas Veermanac_config_headers="$ac_config_headers nbtool_config.h"
964c8a0e2f4SThomas Veerman
965c8a0e2f4SThomas Veermanac_config_files="$ac_config_files defs.mk"
966c8a0e2f4SThomas Veerman
967c8a0e2f4SThomas Veerman# Autoheader header and footer
968c8a0e2f4SThomas Veerman
969c8a0e2f4SThomas Veerman# AC_NETBSD
970c8a0e2f4SThomas Veerman
971c8a0e2f4SThomas Veermanac_ext=c
972c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
973c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
976c8a0e2f4SThomas Veermanif test -n "$ac_tool_prefix"; then
977c8a0e2f4SThomas Veerman  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
978c8a0e2f4SThomas Veermanset dummy ${ac_tool_prefix}gcc; ac_word=$2
979c8a0e2f4SThomas Veermanecho "$as_me:979: checking for $ac_word" >&5
980c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
981c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
982c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
983c8a0e2f4SThomas Veermanelse
984c8a0e2f4SThomas Veerman  if test -n "$CC"; then
985c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
986c8a0e2f4SThomas Veermanelse
987c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
988c8a0e2f4SThomas Veermanac_dummy="$PATH"
989c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
990c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
991c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
992c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
993c8a0e2f4SThomas Veermanac_cv_prog_CC="${ac_tool_prefix}gcc"
994c8a0e2f4SThomas Veermanecho "$as_me:994: found $ac_dir/$ac_word" >&5
995c8a0e2f4SThomas Veermanbreak
996c8a0e2f4SThomas Veermandone
997c8a0e2f4SThomas Veerman
998c8a0e2f4SThomas Veermanfi
999c8a0e2f4SThomas Veermanfi
1000c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1001c8a0e2f4SThomas Veermanif test -n "$CC"; then
1002c8a0e2f4SThomas Veerman  echo "$as_me:1002: result: $CC" >&5
1003c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1004c8a0e2f4SThomas Veermanelse
1005c8a0e2f4SThomas Veerman  echo "$as_me:1005: result: no" >&5
1006c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1007c8a0e2f4SThomas Veermanfi
1008c8a0e2f4SThomas Veerman
1009c8a0e2f4SThomas Veermanfi
1010c8a0e2f4SThomas Veermanif test -z "$ac_cv_prog_CC"; then
1011c8a0e2f4SThomas Veerman  ac_ct_CC=$CC
1012c8a0e2f4SThomas Veerman  # Extract the first word of "gcc", so it can be a program name with args.
1013c8a0e2f4SThomas Veermanset dummy gcc; ac_word=$2
1014c8a0e2f4SThomas Veermanecho "$as_me:1014: checking for $ac_word" >&5
1015c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1016c8a0e2f4SThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1017c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1018c8a0e2f4SThomas Veermanelse
1019c8a0e2f4SThomas Veerman  if test -n "$ac_ct_CC"; then
1020c8a0e2f4SThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1021c8a0e2f4SThomas Veermanelse
1022c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1023c8a0e2f4SThomas Veermanac_dummy="$PATH"
1024c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1025c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1026c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1027c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1028c8a0e2f4SThomas Veermanac_cv_prog_ac_ct_CC="gcc"
1029c8a0e2f4SThomas Veermanecho "$as_me:1029: found $ac_dir/$ac_word" >&5
1030c8a0e2f4SThomas Veermanbreak
1031c8a0e2f4SThomas Veermandone
1032c8a0e2f4SThomas Veerman
1033c8a0e2f4SThomas Veermanfi
1034c8a0e2f4SThomas Veermanfi
1035c8a0e2f4SThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
1036c8a0e2f4SThomas Veermanif test -n "$ac_ct_CC"; then
1037c8a0e2f4SThomas Veerman  echo "$as_me:1037: result: $ac_ct_CC" >&5
1038c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
1039c8a0e2f4SThomas Veermanelse
1040c8a0e2f4SThomas Veerman  echo "$as_me:1040: result: no" >&5
1041c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1042c8a0e2f4SThomas Veermanfi
1043c8a0e2f4SThomas Veerman
1044c8a0e2f4SThomas Veerman  CC=$ac_ct_CC
1045c8a0e2f4SThomas Veermanelse
1046c8a0e2f4SThomas Veerman  CC="$ac_cv_prog_CC"
1047c8a0e2f4SThomas Veermanfi
1048c8a0e2f4SThomas Veerman
1049c8a0e2f4SThomas Veermanif test -z "$CC"; then
1050c8a0e2f4SThomas Veerman  if test -n "$ac_tool_prefix"; then
1051c8a0e2f4SThomas Veerman  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1052c8a0e2f4SThomas Veermanset dummy ${ac_tool_prefix}cc; ac_word=$2
1053c8a0e2f4SThomas Veermanecho "$as_me:1053: checking for $ac_word" >&5
1054c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1055c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
1056c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1057c8a0e2f4SThomas Veermanelse
1058c8a0e2f4SThomas Veerman  if test -n "$CC"; then
1059c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
1060c8a0e2f4SThomas Veermanelse
1061c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1062c8a0e2f4SThomas Veermanac_dummy="$PATH"
1063c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1064c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1065c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1066c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1067c8a0e2f4SThomas Veermanac_cv_prog_CC="${ac_tool_prefix}cc"
1068c8a0e2f4SThomas Veermanecho "$as_me:1068: found $ac_dir/$ac_word" >&5
1069c8a0e2f4SThomas Veermanbreak
1070c8a0e2f4SThomas Veermandone
1071c8a0e2f4SThomas Veerman
1072c8a0e2f4SThomas Veermanfi
1073c8a0e2f4SThomas Veermanfi
1074c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1075c8a0e2f4SThomas Veermanif test -n "$CC"; then
1076c8a0e2f4SThomas Veerman  echo "$as_me:1076: result: $CC" >&5
1077c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1078c8a0e2f4SThomas Veermanelse
1079c8a0e2f4SThomas Veerman  echo "$as_me:1079: result: no" >&5
1080c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1081c8a0e2f4SThomas Veermanfi
1082c8a0e2f4SThomas Veerman
1083c8a0e2f4SThomas Veermanfi
1084c8a0e2f4SThomas Veermanif test -z "$ac_cv_prog_CC"; then
1085c8a0e2f4SThomas Veerman  ac_ct_CC=$CC
1086c8a0e2f4SThomas Veerman  # Extract the first word of "cc", so it can be a program name with args.
1087c8a0e2f4SThomas Veermanset dummy cc; ac_word=$2
1088c8a0e2f4SThomas Veermanecho "$as_me:1088: checking for $ac_word" >&5
1089c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1090c8a0e2f4SThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1091c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1092c8a0e2f4SThomas Veermanelse
1093c8a0e2f4SThomas Veerman  if test -n "$ac_ct_CC"; then
1094c8a0e2f4SThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1095c8a0e2f4SThomas Veermanelse
1096c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1097c8a0e2f4SThomas Veermanac_dummy="$PATH"
1098c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1099c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1100c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1101c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1102c8a0e2f4SThomas Veermanac_cv_prog_ac_ct_CC="cc"
1103c8a0e2f4SThomas Veermanecho "$as_me:1103: found $ac_dir/$ac_word" >&5
1104c8a0e2f4SThomas Veermanbreak
1105c8a0e2f4SThomas Veermandone
1106c8a0e2f4SThomas Veerman
1107c8a0e2f4SThomas Veermanfi
1108c8a0e2f4SThomas Veermanfi
1109c8a0e2f4SThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
1110c8a0e2f4SThomas Veermanif test -n "$ac_ct_CC"; then
1111c8a0e2f4SThomas Veerman  echo "$as_me:1111: result: $ac_ct_CC" >&5
1112c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
1113c8a0e2f4SThomas Veermanelse
1114c8a0e2f4SThomas Veerman  echo "$as_me:1114: result: no" >&5
1115c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1116c8a0e2f4SThomas Veermanfi
1117c8a0e2f4SThomas Veerman
1118c8a0e2f4SThomas Veerman  CC=$ac_ct_CC
1119c8a0e2f4SThomas Veermanelse
1120c8a0e2f4SThomas Veerman  CC="$ac_cv_prog_CC"
1121c8a0e2f4SThomas Veermanfi
1122c8a0e2f4SThomas Veerman
1123c8a0e2f4SThomas Veermanfi
1124c8a0e2f4SThomas Veermanif test -z "$CC"; then
1125c8a0e2f4SThomas Veerman  # Extract the first word of "cc", so it can be a program name with args.
1126c8a0e2f4SThomas Veermanset dummy cc; ac_word=$2
1127c8a0e2f4SThomas Veermanecho "$as_me:1127: checking for $ac_word" >&5
1128c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1129c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
1130c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1131c8a0e2f4SThomas Veermanelse
1132c8a0e2f4SThomas Veerman  if test -n "$CC"; then
1133c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
1134c8a0e2f4SThomas Veermanelse
1135c8a0e2f4SThomas Veerman  ac_prog_rejected=no
1136c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1137c8a0e2f4SThomas Veermanac_dummy="$PATH"
1138c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1139c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1140c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1141c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1142c8a0e2f4SThomas Veermanif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1143c8a0e2f4SThomas Veerman  ac_prog_rejected=yes
1144c8a0e2f4SThomas Veerman  continue
1145c8a0e2f4SThomas Veermanfi
1146c8a0e2f4SThomas Veermanac_cv_prog_CC="cc"
1147c8a0e2f4SThomas Veermanecho "$as_me:1147: found $ac_dir/$ac_word" >&5
1148c8a0e2f4SThomas Veermanbreak
1149c8a0e2f4SThomas Veermandone
1150c8a0e2f4SThomas Veerman
1151c8a0e2f4SThomas Veermanif test $ac_prog_rejected = yes; then
1152c8a0e2f4SThomas Veerman  # We found a bogon in the path, so make sure we never use it.
1153c8a0e2f4SThomas Veerman  set dummy $ac_cv_prog_CC
1154c8a0e2f4SThomas Veerman  shift
1155c8a0e2f4SThomas Veerman  if test $# != 0; then
1156c8a0e2f4SThomas Veerman    # We chose a different compiler from the bogus one.
1157c8a0e2f4SThomas Veerman    # However, it has the same basename, so the bogon will be chosen
1158c8a0e2f4SThomas Veerman    # first if we set CC to just the basename; use the full file name.
1159c8a0e2f4SThomas Veerman    shift
1160c8a0e2f4SThomas Veerman    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1161c8a0e2f4SThomas Veerman    shift
1162c8a0e2f4SThomas Veerman    ac_cv_prog_CC="$@"
1163c8a0e2f4SThomas Veerman  fi
1164c8a0e2f4SThomas Veermanfi
1165c8a0e2f4SThomas Veermanfi
1166c8a0e2f4SThomas Veermanfi
1167c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1168c8a0e2f4SThomas Veermanif test -n "$CC"; then
1169c8a0e2f4SThomas Veerman  echo "$as_me:1169: result: $CC" >&5
1170c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1171c8a0e2f4SThomas Veermanelse
1172c8a0e2f4SThomas Veerman  echo "$as_me:1172: result: no" >&5
1173c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1174c8a0e2f4SThomas Veermanfi
1175c8a0e2f4SThomas Veerman
1176c8a0e2f4SThomas Veermanfi
1177c8a0e2f4SThomas Veermanif test -z "$CC"; then
1178c8a0e2f4SThomas Veerman  if test -n "$ac_tool_prefix"; then
1179c8a0e2f4SThomas Veerman  for ac_prog in cl
1180c8a0e2f4SThomas Veerman  do
1181c8a0e2f4SThomas Veerman    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1182c8a0e2f4SThomas Veermanset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1183c8a0e2f4SThomas Veermanecho "$as_me:1183: checking for $ac_word" >&5
1184c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185c8a0e2f4SThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
1186c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1187c8a0e2f4SThomas Veermanelse
1188c8a0e2f4SThomas Veerman  if test -n "$CC"; then
1189c8a0e2f4SThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
1190c8a0e2f4SThomas Veermanelse
1191c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1192c8a0e2f4SThomas Veermanac_dummy="$PATH"
1193c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1194c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1195c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1196c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1197c8a0e2f4SThomas Veermanac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1198c8a0e2f4SThomas Veermanecho "$as_me:1198: found $ac_dir/$ac_word" >&5
1199c8a0e2f4SThomas Veermanbreak
1200c8a0e2f4SThomas Veermandone
1201c8a0e2f4SThomas Veerman
1202c8a0e2f4SThomas Veermanfi
1203c8a0e2f4SThomas Veermanfi
1204c8a0e2f4SThomas VeermanCC=$ac_cv_prog_CC
1205c8a0e2f4SThomas Veermanif test -n "$CC"; then
1206c8a0e2f4SThomas Veerman  echo "$as_me:1206: result: $CC" >&5
1207c8a0e2f4SThomas Veermanecho "${ECHO_T}$CC" >&6
1208c8a0e2f4SThomas Veermanelse
1209c8a0e2f4SThomas Veerman  echo "$as_me:1209: result: no" >&5
1210c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1211c8a0e2f4SThomas Veermanfi
1212c8a0e2f4SThomas Veerman
1213c8a0e2f4SThomas Veerman    test -n "$CC" && break
1214c8a0e2f4SThomas Veerman  done
1215c8a0e2f4SThomas Veermanfi
1216c8a0e2f4SThomas Veermanif test -z "$CC"; then
1217c8a0e2f4SThomas Veerman  ac_ct_CC=$CC
1218c8a0e2f4SThomas Veerman  for ac_prog in cl
1219c8a0e2f4SThomas Veermando
1220c8a0e2f4SThomas Veerman  # Extract the first word of "$ac_prog", so it can be a program name with args.
1221c8a0e2f4SThomas Veermanset dummy $ac_prog; ac_word=$2
1222c8a0e2f4SThomas Veermanecho "$as_me:1222: checking for $ac_word" >&5
1223c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224c8a0e2f4SThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1226c8a0e2f4SThomas Veermanelse
1227c8a0e2f4SThomas Veerman  if test -n "$ac_ct_CC"; then
1228c8a0e2f4SThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1229c8a0e2f4SThomas Veermanelse
1230c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1231c8a0e2f4SThomas Veermanac_dummy="$PATH"
1232c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1233c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1234c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1235c8a0e2f4SThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
1236c8a0e2f4SThomas Veermanac_cv_prog_ac_ct_CC="$ac_prog"
1237c8a0e2f4SThomas Veermanecho "$as_me:1237: found $ac_dir/$ac_word" >&5
1238c8a0e2f4SThomas Veermanbreak
1239c8a0e2f4SThomas Veermandone
1240c8a0e2f4SThomas Veerman
1241c8a0e2f4SThomas Veermanfi
1242c8a0e2f4SThomas Veermanfi
1243c8a0e2f4SThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
1244c8a0e2f4SThomas Veermanif test -n "$ac_ct_CC"; then
1245c8a0e2f4SThomas Veerman  echo "$as_me:1245: result: $ac_ct_CC" >&5
1246c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
1247c8a0e2f4SThomas Veermanelse
1248c8a0e2f4SThomas Veerman  echo "$as_me:1248: result: no" >&5
1249c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1250c8a0e2f4SThomas Veermanfi
1251c8a0e2f4SThomas Veerman
1252c8a0e2f4SThomas Veerman  test -n "$ac_ct_CC" && break
1253c8a0e2f4SThomas Veermandone
1254c8a0e2f4SThomas Veerman
1255c8a0e2f4SThomas Veerman  CC=$ac_ct_CC
1256c8a0e2f4SThomas Veermanfi
1257c8a0e2f4SThomas Veerman
1258c8a0e2f4SThomas Veermanfi
1259c8a0e2f4SThomas Veerman
1260c8a0e2f4SThomas Veermantest -z "$CC" && { { echo "$as_me:1260: error: no acceptable cc found in \$PATH" >&5
1261c8a0e2f4SThomas Veermanecho "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1262c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1263c8a0e2f4SThomas Veerman
1264c8a0e2f4SThomas Veerman# Provide some information about the compiler.
1265c8a0e2f4SThomas Veermanecho "$as_me:1265:" \
1266c8a0e2f4SThomas Veerman     "checking for C compiler version" >&5
1267c8a0e2f4SThomas Veermanac_compiler=`set X $ac_compile; echo $2`
1268c8a0e2f4SThomas Veerman{ (eval echo "$as_me:1268: \"$ac_compiler --version </dev/null >&5\"") >&5
1269c8a0e2f4SThomas Veerman  (eval $ac_compiler --version </dev/null >&5) 2>&5
1270c8a0e2f4SThomas Veerman  ac_status=$?
1271c8a0e2f4SThomas Veerman  echo "$as_me:1271: \$? = $ac_status" >&5
1272c8a0e2f4SThomas Veerman  (exit $ac_status); }
1273c8a0e2f4SThomas Veerman{ (eval echo "$as_me:1273: \"$ac_compiler -v </dev/null >&5\"") >&5
1274c8a0e2f4SThomas Veerman  (eval $ac_compiler -v </dev/null >&5) 2>&5
1275c8a0e2f4SThomas Veerman  ac_status=$?
1276c8a0e2f4SThomas Veerman  echo "$as_me:1276: \$? = $ac_status" >&5
1277c8a0e2f4SThomas Veerman  (exit $ac_status); }
1278c8a0e2f4SThomas Veerman{ (eval echo "$as_me:1278: \"$ac_compiler -V </dev/null >&5\"") >&5
1279c8a0e2f4SThomas Veerman  (eval $ac_compiler -V </dev/null >&5) 2>&5
1280c8a0e2f4SThomas Veerman  ac_status=$?
1281c8a0e2f4SThomas Veerman  echo "$as_me:1281: \$? = $ac_status" >&5
1282c8a0e2f4SThomas Veerman  (exit $ac_status); }
1283c8a0e2f4SThomas Veerman
1284c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
1285c8a0e2f4SThomas Veerman#line 1285 "configure"
1286c8a0e2f4SThomas Veerman#include "confdefs.h"
1287c8a0e2f4SThomas Veerman
1288c8a0e2f4SThomas Veermanint
1289c8a0e2f4SThomas Veermanmain ()
1290c8a0e2f4SThomas Veerman{
1291c8a0e2f4SThomas Veerman
1292c8a0e2f4SThomas Veerman  ;
1293c8a0e2f4SThomas Veerman  return 0;
1294c8a0e2f4SThomas Veerman}
1295c8a0e2f4SThomas Veerman_ACEOF
1296c8a0e2f4SThomas Veermanac_clean_files_save=$ac_clean_files
1297c8a0e2f4SThomas Veermanac_clean_files="$ac_clean_files a.out a.exe"
1298c8a0e2f4SThomas Veerman# Try to create an executable without -o first, disregard a.out.
1299c8a0e2f4SThomas Veerman# It will help us diagnose broken compilers, and finding out an intuition
1300c8a0e2f4SThomas Veerman# of exeext.
1301c8a0e2f4SThomas Veermanecho "$as_me:1301: checking for C compiler default output" >&5
1302c8a0e2f4SThomas Veermanecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1303c8a0e2f4SThomas Veermanac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1304c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1304: \"$ac_link_default\"") >&5
1305c8a0e2f4SThomas Veerman  (eval $ac_link_default) 2>&5
1306c8a0e2f4SThomas Veerman  ac_status=$?
1307c8a0e2f4SThomas Veerman  echo "$as_me:1307: \$? = $ac_status" >&5
1308c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
1309c8a0e2f4SThomas Veerman  # Find the output, starting from the most likely.  This scheme is
1310c8a0e2f4SThomas Veerman# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1311c8a0e2f4SThomas Veerman# resort.
1312c8a0e2f4SThomas Veermanfor ac_file in `ls a.exe conftest.exe 2>/dev/null;
1313c8a0e2f4SThomas Veerman                ls a.out conftest 2>/dev/null;
1314c8a0e2f4SThomas Veerman                ls a.* conftest.* 2>/dev/null`; do
1315c8a0e2f4SThomas Veerman  case $ac_file in
1316c8a0e2f4SThomas Veerman    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1317c8a0e2f4SThomas Veerman    a.out ) # We found the default executable, but exeext='' is most
1318c8a0e2f4SThomas Veerman            # certainly right.
1319c8a0e2f4SThomas Veerman            break;;
1320c8a0e2f4SThomas Veerman    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1321c8a0e2f4SThomas Veerman          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1322c8a0e2f4SThomas Veerman          export ac_cv_exeext
1323c8a0e2f4SThomas Veerman          break;;
1324c8a0e2f4SThomas Veerman    * ) break;;
1325c8a0e2f4SThomas Veerman  esac
1326c8a0e2f4SThomas Veermandone
1327c8a0e2f4SThomas Veermanelse
1328c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1329c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1330c8a0e2f4SThomas Veerman{ { echo "$as_me:1330: error: C compiler cannot create executables" >&5
1331c8a0e2f4SThomas Veermanecho "$as_me: error: C compiler cannot create executables" >&2;}
1332c8a0e2f4SThomas Veerman   { (exit 77); exit 77; }; }
1333c8a0e2f4SThomas Veermanfi
1334c8a0e2f4SThomas Veerman
1335c8a0e2f4SThomas Veermanac_exeext=$ac_cv_exeext
1336c8a0e2f4SThomas Veermanecho "$as_me:1336: result: $ac_file" >&5
1337c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_file" >&6
1338c8a0e2f4SThomas Veerman
1339c8a0e2f4SThomas Veerman# Check the compiler produces executables we can run.  If not, either
1340c8a0e2f4SThomas Veerman# the compiler is broken, or we cross compile.
1341c8a0e2f4SThomas Veermanecho "$as_me:1341: checking whether the C compiler works" >&5
1342c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1343c8a0e2f4SThomas Veerman# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1344c8a0e2f4SThomas Veerman# If not cross compiling, check that we can run a simple program.
1345c8a0e2f4SThomas Veermanif test "$cross_compiling" != yes; then
1346c8a0e2f4SThomas Veerman  if { ac_try='./$ac_file'
1347c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1347: \"$ac_try\"") >&5
1348c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1349c8a0e2f4SThomas Veerman  ac_status=$?
1350c8a0e2f4SThomas Veerman  echo "$as_me:1350: \$? = $ac_status" >&5
1351c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1352c8a0e2f4SThomas Veerman    cross_compiling=no
1353c8a0e2f4SThomas Veerman  else
1354c8a0e2f4SThomas Veerman    if test "$cross_compiling" = maybe; then
1355c8a0e2f4SThomas Veerman	cross_compiling=yes
1356c8a0e2f4SThomas Veerman    else
1357c8a0e2f4SThomas Veerman	{ { echo "$as_me:1357: error: cannot run C compiled programs.
1358c8a0e2f4SThomas VeermanIf you meant to cross compile, use \`--host'." >&5
1359c8a0e2f4SThomas Veermanecho "$as_me: error: cannot run C compiled programs.
1360c8a0e2f4SThomas VeermanIf you meant to cross compile, use \`--host'." >&2;}
1361c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1362c8a0e2f4SThomas Veerman    fi
1363c8a0e2f4SThomas Veerman  fi
1364c8a0e2f4SThomas Veermanfi
1365c8a0e2f4SThomas Veermanecho "$as_me:1365: result: yes" >&5
1366c8a0e2f4SThomas Veermanecho "${ECHO_T}yes" >&6
1367c8a0e2f4SThomas Veerman
1368c8a0e2f4SThomas Veermanrm -f a.out a.exe conftest$ac_cv_exeext
1369c8a0e2f4SThomas Veermanac_clean_files=$ac_clean_files_save
1370c8a0e2f4SThomas Veerman# Check the compiler produces executables we can run.  If not, either
1371c8a0e2f4SThomas Veerman# the compiler is broken, or we cross compile.
1372c8a0e2f4SThomas Veermanecho "$as_me:1372: checking whether we are cross compiling" >&5
1373c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1374c8a0e2f4SThomas Veermanecho "$as_me:1374: result: $cross_compiling" >&5
1375c8a0e2f4SThomas Veermanecho "${ECHO_T}$cross_compiling" >&6
1376c8a0e2f4SThomas Veerman
1377c8a0e2f4SThomas Veermanecho "$as_me:1377: checking for executable suffix" >&5
1378c8a0e2f4SThomas Veermanecho $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1379c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1379: \"$ac_link\"") >&5
1380c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
1381c8a0e2f4SThomas Veerman  ac_status=$?
1382c8a0e2f4SThomas Veerman  echo "$as_me:1382: \$? = $ac_status" >&5
1383c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
1384c8a0e2f4SThomas Veerman  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1385c8a0e2f4SThomas Veerman# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1386c8a0e2f4SThomas Veerman# work properly (i.e., refer to `conftest.exe'), while it won't with
1387c8a0e2f4SThomas Veerman# `rm'.
1388c8a0e2f4SThomas Veermanfor ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1389c8a0e2f4SThomas Veerman  case $ac_file in
1390c8a0e2f4SThomas Veerman    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1391c8a0e2f4SThomas Veerman    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1392c8a0e2f4SThomas Veerman          export ac_cv_exeext
1393c8a0e2f4SThomas Veerman          break;;
1394c8a0e2f4SThomas Veerman    * ) break;;
1395c8a0e2f4SThomas Veerman  esac
1396c8a0e2f4SThomas Veermandone
1397c8a0e2f4SThomas Veermanelse
1398c8a0e2f4SThomas Veerman  { { echo "$as_me:1398: error: cannot compute EXEEXT: cannot compile and link" >&5
1399c8a0e2f4SThomas Veermanecho "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1400c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1401c8a0e2f4SThomas Veermanfi
1402c8a0e2f4SThomas Veerman
1403c8a0e2f4SThomas Veermanrm -f conftest$ac_cv_exeext
1404c8a0e2f4SThomas Veermanecho "$as_me:1404: result: $ac_cv_exeext" >&5
1405c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_exeext" >&6
1406c8a0e2f4SThomas Veerman
1407c8a0e2f4SThomas Veermanrm -f conftest.$ac_ext
1408c8a0e2f4SThomas VeermanEXEEXT=$ac_cv_exeext
1409c8a0e2f4SThomas Veermanac_exeext=$EXEEXT
1410c8a0e2f4SThomas Veermanecho "$as_me:1410: checking for object suffix" >&5
1411c8a0e2f4SThomas Veermanecho $ECHO_N "checking for object suffix... $ECHO_C" >&6
1412c8a0e2f4SThomas Veermanif test "${ac_cv_objext+set}" = set; then
1413c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1414c8a0e2f4SThomas Veermanelse
1415c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1416c8a0e2f4SThomas Veerman#line 1416 "configure"
1417c8a0e2f4SThomas Veerman#include "confdefs.h"
1418c8a0e2f4SThomas Veerman
1419c8a0e2f4SThomas Veermanint
1420c8a0e2f4SThomas Veermanmain ()
1421c8a0e2f4SThomas Veerman{
1422c8a0e2f4SThomas Veerman
1423c8a0e2f4SThomas Veerman  ;
1424c8a0e2f4SThomas Veerman  return 0;
1425c8a0e2f4SThomas Veerman}
1426c8a0e2f4SThomas Veerman_ACEOF
1427c8a0e2f4SThomas Veermanrm -f conftest.o conftest.obj
1428c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1428: \"$ac_compile\"") >&5
1429c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1430c8a0e2f4SThomas Veerman  ac_status=$?
1431c8a0e2f4SThomas Veerman  echo "$as_me:1431: \$? = $ac_status" >&5
1432c8a0e2f4SThomas Veerman  (exit $ac_status); }; then
1433c8a0e2f4SThomas Veerman  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1434c8a0e2f4SThomas Veerman  case $ac_file in
1435c8a0e2f4SThomas Veerman    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1436c8a0e2f4SThomas Veerman    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1437c8a0e2f4SThomas Veerman       break;;
1438c8a0e2f4SThomas Veerman  esac
1439c8a0e2f4SThomas Veermandone
1440c8a0e2f4SThomas Veermanelse
1441c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1442c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1443c8a0e2f4SThomas Veerman{ { echo "$as_me:1443: error: cannot compute OBJEXT: cannot compile" >&5
1444c8a0e2f4SThomas Veermanecho "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1445c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1446c8a0e2f4SThomas Veermanfi
1447c8a0e2f4SThomas Veerman
1448c8a0e2f4SThomas Veermanrm -f conftest.$ac_cv_objext conftest.$ac_ext
1449c8a0e2f4SThomas Veermanfi
1450c8a0e2f4SThomas Veermanecho "$as_me:1450: result: $ac_cv_objext" >&5
1451c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_objext" >&6
1452c8a0e2f4SThomas VeermanOBJEXT=$ac_cv_objext
1453c8a0e2f4SThomas Veermanac_objext=$OBJEXT
1454c8a0e2f4SThomas Veermanecho "$as_me:1454: checking whether we are using the GNU C compiler" >&5
1455c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1456c8a0e2f4SThomas Veermanif test "${ac_cv_c_compiler_gnu+set}" = set; then
1457c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1458c8a0e2f4SThomas Veermanelse
1459c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1460c8a0e2f4SThomas Veerman#line 1460 "configure"
1461c8a0e2f4SThomas Veerman#include "confdefs.h"
1462c8a0e2f4SThomas Veerman
1463c8a0e2f4SThomas Veermanint
1464c8a0e2f4SThomas Veermanmain ()
1465c8a0e2f4SThomas Veerman{
1466c8a0e2f4SThomas Veerman#ifndef __GNUC__
1467c8a0e2f4SThomas Veerman       choke me
1468c8a0e2f4SThomas Veerman#endif
1469c8a0e2f4SThomas Veerman
1470c8a0e2f4SThomas Veerman  ;
1471c8a0e2f4SThomas Veerman  return 0;
1472c8a0e2f4SThomas Veerman}
1473c8a0e2f4SThomas Veerman_ACEOF
1474c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1475c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1475: \"$ac_compile\"") >&5
1476c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1477c8a0e2f4SThomas Veerman  ac_status=$?
1478c8a0e2f4SThomas Veerman  echo "$as_me:1478: \$? = $ac_status" >&5
1479c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1480c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1481c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1481: \"$ac_try\"") >&5
1482c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1483c8a0e2f4SThomas Veerman  ac_status=$?
1484c8a0e2f4SThomas Veerman  echo "$as_me:1484: \$? = $ac_status" >&5
1485c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1486c8a0e2f4SThomas Veerman  ac_compiler_gnu=yes
1487c8a0e2f4SThomas Veermanelse
1488c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1489c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1490c8a0e2f4SThomas Veermanac_compiler_gnu=no
1491c8a0e2f4SThomas Veermanfi
1492c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1493c8a0e2f4SThomas Veermanac_cv_c_compiler_gnu=$ac_compiler_gnu
1494c8a0e2f4SThomas Veerman
1495c8a0e2f4SThomas Veermanfi
1496c8a0e2f4SThomas Veermanecho "$as_me:1496: result: $ac_cv_c_compiler_gnu" >&5
1497c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1498c8a0e2f4SThomas VeermanGCC=`test $ac_compiler_gnu = yes && echo yes`
1499c8a0e2f4SThomas Veermanac_test_CFLAGS=${CFLAGS+set}
1500c8a0e2f4SThomas Veermanac_save_CFLAGS=$CFLAGS
1501c8a0e2f4SThomas VeermanCFLAGS="-g"
1502c8a0e2f4SThomas Veermanecho "$as_me:1502: checking whether $CC accepts -g" >&5
1503c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1504c8a0e2f4SThomas Veermanif test "${ac_cv_prog_cc_g+set}" = set; then
1505c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1506c8a0e2f4SThomas Veermanelse
1507c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1508c8a0e2f4SThomas Veerman#line 1508 "configure"
1509c8a0e2f4SThomas Veerman#include "confdefs.h"
1510c8a0e2f4SThomas Veerman
1511c8a0e2f4SThomas Veermanint
1512c8a0e2f4SThomas Veermanmain ()
1513c8a0e2f4SThomas Veerman{
1514c8a0e2f4SThomas Veerman
1515c8a0e2f4SThomas Veerman  ;
1516c8a0e2f4SThomas Veerman  return 0;
1517c8a0e2f4SThomas Veerman}
1518c8a0e2f4SThomas Veerman_ACEOF
1519c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1520c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1520: \"$ac_compile\"") >&5
1521c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1522c8a0e2f4SThomas Veerman  ac_status=$?
1523c8a0e2f4SThomas Veerman  echo "$as_me:1523: \$? = $ac_status" >&5
1524c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1525c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1526c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1526: \"$ac_try\"") >&5
1527c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1528c8a0e2f4SThomas Veerman  ac_status=$?
1529c8a0e2f4SThomas Veerman  echo "$as_me:1529: \$? = $ac_status" >&5
1530c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1531c8a0e2f4SThomas Veerman  ac_cv_prog_cc_g=yes
1532c8a0e2f4SThomas Veermanelse
1533c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1534c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1535c8a0e2f4SThomas Veermanac_cv_prog_cc_g=no
1536c8a0e2f4SThomas Veermanfi
1537c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1538c8a0e2f4SThomas Veermanfi
1539c8a0e2f4SThomas Veermanecho "$as_me:1539: result: $ac_cv_prog_cc_g" >&5
1540c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
1541c8a0e2f4SThomas Veermanif test "$ac_test_CFLAGS" = set; then
1542c8a0e2f4SThomas Veerman  CFLAGS=$ac_save_CFLAGS
1543c8a0e2f4SThomas Veermanelif test $ac_cv_prog_cc_g = yes; then
1544c8a0e2f4SThomas Veerman  if test "$GCC" = yes; then
1545c8a0e2f4SThomas Veerman    CFLAGS="-g -O2"
1546c8a0e2f4SThomas Veerman  else
1547c8a0e2f4SThomas Veerman    CFLAGS="-g"
1548c8a0e2f4SThomas Veerman  fi
1549c8a0e2f4SThomas Veermanelse
1550c8a0e2f4SThomas Veerman  if test "$GCC" = yes; then
1551c8a0e2f4SThomas Veerman    CFLAGS="-O2"
1552c8a0e2f4SThomas Veerman  else
1553c8a0e2f4SThomas Veerman    CFLAGS=
1554c8a0e2f4SThomas Veerman  fi
1555c8a0e2f4SThomas Veermanfi
1556c8a0e2f4SThomas Veerman# Some people use a C++ compiler to compile C.  Since we use `exit',
1557c8a0e2f4SThomas Veerman# in C++ we need to declare it.  In case someone uses the same compiler
1558c8a0e2f4SThomas Veerman# for both compiling C and C++ we need to have the C++ compiler decide
1559c8a0e2f4SThomas Veerman# the declaration of exit, since it's the most demanding environment.
1560c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
1561c8a0e2f4SThomas Veerman#ifndef __cplusplus
1562c8a0e2f4SThomas Veerman  choke me
1563c8a0e2f4SThomas Veerman#endif
1564c8a0e2f4SThomas Veerman_ACEOF
1565c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1566c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1566: \"$ac_compile\"") >&5
1567c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1568c8a0e2f4SThomas Veerman  ac_status=$?
1569c8a0e2f4SThomas Veerman  echo "$as_me:1569: \$? = $ac_status" >&5
1570c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1571c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1572c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1572: \"$ac_try\"") >&5
1573c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1574c8a0e2f4SThomas Veerman  ac_status=$?
1575c8a0e2f4SThomas Veerman  echo "$as_me:1575: \$? = $ac_status" >&5
1576c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1577c8a0e2f4SThomas Veerman  for ac_declaration in \
1578c8a0e2f4SThomas Veerman   ''\
1579c8a0e2f4SThomas Veerman   '#include <stdlib.h>' \
1580c8a0e2f4SThomas Veerman   'extern "C" void std::exit (int) throw (); using std::exit;' \
1581c8a0e2f4SThomas Veerman   'extern "C" void std::exit (int); using std::exit;' \
1582c8a0e2f4SThomas Veerman   'extern "C" void exit (int) throw ();' \
1583c8a0e2f4SThomas Veerman   'extern "C" void exit (int);' \
1584c8a0e2f4SThomas Veerman   'void exit (int);'
1585c8a0e2f4SThomas Veermando
1586c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1587c8a0e2f4SThomas Veerman#line 1587 "configure"
1588c8a0e2f4SThomas Veerman#include "confdefs.h"
1589c8a0e2f4SThomas Veerman#include <stdlib.h>
1590c8a0e2f4SThomas Veerman$ac_declaration
1591c8a0e2f4SThomas Veermanint
1592c8a0e2f4SThomas Veermanmain ()
1593c8a0e2f4SThomas Veerman{
1594c8a0e2f4SThomas Veermanexit (42);
1595c8a0e2f4SThomas Veerman  ;
1596c8a0e2f4SThomas Veerman  return 0;
1597c8a0e2f4SThomas Veerman}
1598c8a0e2f4SThomas Veerman_ACEOF
1599c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1600c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1600: \"$ac_compile\"") >&5
1601c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1602c8a0e2f4SThomas Veerman  ac_status=$?
1603c8a0e2f4SThomas Veerman  echo "$as_me:1603: \$? = $ac_status" >&5
1604c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1605c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1606c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1606: \"$ac_try\"") >&5
1607c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1608c8a0e2f4SThomas Veerman  ac_status=$?
1609c8a0e2f4SThomas Veerman  echo "$as_me:1609: \$? = $ac_status" >&5
1610c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1611c8a0e2f4SThomas Veerman  :
1612c8a0e2f4SThomas Veermanelse
1613c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1614c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1615c8a0e2f4SThomas Veermancontinue
1616c8a0e2f4SThomas Veermanfi
1617c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1618c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1619c8a0e2f4SThomas Veerman#line 1619 "configure"
1620c8a0e2f4SThomas Veerman#include "confdefs.h"
1621c8a0e2f4SThomas Veerman$ac_declaration
1622c8a0e2f4SThomas Veermanint
1623c8a0e2f4SThomas Veermanmain ()
1624c8a0e2f4SThomas Veerman{
1625c8a0e2f4SThomas Veermanexit (42);
1626c8a0e2f4SThomas Veerman  ;
1627c8a0e2f4SThomas Veerman  return 0;
1628c8a0e2f4SThomas Veerman}
1629c8a0e2f4SThomas Veerman_ACEOF
1630c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1631c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1631: \"$ac_compile\"") >&5
1632c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1633c8a0e2f4SThomas Veerman  ac_status=$?
1634c8a0e2f4SThomas Veerman  echo "$as_me:1634: \$? = $ac_status" >&5
1635c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1636c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1637c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1637: \"$ac_try\"") >&5
1638c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1639c8a0e2f4SThomas Veerman  ac_status=$?
1640c8a0e2f4SThomas Veerman  echo "$as_me:1640: \$? = $ac_status" >&5
1641c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1642c8a0e2f4SThomas Veerman  break
1643c8a0e2f4SThomas Veermanelse
1644c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1645c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1646c8a0e2f4SThomas Veermanfi
1647c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1648c8a0e2f4SThomas Veermandone
1649c8a0e2f4SThomas Veermanrm -f conftest*
1650c8a0e2f4SThomas Veermanif test -n "$ac_declaration"; then
1651c8a0e2f4SThomas Veerman  echo '#ifdef __cplusplus' >>confdefs.h
1652c8a0e2f4SThomas Veerman  echo $ac_declaration      >>confdefs.h
1653c8a0e2f4SThomas Veerman  echo '#endif'             >>confdefs.h
1654c8a0e2f4SThomas Veermanfi
1655c8a0e2f4SThomas Veerman
1656c8a0e2f4SThomas Veermanelse
1657c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1658c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
1659c8a0e2f4SThomas Veermanfi
1660c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
1661c8a0e2f4SThomas Veermanac_ext=c
1662c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
1663c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1664c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1665c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
1666c8a0e2f4SThomas Veerman
1667c8a0e2f4SThomas Veermanac_ext=c
1668c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
1669c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
1672c8a0e2f4SThomas Veermanecho "$as_me:1672: checking how to run the C preprocessor" >&5
1673c8a0e2f4SThomas Veermanecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1674c8a0e2f4SThomas Veerman# On Suns, sometimes $CPP names a directory.
1675c8a0e2f4SThomas Veermanif test -n "$CPP" && test -d "$CPP"; then
1676c8a0e2f4SThomas Veerman  CPP=
1677c8a0e2f4SThomas Veermanfi
1678c8a0e2f4SThomas Veermanif test -z "$CPP"; then
1679c8a0e2f4SThomas Veerman  if test "${ac_cv_prog_CPP+set}" = set; then
1680c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1681c8a0e2f4SThomas Veermanelse
1682c8a0e2f4SThomas Veerman      # Double quotes because CPP needs to be expanded
1683c8a0e2f4SThomas Veerman    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1684c8a0e2f4SThomas Veerman    do
1685c8a0e2f4SThomas Veerman      ac_preproc_ok=false
1686c8a0e2f4SThomas Veermanfor ac_c_preproc_warn_flag in '' yes
1687c8a0e2f4SThomas Veermando
1688c8a0e2f4SThomas Veerman  # Use a header file that comes with gcc, so configuring glibc
1689c8a0e2f4SThomas Veerman  # with a fresh cross-compiler works.
1690c8a0e2f4SThomas Veerman  # On the NeXT, cc -E runs the code through the compiler's parser,
1691c8a0e2f4SThomas Veerman  # not just through cpp. "Syntax error" is here to catch this case.
1692c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1693c8a0e2f4SThomas Veerman#line 1693 "configure"
1694c8a0e2f4SThomas Veerman#include "confdefs.h"
1695c8a0e2f4SThomas Veerman#include <assert.h>
1696c8a0e2f4SThomas Veerman                     Syntax error
1697c8a0e2f4SThomas Veerman_ACEOF
1698c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1698: \"$ac_cpp conftest.$ac_ext\"") >&5
1699c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1700c8a0e2f4SThomas Veerman  ac_status=$?
1701c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1702c8a0e2f4SThomas Veerman  rm -f conftest.er1
1703c8a0e2f4SThomas Veerman  cat conftest.err >&5
1704c8a0e2f4SThomas Veerman  echo "$as_me:1704: \$? = $ac_status" >&5
1705c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1706c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1707c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1708c8a0e2f4SThomas Veerman  else
1709c8a0e2f4SThomas Veerman    ac_cpp_err=
1710c8a0e2f4SThomas Veerman  fi
1711c8a0e2f4SThomas Veermanelse
1712c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1713c8a0e2f4SThomas Veermanfi
1714c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1715c8a0e2f4SThomas Veerman  :
1716c8a0e2f4SThomas Veermanelse
1717c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1718c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1719c8a0e2f4SThomas Veerman  # Broken: fails on valid input.
1720c8a0e2f4SThomas Veermancontinue
1721c8a0e2f4SThomas Veermanfi
1722c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1723c8a0e2f4SThomas Veerman
1724c8a0e2f4SThomas Veerman  # OK, works on sane cases.  Now check whether non-existent headers
1725c8a0e2f4SThomas Veerman  # can be detected and how.
1726c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1727c8a0e2f4SThomas Veerman#line 1727 "configure"
1728c8a0e2f4SThomas Veerman#include "confdefs.h"
1729c8a0e2f4SThomas Veerman#include <ac_nonexistent.h>
1730c8a0e2f4SThomas Veerman_ACEOF
1731c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1731: \"$ac_cpp conftest.$ac_ext\"") >&5
1732c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1733c8a0e2f4SThomas Veerman  ac_status=$?
1734c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1735c8a0e2f4SThomas Veerman  rm -f conftest.er1
1736c8a0e2f4SThomas Veerman  cat conftest.err >&5
1737c8a0e2f4SThomas Veerman  echo "$as_me:1737: \$? = $ac_status" >&5
1738c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1739c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1740c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1741c8a0e2f4SThomas Veerman  else
1742c8a0e2f4SThomas Veerman    ac_cpp_err=
1743c8a0e2f4SThomas Veerman  fi
1744c8a0e2f4SThomas Veermanelse
1745c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1746c8a0e2f4SThomas Veermanfi
1747c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1748c8a0e2f4SThomas Veerman  # Broken: success on invalid input.
1749c8a0e2f4SThomas Veermancontinue
1750c8a0e2f4SThomas Veermanelse
1751c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1752c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1753c8a0e2f4SThomas Veerman  # Passes both tests.
1754c8a0e2f4SThomas Veermanac_preproc_ok=:
1755c8a0e2f4SThomas Veermanbreak
1756c8a0e2f4SThomas Veermanfi
1757c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1758c8a0e2f4SThomas Veerman
1759c8a0e2f4SThomas Veermandone
1760c8a0e2f4SThomas Veerman# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1761c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1762c8a0e2f4SThomas Veermanif $ac_preproc_ok; then
1763c8a0e2f4SThomas Veerman  break
1764c8a0e2f4SThomas Veermanfi
1765c8a0e2f4SThomas Veerman
1766c8a0e2f4SThomas Veerman    done
1767c8a0e2f4SThomas Veerman    ac_cv_prog_CPP=$CPP
1768c8a0e2f4SThomas Veerman
1769c8a0e2f4SThomas Veermanfi
1770c8a0e2f4SThomas Veerman  CPP=$ac_cv_prog_CPP
1771c8a0e2f4SThomas Veermanelse
1772c8a0e2f4SThomas Veerman  ac_cv_prog_CPP=$CPP
1773c8a0e2f4SThomas Veermanfi
1774c8a0e2f4SThomas Veermanecho "$as_me:1774: result: $CPP" >&5
1775c8a0e2f4SThomas Veermanecho "${ECHO_T}$CPP" >&6
1776c8a0e2f4SThomas Veermanac_preproc_ok=false
1777c8a0e2f4SThomas Veermanfor ac_c_preproc_warn_flag in '' yes
1778c8a0e2f4SThomas Veermando
1779c8a0e2f4SThomas Veerman  # Use a header file that comes with gcc, so configuring glibc
1780c8a0e2f4SThomas Veerman  # with a fresh cross-compiler works.
1781c8a0e2f4SThomas Veerman  # On the NeXT, cc -E runs the code through the compiler's parser,
1782c8a0e2f4SThomas Veerman  # not just through cpp. "Syntax error" is here to catch this case.
1783c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1784c8a0e2f4SThomas Veerman#line 1784 "configure"
1785c8a0e2f4SThomas Veerman#include "confdefs.h"
1786c8a0e2f4SThomas Veerman#include <assert.h>
1787c8a0e2f4SThomas Veerman                     Syntax error
1788c8a0e2f4SThomas Veerman_ACEOF
1789c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5
1790c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1791c8a0e2f4SThomas Veerman  ac_status=$?
1792c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1793c8a0e2f4SThomas Veerman  rm -f conftest.er1
1794c8a0e2f4SThomas Veerman  cat conftest.err >&5
1795c8a0e2f4SThomas Veerman  echo "$as_me:1795: \$? = $ac_status" >&5
1796c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1797c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1798c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1799c8a0e2f4SThomas Veerman  else
1800c8a0e2f4SThomas Veerman    ac_cpp_err=
1801c8a0e2f4SThomas Veerman  fi
1802c8a0e2f4SThomas Veermanelse
1803c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1804c8a0e2f4SThomas Veermanfi
1805c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1806c8a0e2f4SThomas Veerman  :
1807c8a0e2f4SThomas Veermanelse
1808c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1809c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1810c8a0e2f4SThomas Veerman  # Broken: fails on valid input.
1811c8a0e2f4SThomas Veermancontinue
1812c8a0e2f4SThomas Veermanfi
1813c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1814c8a0e2f4SThomas Veerman
1815c8a0e2f4SThomas Veerman  # OK, works on sane cases.  Now check whether non-existent headers
1816c8a0e2f4SThomas Veerman  # can be detected and how.
1817c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1818c8a0e2f4SThomas Veerman#line 1818 "configure"
1819c8a0e2f4SThomas Veerman#include "confdefs.h"
1820c8a0e2f4SThomas Veerman#include <ac_nonexistent.h>
1821c8a0e2f4SThomas Veerman_ACEOF
1822c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1822: \"$ac_cpp conftest.$ac_ext\"") >&5
1823c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1824c8a0e2f4SThomas Veerman  ac_status=$?
1825c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
1826c8a0e2f4SThomas Veerman  rm -f conftest.er1
1827c8a0e2f4SThomas Veerman  cat conftest.err >&5
1828c8a0e2f4SThomas Veerman  echo "$as_me:1828: \$? = $ac_status" >&5
1829c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
1830c8a0e2f4SThomas Veerman  if test -s conftest.err; then
1831c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
1832c8a0e2f4SThomas Veerman  else
1833c8a0e2f4SThomas Veerman    ac_cpp_err=
1834c8a0e2f4SThomas Veerman  fi
1835c8a0e2f4SThomas Veermanelse
1836c8a0e2f4SThomas Veerman  ac_cpp_err=yes
1837c8a0e2f4SThomas Veermanfi
1838c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
1839c8a0e2f4SThomas Veerman  # Broken: success on invalid input.
1840c8a0e2f4SThomas Veermancontinue
1841c8a0e2f4SThomas Veermanelse
1842c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
1843c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
1844c8a0e2f4SThomas Veerman  # Passes both tests.
1845c8a0e2f4SThomas Veermanac_preproc_ok=:
1846c8a0e2f4SThomas Veermanbreak
1847c8a0e2f4SThomas Veermanfi
1848c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1849c8a0e2f4SThomas Veerman
1850c8a0e2f4SThomas Veermandone
1851c8a0e2f4SThomas Veerman# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1852c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
1853c8a0e2f4SThomas Veermanif $ac_preproc_ok; then
1854c8a0e2f4SThomas Veerman  :
1855c8a0e2f4SThomas Veermanelse
1856c8a0e2f4SThomas Veerman  { { echo "$as_me:1856: error: C preprocessor \"$CPP\" fails sanity check" >&5
1857c8a0e2f4SThomas Veermanecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1858c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1859c8a0e2f4SThomas Veermanfi
1860c8a0e2f4SThomas Veerman
1861c8a0e2f4SThomas Veermanac_ext=c
1862c8a0e2f4SThomas Veermanac_cpp='$CPP $CPPFLAGS'
1863c8a0e2f4SThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864c8a0e2f4SThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865c8a0e2f4SThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
1866c8a0e2f4SThomas Veerman
186784d9c625SLionel Sambuc            echo "$as_me:1867: checking for NetBSD or MINIX3" >&5
186884d9c625SLionel Sambucecho $ECHO_N "checking for NetBSD or MINIX3... $ECHO_C" >&6
1869c8a0e2f4SThomas Veerman      cat >conftest.$ac_ext <<_ACEOF
1870c8a0e2f4SThomas Veerman#line 1870 "configure"
1871c8a0e2f4SThomas Veerman#include "confdefs.h"
1872*0a6a1f1dSLionel Sambuc#if defined(__NetBSD__) || defined(__minix)
1873c8a0e2f4SThomas Veerman	yes
1874c8a0e2f4SThomas Veerman	#endif
1875c8a0e2f4SThomas Veerman
1876c8a0e2f4SThomas Veerman_ACEOF
1877c8a0e2f4SThomas Veermanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878c8a0e2f4SThomas Veerman  egrep "yes" >/dev/null 2>&1; then
1879c8a0e2f4SThomas Veerman  echo "$as_me:1879: result: yes" >&5
1880c8a0e2f4SThomas Veermanecho "${ECHO_T}yes" >&6
1881c8a0e2f4SThomas Veerman
1882c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
1883c8a0e2f4SThomas Veerman#define _POSIX_SOURCE 1
1884c8a0e2f4SThomas VeermanEOF
1885c8a0e2f4SThomas Veerman
1886c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
1887c8a0e2f4SThomas Veerman#define _POSIX_C_SOURCE 200112L
1888c8a0e2f4SThomas VeermanEOF
1889c8a0e2f4SThomas Veerman
1890c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
1891c8a0e2f4SThomas Veerman#define _XOPEN_SOURCE 600
1892c8a0e2f4SThomas VeermanEOF
1893c8a0e2f4SThomas Veerman
1894c8a0e2f4SThomas Veermanelse
1895c8a0e2f4SThomas Veerman  echo "$as_me:1895: result: no" >&5
1896c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1897c8a0e2f4SThomas Veermanfi
1898c8a0e2f4SThomas Veermanrm -f conftest*
1899c8a0e2f4SThomas Veerman
1900c8a0e2f4SThomas Veerman# Extract the first word of "sh", so it can be a program name with args.
1901c8a0e2f4SThomas Veermanset dummy sh; ac_word=$2
1902c8a0e2f4SThomas Veermanecho "$as_me:1902: checking for $ac_word" >&5
1903c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904c8a0e2f4SThomas Veermanif test "${ac_cv_path_BSHELL+set}" = set; then
1905c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1906c8a0e2f4SThomas Veermanelse
1907c8a0e2f4SThomas Veerman  case $BSHELL in
1908c8a0e2f4SThomas Veerman  [\\/]* | ?:[\\/]*)
1909c8a0e2f4SThomas Veerman  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
1910c8a0e2f4SThomas Veerman  ;;
1911c8a0e2f4SThomas Veerman  *)
1912c8a0e2f4SThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
1913c8a0e2f4SThomas Veermanac_dummy="$PATH"
1914c8a0e2f4SThomas Veermanfor ac_dir in $ac_dummy; do
1915c8a0e2f4SThomas Veerman  IFS=$ac_save_IFS
1916c8a0e2f4SThomas Veerman  test -z "$ac_dir" && ac_dir=.
1917c8a0e2f4SThomas Veerman  if $as_executable_p "$ac_dir/$ac_word"; then
1918c8a0e2f4SThomas Veerman   ac_cv_path_BSHELL="$ac_dir/$ac_word"
1919c8a0e2f4SThomas Veerman   echo "$as_me:1919: found $ac_dir/$ac_word" >&5
1920c8a0e2f4SThomas Veerman   break
1921c8a0e2f4SThomas Veermanfi
1922c8a0e2f4SThomas Veermandone
1923c8a0e2f4SThomas Veerman
1924c8a0e2f4SThomas Veerman  ;;
1925c8a0e2f4SThomas Veermanesac
1926c8a0e2f4SThomas Veermanfi
1927c8a0e2f4SThomas VeermanBSHELL=$ac_cv_path_BSHELL
1928c8a0e2f4SThomas Veerman
1929c8a0e2f4SThomas Veermanif test -n "$BSHELL"; then
1930c8a0e2f4SThomas Veerman  echo "$as_me:1930: result: $BSHELL" >&5
1931c8a0e2f4SThomas Veermanecho "${ECHO_T}$BSHELL" >&6
1932c8a0e2f4SThomas Veermanelse
1933c8a0e2f4SThomas Veerman  echo "$as_me:1933: result: no" >&5
1934c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
1935c8a0e2f4SThomas Veermanfi
1936c8a0e2f4SThomas Veerman
1937c8a0e2f4SThomas Veermanif test x"$BSHELL" = x; then
1938c8a0e2f4SThomas Veerman	{ { echo "$as_me:1938: error: sh must be somewhere on \$PATH" >&5
1939c8a0e2f4SThomas Veermanecho "$as_me: error: sh must be somewhere on \$PATH" >&2;}
1940c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
1941c8a0e2f4SThomas Veermanfi
1942c8a0e2f4SThomas Veerman
1943c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
1944c8a0e2f4SThomas Veerman#define PATH_BSHELL "$BSHELL"
1945c8a0e2f4SThomas VeermanEOF
1946c8a0e2f4SThomas Veerman
1947c8a0e2f4SThomas Veermanecho "$as_me:1947: checking whether byte ordering is bigendian" >&5
1948c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1949c8a0e2f4SThomas Veermanif test "${ac_cv_c_bigendian+set}" = set; then
1950c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
1951c8a0e2f4SThomas Veermanelse
1952c8a0e2f4SThomas Veerman  ac_cv_c_bigendian=unknown
1953c8a0e2f4SThomas Veerman# See if sys/param.h defines the BYTE_ORDER macro.
1954c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
1955c8a0e2f4SThomas Veerman#line 1955 "configure"
1956c8a0e2f4SThomas Veerman#include "confdefs.h"
1957c8a0e2f4SThomas Veerman#include <sys/types.h>
1958c8a0e2f4SThomas Veerman#include <sys/param.h>
1959c8a0e2f4SThomas Veerman
1960c8a0e2f4SThomas Veermanint
1961c8a0e2f4SThomas Veermanmain ()
1962c8a0e2f4SThomas Veerman{
1963c8a0e2f4SThomas Veerman#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1964c8a0e2f4SThomas Veerman bogus endian macros
1965c8a0e2f4SThomas Veerman#endif
1966c8a0e2f4SThomas Veerman
1967c8a0e2f4SThomas Veerman  ;
1968c8a0e2f4SThomas Veerman  return 0;
1969c8a0e2f4SThomas Veerman}
1970c8a0e2f4SThomas Veerman_ACEOF
1971c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
1972c8a0e2f4SThomas Veermanif { (eval echo "$as_me:1972: \"$ac_compile\"") >&5
1973c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
1974c8a0e2f4SThomas Veerman  ac_status=$?
1975c8a0e2f4SThomas Veerman  echo "$as_me:1975: \$? = $ac_status" >&5
1976c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
1977c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1978c8a0e2f4SThomas Veerman  { (eval echo "$as_me:1978: \"$ac_try\"") >&5
1979c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
1980c8a0e2f4SThomas Veerman  ac_status=$?
1981c8a0e2f4SThomas Veerman  echo "$as_me:1981: \$? = $ac_status" >&5
1982c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
1983c8a0e2f4SThomas Veerman  # It does; now see whether it defined to BIG_ENDIAN or not.
1984c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
1985c8a0e2f4SThomas Veerman#line 1985 "configure"
1986c8a0e2f4SThomas Veerman#include "confdefs.h"
1987c8a0e2f4SThomas Veerman#include <sys/types.h>
1988c8a0e2f4SThomas Veerman#include <sys/param.h>
1989c8a0e2f4SThomas Veerman
1990c8a0e2f4SThomas Veermanint
1991c8a0e2f4SThomas Veermanmain ()
1992c8a0e2f4SThomas Veerman{
1993c8a0e2f4SThomas Veerman#if BYTE_ORDER != BIG_ENDIAN
1994c8a0e2f4SThomas Veerman not big endian
1995c8a0e2f4SThomas Veerman#endif
1996c8a0e2f4SThomas Veerman
1997c8a0e2f4SThomas Veerman  ;
1998c8a0e2f4SThomas Veerman  return 0;
1999c8a0e2f4SThomas Veerman}
2000c8a0e2f4SThomas Veerman_ACEOF
2001c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2002c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2004c8a0e2f4SThomas Veerman  ac_status=$?
2005c8a0e2f4SThomas Veerman  echo "$as_me:2005: \$? = $ac_status" >&5
2006c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2007c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2008c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2009c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2010c8a0e2f4SThomas Veerman  ac_status=$?
2011c8a0e2f4SThomas Veerman  echo "$as_me:2011: \$? = $ac_status" >&5
2012c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2013c8a0e2f4SThomas Veerman  ac_cv_c_bigendian=yes
2014c8a0e2f4SThomas Veermanelse
2015c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2016c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2017c8a0e2f4SThomas Veermanac_cv_c_bigendian=no
2018c8a0e2f4SThomas Veermanfi
2019c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2020c8a0e2f4SThomas Veermanelse
2021c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2022c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2023c8a0e2f4SThomas Veermanfi
2024c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2025c8a0e2f4SThomas Veermanif test $ac_cv_c_bigendian = unknown; then
2026c8a0e2f4SThomas Veermanif test "$cross_compiling" = yes; then
2027c8a0e2f4SThomas Veerman  { { echo "$as_me:2027: error: cannot run test program while cross compiling" >&5
2028c8a0e2f4SThomas Veermanecho "$as_me: error: cannot run test program while cross compiling" >&2;}
2029c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
2030c8a0e2f4SThomas Veermanelse
2031c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2032c8a0e2f4SThomas Veerman#line 2032 "configure"
2033c8a0e2f4SThomas Veerman#include "confdefs.h"
2034c8a0e2f4SThomas Veermanint
2035c8a0e2f4SThomas Veermanmain ()
2036c8a0e2f4SThomas Veerman{
2037c8a0e2f4SThomas Veerman  /* Are we little or big endian?  From Harbison&Steele.  */
2038c8a0e2f4SThomas Veerman  union
2039c8a0e2f4SThomas Veerman  {
2040c8a0e2f4SThomas Veerman    long l;
2041c8a0e2f4SThomas Veerman    char c[sizeof (long)];
2042c8a0e2f4SThomas Veerman  } u;
2043c8a0e2f4SThomas Veerman  u.l = 1;
2044c8a0e2f4SThomas Veerman  exit (u.c[sizeof (long) - 1] == 1);
2045c8a0e2f4SThomas Veerman}
2046c8a0e2f4SThomas Veerman_ACEOF
2047c8a0e2f4SThomas Veermanrm -f conftest$ac_exeext
2048c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2048: \"$ac_link\"") >&5
2049c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2050c8a0e2f4SThomas Veerman  ac_status=$?
2051c8a0e2f4SThomas Veerman  echo "$as_me:2051: \$? = $ac_status" >&5
2052c8a0e2f4SThomas Veerman  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2053c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2053: \"$ac_try\"") >&5
2054c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2055c8a0e2f4SThomas Veerman  ac_status=$?
2056c8a0e2f4SThomas Veerman  echo "$as_me:2056: \$? = $ac_status" >&5
2057c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2058c8a0e2f4SThomas Veerman  ac_cv_c_bigendian=no
2059c8a0e2f4SThomas Veermanelse
2060c8a0e2f4SThomas Veerman  echo "$as_me: program exited with status $ac_status" >&5
2061c8a0e2f4SThomas Veermanecho "$as_me: failed program was:" >&5
2062c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2063c8a0e2f4SThomas Veermanac_cv_c_bigendian=yes
2064c8a0e2f4SThomas Veermanfi
2065c8a0e2f4SThomas Veermanrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2066c8a0e2f4SThomas Veermanfi
2067c8a0e2f4SThomas Veermanfi
2068c8a0e2f4SThomas Veermanfi
2069c8a0e2f4SThomas Veermanecho "$as_me:2069: result: $ac_cv_c_bigendian" >&5
2070c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_c_bigendian" >&6
2071c8a0e2f4SThomas Veermanif test $ac_cv_c_bigendian = yes; then
2072c8a0e2f4SThomas Veerman
2073c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
2074c8a0e2f4SThomas Veerman#define WORDS_BIGENDIAN 1
2075c8a0e2f4SThomas VeermanEOF
2076c8a0e2f4SThomas Veerman
2077c8a0e2f4SThomas Veermanfi
2078c8a0e2f4SThomas Veerman
2079c8a0e2f4SThomas Veermanecho "$as_me:2079: checking for ANSI C header files" >&5
2080c8a0e2f4SThomas Veermanecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2081c8a0e2f4SThomas Veermanif test "${ac_cv_header_stdc+set}" = set; then
2082c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2083c8a0e2f4SThomas Veermanelse
2084c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2085c8a0e2f4SThomas Veerman#line 2085 "configure"
2086c8a0e2f4SThomas Veerman#include "confdefs.h"
2087c8a0e2f4SThomas Veerman#include <stdlib.h>
2088c8a0e2f4SThomas Veerman#include <stdarg.h>
2089c8a0e2f4SThomas Veerman#include <string.h>
2090c8a0e2f4SThomas Veerman#include <float.h>
2091c8a0e2f4SThomas Veerman
2092c8a0e2f4SThomas Veerman_ACEOF
2093c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2093: \"$ac_cpp conftest.$ac_ext\"") >&5
2094c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2095c8a0e2f4SThomas Veerman  ac_status=$?
2096c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
2097c8a0e2f4SThomas Veerman  rm -f conftest.er1
2098c8a0e2f4SThomas Veerman  cat conftest.err >&5
2099c8a0e2f4SThomas Veerman  echo "$as_me:2099: \$? = $ac_status" >&5
2100c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
2101c8a0e2f4SThomas Veerman  if test -s conftest.err; then
2102c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
2103c8a0e2f4SThomas Veerman  else
2104c8a0e2f4SThomas Veerman    ac_cpp_err=
2105c8a0e2f4SThomas Veerman  fi
2106c8a0e2f4SThomas Veermanelse
2107c8a0e2f4SThomas Veerman  ac_cpp_err=yes
2108c8a0e2f4SThomas Veermanfi
2109c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
2110c8a0e2f4SThomas Veerman  ac_cv_header_stdc=yes
2111c8a0e2f4SThomas Veermanelse
2112c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2113c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
2114c8a0e2f4SThomas Veerman  ac_cv_header_stdc=no
2115c8a0e2f4SThomas Veermanfi
2116c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
2117c8a0e2f4SThomas Veerman
2118c8a0e2f4SThomas Veermanif test $ac_cv_header_stdc = yes; then
2119c8a0e2f4SThomas Veerman  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2120c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2121c8a0e2f4SThomas Veerman#line 2121 "configure"
2122c8a0e2f4SThomas Veerman#include "confdefs.h"
2123c8a0e2f4SThomas Veerman#include <string.h>
2124c8a0e2f4SThomas Veerman
2125c8a0e2f4SThomas Veerman_ACEOF
2126c8a0e2f4SThomas Veermanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2127c8a0e2f4SThomas Veerman  egrep "memchr" >/dev/null 2>&1; then
2128c8a0e2f4SThomas Veerman  :
2129c8a0e2f4SThomas Veermanelse
2130c8a0e2f4SThomas Veerman  ac_cv_header_stdc=no
2131c8a0e2f4SThomas Veermanfi
2132c8a0e2f4SThomas Veermanrm -f conftest*
2133c8a0e2f4SThomas Veerman
2134c8a0e2f4SThomas Veermanfi
2135c8a0e2f4SThomas Veerman
2136c8a0e2f4SThomas Veermanif test $ac_cv_header_stdc = yes; then
2137c8a0e2f4SThomas Veerman  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2138c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2139c8a0e2f4SThomas Veerman#line 2139 "configure"
2140c8a0e2f4SThomas Veerman#include "confdefs.h"
2141c8a0e2f4SThomas Veerman#include <stdlib.h>
2142c8a0e2f4SThomas Veerman
2143c8a0e2f4SThomas Veerman_ACEOF
2144c8a0e2f4SThomas Veermanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2145c8a0e2f4SThomas Veerman  egrep "free" >/dev/null 2>&1; then
2146c8a0e2f4SThomas Veerman  :
2147c8a0e2f4SThomas Veermanelse
2148c8a0e2f4SThomas Veerman  ac_cv_header_stdc=no
2149c8a0e2f4SThomas Veermanfi
2150c8a0e2f4SThomas Veermanrm -f conftest*
2151c8a0e2f4SThomas Veerman
2152c8a0e2f4SThomas Veermanfi
2153c8a0e2f4SThomas Veerman
2154c8a0e2f4SThomas Veermanif test $ac_cv_header_stdc = yes; then
2155c8a0e2f4SThomas Veerman  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2156c8a0e2f4SThomas Veerman  if test "$cross_compiling" = yes; then
2157c8a0e2f4SThomas Veerman  :
2158c8a0e2f4SThomas Veermanelse
2159c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2160c8a0e2f4SThomas Veerman#line 2160 "configure"
2161c8a0e2f4SThomas Veerman#include "confdefs.h"
2162c8a0e2f4SThomas Veerman#include <ctype.h>
2163c8a0e2f4SThomas Veerman#if ((' ' & 0x0FF) == 0x020)
2164c8a0e2f4SThomas Veerman# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2165c8a0e2f4SThomas Veerman# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2166c8a0e2f4SThomas Veerman#else
2167c8a0e2f4SThomas Veerman# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2168c8a0e2f4SThomas Veerman                     || ('j' <= (c) && (c) <= 'r') \
2169c8a0e2f4SThomas Veerman                     || ('s' <= (c) && (c) <= 'z'))
2170c8a0e2f4SThomas Veerman# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2171c8a0e2f4SThomas Veerman#endif
2172c8a0e2f4SThomas Veerman
2173c8a0e2f4SThomas Veerman#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2174c8a0e2f4SThomas Veermanint
2175c8a0e2f4SThomas Veermanmain ()
2176c8a0e2f4SThomas Veerman{
2177c8a0e2f4SThomas Veerman  int i;
2178c8a0e2f4SThomas Veerman  for (i = 0; i < 256; i++)
2179c8a0e2f4SThomas Veerman    if (XOR (islower (i), ISLOWER (i))
2180c8a0e2f4SThomas Veerman        || toupper (i) != TOUPPER (i))
2181c8a0e2f4SThomas Veerman      exit(2);
2182c8a0e2f4SThomas Veerman  exit (0);
2183c8a0e2f4SThomas Veerman}
2184c8a0e2f4SThomas Veerman_ACEOF
2185c8a0e2f4SThomas Veermanrm -f conftest$ac_exeext
2186c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2186: \"$ac_link\"") >&5
2187c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2188c8a0e2f4SThomas Veerman  ac_status=$?
2189c8a0e2f4SThomas Veerman  echo "$as_me:2189: \$? = $ac_status" >&5
2190c8a0e2f4SThomas Veerman  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2191c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2191: \"$ac_try\"") >&5
2192c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2193c8a0e2f4SThomas Veerman  ac_status=$?
2194c8a0e2f4SThomas Veerman  echo "$as_me:2194: \$? = $ac_status" >&5
2195c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2196c8a0e2f4SThomas Veerman  :
2197c8a0e2f4SThomas Veermanelse
2198c8a0e2f4SThomas Veerman  echo "$as_me: program exited with status $ac_status" >&5
2199c8a0e2f4SThomas Veermanecho "$as_me: failed program was:" >&5
2200c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2201c8a0e2f4SThomas Veermanac_cv_header_stdc=no
2202c8a0e2f4SThomas Veermanfi
2203c8a0e2f4SThomas Veermanrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2204c8a0e2f4SThomas Veermanfi
2205c8a0e2f4SThomas Veermanfi
2206c8a0e2f4SThomas Veermanfi
2207c8a0e2f4SThomas Veermanecho "$as_me:2207: result: $ac_cv_header_stdc" >&5
2208c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_header_stdc" >&6
2209c8a0e2f4SThomas Veermanif test $ac_cv_header_stdc = yes; then
2210c8a0e2f4SThomas Veerman
2211c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
2212c8a0e2f4SThomas Veerman#define STDC_HEADERS 1
2213c8a0e2f4SThomas VeermanEOF
2214c8a0e2f4SThomas Veerman
2215c8a0e2f4SThomas Veermanfi
2216c8a0e2f4SThomas Veerman
2217c8a0e2f4SThomas Veerman# Confirm existence of zlib.  (This is available as a default install
2218c8a0e2f4SThomas Veerman# option on many OS's; this could be added as a reachover build in the
2219c8a0e2f4SThomas Veerman# future.)
2220c8a0e2f4SThomas Veermanecho "$as_me:2220: checking for zlib.h" >&5
2221c8a0e2f4SThomas Veermanecho $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2222c8a0e2f4SThomas Veermanif test "${ac_cv_header_zlib_h+set}" = set; then
2223c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2224c8a0e2f4SThomas Veermanelse
2225c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2226c8a0e2f4SThomas Veerman#line 2226 "configure"
2227c8a0e2f4SThomas Veerman#include "confdefs.h"
2228c8a0e2f4SThomas Veerman#include <zlib.h>
2229c8a0e2f4SThomas Veerman_ACEOF
2230c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5
2231c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2232c8a0e2f4SThomas Veerman  ac_status=$?
2233c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
2234c8a0e2f4SThomas Veerman  rm -f conftest.er1
2235c8a0e2f4SThomas Veerman  cat conftest.err >&5
2236c8a0e2f4SThomas Veerman  echo "$as_me:2236: \$? = $ac_status" >&5
2237c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
2238c8a0e2f4SThomas Veerman  if test -s conftest.err; then
2239c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
2240c8a0e2f4SThomas Veerman  else
2241c8a0e2f4SThomas Veerman    ac_cpp_err=
2242c8a0e2f4SThomas Veerman  fi
2243c8a0e2f4SThomas Veermanelse
2244c8a0e2f4SThomas Veerman  ac_cpp_err=yes
2245c8a0e2f4SThomas Veermanfi
2246c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
2247c8a0e2f4SThomas Veerman  ac_cv_header_zlib_h=yes
2248c8a0e2f4SThomas Veermanelse
2249c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2250c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
2251c8a0e2f4SThomas Veerman  ac_cv_header_zlib_h=no
2252c8a0e2f4SThomas Veermanfi
2253c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
2254c8a0e2f4SThomas Veermanfi
2255c8a0e2f4SThomas Veermanecho "$as_me:2255: result: $ac_cv_header_zlib_h" >&5
2256c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_header_zlib_h" >&6
2257c8a0e2f4SThomas Veermanif test $ac_cv_header_zlib_h = yes; then
2258c8a0e2f4SThomas Veerman  :
2259c8a0e2f4SThomas Veermanelse
2260c8a0e2f4SThomas Veerman  { { echo "$as_me:2260: error: zlib must be installed in a compiler-visible path" >&5
2261c8a0e2f4SThomas Veermanecho "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2262c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
2263c8a0e2f4SThomas Veermanfi
2264c8a0e2f4SThomas Veerman
2265c8a0e2f4SThomas Veermanecho "$as_me:2265: checking for gzdopen in -lz" >&5
2266c8a0e2f4SThomas Veermanecho $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
2267c8a0e2f4SThomas Veermanif test "${ac_cv_lib_z_gzdopen+set}" = set; then
2268c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2269c8a0e2f4SThomas Veermanelse
2270c8a0e2f4SThomas Veerman  ac_check_lib_save_LIBS=$LIBS
2271c8a0e2f4SThomas VeermanLIBS="-lz  $LIBS"
2272c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
2273c8a0e2f4SThomas Veerman#line 2273 "configure"
2274c8a0e2f4SThomas Veerman#include "confdefs.h"
2275c8a0e2f4SThomas Veerman
2276c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
2277c8a0e2f4SThomas Veerman#ifdef __cplusplus
2278c8a0e2f4SThomas Veermanextern "C"
2279c8a0e2f4SThomas Veerman#endif
2280c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
2281c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
2282c8a0e2f4SThomas Veermanchar gzdopen ();
2283c8a0e2f4SThomas Veermanint
2284c8a0e2f4SThomas Veermanmain ()
2285c8a0e2f4SThomas Veerman{
2286c8a0e2f4SThomas Veermangzdopen ();
2287c8a0e2f4SThomas Veerman  ;
2288c8a0e2f4SThomas Veerman  return 0;
2289c8a0e2f4SThomas Veerman}
2290c8a0e2f4SThomas Veerman_ACEOF
2291c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
2292c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2292: \"$ac_link\"") >&5
2293c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2294c8a0e2f4SThomas Veerman  ac_status=$?
2295c8a0e2f4SThomas Veerman  echo "$as_me:2295: \$? = $ac_status" >&5
2296c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2297c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
2298c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2298: \"$ac_try\"") >&5
2299c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2300c8a0e2f4SThomas Veerman  ac_status=$?
2301c8a0e2f4SThomas Veerman  echo "$as_me:2301: \$? = $ac_status" >&5
2302c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2303c8a0e2f4SThomas Veerman  ac_cv_lib_z_gzdopen=yes
2304c8a0e2f4SThomas Veermanelse
2305c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2306c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2307c8a0e2f4SThomas Veermanac_cv_lib_z_gzdopen=no
2308c8a0e2f4SThomas Veermanfi
2309c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2310c8a0e2f4SThomas VeermanLIBS=$ac_check_lib_save_LIBS
2311c8a0e2f4SThomas Veermanfi
2312c8a0e2f4SThomas Veermanecho "$as_me:2312: result: $ac_cv_lib_z_gzdopen" >&5
2313c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
2314c8a0e2f4SThomas Veermanif test $ac_cv_lib_z_gzdopen = yes; then
2315c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2316c8a0e2f4SThomas Veerman#define HAVE_LIBZ 1
2317c8a0e2f4SThomas VeermanEOF
2318c8a0e2f4SThomas Veerman
2319c8a0e2f4SThomas Veerman  LIBS="-lz $LIBS"
2320c8a0e2f4SThomas Veerman
2321c8a0e2f4SThomas Veermanelse
2322c8a0e2f4SThomas Veerman  { { echo "$as_me:2322: error: zlib must be installed in a compiler-visible path" >&5
2323c8a0e2f4SThomas Veermanecho "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2324c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
2325c8a0e2f4SThomas Veermanfi
2326c8a0e2f4SThomas Veerman
2327c8a0e2f4SThomas Veerman# Make sure certain required headers are available.
2328c8a0e2f4SThomas Veerman# These are not necessarily required by the code, but they are not
2329c8a0e2f4SThomas Veerman# currently conditionalized.
2330c8a0e2f4SThomas Veerman
2331c8a0e2f4SThomas Veermanfor ac_header in sys/ioctl.h sys/mman.h sys/param.h \
2332c8a0e2f4SThomas Veerman	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
2333c8a0e2f4SThomas Veerman	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
2334c8a0e2f4SThomas Veerman	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
2335c8a0e2f4SThomas Veerman	termios.h unistd.h
2336c8a0e2f4SThomas Veermando
2337c8a0e2f4SThomas Veermanas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2338c8a0e2f4SThomas Veermanecho "$as_me:2338: checking for $ac_header" >&5
2339c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2340c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_Header+set}\" = set"; then
2341c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2342c8a0e2f4SThomas Veermanelse
2343c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2344c8a0e2f4SThomas Veerman#line 2344 "configure"
2345c8a0e2f4SThomas Veerman#include "confdefs.h"
2346c8a0e2f4SThomas Veerman#include <$ac_header>
2347c8a0e2f4SThomas Veerman_ACEOF
2348c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350c8a0e2f4SThomas Veerman  ac_status=$?
2351c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
2352c8a0e2f4SThomas Veerman  rm -f conftest.er1
2353c8a0e2f4SThomas Veerman  cat conftest.err >&5
2354c8a0e2f4SThomas Veerman  echo "$as_me:2354: \$? = $ac_status" >&5
2355c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
2356c8a0e2f4SThomas Veerman  if test -s conftest.err; then
2357c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
2358c8a0e2f4SThomas Veerman  else
2359c8a0e2f4SThomas Veerman    ac_cpp_err=
2360c8a0e2f4SThomas Veerman  fi
2361c8a0e2f4SThomas Veermanelse
2362c8a0e2f4SThomas Veerman  ac_cpp_err=yes
2363c8a0e2f4SThomas Veermanfi
2364c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
2365c8a0e2f4SThomas Veerman  eval "$as_ac_Header=yes"
2366c8a0e2f4SThomas Veermanelse
2367c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2368c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
2369c8a0e2f4SThomas Veerman  eval "$as_ac_Header=no"
2370c8a0e2f4SThomas Veermanfi
2371c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
2372c8a0e2f4SThomas Veermanfi
2373c8a0e2f4SThomas Veermanecho "$as_me:2373: result: `eval echo '${'$as_ac_Header'}'`" >&5
2374c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2375c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_Header'}'` = yes; then
2376c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2377c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2378c8a0e2f4SThomas VeermanEOF
2379c8a0e2f4SThomas Veerman
2380c8a0e2f4SThomas Veermanelse
2381c8a0e2f4SThomas Veerman  { { echo "$as_me:2381: error: standard system header file not found" >&5
2382c8a0e2f4SThomas Veermanecho "$as_me: error: standard system header file not found" >&2;}
2383c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
2384c8a0e2f4SThomas Veermanfi
2385c8a0e2f4SThomas Veermandone
2386c8a0e2f4SThomas Veerman
2387c8a0e2f4SThomas Veerman# Find headers that may not be available.
2388c8a0e2f4SThomas Veerman
2389c8a0e2f4SThomas Veermanac_header_dirent=no
2390c8a0e2f4SThomas Veermanfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2391c8a0e2f4SThomas Veerman  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2392c8a0e2f4SThomas Veermanecho "$as_me:2392: checking for $ac_hdr that defines DIR" >&5
2393c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2394c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_Header+set}\" = set"; then
2395c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2396c8a0e2f4SThomas Veermanelse
2397c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2398c8a0e2f4SThomas Veerman#line 2398 "configure"
2399c8a0e2f4SThomas Veerman#include "confdefs.h"
2400c8a0e2f4SThomas Veerman#include <sys/types.h>
2401c8a0e2f4SThomas Veerman#include <$ac_hdr>
2402c8a0e2f4SThomas Veerman
2403c8a0e2f4SThomas Veermanint
2404c8a0e2f4SThomas Veermanmain ()
2405c8a0e2f4SThomas Veerman{
2406c8a0e2f4SThomas Veermanif ((DIR *) 0)
2407c8a0e2f4SThomas Veermanreturn 0;
2408c8a0e2f4SThomas Veerman  ;
2409c8a0e2f4SThomas Veerman  return 0;
2410c8a0e2f4SThomas Veerman}
2411c8a0e2f4SThomas Veerman_ACEOF
2412c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2413c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2413: \"$ac_compile\"") >&5
2414c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2415c8a0e2f4SThomas Veerman  ac_status=$?
2416c8a0e2f4SThomas Veerman  echo "$as_me:2416: \$? = $ac_status" >&5
2417c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2418c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2419c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2420c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2421c8a0e2f4SThomas Veerman  ac_status=$?
2422c8a0e2f4SThomas Veerman  echo "$as_me:2422: \$? = $ac_status" >&5
2423c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2424c8a0e2f4SThomas Veerman  eval "$as_ac_Header=yes"
2425c8a0e2f4SThomas Veermanelse
2426c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2427c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2428c8a0e2f4SThomas Veermaneval "$as_ac_Header=no"
2429c8a0e2f4SThomas Veermanfi
2430c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2431c8a0e2f4SThomas Veermanfi
2432c8a0e2f4SThomas Veermanecho "$as_me:2432: result: `eval echo '${'$as_ac_Header'}'`" >&5
2433c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2434c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_Header'}'` = yes; then
2435c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2436c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2437c8a0e2f4SThomas VeermanEOF
2438c8a0e2f4SThomas Veerman
2439c8a0e2f4SThomas Veermanac_header_dirent=$ac_hdr; break
2440c8a0e2f4SThomas Veermanfi
2441c8a0e2f4SThomas Veerman
2442c8a0e2f4SThomas Veermandone
2443c8a0e2f4SThomas Veerman# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2444c8a0e2f4SThomas Veermanif test $ac_header_dirent = dirent.h; then
2445c8a0e2f4SThomas Veerman  echo "$as_me:2445: checking for opendir in -ldir" >&5
2446c8a0e2f4SThomas Veermanecho $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2447c8a0e2f4SThomas Veermanif test "${ac_cv_lib_dir_opendir+set}" = set; then
2448c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2449c8a0e2f4SThomas Veermanelse
2450c8a0e2f4SThomas Veerman  ac_check_lib_save_LIBS=$LIBS
2451c8a0e2f4SThomas VeermanLIBS="-ldir  $LIBS"
2452c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
2453c8a0e2f4SThomas Veerman#line 2453 "configure"
2454c8a0e2f4SThomas Veerman#include "confdefs.h"
2455c8a0e2f4SThomas Veerman
2456c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
2457c8a0e2f4SThomas Veerman#ifdef __cplusplus
2458c8a0e2f4SThomas Veermanextern "C"
2459c8a0e2f4SThomas Veerman#endif
2460c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
2461c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
2462c8a0e2f4SThomas Veermanchar opendir ();
2463c8a0e2f4SThomas Veermanint
2464c8a0e2f4SThomas Veermanmain ()
2465c8a0e2f4SThomas Veerman{
2466c8a0e2f4SThomas Veermanopendir ();
2467c8a0e2f4SThomas Veerman  ;
2468c8a0e2f4SThomas Veerman  return 0;
2469c8a0e2f4SThomas Veerman}
2470c8a0e2f4SThomas Veerman_ACEOF
2471c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
2472c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2472: \"$ac_link\"") >&5
2473c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2474c8a0e2f4SThomas Veerman  ac_status=$?
2475c8a0e2f4SThomas Veerman  echo "$as_me:2475: \$? = $ac_status" >&5
2476c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2477c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
2478c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2478: \"$ac_try\"") >&5
2479c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2480c8a0e2f4SThomas Veerman  ac_status=$?
2481c8a0e2f4SThomas Veerman  echo "$as_me:2481: \$? = $ac_status" >&5
2482c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2483c8a0e2f4SThomas Veerman  ac_cv_lib_dir_opendir=yes
2484c8a0e2f4SThomas Veermanelse
2485c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2486c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2487c8a0e2f4SThomas Veermanac_cv_lib_dir_opendir=no
2488c8a0e2f4SThomas Veermanfi
2489c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2490c8a0e2f4SThomas VeermanLIBS=$ac_check_lib_save_LIBS
2491c8a0e2f4SThomas Veermanfi
2492c8a0e2f4SThomas Veermanecho "$as_me:2492: result: $ac_cv_lib_dir_opendir" >&5
2493c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2494c8a0e2f4SThomas Veermanif test $ac_cv_lib_dir_opendir = yes; then
2495c8a0e2f4SThomas Veerman  LIBS="$LIBS -ldir"
2496c8a0e2f4SThomas Veermanfi
2497c8a0e2f4SThomas Veerman
2498c8a0e2f4SThomas Veermanelse
2499c8a0e2f4SThomas Veerman  echo "$as_me:2499: checking for opendir in -lx" >&5
2500c8a0e2f4SThomas Veermanecho $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2501c8a0e2f4SThomas Veermanif test "${ac_cv_lib_x_opendir+set}" = set; then
2502c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2503c8a0e2f4SThomas Veermanelse
2504c8a0e2f4SThomas Veerman  ac_check_lib_save_LIBS=$LIBS
2505c8a0e2f4SThomas VeermanLIBS="-lx  $LIBS"
2506c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
2507c8a0e2f4SThomas Veerman#line 2507 "configure"
2508c8a0e2f4SThomas Veerman#include "confdefs.h"
2509c8a0e2f4SThomas Veerman
2510c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
2511c8a0e2f4SThomas Veerman#ifdef __cplusplus
2512c8a0e2f4SThomas Veermanextern "C"
2513c8a0e2f4SThomas Veerman#endif
2514c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
2515c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
2516c8a0e2f4SThomas Veermanchar opendir ();
2517c8a0e2f4SThomas Veermanint
2518c8a0e2f4SThomas Veermanmain ()
2519c8a0e2f4SThomas Veerman{
2520c8a0e2f4SThomas Veermanopendir ();
2521c8a0e2f4SThomas Veerman  ;
2522c8a0e2f4SThomas Veerman  return 0;
2523c8a0e2f4SThomas Veerman}
2524c8a0e2f4SThomas Veerman_ACEOF
2525c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
2526c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2526: \"$ac_link\"") >&5
2527c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
2528c8a0e2f4SThomas Veerman  ac_status=$?
2529c8a0e2f4SThomas Veerman  echo "$as_me:2529: \$? = $ac_status" >&5
2530c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2531c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
2532c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2532: \"$ac_try\"") >&5
2533c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2534c8a0e2f4SThomas Veerman  ac_status=$?
2535c8a0e2f4SThomas Veerman  echo "$as_me:2535: \$? = $ac_status" >&5
2536c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2537c8a0e2f4SThomas Veerman  ac_cv_lib_x_opendir=yes
2538c8a0e2f4SThomas Veermanelse
2539c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2540c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2541c8a0e2f4SThomas Veermanac_cv_lib_x_opendir=no
2542c8a0e2f4SThomas Veermanfi
2543c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2544c8a0e2f4SThomas VeermanLIBS=$ac_check_lib_save_LIBS
2545c8a0e2f4SThomas Veermanfi
2546c8a0e2f4SThomas Veermanecho "$as_me:2546: result: $ac_cv_lib_x_opendir" >&5
2547c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2548c8a0e2f4SThomas Veermanif test $ac_cv_lib_x_opendir = yes; then
2549c8a0e2f4SThomas Veerman  LIBS="$LIBS -lx"
2550c8a0e2f4SThomas Veermanfi
2551c8a0e2f4SThomas Veerman
2552c8a0e2f4SThomas Veermanfi
2553c8a0e2f4SThomas Veerman
2554c8a0e2f4SThomas Veermanfor ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h \
255584d9c625SLionel Sambuc	getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h rpc/types.h
2556c8a0e2f4SThomas Veermando
2557c8a0e2f4SThomas Veermanas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2558c8a0e2f4SThomas Veermanecho "$as_me:2558: checking for $ac_header" >&5
2559c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2560c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_Header+set}\" = set"; then
2561c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2562c8a0e2f4SThomas Veermanelse
2563c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2564c8a0e2f4SThomas Veerman#line 2564 "configure"
2565c8a0e2f4SThomas Veerman#include "confdefs.h"
2566c8a0e2f4SThomas Veerman#include <$ac_header>
2567c8a0e2f4SThomas Veerman_ACEOF
2568c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5
2569c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570c8a0e2f4SThomas Veerman  ac_status=$?
2571c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
2572c8a0e2f4SThomas Veerman  rm -f conftest.er1
2573c8a0e2f4SThomas Veerman  cat conftest.err >&5
2574c8a0e2f4SThomas Veerman  echo "$as_me:2574: \$? = $ac_status" >&5
2575c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
2576c8a0e2f4SThomas Veerman  if test -s conftest.err; then
2577c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
2578c8a0e2f4SThomas Veerman  else
2579c8a0e2f4SThomas Veerman    ac_cpp_err=
2580c8a0e2f4SThomas Veerman  fi
2581c8a0e2f4SThomas Veermanelse
2582c8a0e2f4SThomas Veerman  ac_cpp_err=yes
2583c8a0e2f4SThomas Veermanfi
2584c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
2585c8a0e2f4SThomas Veerman  eval "$as_ac_Header=yes"
2586c8a0e2f4SThomas Veermanelse
2587c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2588c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
2589c8a0e2f4SThomas Veerman  eval "$as_ac_Header=no"
2590c8a0e2f4SThomas Veermanfi
2591c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
2592c8a0e2f4SThomas Veermanfi
2593c8a0e2f4SThomas Veermanecho "$as_me:2593: result: `eval echo '${'$as_ac_Header'}'`" >&5
2594c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2595c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_Header'}'` = yes; then
2596c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2597c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2598c8a0e2f4SThomas VeermanEOF
2599c8a0e2f4SThomas Veerman
2600c8a0e2f4SThomas Veermanfi
2601c8a0e2f4SThomas Veermandone
2602c8a0e2f4SThomas Veerman
2603c8a0e2f4SThomas Veermanfor ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
2604c8a0e2f4SThomas Veerman	sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
2605c8a0e2f4SThomas Veerman	stdint.h util.h resolv.h arpa/nameser.h
2606c8a0e2f4SThomas Veermando
2607c8a0e2f4SThomas Veermanas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2608c8a0e2f4SThomas Veermanecho "$as_me:2608: checking for $ac_header" >&5
2609c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2610c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_Header+set}\" = set"; then
2611c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2612c8a0e2f4SThomas Veermanelse
2613c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2614c8a0e2f4SThomas Veerman#line 2614 "configure"
2615c8a0e2f4SThomas Veerman#include "confdefs.h"
2616c8a0e2f4SThomas Veerman#include <$ac_header>
2617c8a0e2f4SThomas Veerman_ACEOF
2618c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5
2619c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2620c8a0e2f4SThomas Veerman  ac_status=$?
2621c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
2622c8a0e2f4SThomas Veerman  rm -f conftest.er1
2623c8a0e2f4SThomas Veerman  cat conftest.err >&5
2624c8a0e2f4SThomas Veerman  echo "$as_me:2624: \$? = $ac_status" >&5
2625c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
2626c8a0e2f4SThomas Veerman  if test -s conftest.err; then
2627c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
2628c8a0e2f4SThomas Veerman  else
2629c8a0e2f4SThomas Veerman    ac_cpp_err=
2630c8a0e2f4SThomas Veerman  fi
2631c8a0e2f4SThomas Veermanelse
2632c8a0e2f4SThomas Veerman  ac_cpp_err=yes
2633c8a0e2f4SThomas Veermanfi
2634c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
2635c8a0e2f4SThomas Veerman  eval "$as_ac_Header=yes"
2636c8a0e2f4SThomas Veermanelse
2637c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2638c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
2639c8a0e2f4SThomas Veerman  eval "$as_ac_Header=no"
2640c8a0e2f4SThomas Veermanfi
2641c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
2642c8a0e2f4SThomas Veermanfi
2643c8a0e2f4SThomas Veermanecho "$as_me:2643: result: `eval echo '${'$as_ac_Header'}'`" >&5
2644c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2645c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_Header'}'` = yes; then
2646c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2647c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2648c8a0e2f4SThomas VeermanEOF
2649c8a0e2f4SThomas Veerman
2650c8a0e2f4SThomas Veermanelse
2651c8a0e2f4SThomas Veerman  test -f include/$ac_header || touch include/$ac_header
2652c8a0e2f4SThomas Veermanfi
2653c8a0e2f4SThomas Veermandone
2654c8a0e2f4SThomas Veerman
2655c8a0e2f4SThomas Veermanfor ac_header in rpc/types.h netconfig.h
2656c8a0e2f4SThomas Veermando
2657c8a0e2f4SThomas Veermanas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2658c8a0e2f4SThomas Veermanecho "$as_me:2658: checking for $ac_header" >&5
2659c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2660c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_Header+set}\" = set"; then
2661c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2662c8a0e2f4SThomas Veermanelse
2663c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2664c8a0e2f4SThomas Veerman#line 2664 "configure"
2665c8a0e2f4SThomas Veerman#include "confdefs.h"
2666c8a0e2f4SThomas Veerman#include <$ac_header>
2667c8a0e2f4SThomas Veerman_ACEOF
2668c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2668: \"$ac_cpp conftest.$ac_ext\"") >&5
2669c8a0e2f4SThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2670c8a0e2f4SThomas Veerman  ac_status=$?
2671c8a0e2f4SThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
2672c8a0e2f4SThomas Veerman  rm -f conftest.er1
2673c8a0e2f4SThomas Veerman  cat conftest.err >&5
2674c8a0e2f4SThomas Veerman  echo "$as_me:2674: \$? = $ac_status" >&5
2675c8a0e2f4SThomas Veerman  (exit $ac_status); } >/dev/null; then
2676c8a0e2f4SThomas Veerman  if test -s conftest.err; then
2677c8a0e2f4SThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
2678c8a0e2f4SThomas Veerman  else
2679c8a0e2f4SThomas Veerman    ac_cpp_err=
2680c8a0e2f4SThomas Veerman  fi
2681c8a0e2f4SThomas Veermanelse
2682c8a0e2f4SThomas Veerman  ac_cpp_err=yes
2683c8a0e2f4SThomas Veermanfi
2684c8a0e2f4SThomas Veermanif test -z "$ac_cpp_err"; then
2685c8a0e2f4SThomas Veerman  eval "$as_ac_Header=yes"
2686c8a0e2f4SThomas Veermanelse
2687c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2688c8a0e2f4SThomas Veerman  cat conftest.$ac_ext >&5
2689c8a0e2f4SThomas Veerman  eval "$as_ac_Header=no"
2690c8a0e2f4SThomas Veermanfi
2691c8a0e2f4SThomas Veermanrm -f conftest.err conftest.$ac_ext
2692c8a0e2f4SThomas Veermanfi
2693c8a0e2f4SThomas Veermanecho "$as_me:2693: result: `eval echo '${'$as_ac_Header'}'`" >&5
2694c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2695c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_Header'}'` = yes; then
2696c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2697c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2698c8a0e2f4SThomas VeermanEOF
2699c8a0e2f4SThomas Veerman
2700c8a0e2f4SThomas Veermanelse
2701c8a0e2f4SThomas Veerman  echo '#include "nbtool_config.h"' >include/$ac_header.new
2702c8a0e2f4SThomas Veerman	echo '#include "'$srcdir/../../include/$ac_header'"' \
2703c8a0e2f4SThomas Veerman		>>include/$ac_header.new
2704c8a0e2f4SThomas Veerman	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
2705c8a0e2f4SThomas Veerman		rm -f include/$ac_header.new
2706c8a0e2f4SThomas Veerman	else
2707c8a0e2f4SThomas Veerman		mv -f include/$ac_header.new include/$ac_header
2708c8a0e2f4SThomas Veerman	fi
2709c8a0e2f4SThomas Veermanfi
2710c8a0e2f4SThomas Veermandone
2711c8a0e2f4SThomas Veerman
2712c8a0e2f4SThomas Veerman# Typedefs.
2713c8a0e2f4SThomas Veerman# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2714c8a0e2f4SThomas Veerman
2715c8a0e2f4SThomas Veermanfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2716c8a0e2f4SThomas Veerman                  inttypes.h stdint.h unistd.h
2717c8a0e2f4SThomas Veermando
2718c8a0e2f4SThomas Veermanas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2719c8a0e2f4SThomas Veermanecho "$as_me:2719: checking for $ac_header" >&5
2720c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2721c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_Header+set}\" = set"; then
2722c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2723c8a0e2f4SThomas Veermanelse
2724c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2725c8a0e2f4SThomas Veerman#line 2725 "configure"
2726c8a0e2f4SThomas Veerman#include "confdefs.h"
2727c8a0e2f4SThomas Veerman$ac_includes_default
2728c8a0e2f4SThomas Veerman#include <$ac_header>
2729c8a0e2f4SThomas Veerman_ACEOF
2730c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2731c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2731: \"$ac_compile\"") >&5
2732c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2733c8a0e2f4SThomas Veerman  ac_status=$?
2734c8a0e2f4SThomas Veerman  echo "$as_me:2734: \$? = $ac_status" >&5
2735c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2736c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2737c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2737: \"$ac_try\"") >&5
2738c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2739c8a0e2f4SThomas Veerman  ac_status=$?
2740c8a0e2f4SThomas Veerman  echo "$as_me:2740: \$? = $ac_status" >&5
2741c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2742c8a0e2f4SThomas Veerman  eval "$as_ac_Header=yes"
2743c8a0e2f4SThomas Veermanelse
2744c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2745c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2746c8a0e2f4SThomas Veermaneval "$as_ac_Header=no"
2747c8a0e2f4SThomas Veermanfi
2748c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2749c8a0e2f4SThomas Veermanfi
2750c8a0e2f4SThomas Veermanecho "$as_me:2750: result: `eval echo '${'$as_ac_Header'}'`" >&5
2751c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2752c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_Header'}'` = yes; then
2753c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
2754c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2755c8a0e2f4SThomas VeermanEOF
2756c8a0e2f4SThomas Veerman
2757c8a0e2f4SThomas Veermanfi
2758c8a0e2f4SThomas Veermandone
2759c8a0e2f4SThomas Veerman
2760c8a0e2f4SThomas Veermanecho "$as_me:2760: checking for size_t" >&5
2761c8a0e2f4SThomas Veermanecho $ECHO_N "checking for size_t... $ECHO_C" >&6
2762c8a0e2f4SThomas Veermanif test "${ac_cv_type_size_t+set}" = set; then
2763c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2764c8a0e2f4SThomas Veermanelse
2765c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2766c8a0e2f4SThomas Veerman#line 2766 "configure"
2767c8a0e2f4SThomas Veerman#include "confdefs.h"
2768c8a0e2f4SThomas Veerman$ac_includes_default
2769c8a0e2f4SThomas Veermanint
2770c8a0e2f4SThomas Veermanmain ()
2771c8a0e2f4SThomas Veerman{
2772c8a0e2f4SThomas Veermanif ((size_t *) 0)
2773c8a0e2f4SThomas Veerman  return 0;
2774c8a0e2f4SThomas Veermanif (sizeof (size_t))
2775c8a0e2f4SThomas Veerman  return 0;
2776c8a0e2f4SThomas Veerman  ;
2777c8a0e2f4SThomas Veerman  return 0;
2778c8a0e2f4SThomas Veerman}
2779c8a0e2f4SThomas Veerman_ACEOF
2780c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2781c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2781: \"$ac_compile\"") >&5
2782c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2783c8a0e2f4SThomas Veerman  ac_status=$?
2784c8a0e2f4SThomas Veerman  echo "$as_me:2784: \$? = $ac_status" >&5
2785c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2786c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2787c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2787: \"$ac_try\"") >&5
2788c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2789c8a0e2f4SThomas Veerman  ac_status=$?
2790c8a0e2f4SThomas Veerman  echo "$as_me:2790: \$? = $ac_status" >&5
2791c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2792c8a0e2f4SThomas Veerman  ac_cv_type_size_t=yes
2793c8a0e2f4SThomas Veermanelse
2794c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2795c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2796c8a0e2f4SThomas Veermanac_cv_type_size_t=no
2797c8a0e2f4SThomas Veermanfi
2798c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2799c8a0e2f4SThomas Veermanfi
2800c8a0e2f4SThomas Veermanecho "$as_me:2800: result: $ac_cv_type_size_t" >&5
2801c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_size_t" >&6
2802c8a0e2f4SThomas Veermanif test $ac_cv_type_size_t = yes; then
2803c8a0e2f4SThomas Veerman  :
2804c8a0e2f4SThomas Veermanelse
2805c8a0e2f4SThomas Veerman
2806c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
2807c8a0e2f4SThomas Veerman#define size_t unsigned
2808c8a0e2f4SThomas VeermanEOF
2809c8a0e2f4SThomas Veerman
2810c8a0e2f4SThomas Veermanfi
2811c8a0e2f4SThomas Veerman
2812c8a0e2f4SThomas Veermanecho "$as_me:2812: checking for id_t" >&5
2813c8a0e2f4SThomas Veermanecho $ECHO_N "checking for id_t... $ECHO_C" >&6
2814c8a0e2f4SThomas Veermanif test "${ac_cv_type_id_t+set}" = set; then
2815c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2816c8a0e2f4SThomas Veermanelse
2817c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2818c8a0e2f4SThomas Veerman#line 2818 "configure"
2819c8a0e2f4SThomas Veerman#include "confdefs.h"
2820c8a0e2f4SThomas Veerman$ac_includes_default
2821c8a0e2f4SThomas Veermanint
2822c8a0e2f4SThomas Veermanmain ()
2823c8a0e2f4SThomas Veerman{
2824c8a0e2f4SThomas Veermanif ((id_t *) 0)
2825c8a0e2f4SThomas Veerman  return 0;
2826c8a0e2f4SThomas Veermanif (sizeof (id_t))
2827c8a0e2f4SThomas Veerman  return 0;
2828c8a0e2f4SThomas Veerman  ;
2829c8a0e2f4SThomas Veerman  return 0;
2830c8a0e2f4SThomas Veerman}
2831c8a0e2f4SThomas Veerman_ACEOF
2832c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2833c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2833: \"$ac_compile\"") >&5
2834c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2835c8a0e2f4SThomas Veerman  ac_status=$?
2836c8a0e2f4SThomas Veerman  echo "$as_me:2836: \$? = $ac_status" >&5
2837c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2838c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2839c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2839: \"$ac_try\"") >&5
2840c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2841c8a0e2f4SThomas Veerman  ac_status=$?
2842c8a0e2f4SThomas Veerman  echo "$as_me:2842: \$? = $ac_status" >&5
2843c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2844c8a0e2f4SThomas Veerman  ac_cv_type_id_t=yes
2845c8a0e2f4SThomas Veermanelse
2846c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2847c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2848c8a0e2f4SThomas Veermanac_cv_type_id_t=no
2849c8a0e2f4SThomas Veermanfi
2850c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2851c8a0e2f4SThomas Veermanfi
2852c8a0e2f4SThomas Veermanecho "$as_me:2852: result: $ac_cv_type_id_t" >&5
2853c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_id_t" >&6
2854c8a0e2f4SThomas Veermanif test $ac_cv_type_id_t = yes; then
2855c8a0e2f4SThomas Veerman
2856c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
2857c8a0e2f4SThomas Veerman#define HAVE_ID_T 1
2858c8a0e2f4SThomas VeermanEOF
2859c8a0e2f4SThomas Veerman
2860c8a0e2f4SThomas Veermanfi
2861c8a0e2f4SThomas Veermanecho "$as_me:2861: checking for long long" >&5
2862c8a0e2f4SThomas Veermanecho $ECHO_N "checking for long long... $ECHO_C" >&6
2863c8a0e2f4SThomas Veermanif test "${ac_cv_type_long_long+set}" = set; then
2864c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2865c8a0e2f4SThomas Veermanelse
2866c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2867c8a0e2f4SThomas Veerman#line 2867 "configure"
2868c8a0e2f4SThomas Veerman#include "confdefs.h"
2869c8a0e2f4SThomas Veerman$ac_includes_default
2870c8a0e2f4SThomas Veermanint
2871c8a0e2f4SThomas Veermanmain ()
2872c8a0e2f4SThomas Veerman{
2873c8a0e2f4SThomas Veermanif ((long long *) 0)
2874c8a0e2f4SThomas Veerman  return 0;
2875c8a0e2f4SThomas Veermanif (sizeof (long long))
2876c8a0e2f4SThomas Veerman  return 0;
2877c8a0e2f4SThomas Veerman  ;
2878c8a0e2f4SThomas Veerman  return 0;
2879c8a0e2f4SThomas Veerman}
2880c8a0e2f4SThomas Veerman_ACEOF
2881c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2882c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2882: \"$ac_compile\"") >&5
2883c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2884c8a0e2f4SThomas Veerman  ac_status=$?
2885c8a0e2f4SThomas Veerman  echo "$as_me:2885: \$? = $ac_status" >&5
2886c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2887c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2888c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2888: \"$ac_try\"") >&5
2889c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2890c8a0e2f4SThomas Veerman  ac_status=$?
2891c8a0e2f4SThomas Veerman  echo "$as_me:2891: \$? = $ac_status" >&5
2892c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2893c8a0e2f4SThomas Veerman  ac_cv_type_long_long=yes
2894c8a0e2f4SThomas Veermanelse
2895c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2896c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2897c8a0e2f4SThomas Veermanac_cv_type_long_long=no
2898c8a0e2f4SThomas Veermanfi
2899c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2900c8a0e2f4SThomas Veermanfi
2901c8a0e2f4SThomas Veermanecho "$as_me:2901: result: $ac_cv_type_long_long" >&5
2902c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_long_long" >&6
2903c8a0e2f4SThomas Veermanif test $ac_cv_type_long_long = yes; then
2904c8a0e2f4SThomas Veerman
2905c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
2906c8a0e2f4SThomas Veerman#define HAVE_LONG_LONG 1
2907c8a0e2f4SThomas VeermanEOF
2908c8a0e2f4SThomas Veerman
2909c8a0e2f4SThomas Veermanfi
2910c8a0e2f4SThomas Veermanecho "$as_me:2910: checking for u_long" >&5
2911c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_long... $ECHO_C" >&6
2912c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_long+set}" = set; then
2913c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2914c8a0e2f4SThomas Veermanelse
2915c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2916c8a0e2f4SThomas Veerman#line 2916 "configure"
2917c8a0e2f4SThomas Veerman#include "confdefs.h"
2918c8a0e2f4SThomas Veerman$ac_includes_default
2919c8a0e2f4SThomas Veermanint
2920c8a0e2f4SThomas Veermanmain ()
2921c8a0e2f4SThomas Veerman{
2922c8a0e2f4SThomas Veermanif ((u_long *) 0)
2923c8a0e2f4SThomas Veerman  return 0;
2924c8a0e2f4SThomas Veermanif (sizeof (u_long))
2925c8a0e2f4SThomas Veerman  return 0;
2926c8a0e2f4SThomas Veerman  ;
2927c8a0e2f4SThomas Veerman  return 0;
2928c8a0e2f4SThomas Veerman}
2929c8a0e2f4SThomas Veerman_ACEOF
2930c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2931c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2931: \"$ac_compile\"") >&5
2932c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2933c8a0e2f4SThomas Veerman  ac_status=$?
2934c8a0e2f4SThomas Veerman  echo "$as_me:2934: \$? = $ac_status" >&5
2935c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2936c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2937c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2937: \"$ac_try\"") >&5
2938c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2939c8a0e2f4SThomas Veerman  ac_status=$?
2940c8a0e2f4SThomas Veerman  echo "$as_me:2940: \$? = $ac_status" >&5
2941c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2942c8a0e2f4SThomas Veerman  ac_cv_type_u_long=yes
2943c8a0e2f4SThomas Veermanelse
2944c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2945c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2946c8a0e2f4SThomas Veermanac_cv_type_u_long=no
2947c8a0e2f4SThomas Veermanfi
2948c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2949c8a0e2f4SThomas Veermanfi
2950c8a0e2f4SThomas Veermanecho "$as_me:2950: result: $ac_cv_type_u_long" >&5
2951c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_long" >&6
2952c8a0e2f4SThomas Veermanif test $ac_cv_type_u_long = yes; then
2953c8a0e2f4SThomas Veerman
2954c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
2955c8a0e2f4SThomas Veerman#define HAVE_U_LONG 1
2956c8a0e2f4SThomas VeermanEOF
2957c8a0e2f4SThomas Veerman
2958c8a0e2f4SThomas Veermanfi
2959c8a0e2f4SThomas Veermanecho "$as_me:2959: checking for u_char" >&5
2960c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_char... $ECHO_C" >&6
2961c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_char+set}" = set; then
2962c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
2963c8a0e2f4SThomas Veermanelse
2964c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
2965c8a0e2f4SThomas Veerman#line 2965 "configure"
2966c8a0e2f4SThomas Veerman#include "confdefs.h"
2967c8a0e2f4SThomas Veerman$ac_includes_default
2968c8a0e2f4SThomas Veermanint
2969c8a0e2f4SThomas Veermanmain ()
2970c8a0e2f4SThomas Veerman{
2971c8a0e2f4SThomas Veermanif ((u_char *) 0)
2972c8a0e2f4SThomas Veerman  return 0;
2973c8a0e2f4SThomas Veermanif (sizeof (u_char))
2974c8a0e2f4SThomas Veerman  return 0;
2975c8a0e2f4SThomas Veerman  ;
2976c8a0e2f4SThomas Veerman  return 0;
2977c8a0e2f4SThomas Veerman}
2978c8a0e2f4SThomas Veerman_ACEOF
2979c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
2980c8a0e2f4SThomas Veermanif { (eval echo "$as_me:2980: \"$ac_compile\"") >&5
2981c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
2982c8a0e2f4SThomas Veerman  ac_status=$?
2983c8a0e2f4SThomas Veerman  echo "$as_me:2983: \$? = $ac_status" >&5
2984c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
2985c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2986c8a0e2f4SThomas Veerman  { (eval echo "$as_me:2986: \"$ac_try\"") >&5
2987c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
2988c8a0e2f4SThomas Veerman  ac_status=$?
2989c8a0e2f4SThomas Veerman  echo "$as_me:2989: \$? = $ac_status" >&5
2990c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
2991c8a0e2f4SThomas Veerman  ac_cv_type_u_char=yes
2992c8a0e2f4SThomas Veermanelse
2993c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
2994c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
2995c8a0e2f4SThomas Veermanac_cv_type_u_char=no
2996c8a0e2f4SThomas Veermanfi
2997c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
2998c8a0e2f4SThomas Veermanfi
2999c8a0e2f4SThomas Veermanecho "$as_me:2999: result: $ac_cv_type_u_char" >&5
3000c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_char" >&6
3001c8a0e2f4SThomas Veermanif test $ac_cv_type_u_char = yes; then
3002c8a0e2f4SThomas Veerman
3003c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
3004c8a0e2f4SThomas Veerman#define HAVE_U_CHAR 1
3005c8a0e2f4SThomas VeermanEOF
3006c8a0e2f4SThomas Veerman
3007c8a0e2f4SThomas Veermanfi
3008c8a0e2f4SThomas Veermanecho "$as_me:3008: checking for u_short" >&5
3009c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_short... $ECHO_C" >&6
3010c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_short+set}" = set; then
3011c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3012c8a0e2f4SThomas Veermanelse
3013c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3014c8a0e2f4SThomas Veerman#line 3014 "configure"
3015c8a0e2f4SThomas Veerman#include "confdefs.h"
3016c8a0e2f4SThomas Veerman$ac_includes_default
3017c8a0e2f4SThomas Veermanint
3018c8a0e2f4SThomas Veermanmain ()
3019c8a0e2f4SThomas Veerman{
3020c8a0e2f4SThomas Veermanif ((u_short *) 0)
3021c8a0e2f4SThomas Veerman  return 0;
3022c8a0e2f4SThomas Veermanif (sizeof (u_short))
3023c8a0e2f4SThomas Veerman  return 0;
3024c8a0e2f4SThomas Veerman  ;
3025c8a0e2f4SThomas Veerman  return 0;
3026c8a0e2f4SThomas Veerman}
3027c8a0e2f4SThomas Veerman_ACEOF
3028c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
3029c8a0e2f4SThomas Veermanif { (eval echo "$as_me:3029: \"$ac_compile\"") >&5
3030c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3031c8a0e2f4SThomas Veerman  ac_status=$?
3032c8a0e2f4SThomas Veerman  echo "$as_me:3032: \$? = $ac_status" >&5
3033c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3034c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
3035c8a0e2f4SThomas Veerman  { (eval echo "$as_me:3035: \"$ac_try\"") >&5
3036c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3037c8a0e2f4SThomas Veerman  ac_status=$?
3038c8a0e2f4SThomas Veerman  echo "$as_me:3038: \$? = $ac_status" >&5
3039c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3040c8a0e2f4SThomas Veerman  ac_cv_type_u_short=yes
3041c8a0e2f4SThomas Veermanelse
3042c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3043c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3044c8a0e2f4SThomas Veermanac_cv_type_u_short=no
3045c8a0e2f4SThomas Veermanfi
3046c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3047c8a0e2f4SThomas Veermanfi
3048c8a0e2f4SThomas Veermanecho "$as_me:3048: result: $ac_cv_type_u_short" >&5
3049c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_short" >&6
3050c8a0e2f4SThomas Veermanif test $ac_cv_type_u_short = yes; then
3051c8a0e2f4SThomas Veerman
3052c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
3053c8a0e2f4SThomas Veerman#define HAVE_U_SHORT 1
3054c8a0e2f4SThomas VeermanEOF
3055c8a0e2f4SThomas Veerman
3056c8a0e2f4SThomas Veermanfi
3057c8a0e2f4SThomas Veermanecho "$as_me:3057: checking for u_int" >&5
3058c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int... $ECHO_C" >&6
3059c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int+set}" = set; then
3060c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3061c8a0e2f4SThomas Veermanelse
3062c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3063c8a0e2f4SThomas Veerman#line 3063 "configure"
3064c8a0e2f4SThomas Veerman#include "confdefs.h"
3065c8a0e2f4SThomas Veerman$ac_includes_default
3066c8a0e2f4SThomas Veermanint
3067c8a0e2f4SThomas Veermanmain ()
3068c8a0e2f4SThomas Veerman{
3069c8a0e2f4SThomas Veermanif ((u_int *) 0)
3070c8a0e2f4SThomas Veerman  return 0;
3071c8a0e2f4SThomas Veermanif (sizeof (u_int))
3072c8a0e2f4SThomas Veerman  return 0;
3073c8a0e2f4SThomas Veerman  ;
3074c8a0e2f4SThomas Veerman  return 0;
3075c8a0e2f4SThomas Veerman}
3076c8a0e2f4SThomas Veerman_ACEOF
3077c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
3078c8a0e2f4SThomas Veermanif { (eval echo "$as_me:3078: \"$ac_compile\"") >&5
3079c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3080c8a0e2f4SThomas Veerman  ac_status=$?
3081c8a0e2f4SThomas Veerman  echo "$as_me:3081: \$? = $ac_status" >&5
3082c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3083c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
3084c8a0e2f4SThomas Veerman  { (eval echo "$as_me:3084: \"$ac_try\"") >&5
3085c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3086c8a0e2f4SThomas Veerman  ac_status=$?
3087c8a0e2f4SThomas Veerman  echo "$as_me:3087: \$? = $ac_status" >&5
3088c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3089c8a0e2f4SThomas Veerman  ac_cv_type_u_int=yes
3090c8a0e2f4SThomas Veermanelse
3091c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3092c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3093c8a0e2f4SThomas Veermanac_cv_type_u_int=no
3094c8a0e2f4SThomas Veermanfi
3095c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3096c8a0e2f4SThomas Veermanfi
3097c8a0e2f4SThomas Veermanecho "$as_me:3097: result: $ac_cv_type_u_int" >&5
3098c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int" >&6
3099c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int = yes; then
3100c8a0e2f4SThomas Veerman
3101c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
3102c8a0e2f4SThomas Veerman#define HAVE_U_INT 1
3103c8a0e2f4SThomas VeermanEOF
3104c8a0e2f4SThomas Veerman
3105c8a0e2f4SThomas Veermanfi
3106c8a0e2f4SThomas Veermanecho "$as_me:3106: checking for u_quad_t" >&5
3107c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
3108c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_quad_t+set}" = set; then
3109c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3110c8a0e2f4SThomas Veermanelse
3111c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3112c8a0e2f4SThomas Veerman#line 3112 "configure"
3113c8a0e2f4SThomas Veerman#include "confdefs.h"
3114c8a0e2f4SThomas Veerman$ac_includes_default
3115c8a0e2f4SThomas Veermanint
3116c8a0e2f4SThomas Veermanmain ()
3117c8a0e2f4SThomas Veerman{
3118c8a0e2f4SThomas Veermanif ((u_quad_t *) 0)
3119c8a0e2f4SThomas Veerman  return 0;
3120c8a0e2f4SThomas Veermanif (sizeof (u_quad_t))
3121c8a0e2f4SThomas Veerman  return 0;
3122c8a0e2f4SThomas Veerman  ;
3123c8a0e2f4SThomas Veerman  return 0;
3124c8a0e2f4SThomas Veerman}
3125c8a0e2f4SThomas Veerman_ACEOF
3126c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
3127c8a0e2f4SThomas Veermanif { (eval echo "$as_me:3127: \"$ac_compile\"") >&5
3128c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3129c8a0e2f4SThomas Veerman  ac_status=$?
3130c8a0e2f4SThomas Veerman  echo "$as_me:3130: \$? = $ac_status" >&5
3131c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3132c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
3133c8a0e2f4SThomas Veerman  { (eval echo "$as_me:3133: \"$ac_try\"") >&5
3134c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3135c8a0e2f4SThomas Veerman  ac_status=$?
3136c8a0e2f4SThomas Veerman  echo "$as_me:3136: \$? = $ac_status" >&5
3137c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3138c8a0e2f4SThomas Veerman  ac_cv_type_u_quad_t=yes
3139c8a0e2f4SThomas Veermanelse
3140c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3141c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3142c8a0e2f4SThomas Veermanac_cv_type_u_quad_t=no
3143c8a0e2f4SThomas Veermanfi
3144c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3145c8a0e2f4SThomas Veermanfi
3146c8a0e2f4SThomas Veermanecho "$as_me:3146: result: $ac_cv_type_u_quad_t" >&5
3147c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_quad_t" >&6
3148c8a0e2f4SThomas Veermanif test $ac_cv_type_u_quad_t = yes; then
3149c8a0e2f4SThomas Veerman
3150c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
3151c8a0e2f4SThomas Veerman#define HAVE_U_QUAD_T 1
3152c8a0e2f4SThomas VeermanEOF
3153c8a0e2f4SThomas Veerman
3154c8a0e2f4SThomas Veermanfi
3155c8a0e2f4SThomas Veerman
3156c8a0e2f4SThomas Veermanecho "$as_me:3156: checking for socklen_t" >&5
3157c8a0e2f4SThomas Veermanecho $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3158c8a0e2f4SThomas Veermanif test "${ac_cv_type_socklen_t+set}" = set; then
3159c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3160c8a0e2f4SThomas Veermanelse
3161c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3162c8a0e2f4SThomas Veerman#line 3162 "configure"
3163c8a0e2f4SThomas Veerman#include "confdefs.h"
3164c8a0e2f4SThomas Veerman#include <sys/types.h>
316584d9c625SLionel Sambuc#ifdef HAVE_RPC_TYPES_H
316684d9c625SLionel Sambuc#include <rpc/types.h>
316784d9c625SLionel Sambuc#endif
3168c8a0e2f4SThomas Veerman#include <sys/socket.h>
3169c8a0e2f4SThomas Veerman
3170c8a0e2f4SThomas Veermanint
3171c8a0e2f4SThomas Veermanmain ()
3172c8a0e2f4SThomas Veerman{
3173c8a0e2f4SThomas Veermanif ((socklen_t *) 0)
3174c8a0e2f4SThomas Veerman  return 0;
3175c8a0e2f4SThomas Veermanif (sizeof (socklen_t))
3176c8a0e2f4SThomas Veerman  return 0;
3177c8a0e2f4SThomas Veerman  ;
3178c8a0e2f4SThomas Veerman  return 0;
3179c8a0e2f4SThomas Veerman}
3180c8a0e2f4SThomas Veerman_ACEOF
3181c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
318284d9c625SLionel Sambucif { (eval echo "$as_me:3182: \"$ac_compile\"") >&5
3183c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3184c8a0e2f4SThomas Veerman  ac_status=$?
318584d9c625SLionel Sambuc  echo "$as_me:3185: \$? = $ac_status" >&5
3186c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3187c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
318884d9c625SLionel Sambuc  { (eval echo "$as_me:3188: \"$ac_try\"") >&5
3189c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3190c8a0e2f4SThomas Veerman  ac_status=$?
319184d9c625SLionel Sambuc  echo "$as_me:3191: \$? = $ac_status" >&5
3192c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3193c8a0e2f4SThomas Veerman  ac_cv_type_socklen_t=yes
3194c8a0e2f4SThomas Veermanelse
3195c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3196c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3197c8a0e2f4SThomas Veermanac_cv_type_socklen_t=no
3198c8a0e2f4SThomas Veermanfi
3199c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3200c8a0e2f4SThomas Veermanfi
320184d9c625SLionel Sambucecho "$as_me:3201: result: $ac_cv_type_socklen_t" >&5
3202c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_socklen_t" >&6
3203c8a0e2f4SThomas Veermanif test $ac_cv_type_socklen_t = yes; then
3204c8a0e2f4SThomas Veerman
3205c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3206c8a0e2f4SThomas Veerman#define HAVE_SOCKLEN_T 1
3207c8a0e2f4SThomas VeermanEOF
3208c8a0e2f4SThomas Veerman
3209c8a0e2f4SThomas Veermanfi
3210c8a0e2f4SThomas Veerman
321184d9c625SLionel Sambuc	echo "$as_me:3211: checking for uint8_t" >&5
3212c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3213c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint8_t+set}" = set; then
3214c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3215c8a0e2f4SThomas Veermanelse
3216c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
321784d9c625SLionel Sambuc#line 3217 "configure"
3218c8a0e2f4SThomas Veerman#include "confdefs.h"
3219c8a0e2f4SThomas Veerman$ac_includes_default
3220c8a0e2f4SThomas Veermanint
3221c8a0e2f4SThomas Veermanmain ()
3222c8a0e2f4SThomas Veerman{
3223c8a0e2f4SThomas Veermanif ((uint8_t *) 0)
3224c8a0e2f4SThomas Veerman  return 0;
3225c8a0e2f4SThomas Veermanif (sizeof (uint8_t))
3226c8a0e2f4SThomas Veerman  return 0;
3227c8a0e2f4SThomas Veerman  ;
3228c8a0e2f4SThomas Veerman  return 0;
3229c8a0e2f4SThomas Veerman}
3230c8a0e2f4SThomas Veerman_ACEOF
3231c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
323284d9c625SLionel Sambucif { (eval echo "$as_me:3232: \"$ac_compile\"") >&5
3233c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3234c8a0e2f4SThomas Veerman  ac_status=$?
323584d9c625SLionel Sambuc  echo "$as_me:3235: \$? = $ac_status" >&5
3236c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3237c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
323884d9c625SLionel Sambuc  { (eval echo "$as_me:3238: \"$ac_try\"") >&5
3239c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3240c8a0e2f4SThomas Veerman  ac_status=$?
324184d9c625SLionel Sambuc  echo "$as_me:3241: \$? = $ac_status" >&5
3242c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3243c8a0e2f4SThomas Veerman  ac_cv_type_uint8_t=yes
3244c8a0e2f4SThomas Veermanelse
3245c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3246c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3247c8a0e2f4SThomas Veermanac_cv_type_uint8_t=no
3248c8a0e2f4SThomas Veermanfi
3249c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3250c8a0e2f4SThomas Veermanfi
325184d9c625SLionel Sambucecho "$as_me:3251: result: $ac_cv_type_uint8_t" >&5
3252c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint8_t" >&6
3253c8a0e2f4SThomas Veermanif test $ac_cv_type_uint8_t = yes; then
3254c8a0e2f4SThomas Veerman  :
3255c8a0e2f4SThomas Veermanelse
3256c8a0e2f4SThomas Veerman
325784d9c625SLionel Sambuc		echo "$as_me:3257: checking for u_int8_t" >&5
3258c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3259c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int8_t+set}" = set; then
3260c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3261c8a0e2f4SThomas Veermanelse
3262c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
326384d9c625SLionel Sambuc#line 3263 "configure"
3264c8a0e2f4SThomas Veerman#include "confdefs.h"
3265c8a0e2f4SThomas Veerman$ac_includes_default
3266c8a0e2f4SThomas Veermanint
3267c8a0e2f4SThomas Veermanmain ()
3268c8a0e2f4SThomas Veerman{
3269c8a0e2f4SThomas Veermanif ((u_int8_t *) 0)
3270c8a0e2f4SThomas Veerman  return 0;
3271c8a0e2f4SThomas Veermanif (sizeof (u_int8_t))
3272c8a0e2f4SThomas Veerman  return 0;
3273c8a0e2f4SThomas Veerman  ;
3274c8a0e2f4SThomas Veerman  return 0;
3275c8a0e2f4SThomas Veerman}
3276c8a0e2f4SThomas Veerman_ACEOF
3277c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
327884d9c625SLionel Sambucif { (eval echo "$as_me:3278: \"$ac_compile\"") >&5
3279c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3280c8a0e2f4SThomas Veerman  ac_status=$?
328184d9c625SLionel Sambuc  echo "$as_me:3281: \$? = $ac_status" >&5
3282c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3283c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
328484d9c625SLionel Sambuc  { (eval echo "$as_me:3284: \"$ac_try\"") >&5
3285c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3286c8a0e2f4SThomas Veerman  ac_status=$?
328784d9c625SLionel Sambuc  echo "$as_me:3287: \$? = $ac_status" >&5
3288c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3289c8a0e2f4SThomas Veerman  ac_cv_type_u_int8_t=yes
3290c8a0e2f4SThomas Veermanelse
3291c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3292c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3293c8a0e2f4SThomas Veermanac_cv_type_u_int8_t=no
3294c8a0e2f4SThomas Veermanfi
3295c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3296c8a0e2f4SThomas Veermanfi
329784d9c625SLionel Sambucecho "$as_me:3297: result: $ac_cv_type_u_int8_t" >&5
3298c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3299c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int8_t = yes; then
3300c8a0e2f4SThomas Veerman
3301c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3302c8a0e2f4SThomas Veerman#define uint8_t u_int8_t
3303c8a0e2f4SThomas VeermanEOF
3304c8a0e2f4SThomas Veerman
3305c8a0e2f4SThomas Veermanelse
330684d9c625SLionel Sambuc  { { echo "$as_me:3306: error: cannot find a suitable type for uint8_t" >&5
3307c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
3308c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
3309c8a0e2f4SThomas Veermanfi
3310c8a0e2f4SThomas Veerman
3311c8a0e2f4SThomas Veermanfi
3312c8a0e2f4SThomas Veerman
331384d9c625SLionel Sambuc	echo "$as_me:3313: checking for u_int8_t" >&5
3314c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3315c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int8_t+set}" = set; then
3316c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3317c8a0e2f4SThomas Veermanelse
3318c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
331984d9c625SLionel Sambuc#line 3319 "configure"
3320c8a0e2f4SThomas Veerman#include "confdefs.h"
3321c8a0e2f4SThomas Veerman$ac_includes_default
3322c8a0e2f4SThomas Veermanint
3323c8a0e2f4SThomas Veermanmain ()
3324c8a0e2f4SThomas Veerman{
3325c8a0e2f4SThomas Veermanif ((u_int8_t *) 0)
3326c8a0e2f4SThomas Veerman  return 0;
3327c8a0e2f4SThomas Veermanif (sizeof (u_int8_t))
3328c8a0e2f4SThomas Veerman  return 0;
3329c8a0e2f4SThomas Veerman  ;
3330c8a0e2f4SThomas Veerman  return 0;
3331c8a0e2f4SThomas Veerman}
3332c8a0e2f4SThomas Veerman_ACEOF
3333c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
333484d9c625SLionel Sambucif { (eval echo "$as_me:3334: \"$ac_compile\"") >&5
3335c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3336c8a0e2f4SThomas Veerman  ac_status=$?
333784d9c625SLionel Sambuc  echo "$as_me:3337: \$? = $ac_status" >&5
3338c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3339c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
334084d9c625SLionel Sambuc  { (eval echo "$as_me:3340: \"$ac_try\"") >&5
3341c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3342c8a0e2f4SThomas Veerman  ac_status=$?
334384d9c625SLionel Sambuc  echo "$as_me:3343: \$? = $ac_status" >&5
3344c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3345c8a0e2f4SThomas Veerman  ac_cv_type_u_int8_t=yes
3346c8a0e2f4SThomas Veermanelse
3347c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3348c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3349c8a0e2f4SThomas Veermanac_cv_type_u_int8_t=no
3350c8a0e2f4SThomas Veermanfi
3351c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3352c8a0e2f4SThomas Veermanfi
335384d9c625SLionel Sambucecho "$as_me:3353: result: $ac_cv_type_u_int8_t" >&5
3354c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3355c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int8_t = yes; then
3356c8a0e2f4SThomas Veerman  :
3357c8a0e2f4SThomas Veermanelse
3358c8a0e2f4SThomas Veerman
335984d9c625SLionel Sambuc		echo "$as_me:3359: checking for uint8_t" >&5
3360c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3361c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint8_t+set}" = set; then
3362c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3363c8a0e2f4SThomas Veermanelse
3364c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
336584d9c625SLionel Sambuc#line 3365 "configure"
3366c8a0e2f4SThomas Veerman#include "confdefs.h"
3367c8a0e2f4SThomas Veerman$ac_includes_default
3368c8a0e2f4SThomas Veermanint
3369c8a0e2f4SThomas Veermanmain ()
3370c8a0e2f4SThomas Veerman{
3371c8a0e2f4SThomas Veermanif ((uint8_t *) 0)
3372c8a0e2f4SThomas Veerman  return 0;
3373c8a0e2f4SThomas Veermanif (sizeof (uint8_t))
3374c8a0e2f4SThomas Veerman  return 0;
3375c8a0e2f4SThomas Veerman  ;
3376c8a0e2f4SThomas Veerman  return 0;
3377c8a0e2f4SThomas Veerman}
3378c8a0e2f4SThomas Veerman_ACEOF
3379c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
338084d9c625SLionel Sambucif { (eval echo "$as_me:3380: \"$ac_compile\"") >&5
3381c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3382c8a0e2f4SThomas Veerman  ac_status=$?
338384d9c625SLionel Sambuc  echo "$as_me:3383: \$? = $ac_status" >&5
3384c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3385c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
338684d9c625SLionel Sambuc  { (eval echo "$as_me:3386: \"$ac_try\"") >&5
3387c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3388c8a0e2f4SThomas Veerman  ac_status=$?
338984d9c625SLionel Sambuc  echo "$as_me:3389: \$? = $ac_status" >&5
3390c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3391c8a0e2f4SThomas Veerman  ac_cv_type_uint8_t=yes
3392c8a0e2f4SThomas Veermanelse
3393c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3394c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3395c8a0e2f4SThomas Veermanac_cv_type_uint8_t=no
3396c8a0e2f4SThomas Veermanfi
3397c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3398c8a0e2f4SThomas Veermanfi
339984d9c625SLionel Sambucecho "$as_me:3399: result: $ac_cv_type_uint8_t" >&5
3400c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint8_t" >&6
3401c8a0e2f4SThomas Veermanif test $ac_cv_type_uint8_t = yes; then
3402c8a0e2f4SThomas Veerman
3403c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3404c8a0e2f4SThomas Veerman#define u_int8_t uint8_t
3405c8a0e2f4SThomas VeermanEOF
3406c8a0e2f4SThomas Veerman
3407c8a0e2f4SThomas Veermanelse
340884d9c625SLionel Sambuc  { { echo "$as_me:3408: error: cannot find a suitable type for u_int8_t" >&5
3409c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3410c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
3411c8a0e2f4SThomas Veermanfi
3412c8a0e2f4SThomas Veerman
3413c8a0e2f4SThomas Veermanfi
3414c8a0e2f4SThomas Veerman
341584d9c625SLionel Sambuc	echo "$as_me:3415: checking for uint16_t" >&5
3416c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3417c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint16_t+set}" = set; then
3418c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3419c8a0e2f4SThomas Veermanelse
3420c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
342184d9c625SLionel Sambuc#line 3421 "configure"
3422c8a0e2f4SThomas Veerman#include "confdefs.h"
3423c8a0e2f4SThomas Veerman$ac_includes_default
3424c8a0e2f4SThomas Veermanint
3425c8a0e2f4SThomas Veermanmain ()
3426c8a0e2f4SThomas Veerman{
3427c8a0e2f4SThomas Veermanif ((uint16_t *) 0)
3428c8a0e2f4SThomas Veerman  return 0;
3429c8a0e2f4SThomas Veermanif (sizeof (uint16_t))
3430c8a0e2f4SThomas Veerman  return 0;
3431c8a0e2f4SThomas Veerman  ;
3432c8a0e2f4SThomas Veerman  return 0;
3433c8a0e2f4SThomas Veerman}
3434c8a0e2f4SThomas Veerman_ACEOF
3435c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
343684d9c625SLionel Sambucif { (eval echo "$as_me:3436: \"$ac_compile\"") >&5
3437c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3438c8a0e2f4SThomas Veerman  ac_status=$?
343984d9c625SLionel Sambuc  echo "$as_me:3439: \$? = $ac_status" >&5
3440c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3441c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
344284d9c625SLionel Sambuc  { (eval echo "$as_me:3442: \"$ac_try\"") >&5
3443c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3444c8a0e2f4SThomas Veerman  ac_status=$?
344584d9c625SLionel Sambuc  echo "$as_me:3445: \$? = $ac_status" >&5
3446c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3447c8a0e2f4SThomas Veerman  ac_cv_type_uint16_t=yes
3448c8a0e2f4SThomas Veermanelse
3449c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3450c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3451c8a0e2f4SThomas Veermanac_cv_type_uint16_t=no
3452c8a0e2f4SThomas Veermanfi
3453c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3454c8a0e2f4SThomas Veermanfi
345584d9c625SLionel Sambucecho "$as_me:3455: result: $ac_cv_type_uint16_t" >&5
3456c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint16_t" >&6
3457c8a0e2f4SThomas Veermanif test $ac_cv_type_uint16_t = yes; then
3458c8a0e2f4SThomas Veerman  :
3459c8a0e2f4SThomas Veermanelse
3460c8a0e2f4SThomas Veerman
346184d9c625SLionel Sambuc		echo "$as_me:3461: checking for u_int16_t" >&5
3462c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3463c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int16_t+set}" = set; then
3464c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3465c8a0e2f4SThomas Veermanelse
3466c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
346784d9c625SLionel Sambuc#line 3467 "configure"
3468c8a0e2f4SThomas Veerman#include "confdefs.h"
3469c8a0e2f4SThomas Veerman$ac_includes_default
3470c8a0e2f4SThomas Veermanint
3471c8a0e2f4SThomas Veermanmain ()
3472c8a0e2f4SThomas Veerman{
3473c8a0e2f4SThomas Veermanif ((u_int16_t *) 0)
3474c8a0e2f4SThomas Veerman  return 0;
3475c8a0e2f4SThomas Veermanif (sizeof (u_int16_t))
3476c8a0e2f4SThomas Veerman  return 0;
3477c8a0e2f4SThomas Veerman  ;
3478c8a0e2f4SThomas Veerman  return 0;
3479c8a0e2f4SThomas Veerman}
3480c8a0e2f4SThomas Veerman_ACEOF
3481c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
348284d9c625SLionel Sambucif { (eval echo "$as_me:3482: \"$ac_compile\"") >&5
3483c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3484c8a0e2f4SThomas Veerman  ac_status=$?
348584d9c625SLionel Sambuc  echo "$as_me:3485: \$? = $ac_status" >&5
3486c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3487c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
348884d9c625SLionel Sambuc  { (eval echo "$as_me:3488: \"$ac_try\"") >&5
3489c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3490c8a0e2f4SThomas Veerman  ac_status=$?
349184d9c625SLionel Sambuc  echo "$as_me:3491: \$? = $ac_status" >&5
3492c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3493c8a0e2f4SThomas Veerman  ac_cv_type_u_int16_t=yes
3494c8a0e2f4SThomas Veermanelse
3495c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3496c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3497c8a0e2f4SThomas Veermanac_cv_type_u_int16_t=no
3498c8a0e2f4SThomas Veermanfi
3499c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3500c8a0e2f4SThomas Veermanfi
350184d9c625SLionel Sambucecho "$as_me:3501: result: $ac_cv_type_u_int16_t" >&5
3502c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3503c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int16_t = yes; then
3504c8a0e2f4SThomas Veerman
3505c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3506c8a0e2f4SThomas Veerman#define uint16_t u_int16_t
3507c8a0e2f4SThomas VeermanEOF
3508c8a0e2f4SThomas Veerman
3509c8a0e2f4SThomas Veermanelse
351084d9c625SLionel Sambuc  { { echo "$as_me:3510: error: cannot find a suitable type for uint16_t" >&5
3511c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3512c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
3513c8a0e2f4SThomas Veermanfi
3514c8a0e2f4SThomas Veerman
3515c8a0e2f4SThomas Veermanfi
3516c8a0e2f4SThomas Veerman
351784d9c625SLionel Sambuc	echo "$as_me:3517: checking for u_int16_t" >&5
3518c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3519c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int16_t+set}" = set; then
3520c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3521c8a0e2f4SThomas Veermanelse
3522c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
352384d9c625SLionel Sambuc#line 3523 "configure"
3524c8a0e2f4SThomas Veerman#include "confdefs.h"
3525c8a0e2f4SThomas Veerman$ac_includes_default
3526c8a0e2f4SThomas Veermanint
3527c8a0e2f4SThomas Veermanmain ()
3528c8a0e2f4SThomas Veerman{
3529c8a0e2f4SThomas Veermanif ((u_int16_t *) 0)
3530c8a0e2f4SThomas Veerman  return 0;
3531c8a0e2f4SThomas Veermanif (sizeof (u_int16_t))
3532c8a0e2f4SThomas Veerman  return 0;
3533c8a0e2f4SThomas Veerman  ;
3534c8a0e2f4SThomas Veerman  return 0;
3535c8a0e2f4SThomas Veerman}
3536c8a0e2f4SThomas Veerman_ACEOF
3537c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
353884d9c625SLionel Sambucif { (eval echo "$as_me:3538: \"$ac_compile\"") >&5
3539c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3540c8a0e2f4SThomas Veerman  ac_status=$?
354184d9c625SLionel Sambuc  echo "$as_me:3541: \$? = $ac_status" >&5
3542c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3543c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
354484d9c625SLionel Sambuc  { (eval echo "$as_me:3544: \"$ac_try\"") >&5
3545c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3546c8a0e2f4SThomas Veerman  ac_status=$?
354784d9c625SLionel Sambuc  echo "$as_me:3547: \$? = $ac_status" >&5
3548c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3549c8a0e2f4SThomas Veerman  ac_cv_type_u_int16_t=yes
3550c8a0e2f4SThomas Veermanelse
3551c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3552c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3553c8a0e2f4SThomas Veermanac_cv_type_u_int16_t=no
3554c8a0e2f4SThomas Veermanfi
3555c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3556c8a0e2f4SThomas Veermanfi
355784d9c625SLionel Sambucecho "$as_me:3557: result: $ac_cv_type_u_int16_t" >&5
3558c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3559c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int16_t = yes; then
3560c8a0e2f4SThomas Veerman  :
3561c8a0e2f4SThomas Veermanelse
3562c8a0e2f4SThomas Veerman
356384d9c625SLionel Sambuc		echo "$as_me:3563: checking for uint16_t" >&5
3564c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3565c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint16_t+set}" = set; then
3566c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3567c8a0e2f4SThomas Veermanelse
3568c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
356984d9c625SLionel Sambuc#line 3569 "configure"
3570c8a0e2f4SThomas Veerman#include "confdefs.h"
3571c8a0e2f4SThomas Veerman$ac_includes_default
3572c8a0e2f4SThomas Veermanint
3573c8a0e2f4SThomas Veermanmain ()
3574c8a0e2f4SThomas Veerman{
3575c8a0e2f4SThomas Veermanif ((uint16_t *) 0)
3576c8a0e2f4SThomas Veerman  return 0;
3577c8a0e2f4SThomas Veermanif (sizeof (uint16_t))
3578c8a0e2f4SThomas Veerman  return 0;
3579c8a0e2f4SThomas Veerman  ;
3580c8a0e2f4SThomas Veerman  return 0;
3581c8a0e2f4SThomas Veerman}
3582c8a0e2f4SThomas Veerman_ACEOF
3583c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
358484d9c625SLionel Sambucif { (eval echo "$as_me:3584: \"$ac_compile\"") >&5
3585c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3586c8a0e2f4SThomas Veerman  ac_status=$?
358784d9c625SLionel Sambuc  echo "$as_me:3587: \$? = $ac_status" >&5
3588c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3589c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
359084d9c625SLionel Sambuc  { (eval echo "$as_me:3590: \"$ac_try\"") >&5
3591c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3592c8a0e2f4SThomas Veerman  ac_status=$?
359384d9c625SLionel Sambuc  echo "$as_me:3593: \$? = $ac_status" >&5
3594c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3595c8a0e2f4SThomas Veerman  ac_cv_type_uint16_t=yes
3596c8a0e2f4SThomas Veermanelse
3597c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3598c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3599c8a0e2f4SThomas Veermanac_cv_type_uint16_t=no
3600c8a0e2f4SThomas Veermanfi
3601c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3602c8a0e2f4SThomas Veermanfi
360384d9c625SLionel Sambucecho "$as_me:3603: result: $ac_cv_type_uint16_t" >&5
3604c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint16_t" >&6
3605c8a0e2f4SThomas Veermanif test $ac_cv_type_uint16_t = yes; then
3606c8a0e2f4SThomas Veerman
3607c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3608c8a0e2f4SThomas Veerman#define u_int16_t uint16_t
3609c8a0e2f4SThomas VeermanEOF
3610c8a0e2f4SThomas Veerman
3611c8a0e2f4SThomas Veermanelse
361284d9c625SLionel Sambuc  { { echo "$as_me:3612: error: cannot find a suitable type for u_int16_t" >&5
3613c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3614c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
3615c8a0e2f4SThomas Veermanfi
3616c8a0e2f4SThomas Veerman
3617c8a0e2f4SThomas Veermanfi
3618c8a0e2f4SThomas Veerman
361984d9c625SLionel Sambuc	echo "$as_me:3619: checking for uint32_t" >&5
3620c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3621c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint32_t+set}" = set; then
3622c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3623c8a0e2f4SThomas Veermanelse
3624c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
362584d9c625SLionel Sambuc#line 3625 "configure"
3626c8a0e2f4SThomas Veerman#include "confdefs.h"
3627c8a0e2f4SThomas Veerman$ac_includes_default
3628c8a0e2f4SThomas Veermanint
3629c8a0e2f4SThomas Veermanmain ()
3630c8a0e2f4SThomas Veerman{
3631c8a0e2f4SThomas Veermanif ((uint32_t *) 0)
3632c8a0e2f4SThomas Veerman  return 0;
3633c8a0e2f4SThomas Veermanif (sizeof (uint32_t))
3634c8a0e2f4SThomas Veerman  return 0;
3635c8a0e2f4SThomas Veerman  ;
3636c8a0e2f4SThomas Veerman  return 0;
3637c8a0e2f4SThomas Veerman}
3638c8a0e2f4SThomas Veerman_ACEOF
3639c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
364084d9c625SLionel Sambucif { (eval echo "$as_me:3640: \"$ac_compile\"") >&5
3641c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3642c8a0e2f4SThomas Veerman  ac_status=$?
364384d9c625SLionel Sambuc  echo "$as_me:3643: \$? = $ac_status" >&5
3644c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3645c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
364684d9c625SLionel Sambuc  { (eval echo "$as_me:3646: \"$ac_try\"") >&5
3647c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3648c8a0e2f4SThomas Veerman  ac_status=$?
364984d9c625SLionel Sambuc  echo "$as_me:3649: \$? = $ac_status" >&5
3650c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3651c8a0e2f4SThomas Veerman  ac_cv_type_uint32_t=yes
3652c8a0e2f4SThomas Veermanelse
3653c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3654c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3655c8a0e2f4SThomas Veermanac_cv_type_uint32_t=no
3656c8a0e2f4SThomas Veermanfi
3657c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3658c8a0e2f4SThomas Veermanfi
365984d9c625SLionel Sambucecho "$as_me:3659: result: $ac_cv_type_uint32_t" >&5
3660c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint32_t" >&6
3661c8a0e2f4SThomas Veermanif test $ac_cv_type_uint32_t = yes; then
3662c8a0e2f4SThomas Veerman  :
3663c8a0e2f4SThomas Veermanelse
3664c8a0e2f4SThomas Veerman
366584d9c625SLionel Sambuc		echo "$as_me:3665: checking for u_int32_t" >&5
3666c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3667c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int32_t+set}" = set; then
3668c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3669c8a0e2f4SThomas Veermanelse
3670c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
367184d9c625SLionel Sambuc#line 3671 "configure"
3672c8a0e2f4SThomas Veerman#include "confdefs.h"
3673c8a0e2f4SThomas Veerman$ac_includes_default
3674c8a0e2f4SThomas Veermanint
3675c8a0e2f4SThomas Veermanmain ()
3676c8a0e2f4SThomas Veerman{
3677c8a0e2f4SThomas Veermanif ((u_int32_t *) 0)
3678c8a0e2f4SThomas Veerman  return 0;
3679c8a0e2f4SThomas Veermanif (sizeof (u_int32_t))
3680c8a0e2f4SThomas Veerman  return 0;
3681c8a0e2f4SThomas Veerman  ;
3682c8a0e2f4SThomas Veerman  return 0;
3683c8a0e2f4SThomas Veerman}
3684c8a0e2f4SThomas Veerman_ACEOF
3685c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
368684d9c625SLionel Sambucif { (eval echo "$as_me:3686: \"$ac_compile\"") >&5
3687c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3688c8a0e2f4SThomas Veerman  ac_status=$?
368984d9c625SLionel Sambuc  echo "$as_me:3689: \$? = $ac_status" >&5
3690c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3691c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
369284d9c625SLionel Sambuc  { (eval echo "$as_me:3692: \"$ac_try\"") >&5
3693c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3694c8a0e2f4SThomas Veerman  ac_status=$?
369584d9c625SLionel Sambuc  echo "$as_me:3695: \$? = $ac_status" >&5
3696c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3697c8a0e2f4SThomas Veerman  ac_cv_type_u_int32_t=yes
3698c8a0e2f4SThomas Veermanelse
3699c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3700c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3701c8a0e2f4SThomas Veermanac_cv_type_u_int32_t=no
3702c8a0e2f4SThomas Veermanfi
3703c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3704c8a0e2f4SThomas Veermanfi
370584d9c625SLionel Sambucecho "$as_me:3705: result: $ac_cv_type_u_int32_t" >&5
3706c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3707c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int32_t = yes; then
3708c8a0e2f4SThomas Veerman
3709c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3710c8a0e2f4SThomas Veerman#define uint32_t u_int32_t
3711c8a0e2f4SThomas VeermanEOF
3712c8a0e2f4SThomas Veerman
3713c8a0e2f4SThomas Veermanelse
371484d9c625SLionel Sambuc  { { echo "$as_me:3714: error: cannot find a suitable type for uint32_t" >&5
3715c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3716c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
3717c8a0e2f4SThomas Veermanfi
3718c8a0e2f4SThomas Veerman
3719c8a0e2f4SThomas Veermanfi
3720c8a0e2f4SThomas Veerman
372184d9c625SLionel Sambuc	echo "$as_me:3721: checking for u_int32_t" >&5
3722c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3723c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int32_t+set}" = set; then
3724c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3725c8a0e2f4SThomas Veermanelse
3726c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
372784d9c625SLionel Sambuc#line 3727 "configure"
3728c8a0e2f4SThomas Veerman#include "confdefs.h"
3729c8a0e2f4SThomas Veerman$ac_includes_default
3730c8a0e2f4SThomas Veermanint
3731c8a0e2f4SThomas Veermanmain ()
3732c8a0e2f4SThomas Veerman{
3733c8a0e2f4SThomas Veermanif ((u_int32_t *) 0)
3734c8a0e2f4SThomas Veerman  return 0;
3735c8a0e2f4SThomas Veermanif (sizeof (u_int32_t))
3736c8a0e2f4SThomas Veerman  return 0;
3737c8a0e2f4SThomas Veerman  ;
3738c8a0e2f4SThomas Veerman  return 0;
3739c8a0e2f4SThomas Veerman}
3740c8a0e2f4SThomas Veerman_ACEOF
3741c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
374284d9c625SLionel Sambucif { (eval echo "$as_me:3742: \"$ac_compile\"") >&5
3743c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3744c8a0e2f4SThomas Veerman  ac_status=$?
374584d9c625SLionel Sambuc  echo "$as_me:3745: \$? = $ac_status" >&5
3746c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3747c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
374884d9c625SLionel Sambuc  { (eval echo "$as_me:3748: \"$ac_try\"") >&5
3749c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3750c8a0e2f4SThomas Veerman  ac_status=$?
375184d9c625SLionel Sambuc  echo "$as_me:3751: \$? = $ac_status" >&5
3752c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3753c8a0e2f4SThomas Veerman  ac_cv_type_u_int32_t=yes
3754c8a0e2f4SThomas Veermanelse
3755c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3756c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3757c8a0e2f4SThomas Veermanac_cv_type_u_int32_t=no
3758c8a0e2f4SThomas Veermanfi
3759c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3760c8a0e2f4SThomas Veermanfi
376184d9c625SLionel Sambucecho "$as_me:3761: result: $ac_cv_type_u_int32_t" >&5
3762c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3763c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int32_t = yes; then
3764c8a0e2f4SThomas Veerman  :
3765c8a0e2f4SThomas Veermanelse
3766c8a0e2f4SThomas Veerman
376784d9c625SLionel Sambuc		echo "$as_me:3767: checking for uint32_t" >&5
3768c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3769c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint32_t+set}" = set; then
3770c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3771c8a0e2f4SThomas Veermanelse
3772c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
377384d9c625SLionel Sambuc#line 3773 "configure"
3774c8a0e2f4SThomas Veerman#include "confdefs.h"
3775c8a0e2f4SThomas Veerman$ac_includes_default
3776c8a0e2f4SThomas Veermanint
3777c8a0e2f4SThomas Veermanmain ()
3778c8a0e2f4SThomas Veerman{
3779c8a0e2f4SThomas Veermanif ((uint32_t *) 0)
3780c8a0e2f4SThomas Veerman  return 0;
3781c8a0e2f4SThomas Veermanif (sizeof (uint32_t))
3782c8a0e2f4SThomas Veerman  return 0;
3783c8a0e2f4SThomas Veerman  ;
3784c8a0e2f4SThomas Veerman  return 0;
3785c8a0e2f4SThomas Veerman}
3786c8a0e2f4SThomas Veerman_ACEOF
3787c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
378884d9c625SLionel Sambucif { (eval echo "$as_me:3788: \"$ac_compile\"") >&5
3789c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3790c8a0e2f4SThomas Veerman  ac_status=$?
379184d9c625SLionel Sambuc  echo "$as_me:3791: \$? = $ac_status" >&5
3792c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3793c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
379484d9c625SLionel Sambuc  { (eval echo "$as_me:3794: \"$ac_try\"") >&5
3795c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3796c8a0e2f4SThomas Veerman  ac_status=$?
379784d9c625SLionel Sambuc  echo "$as_me:3797: \$? = $ac_status" >&5
3798c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3799c8a0e2f4SThomas Veerman  ac_cv_type_uint32_t=yes
3800c8a0e2f4SThomas Veermanelse
3801c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3802c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3803c8a0e2f4SThomas Veermanac_cv_type_uint32_t=no
3804c8a0e2f4SThomas Veermanfi
3805c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3806c8a0e2f4SThomas Veermanfi
380784d9c625SLionel Sambucecho "$as_me:3807: result: $ac_cv_type_uint32_t" >&5
3808c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint32_t" >&6
3809c8a0e2f4SThomas Veermanif test $ac_cv_type_uint32_t = yes; then
3810c8a0e2f4SThomas Veerman
3811c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3812c8a0e2f4SThomas Veerman#define u_int32_t uint32_t
3813c8a0e2f4SThomas VeermanEOF
3814c8a0e2f4SThomas Veerman
3815c8a0e2f4SThomas Veermanelse
381684d9c625SLionel Sambuc  { { echo "$as_me:3816: error: cannot find a suitable type for u_int32_t" >&5
3817c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3818c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
3819c8a0e2f4SThomas Veermanfi
3820c8a0e2f4SThomas Veerman
3821c8a0e2f4SThomas Veermanfi
3822c8a0e2f4SThomas Veerman
382384d9c625SLionel Sambuc	echo "$as_me:3823: checking for uint64_t" >&5
3824c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3825c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint64_t+set}" = set; then
3826c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3827c8a0e2f4SThomas Veermanelse
3828c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
382984d9c625SLionel Sambuc#line 3829 "configure"
3830c8a0e2f4SThomas Veerman#include "confdefs.h"
3831c8a0e2f4SThomas Veerman$ac_includes_default
3832c8a0e2f4SThomas Veermanint
3833c8a0e2f4SThomas Veermanmain ()
3834c8a0e2f4SThomas Veerman{
3835c8a0e2f4SThomas Veermanif ((uint64_t *) 0)
3836c8a0e2f4SThomas Veerman  return 0;
3837c8a0e2f4SThomas Veermanif (sizeof (uint64_t))
3838c8a0e2f4SThomas Veerman  return 0;
3839c8a0e2f4SThomas Veerman  ;
3840c8a0e2f4SThomas Veerman  return 0;
3841c8a0e2f4SThomas Veerman}
3842c8a0e2f4SThomas Veerman_ACEOF
3843c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
384484d9c625SLionel Sambucif { (eval echo "$as_me:3844: \"$ac_compile\"") >&5
3845c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3846c8a0e2f4SThomas Veerman  ac_status=$?
384784d9c625SLionel Sambuc  echo "$as_me:3847: \$? = $ac_status" >&5
3848c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3849c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
385084d9c625SLionel Sambuc  { (eval echo "$as_me:3850: \"$ac_try\"") >&5
3851c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3852c8a0e2f4SThomas Veerman  ac_status=$?
385384d9c625SLionel Sambuc  echo "$as_me:3853: \$? = $ac_status" >&5
3854c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3855c8a0e2f4SThomas Veerman  ac_cv_type_uint64_t=yes
3856c8a0e2f4SThomas Veermanelse
3857c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3858c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3859c8a0e2f4SThomas Veermanac_cv_type_uint64_t=no
3860c8a0e2f4SThomas Veermanfi
3861c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3862c8a0e2f4SThomas Veermanfi
386384d9c625SLionel Sambucecho "$as_me:3863: result: $ac_cv_type_uint64_t" >&5
3864c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint64_t" >&6
3865c8a0e2f4SThomas Veermanif test $ac_cv_type_uint64_t = yes; then
3866c8a0e2f4SThomas Veerman  :
3867c8a0e2f4SThomas Veermanelse
3868c8a0e2f4SThomas Veerman
386984d9c625SLionel Sambuc		echo "$as_me:3869: checking for u_int64_t" >&5
3870c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3871c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int64_t+set}" = set; then
3872c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3873c8a0e2f4SThomas Veermanelse
3874c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
387584d9c625SLionel Sambuc#line 3875 "configure"
3876c8a0e2f4SThomas Veerman#include "confdefs.h"
3877c8a0e2f4SThomas Veerman$ac_includes_default
3878c8a0e2f4SThomas Veermanint
3879c8a0e2f4SThomas Veermanmain ()
3880c8a0e2f4SThomas Veerman{
3881c8a0e2f4SThomas Veermanif ((u_int64_t *) 0)
3882c8a0e2f4SThomas Veerman  return 0;
3883c8a0e2f4SThomas Veermanif (sizeof (u_int64_t))
3884c8a0e2f4SThomas Veerman  return 0;
3885c8a0e2f4SThomas Veerman  ;
3886c8a0e2f4SThomas Veerman  return 0;
3887c8a0e2f4SThomas Veerman}
3888c8a0e2f4SThomas Veerman_ACEOF
3889c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
389084d9c625SLionel Sambucif { (eval echo "$as_me:3890: \"$ac_compile\"") >&5
3891c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3892c8a0e2f4SThomas Veerman  ac_status=$?
389384d9c625SLionel Sambuc  echo "$as_me:3893: \$? = $ac_status" >&5
3894c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3895c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
389684d9c625SLionel Sambuc  { (eval echo "$as_me:3896: \"$ac_try\"") >&5
3897c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3898c8a0e2f4SThomas Veerman  ac_status=$?
389984d9c625SLionel Sambuc  echo "$as_me:3899: \$? = $ac_status" >&5
3900c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3901c8a0e2f4SThomas Veerman  ac_cv_type_u_int64_t=yes
3902c8a0e2f4SThomas Veermanelse
3903c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3904c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3905c8a0e2f4SThomas Veermanac_cv_type_u_int64_t=no
3906c8a0e2f4SThomas Veermanfi
3907c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3908c8a0e2f4SThomas Veermanfi
390984d9c625SLionel Sambucecho "$as_me:3909: result: $ac_cv_type_u_int64_t" >&5
3910c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3911c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int64_t = yes; then
3912c8a0e2f4SThomas Veerman
3913c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
3914c8a0e2f4SThomas Veerman#define uint64_t u_int64_t
3915c8a0e2f4SThomas VeermanEOF
3916c8a0e2f4SThomas Veerman
3917c8a0e2f4SThomas Veermanelse
391884d9c625SLionel Sambuc  { { echo "$as_me:3918: error: cannot find a suitable type for uint64_t" >&5
3919c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3920c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
3921c8a0e2f4SThomas Veermanfi
3922c8a0e2f4SThomas Veerman
3923c8a0e2f4SThomas Veermanfi
3924c8a0e2f4SThomas Veerman
392584d9c625SLionel Sambuc	echo "$as_me:3925: checking for u_int64_t" >&5
3926c8a0e2f4SThomas Veermanecho $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3927c8a0e2f4SThomas Veermanif test "${ac_cv_type_u_int64_t+set}" = set; then
3928c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3929c8a0e2f4SThomas Veermanelse
3930c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
393184d9c625SLionel Sambuc#line 3931 "configure"
3932c8a0e2f4SThomas Veerman#include "confdefs.h"
3933c8a0e2f4SThomas Veerman$ac_includes_default
3934c8a0e2f4SThomas Veermanint
3935c8a0e2f4SThomas Veermanmain ()
3936c8a0e2f4SThomas Veerman{
3937c8a0e2f4SThomas Veermanif ((u_int64_t *) 0)
3938c8a0e2f4SThomas Veerman  return 0;
3939c8a0e2f4SThomas Veermanif (sizeof (u_int64_t))
3940c8a0e2f4SThomas Veerman  return 0;
3941c8a0e2f4SThomas Veerman  ;
3942c8a0e2f4SThomas Veerman  return 0;
3943c8a0e2f4SThomas Veerman}
3944c8a0e2f4SThomas Veerman_ACEOF
3945c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
394684d9c625SLionel Sambucif { (eval echo "$as_me:3946: \"$ac_compile\"") >&5
3947c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3948c8a0e2f4SThomas Veerman  ac_status=$?
394984d9c625SLionel Sambuc  echo "$as_me:3949: \$? = $ac_status" >&5
3950c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3951c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
395284d9c625SLionel Sambuc  { (eval echo "$as_me:3952: \"$ac_try\"") >&5
3953c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
3954c8a0e2f4SThomas Veerman  ac_status=$?
395584d9c625SLionel Sambuc  echo "$as_me:3955: \$? = $ac_status" >&5
3956c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
3957c8a0e2f4SThomas Veerman  ac_cv_type_u_int64_t=yes
3958c8a0e2f4SThomas Veermanelse
3959c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
3960c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
3961c8a0e2f4SThomas Veermanac_cv_type_u_int64_t=no
3962c8a0e2f4SThomas Veermanfi
3963c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
3964c8a0e2f4SThomas Veermanfi
396584d9c625SLionel Sambucecho "$as_me:3965: result: $ac_cv_type_u_int64_t" >&5
3966c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3967c8a0e2f4SThomas Veermanif test $ac_cv_type_u_int64_t = yes; then
3968c8a0e2f4SThomas Veerman  :
3969c8a0e2f4SThomas Veermanelse
3970c8a0e2f4SThomas Veerman
397184d9c625SLionel Sambuc		echo "$as_me:3971: checking for uint64_t" >&5
3972c8a0e2f4SThomas Veermanecho $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3973c8a0e2f4SThomas Veermanif test "${ac_cv_type_uint64_t+set}" = set; then
3974c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
3975c8a0e2f4SThomas Veermanelse
3976c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
397784d9c625SLionel Sambuc#line 3977 "configure"
3978c8a0e2f4SThomas Veerman#include "confdefs.h"
3979c8a0e2f4SThomas Veerman$ac_includes_default
3980c8a0e2f4SThomas Veermanint
3981c8a0e2f4SThomas Veermanmain ()
3982c8a0e2f4SThomas Veerman{
3983c8a0e2f4SThomas Veermanif ((uint64_t *) 0)
3984c8a0e2f4SThomas Veerman  return 0;
3985c8a0e2f4SThomas Veermanif (sizeof (uint64_t))
3986c8a0e2f4SThomas Veerman  return 0;
3987c8a0e2f4SThomas Veerman  ;
3988c8a0e2f4SThomas Veerman  return 0;
3989c8a0e2f4SThomas Veerman}
3990c8a0e2f4SThomas Veerman_ACEOF
3991c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
399284d9c625SLionel Sambucif { (eval echo "$as_me:3992: \"$ac_compile\"") >&5
3993c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
3994c8a0e2f4SThomas Veerman  ac_status=$?
399584d9c625SLionel Sambuc  echo "$as_me:3995: \$? = $ac_status" >&5
3996c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
3997c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
399884d9c625SLionel Sambuc  { (eval echo "$as_me:3998: \"$ac_try\"") >&5
3999c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4000c8a0e2f4SThomas Veerman  ac_status=$?
400184d9c625SLionel Sambuc  echo "$as_me:4001: \$? = $ac_status" >&5
4002c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4003c8a0e2f4SThomas Veerman  ac_cv_type_uint64_t=yes
4004c8a0e2f4SThomas Veermanelse
4005c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4006c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4007c8a0e2f4SThomas Veermanac_cv_type_uint64_t=no
4008c8a0e2f4SThomas Veermanfi
4009c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4010c8a0e2f4SThomas Veermanfi
401184d9c625SLionel Sambucecho "$as_me:4011: result: $ac_cv_type_uint64_t" >&5
4012c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_type_uint64_t" >&6
4013c8a0e2f4SThomas Veermanif test $ac_cv_type_uint64_t = yes; then
4014c8a0e2f4SThomas Veerman
4015c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
4016c8a0e2f4SThomas Veerman#define u_int64_t uint64_t
4017c8a0e2f4SThomas VeermanEOF
4018c8a0e2f4SThomas Veerman
4019c8a0e2f4SThomas Veermanelse
402084d9c625SLionel Sambuc  { { echo "$as_me:4020: error: cannot find a suitable type for u_int64_t" >&5
4021c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
4022c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
4023c8a0e2f4SThomas Veermanfi
4024c8a0e2f4SThomas Veerman
4025c8a0e2f4SThomas Veermanfi
4026c8a0e2f4SThomas Veerman
4027c8a0e2f4SThomas Veerman# Struct members.
402884d9c625SLionel Sambucecho "$as_me:4028: checking for DIR.dd_fd" >&5
4029c8a0e2f4SThomas Veermanecho $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
4030c8a0e2f4SThomas Veermanif test "${ac_cv_member_DIR_dd_fd+set}" = set; then
4031c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4032c8a0e2f4SThomas Veermanelse
4033c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
403484d9c625SLionel Sambuc#line 4034 "configure"
4035c8a0e2f4SThomas Veerman#include "confdefs.h"
4036c8a0e2f4SThomas Veerman#include <sys/types.h>
4037c8a0e2f4SThomas Veerman#include <dirent.h>
4038c8a0e2f4SThomas Veerman
4039c8a0e2f4SThomas Veermanint
4040c8a0e2f4SThomas Veermanmain ()
4041c8a0e2f4SThomas Veerman{
4042c8a0e2f4SThomas Veermanstatic DIR ac_aggr;
4043c8a0e2f4SThomas Veermanif (ac_aggr.dd_fd)
4044c8a0e2f4SThomas Veermanreturn 0;
4045c8a0e2f4SThomas Veerman  ;
4046c8a0e2f4SThomas Veerman  return 0;
4047c8a0e2f4SThomas Veerman}
4048c8a0e2f4SThomas Veerman_ACEOF
4049c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
405084d9c625SLionel Sambucif { (eval echo "$as_me:4050: \"$ac_compile\"") >&5
4051c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4052c8a0e2f4SThomas Veerman  ac_status=$?
405384d9c625SLionel Sambuc  echo "$as_me:4053: \$? = $ac_status" >&5
4054c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4055c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
405684d9c625SLionel Sambuc  { (eval echo "$as_me:4056: \"$ac_try\"") >&5
4057c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4058c8a0e2f4SThomas Veerman  ac_status=$?
405984d9c625SLionel Sambuc  echo "$as_me:4059: \$? = $ac_status" >&5
4060c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4061c8a0e2f4SThomas Veerman  ac_cv_member_DIR_dd_fd=yes
4062c8a0e2f4SThomas Veermanelse
4063c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4064c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4065c8a0e2f4SThomas Veermanac_cv_member_DIR_dd_fd=no
4066c8a0e2f4SThomas Veermanfi
4067c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4068c8a0e2f4SThomas Veermanfi
406984d9c625SLionel Sambucecho "$as_me:4069: result: $ac_cv_member_DIR_dd_fd" >&5
4070c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
4071c8a0e2f4SThomas Veermanif test $ac_cv_member_DIR_dd_fd = yes; then
4072c8a0e2f4SThomas Veerman
4073c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4074c8a0e2f4SThomas Veerman#define HAVE_DIR_DD_FD 1
4075c8a0e2f4SThomas VeermanEOF
4076c8a0e2f4SThomas Veerman
4077c8a0e2f4SThomas Veermanfi
407884d9c625SLionel Sambucecho "$as_me:4078: checking for DIR.__dd_fd" >&5
4079c8a0e2f4SThomas Veermanecho $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6
4080c8a0e2f4SThomas Veermanif test "${ac_cv_member_DIR___dd_fd+set}" = set; then
4081c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4082c8a0e2f4SThomas Veermanelse
4083c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
408484d9c625SLionel Sambuc#line 4084 "configure"
4085c8a0e2f4SThomas Veerman#include "confdefs.h"
4086c8a0e2f4SThomas Veerman#include <sys/types.h>
4087c8a0e2f4SThomas Veerman#include <dirent.h>
4088c8a0e2f4SThomas Veerman
4089c8a0e2f4SThomas Veermanint
4090c8a0e2f4SThomas Veermanmain ()
4091c8a0e2f4SThomas Veerman{
4092c8a0e2f4SThomas Veermanstatic DIR ac_aggr;
4093c8a0e2f4SThomas Veermanif (ac_aggr.__dd_fd)
4094c8a0e2f4SThomas Veermanreturn 0;
4095c8a0e2f4SThomas Veerman  ;
4096c8a0e2f4SThomas Veerman  return 0;
4097c8a0e2f4SThomas Veerman}
4098c8a0e2f4SThomas Veerman_ACEOF
4099c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
410084d9c625SLionel Sambucif { (eval echo "$as_me:4100: \"$ac_compile\"") >&5
4101c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4102c8a0e2f4SThomas Veerman  ac_status=$?
410384d9c625SLionel Sambuc  echo "$as_me:4103: \$? = $ac_status" >&5
4104c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4105c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
410684d9c625SLionel Sambuc  { (eval echo "$as_me:4106: \"$ac_try\"") >&5
4107c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4108c8a0e2f4SThomas Veerman  ac_status=$?
410984d9c625SLionel Sambuc  echo "$as_me:4109: \$? = $ac_status" >&5
4110c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4111c8a0e2f4SThomas Veerman  ac_cv_member_DIR___dd_fd=yes
4112c8a0e2f4SThomas Veermanelse
4113c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4114c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4115c8a0e2f4SThomas Veermanac_cv_member_DIR___dd_fd=no
4116c8a0e2f4SThomas Veermanfi
4117c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4118c8a0e2f4SThomas Veermanfi
411984d9c625SLionel Sambucecho "$as_me:4119: result: $ac_cv_member_DIR___dd_fd" >&5
4120c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6
4121c8a0e2f4SThomas Veermanif test $ac_cv_member_DIR___dd_fd = yes; then
4122c8a0e2f4SThomas Veerman
4123c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4124c8a0e2f4SThomas Veerman#define HAVE_DIR___DD_FD 1
4125c8a0e2f4SThomas VeermanEOF
4126c8a0e2f4SThomas Veerman
4127c8a0e2f4SThomas Veermanfi
412884d9c625SLionel Sambucecho "$as_me:4128: checking for struct dirent.d_namlen" >&5
4129c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
4130c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
4131c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4132c8a0e2f4SThomas Veermanelse
4133c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
413484d9c625SLionel Sambuc#line 4134 "configure"
4135c8a0e2f4SThomas Veerman#include "confdefs.h"
4136c8a0e2f4SThomas Veerman#include <sys/types.h>
4137c8a0e2f4SThomas Veerman#include <dirent.h>
4138c8a0e2f4SThomas Veerman
4139c8a0e2f4SThomas Veermanint
4140c8a0e2f4SThomas Veermanmain ()
4141c8a0e2f4SThomas Veerman{
4142c8a0e2f4SThomas Veermanstatic struct dirent ac_aggr;
4143c8a0e2f4SThomas Veermanif (ac_aggr.d_namlen)
4144c8a0e2f4SThomas Veermanreturn 0;
4145c8a0e2f4SThomas Veerman  ;
4146c8a0e2f4SThomas Veerman  return 0;
4147c8a0e2f4SThomas Veerman}
4148c8a0e2f4SThomas Veerman_ACEOF
4149c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
415084d9c625SLionel Sambucif { (eval echo "$as_me:4150: \"$ac_compile\"") >&5
4151c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4152c8a0e2f4SThomas Veerman  ac_status=$?
415384d9c625SLionel Sambuc  echo "$as_me:4153: \$? = $ac_status" >&5
4154c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4155c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
415684d9c625SLionel Sambuc  { (eval echo "$as_me:4156: \"$ac_try\"") >&5
4157c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4158c8a0e2f4SThomas Veerman  ac_status=$?
415984d9c625SLionel Sambuc  echo "$as_me:4159: \$? = $ac_status" >&5
4160c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4161c8a0e2f4SThomas Veerman  ac_cv_member_struct_dirent_d_namlen=yes
4162c8a0e2f4SThomas Veermanelse
4163c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4164c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4165c8a0e2f4SThomas Veermanac_cv_member_struct_dirent_d_namlen=no
4166c8a0e2f4SThomas Veermanfi
4167c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4168c8a0e2f4SThomas Veermanfi
416984d9c625SLionel Sambucecho "$as_me:4169: result: $ac_cv_member_struct_dirent_d_namlen" >&5
4170c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
4171c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_dirent_d_namlen = yes; then
4172c8a0e2f4SThomas Veerman
4173c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4174c8a0e2f4SThomas Veerman#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
4175c8a0e2f4SThomas VeermanEOF
4176c8a0e2f4SThomas Veerman
4177c8a0e2f4SThomas Veermanfi
4178c8a0e2f4SThomas Veerman
417984d9c625SLionel Sambucecho "$as_me:4179: checking for struct stat.st_flags" >&5
4180c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
4181c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
4182c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4183c8a0e2f4SThomas Veermanelse
4184c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
418584d9c625SLionel Sambuc#line 4185 "configure"
4186c8a0e2f4SThomas Veerman#include "confdefs.h"
4187c8a0e2f4SThomas Veerman#include <sys/stat.h>
4188c8a0e2f4SThomas Veerman
4189c8a0e2f4SThomas Veermanint
4190c8a0e2f4SThomas Veermanmain ()
4191c8a0e2f4SThomas Veerman{
4192c8a0e2f4SThomas Veermanstatic struct stat ac_aggr;
4193c8a0e2f4SThomas Veermanif (ac_aggr.st_flags)
4194c8a0e2f4SThomas Veermanreturn 0;
4195c8a0e2f4SThomas Veerman  ;
4196c8a0e2f4SThomas Veerman  return 0;
4197c8a0e2f4SThomas Veerman}
4198c8a0e2f4SThomas Veerman_ACEOF
4199c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
420084d9c625SLionel Sambucif { (eval echo "$as_me:4200: \"$ac_compile\"") >&5
4201c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4202c8a0e2f4SThomas Veerman  ac_status=$?
420384d9c625SLionel Sambuc  echo "$as_me:4203: \$? = $ac_status" >&5
4204c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4205c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
420684d9c625SLionel Sambuc  { (eval echo "$as_me:4206: \"$ac_try\"") >&5
4207c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4208c8a0e2f4SThomas Veerman  ac_status=$?
420984d9c625SLionel Sambuc  echo "$as_me:4209: \$? = $ac_status" >&5
4210c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4211c8a0e2f4SThomas Veerman  ac_cv_member_struct_stat_st_flags=yes
4212c8a0e2f4SThomas Veermanelse
4213c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4214c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4215c8a0e2f4SThomas Veermanac_cv_member_struct_stat_st_flags=no
4216c8a0e2f4SThomas Veermanfi
4217c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4218c8a0e2f4SThomas Veermanfi
421984d9c625SLionel Sambucecho "$as_me:4219: result: $ac_cv_member_struct_stat_st_flags" >&5
4220c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
4221c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_stat_st_flags = yes; then
4222c8a0e2f4SThomas Veerman
4223c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4224c8a0e2f4SThomas Veerman#define HAVE_STRUCT_STAT_ST_FLAGS 1
4225c8a0e2f4SThomas VeermanEOF
4226c8a0e2f4SThomas Veerman
4227c8a0e2f4SThomas Veermanfi
422884d9c625SLionel Sambucecho "$as_me:4228: checking for struct stat.st_gen" >&5
4229c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
4230c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
4231c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4232c8a0e2f4SThomas Veermanelse
4233c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
423484d9c625SLionel Sambuc#line 4234 "configure"
4235c8a0e2f4SThomas Veerman#include "confdefs.h"
4236c8a0e2f4SThomas Veerman#include <sys/stat.h>
4237c8a0e2f4SThomas Veerman
4238c8a0e2f4SThomas Veermanint
4239c8a0e2f4SThomas Veermanmain ()
4240c8a0e2f4SThomas Veerman{
4241c8a0e2f4SThomas Veermanstatic struct stat ac_aggr;
4242c8a0e2f4SThomas Veermanif (ac_aggr.st_gen)
4243c8a0e2f4SThomas Veermanreturn 0;
4244c8a0e2f4SThomas Veerman  ;
4245c8a0e2f4SThomas Veerman  return 0;
4246c8a0e2f4SThomas Veerman}
4247c8a0e2f4SThomas Veerman_ACEOF
4248c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
424984d9c625SLionel Sambucif { (eval echo "$as_me:4249: \"$ac_compile\"") >&5
4250c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4251c8a0e2f4SThomas Veerman  ac_status=$?
425284d9c625SLionel Sambuc  echo "$as_me:4252: \$? = $ac_status" >&5
4253c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4254c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
425584d9c625SLionel Sambuc  { (eval echo "$as_me:4255: \"$ac_try\"") >&5
4256c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4257c8a0e2f4SThomas Veerman  ac_status=$?
425884d9c625SLionel Sambuc  echo "$as_me:4258: \$? = $ac_status" >&5
4259c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4260c8a0e2f4SThomas Veerman  ac_cv_member_struct_stat_st_gen=yes
4261c8a0e2f4SThomas Veermanelse
4262c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4263c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4264c8a0e2f4SThomas Veermanac_cv_member_struct_stat_st_gen=no
4265c8a0e2f4SThomas Veermanfi
4266c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4267c8a0e2f4SThomas Veermanfi
426884d9c625SLionel Sambucecho "$as_me:4268: result: $ac_cv_member_struct_stat_st_gen" >&5
4269c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
4270c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_stat_st_gen = yes; then
4271c8a0e2f4SThomas Veerman
4272c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4273c8a0e2f4SThomas Veerman#define HAVE_STRUCT_STAT_ST_GEN 1
4274c8a0e2f4SThomas VeermanEOF
4275c8a0e2f4SThomas Veerman
4276c8a0e2f4SThomas Veermanfi
427784d9c625SLionel Sambucecho "$as_me:4277: checking for struct stat.st_birthtime" >&5
4278c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
4279c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
4280c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4281c8a0e2f4SThomas Veermanelse
4282c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
428384d9c625SLionel Sambuc#line 4283 "configure"
4284c8a0e2f4SThomas Veerman#include "confdefs.h"
4285c8a0e2f4SThomas Veerman#include <sys/stat.h>
4286c8a0e2f4SThomas Veerman
4287c8a0e2f4SThomas Veermanint
4288c8a0e2f4SThomas Veermanmain ()
4289c8a0e2f4SThomas Veerman{
4290c8a0e2f4SThomas Veermanstatic struct stat ac_aggr;
4291c8a0e2f4SThomas Veermanif (ac_aggr.st_birthtime)
4292c8a0e2f4SThomas Veermanreturn 0;
4293c8a0e2f4SThomas Veerman  ;
4294c8a0e2f4SThomas Veerman  return 0;
4295c8a0e2f4SThomas Veerman}
4296c8a0e2f4SThomas Veerman_ACEOF
4297c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
429884d9c625SLionel Sambucif { (eval echo "$as_me:4298: \"$ac_compile\"") >&5
4299c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4300c8a0e2f4SThomas Veerman  ac_status=$?
430184d9c625SLionel Sambuc  echo "$as_me:4301: \$? = $ac_status" >&5
4302c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4303c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
430484d9c625SLionel Sambuc  { (eval echo "$as_me:4304: \"$ac_try\"") >&5
4305c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4306c8a0e2f4SThomas Veerman  ac_status=$?
430784d9c625SLionel Sambuc  echo "$as_me:4307: \$? = $ac_status" >&5
4308c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4309c8a0e2f4SThomas Veerman  ac_cv_member_struct_stat_st_birthtime=yes
4310c8a0e2f4SThomas Veermanelse
4311c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4312c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4313c8a0e2f4SThomas Veermanac_cv_member_struct_stat_st_birthtime=no
4314c8a0e2f4SThomas Veermanfi
4315c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4316c8a0e2f4SThomas Veermanfi
431784d9c625SLionel Sambucecho "$as_me:4317: result: $ac_cv_member_struct_stat_st_birthtime" >&5
4318c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
4319c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_stat_st_birthtime = yes; then
4320c8a0e2f4SThomas Veerman
4321c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4322c8a0e2f4SThomas Veerman#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
4323c8a0e2f4SThomas VeermanEOF
4324c8a0e2f4SThomas Veerman
4325c8a0e2f4SThomas Veermanfi
432684d9c625SLionel Sambucecho "$as_me:4326: checking for struct stat.st_birthtimensec" >&5
4327c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
4328c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
4329c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4330c8a0e2f4SThomas Veermanelse
4331c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
433284d9c625SLionel Sambuc#line 4332 "configure"
4333c8a0e2f4SThomas Veerman#include "confdefs.h"
4334c8a0e2f4SThomas Veerman#include <sys/stat.h>
4335c8a0e2f4SThomas Veerman
4336c8a0e2f4SThomas Veermanint
4337c8a0e2f4SThomas Veermanmain ()
4338c8a0e2f4SThomas Veerman{
4339c8a0e2f4SThomas Veermanstatic struct stat ac_aggr;
4340c8a0e2f4SThomas Veermanif (ac_aggr.st_birthtimensec)
4341c8a0e2f4SThomas Veermanreturn 0;
4342c8a0e2f4SThomas Veerman  ;
4343c8a0e2f4SThomas Veerman  return 0;
4344c8a0e2f4SThomas Veerman}
4345c8a0e2f4SThomas Veerman_ACEOF
4346c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
434784d9c625SLionel Sambucif { (eval echo "$as_me:4347: \"$ac_compile\"") >&5
4348c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4349c8a0e2f4SThomas Veerman  ac_status=$?
435084d9c625SLionel Sambuc  echo "$as_me:4350: \$? = $ac_status" >&5
4351c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4352c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
435384d9c625SLionel Sambuc  { (eval echo "$as_me:4353: \"$ac_try\"") >&5
4354c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4355c8a0e2f4SThomas Veerman  ac_status=$?
435684d9c625SLionel Sambuc  echo "$as_me:4356: \$? = $ac_status" >&5
4357c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4358c8a0e2f4SThomas Veerman  ac_cv_member_struct_stat_st_birthtimensec=yes
4359c8a0e2f4SThomas Veermanelse
4360c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4361c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4362c8a0e2f4SThomas Veermanac_cv_member_struct_stat_st_birthtimensec=no
4363c8a0e2f4SThomas Veermanfi
4364c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4365c8a0e2f4SThomas Veermanfi
436684d9c625SLionel Sambucecho "$as_me:4366: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
4367c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
4368c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
4369c8a0e2f4SThomas Veerman
4370c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4371c8a0e2f4SThomas Veerman#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
4372c8a0e2f4SThomas VeermanEOF
4373c8a0e2f4SThomas Veerman
4374c8a0e2f4SThomas Veermanfi
437584d9c625SLionel Sambucecho "$as_me:4375: checking for struct stat.st_atim" >&5
4376c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
4377c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
4378c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4379c8a0e2f4SThomas Veermanelse
4380c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
438184d9c625SLionel Sambuc#line 4381 "configure"
4382c8a0e2f4SThomas Veerman#include "confdefs.h"
4383c8a0e2f4SThomas Veerman#include <sys/stat.h>
4384c8a0e2f4SThomas Veerman
4385c8a0e2f4SThomas Veermanint
4386c8a0e2f4SThomas Veermanmain ()
4387c8a0e2f4SThomas Veerman{
4388c8a0e2f4SThomas Veermanstatic struct stat ac_aggr;
4389c8a0e2f4SThomas Veermanif (ac_aggr.st_atim)
4390c8a0e2f4SThomas Veermanreturn 0;
4391c8a0e2f4SThomas Veerman  ;
4392c8a0e2f4SThomas Veerman  return 0;
4393c8a0e2f4SThomas Veerman}
4394c8a0e2f4SThomas Veerman_ACEOF
4395c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
439684d9c625SLionel Sambucif { (eval echo "$as_me:4396: \"$ac_compile\"") >&5
4397c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4398c8a0e2f4SThomas Veerman  ac_status=$?
439984d9c625SLionel Sambuc  echo "$as_me:4399: \$? = $ac_status" >&5
4400c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4401c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
440284d9c625SLionel Sambuc  { (eval echo "$as_me:4402: \"$ac_try\"") >&5
4403c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4404c8a0e2f4SThomas Veerman  ac_status=$?
440584d9c625SLionel Sambuc  echo "$as_me:4405: \$? = $ac_status" >&5
4406c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4407c8a0e2f4SThomas Veerman  ac_cv_member_struct_stat_st_atim=yes
4408c8a0e2f4SThomas Veermanelse
4409c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4410c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4411c8a0e2f4SThomas Veermanac_cv_member_struct_stat_st_atim=no
4412c8a0e2f4SThomas Veermanfi
4413c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4414c8a0e2f4SThomas Veermanfi
441584d9c625SLionel Sambucecho "$as_me:4415: result: $ac_cv_member_struct_stat_st_atim" >&5
4416c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
4417c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_stat_st_atim = yes; then
4418c8a0e2f4SThomas Veerman
4419c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4420c8a0e2f4SThomas Veerman#define HAVE_STRUCT_STAT_ST_ATIM 1
4421c8a0e2f4SThomas VeermanEOF
4422c8a0e2f4SThomas Veerman
4423c8a0e2f4SThomas Veermanfi
442484d9c625SLionel Sambucecho "$as_me:4424: checking for struct stat.st_mtimensec" >&5
4425c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
4426c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
4427c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4428c8a0e2f4SThomas Veermanelse
4429c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
443084d9c625SLionel Sambuc#line 4430 "configure"
4431c8a0e2f4SThomas Veerman#include "confdefs.h"
4432c8a0e2f4SThomas Veerman#include <sys/stat.h>
4433c8a0e2f4SThomas Veerman
4434c8a0e2f4SThomas Veermanint
4435c8a0e2f4SThomas Veermanmain ()
4436c8a0e2f4SThomas Veerman{
4437c8a0e2f4SThomas Veermanstatic struct stat ac_aggr;
4438c8a0e2f4SThomas Veermanif (ac_aggr.st_mtimensec)
4439c8a0e2f4SThomas Veermanreturn 0;
4440c8a0e2f4SThomas Veerman  ;
4441c8a0e2f4SThomas Veerman  return 0;
4442c8a0e2f4SThomas Veerman}
4443c8a0e2f4SThomas Veerman_ACEOF
4444c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
444584d9c625SLionel Sambucif { (eval echo "$as_me:4445: \"$ac_compile\"") >&5
4446c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4447c8a0e2f4SThomas Veerman  ac_status=$?
444884d9c625SLionel Sambuc  echo "$as_me:4448: \$? = $ac_status" >&5
4449c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4450c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
445184d9c625SLionel Sambuc  { (eval echo "$as_me:4451: \"$ac_try\"") >&5
4452c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4453c8a0e2f4SThomas Veerman  ac_status=$?
445484d9c625SLionel Sambuc  echo "$as_me:4454: \$? = $ac_status" >&5
4455c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4456c8a0e2f4SThomas Veerman  ac_cv_member_struct_stat_st_mtimensec=yes
4457c8a0e2f4SThomas Veermanelse
4458c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4459c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4460c8a0e2f4SThomas Veermanac_cv_member_struct_stat_st_mtimensec=no
4461c8a0e2f4SThomas Veermanfi
4462c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4463c8a0e2f4SThomas Veermanfi
446484d9c625SLionel Sambucecho "$as_me:4464: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
4465c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
4466c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_stat_st_mtimensec = yes; then
4467c8a0e2f4SThomas Veerman
4468c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4469c8a0e2f4SThomas Veerman#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
4470c8a0e2f4SThomas VeermanEOF
4471c8a0e2f4SThomas Veerman
4472c8a0e2f4SThomas Veermanfi
4473c8a0e2f4SThomas Veerman
447484d9c625SLionel Sambucecho "$as_me:4474: checking for struct statvfs.f_iosize" >&5
4475c8a0e2f4SThomas Veermanecho $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
4476c8a0e2f4SThomas Veermanif test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
4477c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4478c8a0e2f4SThomas Veermanelse
4479c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
448084d9c625SLionel Sambuc#line 4480 "configure"
4481c8a0e2f4SThomas Veerman#include "confdefs.h"
4482c8a0e2f4SThomas Veerman#include <sys/statvfs.h>
4483c8a0e2f4SThomas Veerman
4484c8a0e2f4SThomas Veermanint
4485c8a0e2f4SThomas Veermanmain ()
4486c8a0e2f4SThomas Veerman{
4487c8a0e2f4SThomas Veermanstatic struct statvfs ac_aggr;
4488c8a0e2f4SThomas Veermanif (ac_aggr.f_iosize)
4489c8a0e2f4SThomas Veermanreturn 0;
4490c8a0e2f4SThomas Veerman  ;
4491c8a0e2f4SThomas Veerman  return 0;
4492c8a0e2f4SThomas Veerman}
4493c8a0e2f4SThomas Veerman_ACEOF
4494c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
449584d9c625SLionel Sambucif { (eval echo "$as_me:4495: \"$ac_compile\"") >&5
4496c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4497c8a0e2f4SThomas Veerman  ac_status=$?
449884d9c625SLionel Sambuc  echo "$as_me:4498: \$? = $ac_status" >&5
4499c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4500c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
450184d9c625SLionel Sambuc  { (eval echo "$as_me:4501: \"$ac_try\"") >&5
4502c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4503c8a0e2f4SThomas Veerman  ac_status=$?
450484d9c625SLionel Sambuc  echo "$as_me:4504: \$? = $ac_status" >&5
4505c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4506c8a0e2f4SThomas Veerman  ac_cv_member_struct_statvfs_f_iosize=yes
4507c8a0e2f4SThomas Veermanelse
4508c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4509c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4510c8a0e2f4SThomas Veermanac_cv_member_struct_statvfs_f_iosize=no
4511c8a0e2f4SThomas Veermanfi
4512c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4513c8a0e2f4SThomas Veermanfi
451484d9c625SLionel Sambucecho "$as_me:4514: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
4515c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
4516c8a0e2f4SThomas Veermanif test $ac_cv_member_struct_statvfs_f_iosize = yes; then
4517c8a0e2f4SThomas Veerman
4518c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4519c8a0e2f4SThomas Veerman#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
4520c8a0e2f4SThomas VeermanEOF
4521c8a0e2f4SThomas Veerman
4522c8a0e2f4SThomas Veermanfi
4523c8a0e2f4SThomas Veerman
452484d9c625SLionel Sambucecho "$as_me:4524: checking for struct tm.tm_gmtoff" >&5
452584d9c625SLionel Sambucecho $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
452684d9c625SLionel Sambucif test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
452784d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
452884d9c625SLionel Sambucelse
452984d9c625SLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
453084d9c625SLionel Sambuc#line 4530 "configure"
453184d9c625SLionel Sambuc#include "confdefs.h"
453284d9c625SLionel Sambuc#include <time.h>
453384d9c625SLionel Sambuc
453484d9c625SLionel Sambucint
453584d9c625SLionel Sambucmain ()
453684d9c625SLionel Sambuc{
453784d9c625SLionel Sambucstatic struct tm ac_aggr;
453884d9c625SLionel Sambucif (ac_aggr.tm_gmtoff)
453984d9c625SLionel Sambucreturn 0;
454084d9c625SLionel Sambuc  ;
454184d9c625SLionel Sambuc  return 0;
454284d9c625SLionel Sambuc}
454384d9c625SLionel Sambuc_ACEOF
454484d9c625SLionel Sambucrm -f conftest.$ac_objext
454584d9c625SLionel Sambucif { (eval echo "$as_me:4545: \"$ac_compile\"") >&5
454684d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
454784d9c625SLionel Sambuc  ac_status=$?
454884d9c625SLionel Sambuc  echo "$as_me:4548: \$? = $ac_status" >&5
454984d9c625SLionel Sambuc  (exit $ac_status); } &&
455084d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
455184d9c625SLionel Sambuc  { (eval echo "$as_me:4551: \"$ac_try\"") >&5
455284d9c625SLionel Sambuc  (eval $ac_try) 2>&5
455384d9c625SLionel Sambuc  ac_status=$?
455484d9c625SLionel Sambuc  echo "$as_me:4554: \$? = $ac_status" >&5
455584d9c625SLionel Sambuc  (exit $ac_status); }; }; then
455684d9c625SLionel Sambuc  ac_cv_member_struct_tm_tm_gmtoff=yes
455784d9c625SLionel Sambucelse
455884d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
455984d9c625SLionel Sambuccat conftest.$ac_ext >&5
456084d9c625SLionel Sambucac_cv_member_struct_tm_tm_gmtoff=no
456184d9c625SLionel Sambucfi
456284d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
456384d9c625SLionel Sambucfi
456484d9c625SLionel Sambucecho "$as_me:4564: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
456584d9c625SLionel Sambucecho "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
456684d9c625SLionel Sambucif test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
456784d9c625SLionel Sambuc
456884d9c625SLionel Sambuccat >>confdefs.h <<EOF
456984d9c625SLionel Sambuc#define HAVE_STRUCT_TM_TM_GMTOFF 1
457084d9c625SLionel SambucEOF
457184d9c625SLionel Sambuc
457284d9c625SLionel Sambucfi
457384d9c625SLionel Sambuc
4574c8a0e2f4SThomas Veerman# Global variable decls.
457584d9c625SLionel Sambucecho "$as_me:4575: checking whether optind is declared" >&5
4576c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
4577c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_optind+set}" = set; then
4578c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4579c8a0e2f4SThomas Veermanelse
4580c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
458184d9c625SLionel Sambuc#line 4581 "configure"
4582c8a0e2f4SThomas Veerman#include "confdefs.h"
4583c8a0e2f4SThomas Veerman
4584c8a0e2f4SThomas Veerman#include <stdio.h>
4585c8a0e2f4SThomas Veerman#include <stdlib.h>
4586c8a0e2f4SThomas Veerman#include <unistd.h>
458784d9c625SLionel Sambuc#ifdef HAVE_GETOPT_H
458884d9c625SLionel Sambuc#include <getopt.h>
458984d9c625SLionel Sambuc#endif
4590c8a0e2f4SThomas Veerman
4591c8a0e2f4SThomas Veermanint
4592c8a0e2f4SThomas Veermanmain ()
4593c8a0e2f4SThomas Veerman{
4594c8a0e2f4SThomas Veerman#ifndef optind
4595c8a0e2f4SThomas Veerman  char *p = (char *) optind;
4596c8a0e2f4SThomas Veerman#endif
4597c8a0e2f4SThomas Veerman
4598c8a0e2f4SThomas Veerman  ;
4599c8a0e2f4SThomas Veerman  return 0;
4600c8a0e2f4SThomas Veerman}
4601c8a0e2f4SThomas Veerman_ACEOF
4602c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
460384d9c625SLionel Sambucif { (eval echo "$as_me:4603: \"$ac_compile\"") >&5
4604c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4605c8a0e2f4SThomas Veerman  ac_status=$?
460684d9c625SLionel Sambuc  echo "$as_me:4606: \$? = $ac_status" >&5
4607c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4608c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
460984d9c625SLionel Sambuc  { (eval echo "$as_me:4609: \"$ac_try\"") >&5
4610c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4611c8a0e2f4SThomas Veerman  ac_status=$?
461284d9c625SLionel Sambuc  echo "$as_me:4612: \$? = $ac_status" >&5
4613c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4614c8a0e2f4SThomas Veerman  ac_cv_have_decl_optind=yes
4615c8a0e2f4SThomas Veermanelse
4616c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4617c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4618c8a0e2f4SThomas Veermanac_cv_have_decl_optind=no
4619c8a0e2f4SThomas Veermanfi
4620c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4621c8a0e2f4SThomas Veermanfi
462284d9c625SLionel Sambucecho "$as_me:4622: result: $ac_cv_have_decl_optind" >&5
4623c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_optind" >&6
4624c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_optind = yes; then
4625c8a0e2f4SThomas Veerman
4626c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4627c8a0e2f4SThomas Veerman#define HAVE_DECL_OPTIND 1
4628c8a0e2f4SThomas VeermanEOF
4629c8a0e2f4SThomas Veerman
4630c8a0e2f4SThomas Veermanelse
4631c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
4632c8a0e2f4SThomas Veerman#define HAVE_DECL_OPTIND 0
4633c8a0e2f4SThomas VeermanEOF
4634c8a0e2f4SThomas Veerman
4635c8a0e2f4SThomas Veermanfi
463684d9c625SLionel Sambucecho "$as_me:4636: checking whether optreset is declared" >&5
4637c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4638c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_optreset+set}" = set; then
4639c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4640c8a0e2f4SThomas Veermanelse
4641c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
464284d9c625SLionel Sambuc#line 4642 "configure"
4643c8a0e2f4SThomas Veerman#include "confdefs.h"
4644c8a0e2f4SThomas Veerman
4645c8a0e2f4SThomas Veerman#include <stdio.h>
4646c8a0e2f4SThomas Veerman#include <stdlib.h>
4647c8a0e2f4SThomas Veerman#include <unistd.h>
464884d9c625SLionel Sambuc#ifdef HAVE_GETOPT_H
464984d9c625SLionel Sambuc#include <getopt.h>
465084d9c625SLionel Sambuc#endif
4651c8a0e2f4SThomas Veerman
4652c8a0e2f4SThomas Veermanint
4653c8a0e2f4SThomas Veermanmain ()
4654c8a0e2f4SThomas Veerman{
4655c8a0e2f4SThomas Veerman#ifndef optreset
4656c8a0e2f4SThomas Veerman  char *p = (char *) optreset;
4657c8a0e2f4SThomas Veerman#endif
4658c8a0e2f4SThomas Veerman
4659c8a0e2f4SThomas Veerman  ;
4660c8a0e2f4SThomas Veerman  return 0;
4661c8a0e2f4SThomas Veerman}
4662c8a0e2f4SThomas Veerman_ACEOF
4663c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
466484d9c625SLionel Sambucif { (eval echo "$as_me:4664: \"$ac_compile\"") >&5
4665c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4666c8a0e2f4SThomas Veerman  ac_status=$?
466784d9c625SLionel Sambuc  echo "$as_me:4667: \$? = $ac_status" >&5
4668c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4669c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
467084d9c625SLionel Sambuc  { (eval echo "$as_me:4670: \"$ac_try\"") >&5
4671c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4672c8a0e2f4SThomas Veerman  ac_status=$?
467384d9c625SLionel Sambuc  echo "$as_me:4673: \$? = $ac_status" >&5
4674c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4675c8a0e2f4SThomas Veerman  ac_cv_have_decl_optreset=yes
4676c8a0e2f4SThomas Veermanelse
4677c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4678c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4679c8a0e2f4SThomas Veermanac_cv_have_decl_optreset=no
4680c8a0e2f4SThomas Veermanfi
4681c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4682c8a0e2f4SThomas Veermanfi
468384d9c625SLionel Sambucecho "$as_me:4683: result: $ac_cv_have_decl_optreset" >&5
4684c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4685c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_optreset = yes; then
4686c8a0e2f4SThomas Veerman
4687c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4688c8a0e2f4SThomas Veerman#define HAVE_DECL_OPTRESET 1
4689c8a0e2f4SThomas VeermanEOF
4690c8a0e2f4SThomas Veerman
4691c8a0e2f4SThomas Veermanelse
4692c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
4693c8a0e2f4SThomas Veerman#define HAVE_DECL_OPTRESET 0
4694c8a0e2f4SThomas VeermanEOF
4695c8a0e2f4SThomas Veerman
4696c8a0e2f4SThomas Veermanfi
4697c8a0e2f4SThomas Veerman
469884d9c625SLionel Sambucecho "$as_me:4698: checking whether sys_signame is declared" >&5
4699c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4700c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_sys_signame+set}" = set; then
4701c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4702c8a0e2f4SThomas Veermanelse
4703c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
470484d9c625SLionel Sambuc#line 4704 "configure"
4705c8a0e2f4SThomas Veerman#include "confdefs.h"
4706c8a0e2f4SThomas Veerman#include <signal.h>
4707c8a0e2f4SThomas Veerman
4708c8a0e2f4SThomas Veermanint
4709c8a0e2f4SThomas Veermanmain ()
4710c8a0e2f4SThomas Veerman{
4711c8a0e2f4SThomas Veerman#ifndef sys_signame
4712c8a0e2f4SThomas Veerman  char *p = (char *) sys_signame;
4713c8a0e2f4SThomas Veerman#endif
4714c8a0e2f4SThomas Veerman
4715c8a0e2f4SThomas Veerman  ;
4716c8a0e2f4SThomas Veerman  return 0;
4717c8a0e2f4SThomas Veerman}
4718c8a0e2f4SThomas Veerman_ACEOF
4719c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
472084d9c625SLionel Sambucif { (eval echo "$as_me:4720: \"$ac_compile\"") >&5
4721c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
4722c8a0e2f4SThomas Veerman  ac_status=$?
472384d9c625SLionel Sambuc  echo "$as_me:4723: \$? = $ac_status" >&5
4724c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4725c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
472684d9c625SLionel Sambuc  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
4727c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4728c8a0e2f4SThomas Veerman  ac_status=$?
472984d9c625SLionel Sambuc  echo "$as_me:4729: \$? = $ac_status" >&5
4730c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4731c8a0e2f4SThomas Veerman  ac_cv_have_decl_sys_signame=yes
4732c8a0e2f4SThomas Veermanelse
4733c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4734c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4735c8a0e2f4SThomas Veermanac_cv_have_decl_sys_signame=no
4736c8a0e2f4SThomas Veermanfi
4737c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
4738c8a0e2f4SThomas Veermanfi
473984d9c625SLionel Sambucecho "$as_me:4739: result: $ac_cv_have_decl_sys_signame" >&5
4740c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4741c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_sys_signame = yes; then
4742c8a0e2f4SThomas Veerman
4743c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4744c8a0e2f4SThomas Veerman#define HAVE_DECL_SYS_SIGNAME 1
4745c8a0e2f4SThomas VeermanEOF
4746c8a0e2f4SThomas Veerman
4747c8a0e2f4SThomas Veermanelse
4748c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
4749c8a0e2f4SThomas Veerman#define HAVE_DECL_SYS_SIGNAME 0
4750c8a0e2f4SThomas VeermanEOF
4751c8a0e2f4SThomas Veerman
4752c8a0e2f4SThomas Veermanfi
4753c8a0e2f4SThomas Veerman
4754c8a0e2f4SThomas Veerman# Library functions (where a .h check isn't enough).
4755c8a0e2f4SThomas Veerman# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4756c8a0e2f4SThomas Veerman# for constant arguments.  Useless!
475784d9c625SLionel Sambucecho "$as_me:4757: checking for working alloca.h" >&5
4758c8a0e2f4SThomas Veermanecho $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4759c8a0e2f4SThomas Veermanif test "${ac_cv_working_alloca_h+set}" = set; then
4760c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4761c8a0e2f4SThomas Veermanelse
4762c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
476384d9c625SLionel Sambuc#line 4763 "configure"
4764c8a0e2f4SThomas Veerman#include "confdefs.h"
4765c8a0e2f4SThomas Veerman#include <alloca.h>
4766c8a0e2f4SThomas Veermanint
4767c8a0e2f4SThomas Veermanmain ()
4768c8a0e2f4SThomas Veerman{
4769c8a0e2f4SThomas Veermanchar *p = (char *) alloca (2 * sizeof (int));
4770c8a0e2f4SThomas Veerman  ;
4771c8a0e2f4SThomas Veerman  return 0;
4772c8a0e2f4SThomas Veerman}
4773c8a0e2f4SThomas Veerman_ACEOF
4774c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
477584d9c625SLionel Sambucif { (eval echo "$as_me:4775: \"$ac_link\"") >&5
4776c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
4777c8a0e2f4SThomas Veerman  ac_status=$?
477884d9c625SLionel Sambuc  echo "$as_me:4778: \$? = $ac_status" >&5
4779c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4780c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
478184d9c625SLionel Sambuc  { (eval echo "$as_me:4781: \"$ac_try\"") >&5
4782c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4783c8a0e2f4SThomas Veerman  ac_status=$?
478484d9c625SLionel Sambuc  echo "$as_me:4784: \$? = $ac_status" >&5
4785c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4786c8a0e2f4SThomas Veerman  ac_cv_working_alloca_h=yes
4787c8a0e2f4SThomas Veermanelse
4788c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4789c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4790c8a0e2f4SThomas Veermanac_cv_working_alloca_h=no
4791c8a0e2f4SThomas Veermanfi
4792c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4793c8a0e2f4SThomas Veermanfi
479484d9c625SLionel Sambucecho "$as_me:4794: result: $ac_cv_working_alloca_h" >&5
4795c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_working_alloca_h" >&6
4796c8a0e2f4SThomas Veermanif test $ac_cv_working_alloca_h = yes; then
4797c8a0e2f4SThomas Veerman
4798c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
4799c8a0e2f4SThomas Veerman#define HAVE_ALLOCA_H 1
4800c8a0e2f4SThomas VeermanEOF
4801c8a0e2f4SThomas Veerman
4802c8a0e2f4SThomas Veermanfi
4803c8a0e2f4SThomas Veerman
480484d9c625SLionel Sambucecho "$as_me:4804: checking for alloca" >&5
4805c8a0e2f4SThomas Veermanecho $ECHO_N "checking for alloca... $ECHO_C" >&6
4806c8a0e2f4SThomas Veermanif test "${ac_cv_func_alloca_works+set}" = set; then
4807c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4808c8a0e2f4SThomas Veermanelse
4809c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
481084d9c625SLionel Sambuc#line 4810 "configure"
4811c8a0e2f4SThomas Veerman#include "confdefs.h"
4812c8a0e2f4SThomas Veerman#ifdef __GNUC__
4813c8a0e2f4SThomas Veerman# define alloca __builtin_alloca
4814c8a0e2f4SThomas Veerman#else
4815c8a0e2f4SThomas Veerman# ifdef _MSC_VER
4816c8a0e2f4SThomas Veerman#  include <malloc.h>
4817c8a0e2f4SThomas Veerman#  define alloca _alloca
4818c8a0e2f4SThomas Veerman# else
4819c8a0e2f4SThomas Veerman#  if HAVE_ALLOCA_H
4820c8a0e2f4SThomas Veerman#   include <alloca.h>
4821c8a0e2f4SThomas Veerman#  else
4822c8a0e2f4SThomas Veerman#   ifdef _AIX
4823c8a0e2f4SThomas Veerman #pragma alloca
4824c8a0e2f4SThomas Veerman#   else
4825c8a0e2f4SThomas Veerman#    ifndef alloca /* predefined by HP cc +Olibcalls */
4826c8a0e2f4SThomas Veermanchar *alloca ();
4827c8a0e2f4SThomas Veerman#    endif
4828c8a0e2f4SThomas Veerman#   endif
4829c8a0e2f4SThomas Veerman#  endif
4830c8a0e2f4SThomas Veerman# endif
4831c8a0e2f4SThomas Veerman#endif
4832c8a0e2f4SThomas Veerman
4833c8a0e2f4SThomas Veermanint
4834c8a0e2f4SThomas Veermanmain ()
4835c8a0e2f4SThomas Veerman{
4836c8a0e2f4SThomas Veermanchar *p = (char *) alloca (1);
4837c8a0e2f4SThomas Veerman  ;
4838c8a0e2f4SThomas Veerman  return 0;
4839c8a0e2f4SThomas Veerman}
4840c8a0e2f4SThomas Veerman_ACEOF
4841c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
484284d9c625SLionel Sambucif { (eval echo "$as_me:4842: \"$ac_link\"") >&5
4843c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
4844c8a0e2f4SThomas Veerman  ac_status=$?
484584d9c625SLionel Sambuc  echo "$as_me:4845: \$? = $ac_status" >&5
4846c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4847c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
484884d9c625SLionel Sambuc  { (eval echo "$as_me:4848: \"$ac_try\"") >&5
4849c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4850c8a0e2f4SThomas Veerman  ac_status=$?
485184d9c625SLionel Sambuc  echo "$as_me:4851: \$? = $ac_status" >&5
4852c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4853c8a0e2f4SThomas Veerman  ac_cv_func_alloca_works=yes
4854c8a0e2f4SThomas Veermanelse
4855c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4856c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4857c8a0e2f4SThomas Veermanac_cv_func_alloca_works=no
4858c8a0e2f4SThomas Veermanfi
4859c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860c8a0e2f4SThomas Veermanfi
486184d9c625SLionel Sambucecho "$as_me:4861: result: $ac_cv_func_alloca_works" >&5
4862c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_func_alloca_works" >&6
4863c8a0e2f4SThomas Veerman
4864c8a0e2f4SThomas Veermanif test $ac_cv_func_alloca_works = yes; then
4865c8a0e2f4SThomas Veerman
4866c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
4867c8a0e2f4SThomas Veerman#define HAVE_ALLOCA 1
4868c8a0e2f4SThomas VeermanEOF
4869c8a0e2f4SThomas Veerman
4870c8a0e2f4SThomas Veermanelse
4871c8a0e2f4SThomas Veerman  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4872c8a0e2f4SThomas Veerman# that cause trouble.  Some versions do not even contain alloca or
4873c8a0e2f4SThomas Veerman# contain a buggy version.  If you still want to use their alloca,
4874c8a0e2f4SThomas Veerman# use ar to extract alloca.o from them instead of compiling alloca.c.
4875c8a0e2f4SThomas Veerman
4876c8a0e2f4SThomas VeermanALLOCA=alloca.$ac_objext
4877c8a0e2f4SThomas Veerman
4878c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
4879c8a0e2f4SThomas Veerman#define C_ALLOCA 1
4880c8a0e2f4SThomas VeermanEOF
4881c8a0e2f4SThomas Veerman
488284d9c625SLionel Sambucecho "$as_me:4882: checking whether \`alloca.c' needs Cray hooks" >&5
4883c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4884c8a0e2f4SThomas Veermanif test "${ac_cv_os_cray+set}" = set; then
4885c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4886c8a0e2f4SThomas Veermanelse
4887c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
488884d9c625SLionel Sambuc#line 4888 "configure"
4889c8a0e2f4SThomas Veerman#include "confdefs.h"
4890c8a0e2f4SThomas Veerman#if defined(CRAY) && ! defined(CRAY2)
4891c8a0e2f4SThomas Veermanwebecray
4892c8a0e2f4SThomas Veerman#else
4893c8a0e2f4SThomas Veermanwenotbecray
4894c8a0e2f4SThomas Veerman#endif
4895c8a0e2f4SThomas Veerman
4896c8a0e2f4SThomas Veerman_ACEOF
4897c8a0e2f4SThomas Veermanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898c8a0e2f4SThomas Veerman  egrep "webecray" >/dev/null 2>&1; then
4899c8a0e2f4SThomas Veerman  ac_cv_os_cray=yes
4900c8a0e2f4SThomas Veermanelse
4901c8a0e2f4SThomas Veerman  ac_cv_os_cray=no
4902c8a0e2f4SThomas Veermanfi
4903c8a0e2f4SThomas Veermanrm -f conftest*
4904c8a0e2f4SThomas Veerman
4905c8a0e2f4SThomas Veermanfi
490684d9c625SLionel Sambucecho "$as_me:4906: result: $ac_cv_os_cray" >&5
4907c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_os_cray" >&6
4908c8a0e2f4SThomas Veermanif test $ac_cv_os_cray = yes; then
4909c8a0e2f4SThomas Veerman  for ac_func in _getb67 GETB67 getb67; do
4910c8a0e2f4SThomas Veerman    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
491184d9c625SLionel Sambucecho "$as_me:4911: checking for $ac_func" >&5
4912c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4913c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_var+set}\" = set"; then
4914c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4915c8a0e2f4SThomas Veermanelse
4916c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
491784d9c625SLionel Sambuc#line 4917 "configure"
4918c8a0e2f4SThomas Veerman#include "confdefs.h"
4919c8a0e2f4SThomas Veerman/* System header to define __stub macros and hopefully few prototypes,
4920c8a0e2f4SThomas Veerman    which can conflict with char $ac_func (); below.  */
4921c8a0e2f4SThomas Veerman#include <assert.h>
4922c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
4923c8a0e2f4SThomas Veerman#ifdef __cplusplus
4924c8a0e2f4SThomas Veermanextern "C"
4925c8a0e2f4SThomas Veerman#endif
4926c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
4927c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
4928c8a0e2f4SThomas Veermanchar $ac_func ();
4929c8a0e2f4SThomas Veermanchar (*f) ();
4930c8a0e2f4SThomas Veerman
4931c8a0e2f4SThomas Veermanint
4932c8a0e2f4SThomas Veermanmain ()
4933c8a0e2f4SThomas Veerman{
4934c8a0e2f4SThomas Veerman/* The GNU C library defines this for functions which it implements
4935c8a0e2f4SThomas Veerman    to always fail with ENOSYS.  Some functions are actually named
4936c8a0e2f4SThomas Veerman    something starting with __ and the normal name is an alias.  */
4937c8a0e2f4SThomas Veerman#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4938c8a0e2f4SThomas Veermanchoke me
4939c8a0e2f4SThomas Veerman#else
4940c8a0e2f4SThomas Veermanf = $ac_func;
4941c8a0e2f4SThomas Veerman#endif
4942c8a0e2f4SThomas Veerman
4943c8a0e2f4SThomas Veerman  ;
4944c8a0e2f4SThomas Veerman  return 0;
4945c8a0e2f4SThomas Veerman}
4946c8a0e2f4SThomas Veerman_ACEOF
4947c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
494884d9c625SLionel Sambucif { (eval echo "$as_me:4948: \"$ac_link\"") >&5
4949c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
4950c8a0e2f4SThomas Veerman  ac_status=$?
495184d9c625SLionel Sambuc  echo "$as_me:4951: \$? = $ac_status" >&5
4952c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
4953c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
495484d9c625SLionel Sambuc  { (eval echo "$as_me:4954: \"$ac_try\"") >&5
4955c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
4956c8a0e2f4SThomas Veerman  ac_status=$?
495784d9c625SLionel Sambuc  echo "$as_me:4957: \$? = $ac_status" >&5
4958c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
4959c8a0e2f4SThomas Veerman  eval "$as_ac_var=yes"
4960c8a0e2f4SThomas Veermanelse
4961c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
4962c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
4963c8a0e2f4SThomas Veermaneval "$as_ac_var=no"
4964c8a0e2f4SThomas Veermanfi
4965c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4966c8a0e2f4SThomas Veermanfi
496784d9c625SLionel Sambucecho "$as_me:4967: result: `eval echo '${'$as_ac_var'}'`" >&5
4968c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4969c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_var'}'` = yes; then
4970c8a0e2f4SThomas Veerman
4971c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
4972c8a0e2f4SThomas Veerman#define CRAY_STACKSEG_END $ac_func
4973c8a0e2f4SThomas VeermanEOF
4974c8a0e2f4SThomas Veerman
4975c8a0e2f4SThomas Veerman    break
4976c8a0e2f4SThomas Veermanfi
4977c8a0e2f4SThomas Veerman
4978c8a0e2f4SThomas Veerman  done
4979c8a0e2f4SThomas Veermanfi
4980c8a0e2f4SThomas Veerman
498184d9c625SLionel Sambucecho "$as_me:4981: checking stack direction for C alloca" >&5
4982c8a0e2f4SThomas Veermanecho $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4983c8a0e2f4SThomas Veermanif test "${ac_cv_c_stack_direction+set}" = set; then
4984c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
4985c8a0e2f4SThomas Veermanelse
4986c8a0e2f4SThomas Veerman  if test "$cross_compiling" = yes; then
4987c8a0e2f4SThomas Veerman  ac_cv_c_stack_direction=0
4988c8a0e2f4SThomas Veermanelse
4989c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
499084d9c625SLionel Sambuc#line 4990 "configure"
4991c8a0e2f4SThomas Veerman#include "confdefs.h"
4992c8a0e2f4SThomas Veermanint
4993c8a0e2f4SThomas Veermanfind_stack_direction ()
4994c8a0e2f4SThomas Veerman{
4995c8a0e2f4SThomas Veerman  static char *addr = 0;
4996c8a0e2f4SThomas Veerman  auto char dummy;
4997c8a0e2f4SThomas Veerman  if (addr == 0)
4998c8a0e2f4SThomas Veerman    {
4999c8a0e2f4SThomas Veerman      addr = &dummy;
5000c8a0e2f4SThomas Veerman      return find_stack_direction ();
5001c8a0e2f4SThomas Veerman    }
5002c8a0e2f4SThomas Veerman  else
5003c8a0e2f4SThomas Veerman    return (&dummy > addr) ? 1 : -1;
5004c8a0e2f4SThomas Veerman}
5005c8a0e2f4SThomas Veerman
5006c8a0e2f4SThomas Veermanint
5007c8a0e2f4SThomas Veermanmain ()
5008c8a0e2f4SThomas Veerman{
5009c8a0e2f4SThomas Veerman  exit (find_stack_direction () < 0);
5010c8a0e2f4SThomas Veerman}
5011c8a0e2f4SThomas Veerman_ACEOF
5012c8a0e2f4SThomas Veermanrm -f conftest$ac_exeext
501384d9c625SLionel Sambucif { (eval echo "$as_me:5013: \"$ac_link\"") >&5
5014c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
5015c8a0e2f4SThomas Veerman  ac_status=$?
501684d9c625SLionel Sambuc  echo "$as_me:5016: \$? = $ac_status" >&5
5017c8a0e2f4SThomas Veerman  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
501884d9c625SLionel Sambuc  { (eval echo "$as_me:5018: \"$ac_try\"") >&5
5019c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5020c8a0e2f4SThomas Veerman  ac_status=$?
502184d9c625SLionel Sambuc  echo "$as_me:5021: \$? = $ac_status" >&5
5022c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5023c8a0e2f4SThomas Veerman  ac_cv_c_stack_direction=1
5024c8a0e2f4SThomas Veermanelse
5025c8a0e2f4SThomas Veerman  echo "$as_me: program exited with status $ac_status" >&5
5026c8a0e2f4SThomas Veermanecho "$as_me: failed program was:" >&5
5027c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5028c8a0e2f4SThomas Veermanac_cv_c_stack_direction=-1
5029c8a0e2f4SThomas Veermanfi
5030c8a0e2f4SThomas Veermanrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5031c8a0e2f4SThomas Veermanfi
5032c8a0e2f4SThomas Veermanfi
503384d9c625SLionel Sambucecho "$as_me:5033: result: $ac_cv_c_stack_direction" >&5
5034c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_c_stack_direction" >&6
5035c8a0e2f4SThomas Veerman
5036c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5037c8a0e2f4SThomas Veerman#define STACK_DIRECTION $ac_cv_c_stack_direction
5038c8a0e2f4SThomas VeermanEOF
5039c8a0e2f4SThomas Veerman
5040c8a0e2f4SThomas Veermanfi
5041c8a0e2f4SThomas Veerman
5042c8a0e2f4SThomas Veermanfor ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
504384d9c625SLionel Sambuc	dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \
5044c8a0e2f4SThomas Veerman	getopt getopt_long group_from_gid gid_from_group \
5045c8a0e2f4SThomas Veerman	heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
5046c8a0e2f4SThomas Veerman	mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
5047*0a6a1f1dSLionel Sambuc	pwrite raise_default_signal random reallocarr setenv \
504884d9c625SLionel Sambuc	setgroupent setprogname setpassent \
504984d9c625SLionel Sambuc	snprintb_m snprintf strlcat strlcpy strmode \
5050*0a6a1f1dSLionel Sambuc	strndup strnlen strsep strsuftoll strtoi strtoll strtou \
5051c8a0e2f4SThomas Veerman	user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
5052c8a0e2f4SThomas Veermando
5053c8a0e2f4SThomas Veermanas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
505484d9c625SLionel Sambucecho "$as_me:5054: checking for $ac_func" >&5
5055c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5056c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_var+set}\" = set"; then
5057c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5058c8a0e2f4SThomas Veermanelse
5059c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
506084d9c625SLionel Sambuc#line 5060 "configure"
5061c8a0e2f4SThomas Veerman#include "confdefs.h"
5062c8a0e2f4SThomas Veerman/* System header to define __stub macros and hopefully few prototypes,
5063c8a0e2f4SThomas Veerman    which can conflict with char $ac_func (); below.  */
5064c8a0e2f4SThomas Veerman#include <assert.h>
5065c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
5066c8a0e2f4SThomas Veerman#ifdef __cplusplus
5067c8a0e2f4SThomas Veermanextern "C"
5068c8a0e2f4SThomas Veerman#endif
5069c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
5070c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
5071c8a0e2f4SThomas Veermanchar $ac_func ();
5072c8a0e2f4SThomas Veermanchar (*f) ();
5073c8a0e2f4SThomas Veerman
5074c8a0e2f4SThomas Veermanint
5075c8a0e2f4SThomas Veermanmain ()
5076c8a0e2f4SThomas Veerman{
5077c8a0e2f4SThomas Veerman/* The GNU C library defines this for functions which it implements
5078c8a0e2f4SThomas Veerman    to always fail with ENOSYS.  Some functions are actually named
5079c8a0e2f4SThomas Veerman    something starting with __ and the normal name is an alias.  */
5080c8a0e2f4SThomas Veerman#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5081c8a0e2f4SThomas Veermanchoke me
5082c8a0e2f4SThomas Veerman#else
5083c8a0e2f4SThomas Veermanf = $ac_func;
5084c8a0e2f4SThomas Veerman#endif
5085c8a0e2f4SThomas Veerman
5086c8a0e2f4SThomas Veerman  ;
5087c8a0e2f4SThomas Veerman  return 0;
5088c8a0e2f4SThomas Veerman}
5089c8a0e2f4SThomas Veerman_ACEOF
5090c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
509184d9c625SLionel Sambucif { (eval echo "$as_me:5091: \"$ac_link\"") >&5
5092c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
5093c8a0e2f4SThomas Veerman  ac_status=$?
509484d9c625SLionel Sambuc  echo "$as_me:5094: \$? = $ac_status" >&5
5095c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5096c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
509784d9c625SLionel Sambuc  { (eval echo "$as_me:5097: \"$ac_try\"") >&5
5098c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5099c8a0e2f4SThomas Veerman  ac_status=$?
510084d9c625SLionel Sambuc  echo "$as_me:5100: \$? = $ac_status" >&5
5101c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5102c8a0e2f4SThomas Veerman  eval "$as_ac_var=yes"
5103c8a0e2f4SThomas Veermanelse
5104c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5105c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5106c8a0e2f4SThomas Veermaneval "$as_ac_var=no"
5107c8a0e2f4SThomas Veermanfi
5108c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5109c8a0e2f4SThomas Veermanfi
511084d9c625SLionel Sambucecho "$as_me:5110: result: `eval echo '${'$as_ac_var'}'`" >&5
5111c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5112c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_var'}'` = yes; then
5113c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5114c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5115c8a0e2f4SThomas VeermanEOF
5116c8a0e2f4SThomas Veerman
5117c8a0e2f4SThomas Veermanfi
5118c8a0e2f4SThomas Veermandone
5119c8a0e2f4SThomas Veerman
512084d9c625SLionel Sambucecho "$as_me:5120: checking whether user_from_uid is declared" >&5
5121c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether user_from_uid is declared... $ECHO_C" >&6
5122c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_user_from_uid+set}" = set; then
5123c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5124c8a0e2f4SThomas Veermanelse
5125c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
512684d9c625SLionel Sambuc#line 5126 "configure"
5127c8a0e2f4SThomas Veerman#include "confdefs.h"
5128c8a0e2f4SThomas Veerman
5129c8a0e2f4SThomas Veerman#include <pwd.h>
5130c8a0e2f4SThomas Veerman
5131c8a0e2f4SThomas Veermanint
5132c8a0e2f4SThomas Veermanmain ()
5133c8a0e2f4SThomas Veerman{
5134c8a0e2f4SThomas Veerman#ifndef user_from_uid
5135c8a0e2f4SThomas Veerman  char *p = (char *) user_from_uid;
5136c8a0e2f4SThomas Veerman#endif
5137c8a0e2f4SThomas Veerman
5138c8a0e2f4SThomas Veerman  ;
5139c8a0e2f4SThomas Veerman  return 0;
5140c8a0e2f4SThomas Veerman}
5141c8a0e2f4SThomas Veerman_ACEOF
5142c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
514384d9c625SLionel Sambucif { (eval echo "$as_me:5143: \"$ac_compile\"") >&5
5144c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5145c8a0e2f4SThomas Veerman  ac_status=$?
514684d9c625SLionel Sambuc  echo "$as_me:5146: \$? = $ac_status" >&5
5147c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5148c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
514984d9c625SLionel Sambuc  { (eval echo "$as_me:5149: \"$ac_try\"") >&5
5150c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5151c8a0e2f4SThomas Veerman  ac_status=$?
515284d9c625SLionel Sambuc  echo "$as_me:5152: \$? = $ac_status" >&5
5153c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5154c8a0e2f4SThomas Veerman  ac_cv_have_decl_user_from_uid=yes
5155c8a0e2f4SThomas Veermanelse
5156c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5157c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5158c8a0e2f4SThomas Veermanac_cv_have_decl_user_from_uid=no
5159c8a0e2f4SThomas Veermanfi
5160c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5161c8a0e2f4SThomas Veermanfi
516284d9c625SLionel Sambucecho "$as_me:5162: result: $ac_cv_have_decl_user_from_uid" >&5
5163c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_user_from_uid" >&6
5164c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_user_from_uid = yes; then
5165c8a0e2f4SThomas Veerman
5166c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5167c8a0e2f4SThomas Veerman#define HAVE_DECL_USER_FROM_UID 1
5168c8a0e2f4SThomas VeermanEOF
5169c8a0e2f4SThomas Veerman
5170c8a0e2f4SThomas Veermanelse
5171c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5172c8a0e2f4SThomas Veerman#define HAVE_DECL_USER_FROM_UID 0
5173c8a0e2f4SThomas VeermanEOF
5174c8a0e2f4SThomas Veerman
5175c8a0e2f4SThomas Veermanfi
517684d9c625SLionel Sambucecho "$as_me:5176: checking whether uid_from_user is declared" >&5
5177c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether uid_from_user is declared... $ECHO_C" >&6
5178c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_uid_from_user+set}" = set; then
5179c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5180c8a0e2f4SThomas Veermanelse
5181c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
518284d9c625SLionel Sambuc#line 5182 "configure"
5183c8a0e2f4SThomas Veerman#include "confdefs.h"
5184c8a0e2f4SThomas Veerman
5185c8a0e2f4SThomas Veerman#include <pwd.h>
5186c8a0e2f4SThomas Veerman
5187c8a0e2f4SThomas Veermanint
5188c8a0e2f4SThomas Veermanmain ()
5189c8a0e2f4SThomas Veerman{
5190c8a0e2f4SThomas Veerman#ifndef uid_from_user
5191c8a0e2f4SThomas Veerman  char *p = (char *) uid_from_user;
5192c8a0e2f4SThomas Veerman#endif
5193c8a0e2f4SThomas Veerman
5194c8a0e2f4SThomas Veerman  ;
5195c8a0e2f4SThomas Veerman  return 0;
5196c8a0e2f4SThomas Veerman}
5197c8a0e2f4SThomas Veerman_ACEOF
5198c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
519984d9c625SLionel Sambucif { (eval echo "$as_me:5199: \"$ac_compile\"") >&5
5200c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5201c8a0e2f4SThomas Veerman  ac_status=$?
520284d9c625SLionel Sambuc  echo "$as_me:5202: \$? = $ac_status" >&5
5203c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5204c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
520584d9c625SLionel Sambuc  { (eval echo "$as_me:5205: \"$ac_try\"") >&5
5206c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5207c8a0e2f4SThomas Veerman  ac_status=$?
520884d9c625SLionel Sambuc  echo "$as_me:5208: \$? = $ac_status" >&5
5209c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5210c8a0e2f4SThomas Veerman  ac_cv_have_decl_uid_from_user=yes
5211c8a0e2f4SThomas Veermanelse
5212c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5213c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5214c8a0e2f4SThomas Veermanac_cv_have_decl_uid_from_user=no
5215c8a0e2f4SThomas Veermanfi
5216c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5217c8a0e2f4SThomas Veermanfi
521884d9c625SLionel Sambucecho "$as_me:5218: result: $ac_cv_have_decl_uid_from_user" >&5
5219c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_uid_from_user" >&6
5220c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_uid_from_user = yes; then
5221c8a0e2f4SThomas Veerman
5222c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5223c8a0e2f4SThomas Veerman#define HAVE_DECL_UID_FROM_USER 1
5224c8a0e2f4SThomas VeermanEOF
5225c8a0e2f4SThomas Veerman
5226c8a0e2f4SThomas Veermanelse
5227c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5228c8a0e2f4SThomas Veerman#define HAVE_DECL_UID_FROM_USER 0
5229c8a0e2f4SThomas VeermanEOF
5230c8a0e2f4SThomas Veerman
5231c8a0e2f4SThomas Veermanfi
523284d9c625SLionel Sambucecho "$as_me:5232: checking whether pwcache_userdb is declared" >&5
5233c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether pwcache_userdb is declared... $ECHO_C" >&6
5234c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_pwcache_userdb+set}" = set; then
5235c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5236c8a0e2f4SThomas Veermanelse
5237c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
523884d9c625SLionel Sambuc#line 5238 "configure"
5239c8a0e2f4SThomas Veerman#include "confdefs.h"
5240c8a0e2f4SThomas Veerman
5241c8a0e2f4SThomas Veerman#include <pwd.h>
5242c8a0e2f4SThomas Veerman
5243c8a0e2f4SThomas Veermanint
5244c8a0e2f4SThomas Veermanmain ()
5245c8a0e2f4SThomas Veerman{
5246c8a0e2f4SThomas Veerman#ifndef pwcache_userdb
5247c8a0e2f4SThomas Veerman  char *p = (char *) pwcache_userdb;
5248c8a0e2f4SThomas Veerman#endif
5249c8a0e2f4SThomas Veerman
5250c8a0e2f4SThomas Veerman  ;
5251c8a0e2f4SThomas Veerman  return 0;
5252c8a0e2f4SThomas Veerman}
5253c8a0e2f4SThomas Veerman_ACEOF
5254c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
525584d9c625SLionel Sambucif { (eval echo "$as_me:5255: \"$ac_compile\"") >&5
5256c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5257c8a0e2f4SThomas Veerman  ac_status=$?
525884d9c625SLionel Sambuc  echo "$as_me:5258: \$? = $ac_status" >&5
5259c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5260c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
526184d9c625SLionel Sambuc  { (eval echo "$as_me:5261: \"$ac_try\"") >&5
5262c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5263c8a0e2f4SThomas Veerman  ac_status=$?
526484d9c625SLionel Sambuc  echo "$as_me:5264: \$? = $ac_status" >&5
5265c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5266c8a0e2f4SThomas Veerman  ac_cv_have_decl_pwcache_userdb=yes
5267c8a0e2f4SThomas Veermanelse
5268c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5269c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5270c8a0e2f4SThomas Veermanac_cv_have_decl_pwcache_userdb=no
5271c8a0e2f4SThomas Veermanfi
5272c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5273c8a0e2f4SThomas Veermanfi
527484d9c625SLionel Sambucecho "$as_me:5274: result: $ac_cv_have_decl_pwcache_userdb" >&5
5275c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_pwcache_userdb" >&6
5276c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_pwcache_userdb = yes; then
5277c8a0e2f4SThomas Veerman
5278c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5279c8a0e2f4SThomas Veerman#define HAVE_DECL_PWCACHE_USERDB 1
5280c8a0e2f4SThomas VeermanEOF
5281c8a0e2f4SThomas Veerman
5282c8a0e2f4SThomas Veermanelse
5283c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5284c8a0e2f4SThomas Veerman#define HAVE_DECL_PWCACHE_USERDB 0
5285c8a0e2f4SThomas VeermanEOF
5286c8a0e2f4SThomas Veerman
5287c8a0e2f4SThomas Veermanfi
5288c8a0e2f4SThomas Veerman
528984d9c625SLionel Sambucecho "$as_me:5289: checking whether group_from_gid is declared" >&5
5290c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether group_from_gid is declared... $ECHO_C" >&6
5291c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_group_from_gid+set}" = set; then
5292c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5293c8a0e2f4SThomas Veermanelse
5294c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
529584d9c625SLionel Sambuc#line 5295 "configure"
5296c8a0e2f4SThomas Veerman#include "confdefs.h"
5297c8a0e2f4SThomas Veerman
5298c8a0e2f4SThomas Veerman#include <grp.h>
5299c8a0e2f4SThomas Veerman
5300c8a0e2f4SThomas Veermanint
5301c8a0e2f4SThomas Veermanmain ()
5302c8a0e2f4SThomas Veerman{
5303c8a0e2f4SThomas Veerman#ifndef group_from_gid
5304c8a0e2f4SThomas Veerman  char *p = (char *) group_from_gid;
5305c8a0e2f4SThomas Veerman#endif
5306c8a0e2f4SThomas Veerman
5307c8a0e2f4SThomas Veerman  ;
5308c8a0e2f4SThomas Veerman  return 0;
5309c8a0e2f4SThomas Veerman}
5310c8a0e2f4SThomas Veerman_ACEOF
5311c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
531284d9c625SLionel Sambucif { (eval echo "$as_me:5312: \"$ac_compile\"") >&5
5313c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5314c8a0e2f4SThomas Veerman  ac_status=$?
531584d9c625SLionel Sambuc  echo "$as_me:5315: \$? = $ac_status" >&5
5316c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5317c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
531884d9c625SLionel Sambuc  { (eval echo "$as_me:5318: \"$ac_try\"") >&5
5319c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5320c8a0e2f4SThomas Veerman  ac_status=$?
532184d9c625SLionel Sambuc  echo "$as_me:5321: \$? = $ac_status" >&5
5322c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5323c8a0e2f4SThomas Veerman  ac_cv_have_decl_group_from_gid=yes
5324c8a0e2f4SThomas Veermanelse
5325c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5326c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5327c8a0e2f4SThomas Veermanac_cv_have_decl_group_from_gid=no
5328c8a0e2f4SThomas Veermanfi
5329c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5330c8a0e2f4SThomas Veermanfi
533184d9c625SLionel Sambucecho "$as_me:5331: result: $ac_cv_have_decl_group_from_gid" >&5
5332c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_group_from_gid" >&6
5333c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_group_from_gid = yes; then
5334c8a0e2f4SThomas Veerman
5335c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5336c8a0e2f4SThomas Veerman#define HAVE_DECL_GROUP_FROM_GID 1
5337c8a0e2f4SThomas VeermanEOF
5338c8a0e2f4SThomas Veerman
5339c8a0e2f4SThomas Veermanelse
5340c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5341c8a0e2f4SThomas Veerman#define HAVE_DECL_GROUP_FROM_GID 0
5342c8a0e2f4SThomas VeermanEOF
5343c8a0e2f4SThomas Veerman
5344c8a0e2f4SThomas Veermanfi
534584d9c625SLionel Sambucecho "$as_me:5345: checking whether gid_from_group is declared" >&5
5346c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether gid_from_group is declared... $ECHO_C" >&6
5347c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_gid_from_group+set}" = set; then
5348c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5349c8a0e2f4SThomas Veermanelse
5350c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
535184d9c625SLionel Sambuc#line 5351 "configure"
5352c8a0e2f4SThomas Veerman#include "confdefs.h"
5353c8a0e2f4SThomas Veerman
5354c8a0e2f4SThomas Veerman#include <grp.h>
5355c8a0e2f4SThomas Veerman
5356c8a0e2f4SThomas Veermanint
5357c8a0e2f4SThomas Veermanmain ()
5358c8a0e2f4SThomas Veerman{
5359c8a0e2f4SThomas Veerman#ifndef gid_from_group
5360c8a0e2f4SThomas Veerman  char *p = (char *) gid_from_group;
5361c8a0e2f4SThomas Veerman#endif
5362c8a0e2f4SThomas Veerman
5363c8a0e2f4SThomas Veerman  ;
5364c8a0e2f4SThomas Veerman  return 0;
5365c8a0e2f4SThomas Veerman}
5366c8a0e2f4SThomas Veerman_ACEOF
5367c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
536884d9c625SLionel Sambucif { (eval echo "$as_me:5368: \"$ac_compile\"") >&5
5369c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5370c8a0e2f4SThomas Veerman  ac_status=$?
537184d9c625SLionel Sambuc  echo "$as_me:5371: \$? = $ac_status" >&5
5372c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5373c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
537484d9c625SLionel Sambuc  { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5375c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5376c8a0e2f4SThomas Veerman  ac_status=$?
537784d9c625SLionel Sambuc  echo "$as_me:5377: \$? = $ac_status" >&5
5378c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5379c8a0e2f4SThomas Veerman  ac_cv_have_decl_gid_from_group=yes
5380c8a0e2f4SThomas Veermanelse
5381c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5382c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5383c8a0e2f4SThomas Veermanac_cv_have_decl_gid_from_group=no
5384c8a0e2f4SThomas Veermanfi
5385c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5386c8a0e2f4SThomas Veermanfi
538784d9c625SLionel Sambucecho "$as_me:5387: result: $ac_cv_have_decl_gid_from_group" >&5
5388c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_gid_from_group" >&6
5389c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_gid_from_group = yes; then
5390c8a0e2f4SThomas Veerman
5391c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5392c8a0e2f4SThomas Veerman#define HAVE_DECL_GID_FROM_GROUP 1
5393c8a0e2f4SThomas VeermanEOF
5394c8a0e2f4SThomas Veerman
5395c8a0e2f4SThomas Veermanelse
5396c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5397c8a0e2f4SThomas Veerman#define HAVE_DECL_GID_FROM_GROUP 0
5398c8a0e2f4SThomas VeermanEOF
5399c8a0e2f4SThomas Veerman
5400c8a0e2f4SThomas Veermanfi
540184d9c625SLionel Sambucecho "$as_me:5401: checking whether pwcache_groupdb is declared" >&5
5402c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether pwcache_groupdb is declared... $ECHO_C" >&6
5403c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_pwcache_groupdb+set}" = set; then
5404c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5405c8a0e2f4SThomas Veermanelse
5406c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
540784d9c625SLionel Sambuc#line 5407 "configure"
5408c8a0e2f4SThomas Veerman#include "confdefs.h"
5409c8a0e2f4SThomas Veerman
5410c8a0e2f4SThomas Veerman#include <grp.h>
5411c8a0e2f4SThomas Veerman
5412c8a0e2f4SThomas Veermanint
5413c8a0e2f4SThomas Veermanmain ()
5414c8a0e2f4SThomas Veerman{
5415c8a0e2f4SThomas Veerman#ifndef pwcache_groupdb
5416c8a0e2f4SThomas Veerman  char *p = (char *) pwcache_groupdb;
5417c8a0e2f4SThomas Veerman#endif
5418c8a0e2f4SThomas Veerman
5419c8a0e2f4SThomas Veerman  ;
5420c8a0e2f4SThomas Veerman  return 0;
5421c8a0e2f4SThomas Veerman}
5422c8a0e2f4SThomas Veerman_ACEOF
5423c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
542484d9c625SLionel Sambucif { (eval echo "$as_me:5424: \"$ac_compile\"") >&5
5425c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5426c8a0e2f4SThomas Veerman  ac_status=$?
542784d9c625SLionel Sambuc  echo "$as_me:5427: \$? = $ac_status" >&5
5428c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5429c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
543084d9c625SLionel Sambuc  { (eval echo "$as_me:5430: \"$ac_try\"") >&5
5431c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5432c8a0e2f4SThomas Veerman  ac_status=$?
543384d9c625SLionel Sambuc  echo "$as_me:5433: \$? = $ac_status" >&5
5434c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5435c8a0e2f4SThomas Veerman  ac_cv_have_decl_pwcache_groupdb=yes
5436c8a0e2f4SThomas Veermanelse
5437c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5438c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5439c8a0e2f4SThomas Veermanac_cv_have_decl_pwcache_groupdb=no
5440c8a0e2f4SThomas Veermanfi
5441c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5442c8a0e2f4SThomas Veermanfi
544384d9c625SLionel Sambucecho "$as_me:5443: result: $ac_cv_have_decl_pwcache_groupdb" >&5
5444c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_pwcache_groupdb" >&6
5445c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_pwcache_groupdb = yes; then
5446c8a0e2f4SThomas Veerman
5447c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5448c8a0e2f4SThomas Veerman#define HAVE_DECL_PWCACHE_GROUPDB 1
5449c8a0e2f4SThomas VeermanEOF
5450c8a0e2f4SThomas Veerman
5451c8a0e2f4SThomas Veermanelse
5452c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5453c8a0e2f4SThomas Veerman#define HAVE_DECL_PWCACHE_GROUPDB 0
5454c8a0e2f4SThomas VeermanEOF
5455c8a0e2f4SThomas Veerman
5456c8a0e2f4SThomas Veermanfi
5457c8a0e2f4SThomas Veerman
545884d9c625SLionel Sambucecho "$as_me:5458: checking whether strndup is declared" >&5
5459c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
5460c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_strndup+set}" = set; then
5461c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5462c8a0e2f4SThomas Veermanelse
5463c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
546484d9c625SLionel Sambuc#line 5464 "configure"
5465c8a0e2f4SThomas Veerman#include "confdefs.h"
5466c8a0e2f4SThomas Veerman#include <string.h>
5467c8a0e2f4SThomas Veerman
5468c8a0e2f4SThomas Veermanint
5469c8a0e2f4SThomas Veermanmain ()
5470c8a0e2f4SThomas Veerman{
5471c8a0e2f4SThomas Veerman#ifndef strndup
5472c8a0e2f4SThomas Veerman  char *p = (char *) strndup;
5473c8a0e2f4SThomas Veerman#endif
5474c8a0e2f4SThomas Veerman
5475c8a0e2f4SThomas Veerman  ;
5476c8a0e2f4SThomas Veerman  return 0;
5477c8a0e2f4SThomas Veerman}
5478c8a0e2f4SThomas Veerman_ACEOF
5479c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
548084d9c625SLionel Sambucif { (eval echo "$as_me:5480: \"$ac_compile\"") >&5
5481c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5482c8a0e2f4SThomas Veerman  ac_status=$?
548384d9c625SLionel Sambuc  echo "$as_me:5483: \$? = $ac_status" >&5
5484c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5485c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
548684d9c625SLionel Sambuc  { (eval echo "$as_me:5486: \"$ac_try\"") >&5
5487c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5488c8a0e2f4SThomas Veerman  ac_status=$?
548984d9c625SLionel Sambuc  echo "$as_me:5489: \$? = $ac_status" >&5
5490c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5491c8a0e2f4SThomas Veerman  ac_cv_have_decl_strndup=yes
5492c8a0e2f4SThomas Veermanelse
5493c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5494c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5495c8a0e2f4SThomas Veermanac_cv_have_decl_strndup=no
5496c8a0e2f4SThomas Veermanfi
5497c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5498c8a0e2f4SThomas Veermanfi
549984d9c625SLionel Sambucecho "$as_me:5499: result: $ac_cv_have_decl_strndup" >&5
5500c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_strndup" >&6
5501c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_strndup = yes; then
5502c8a0e2f4SThomas Veerman
5503c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5504c8a0e2f4SThomas Veerman#define HAVE_DECL_STRNDUP 1
5505c8a0e2f4SThomas VeermanEOF
5506c8a0e2f4SThomas Veerman
5507c8a0e2f4SThomas Veermanelse
5508c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5509c8a0e2f4SThomas Veerman#define HAVE_DECL_STRNDUP 0
5510c8a0e2f4SThomas VeermanEOF
5511c8a0e2f4SThomas Veerman
5512c8a0e2f4SThomas Veermanfi
5513*0a6a1f1dSLionel Sambucecho "$as_me:5513: checking whether strnlen is declared" >&5
5514*0a6a1f1dSLionel Sambucecho $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5515*0a6a1f1dSLionel Sambucif test "${ac_cv_have_decl_strnlen+set}" = set; then
5516*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5517*0a6a1f1dSLionel Sambucelse
5518*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5519*0a6a1f1dSLionel Sambuc#line 5519 "configure"
5520*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5521*0a6a1f1dSLionel Sambuc#include <string.h>
5522c8a0e2f4SThomas Veerman
5523*0a6a1f1dSLionel Sambucint
5524*0a6a1f1dSLionel Sambucmain ()
5525*0a6a1f1dSLionel Sambuc{
5526*0a6a1f1dSLionel Sambuc#ifndef strnlen
5527*0a6a1f1dSLionel Sambuc  char *p = (char *) strnlen;
5528*0a6a1f1dSLionel Sambuc#endif
5529*0a6a1f1dSLionel Sambuc
5530*0a6a1f1dSLionel Sambuc  ;
5531*0a6a1f1dSLionel Sambuc  return 0;
5532*0a6a1f1dSLionel Sambuc}
5533*0a6a1f1dSLionel Sambuc_ACEOF
5534*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
5535*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5535: \"$ac_compile\"") >&5
5536*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
5537*0a6a1f1dSLionel Sambuc  ac_status=$?
5538*0a6a1f1dSLionel Sambuc  echo "$as_me:5538: \$? = $ac_status" >&5
5539*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
5540*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
5541*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5541: \"$ac_try\"") >&5
5542*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
5543*0a6a1f1dSLionel Sambuc  ac_status=$?
5544*0a6a1f1dSLionel Sambuc  echo "$as_me:5544: \$? = $ac_status" >&5
5545*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
5546*0a6a1f1dSLionel Sambuc  ac_cv_have_decl_strnlen=yes
5547*0a6a1f1dSLionel Sambucelse
5548*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
5549*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
5550*0a6a1f1dSLionel Sambucac_cv_have_decl_strnlen=no
5551*0a6a1f1dSLionel Sambucfi
5552*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
5553*0a6a1f1dSLionel Sambucfi
5554*0a6a1f1dSLionel Sambucecho "$as_me:5554: result: $ac_cv_have_decl_strnlen" >&5
5555*0a6a1f1dSLionel Sambucecho "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5556*0a6a1f1dSLionel Sambucif test $ac_cv_have_decl_strnlen = yes; then
5557*0a6a1f1dSLionel Sambuc
5558*0a6a1f1dSLionel Sambuccat >>confdefs.h <<EOF
5559*0a6a1f1dSLionel Sambuc#define HAVE_DECL_STRNLEN 1
5560*0a6a1f1dSLionel SambucEOF
5561*0a6a1f1dSLionel Sambuc
5562*0a6a1f1dSLionel Sambucelse
5563*0a6a1f1dSLionel Sambuc  cat >>confdefs.h <<EOF
5564*0a6a1f1dSLionel Sambuc#define HAVE_DECL_STRNLEN 0
5565*0a6a1f1dSLionel SambucEOF
5566*0a6a1f1dSLionel Sambuc
5567*0a6a1f1dSLionel Sambucfi
5568*0a6a1f1dSLionel Sambuc
5569*0a6a1f1dSLionel Sambucecho "$as_me:5569: checking whether strsuftoll is declared" >&5
5570c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6
5571c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_strsuftoll+set}" = set; then
5572c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5573c8a0e2f4SThomas Veermanelse
5574c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
5575*0a6a1f1dSLionel Sambuc#line 5575 "configure"
5576c8a0e2f4SThomas Veerman#include "confdefs.h"
5577c8a0e2f4SThomas Veerman#include <stdlib.h>
5578c8a0e2f4SThomas Veerman
5579c8a0e2f4SThomas Veermanint
5580c8a0e2f4SThomas Veermanmain ()
5581c8a0e2f4SThomas Veerman{
5582c8a0e2f4SThomas Veerman#ifndef strsuftoll
5583c8a0e2f4SThomas Veerman  char *p = (char *) strsuftoll;
5584c8a0e2f4SThomas Veerman#endif
5585c8a0e2f4SThomas Veerman
5586c8a0e2f4SThomas Veerman  ;
5587c8a0e2f4SThomas Veerman  return 0;
5588c8a0e2f4SThomas Veerman}
5589c8a0e2f4SThomas Veerman_ACEOF
5590c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
5591*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5591: \"$ac_compile\"") >&5
5592c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5593c8a0e2f4SThomas Veerman  ac_status=$?
5594*0a6a1f1dSLionel Sambuc  echo "$as_me:5594: \$? = $ac_status" >&5
5595c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5596c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
5597*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5597: \"$ac_try\"") >&5
5598c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5599c8a0e2f4SThomas Veerman  ac_status=$?
5600*0a6a1f1dSLionel Sambuc  echo "$as_me:5600: \$? = $ac_status" >&5
5601c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5602c8a0e2f4SThomas Veerman  ac_cv_have_decl_strsuftoll=yes
5603c8a0e2f4SThomas Veermanelse
5604c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5605c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5606c8a0e2f4SThomas Veermanac_cv_have_decl_strsuftoll=no
5607c8a0e2f4SThomas Veermanfi
5608c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5609c8a0e2f4SThomas Veermanfi
5610*0a6a1f1dSLionel Sambucecho "$as_me:5610: result: $ac_cv_have_decl_strsuftoll" >&5
5611c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6
5612c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_strsuftoll = yes; then
5613c8a0e2f4SThomas Veerman
5614c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5615c8a0e2f4SThomas Veerman#define HAVE_DECL_STRSUFTOLL 1
5616c8a0e2f4SThomas VeermanEOF
5617c8a0e2f4SThomas Veerman
5618c8a0e2f4SThomas Veermanelse
5619c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5620c8a0e2f4SThomas Veerman#define HAVE_DECL_STRSUFTOLL 0
5621c8a0e2f4SThomas VeermanEOF
5622c8a0e2f4SThomas Veerman
5623c8a0e2f4SThomas Veermanfi
5624c8a0e2f4SThomas Veerman
5625*0a6a1f1dSLionel Sambucecho "$as_me:5625: checking whether lchflags is declared" >&5
5626c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether lchflags is declared... $ECHO_C" >&6
5627c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_lchflags+set}" = set; then
5628c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5629c8a0e2f4SThomas Veermanelse
5630c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
5631*0a6a1f1dSLionel Sambuc#line 5631 "configure"
5632c8a0e2f4SThomas Veerman#include "confdefs.h"
5633c8a0e2f4SThomas Veerman
5634c8a0e2f4SThomas Veerman#include <sys/stat.h>
5635c8a0e2f4SThomas Veerman#include <unistd.h>
5636c8a0e2f4SThomas Veerman
5637c8a0e2f4SThomas Veermanint
5638c8a0e2f4SThomas Veermanmain ()
5639c8a0e2f4SThomas Veerman{
5640c8a0e2f4SThomas Veerman#ifndef lchflags
5641c8a0e2f4SThomas Veerman  char *p = (char *) lchflags;
5642c8a0e2f4SThomas Veerman#endif
5643c8a0e2f4SThomas Veerman
5644c8a0e2f4SThomas Veerman  ;
5645c8a0e2f4SThomas Veerman  return 0;
5646c8a0e2f4SThomas Veerman}
5647c8a0e2f4SThomas Veerman_ACEOF
5648c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
5649*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5649: \"$ac_compile\"") >&5
5650c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5651c8a0e2f4SThomas Veerman  ac_status=$?
5652*0a6a1f1dSLionel Sambuc  echo "$as_me:5652: \$? = $ac_status" >&5
5653c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5654c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
5655*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5655: \"$ac_try\"") >&5
5656c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5657c8a0e2f4SThomas Veerman  ac_status=$?
5658*0a6a1f1dSLionel Sambuc  echo "$as_me:5658: \$? = $ac_status" >&5
5659c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5660c8a0e2f4SThomas Veerman  ac_cv_have_decl_lchflags=yes
5661c8a0e2f4SThomas Veermanelse
5662c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5663c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5664c8a0e2f4SThomas Veermanac_cv_have_decl_lchflags=no
5665c8a0e2f4SThomas Veermanfi
5666c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5667c8a0e2f4SThomas Veermanfi
5668*0a6a1f1dSLionel Sambucecho "$as_me:5668: result: $ac_cv_have_decl_lchflags" >&5
5669c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_lchflags" >&6
5670c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_lchflags = yes; then
5671c8a0e2f4SThomas Veerman
5672c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5673c8a0e2f4SThomas Veerman#define HAVE_DECL_LCHFLAGS 1
5674c8a0e2f4SThomas VeermanEOF
5675c8a0e2f4SThomas Veerman
5676c8a0e2f4SThomas Veermanelse
5677c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5678c8a0e2f4SThomas Veerman#define HAVE_DECL_LCHFLAGS 0
5679c8a0e2f4SThomas VeermanEOF
5680c8a0e2f4SThomas Veerman
5681c8a0e2f4SThomas Veermanfi
5682*0a6a1f1dSLionel Sambucecho "$as_me:5682: checking whether lchmod is declared" >&5
5683c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether lchmod is declared... $ECHO_C" >&6
5684c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_lchmod+set}" = set; then
5685c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5686c8a0e2f4SThomas Veermanelse
5687c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
5688*0a6a1f1dSLionel Sambuc#line 5688 "configure"
5689c8a0e2f4SThomas Veerman#include "confdefs.h"
5690c8a0e2f4SThomas Veerman
5691c8a0e2f4SThomas Veerman#include <sys/stat.h>
5692c8a0e2f4SThomas Veerman#include <unistd.h>
5693c8a0e2f4SThomas Veerman
5694c8a0e2f4SThomas Veermanint
5695c8a0e2f4SThomas Veermanmain ()
5696c8a0e2f4SThomas Veerman{
5697c8a0e2f4SThomas Veerman#ifndef lchmod
5698c8a0e2f4SThomas Veerman  char *p = (char *) lchmod;
5699c8a0e2f4SThomas Veerman#endif
5700c8a0e2f4SThomas Veerman
5701c8a0e2f4SThomas Veerman  ;
5702c8a0e2f4SThomas Veerman  return 0;
5703c8a0e2f4SThomas Veerman}
5704c8a0e2f4SThomas Veerman_ACEOF
5705c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
5706*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5706: \"$ac_compile\"") >&5
5707c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5708c8a0e2f4SThomas Veerman  ac_status=$?
5709*0a6a1f1dSLionel Sambuc  echo "$as_me:5709: \$? = $ac_status" >&5
5710c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5711c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
5712*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5712: \"$ac_try\"") >&5
5713c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5714c8a0e2f4SThomas Veerman  ac_status=$?
5715*0a6a1f1dSLionel Sambuc  echo "$as_me:5715: \$? = $ac_status" >&5
5716c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5717c8a0e2f4SThomas Veerman  ac_cv_have_decl_lchmod=yes
5718c8a0e2f4SThomas Veermanelse
5719c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5720c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5721c8a0e2f4SThomas Veermanac_cv_have_decl_lchmod=no
5722c8a0e2f4SThomas Veermanfi
5723c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5724c8a0e2f4SThomas Veermanfi
5725*0a6a1f1dSLionel Sambucecho "$as_me:5725: result: $ac_cv_have_decl_lchmod" >&5
5726c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_lchmod" >&6
5727c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_lchmod = yes; then
5728c8a0e2f4SThomas Veerman
5729c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5730c8a0e2f4SThomas Veerman#define HAVE_DECL_LCHMOD 1
5731c8a0e2f4SThomas VeermanEOF
5732c8a0e2f4SThomas Veerman
5733c8a0e2f4SThomas Veermanelse
5734c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5735c8a0e2f4SThomas Veerman#define HAVE_DECL_LCHMOD 0
5736c8a0e2f4SThomas VeermanEOF
5737c8a0e2f4SThomas Veerman
5738c8a0e2f4SThomas Veermanfi
5739*0a6a1f1dSLionel Sambucecho "$as_me:5739: checking whether lchown is declared" >&5
5740c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6
5741c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_lchown+set}" = set; then
5742c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
5743c8a0e2f4SThomas Veermanelse
5744c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
5745*0a6a1f1dSLionel Sambuc#line 5745 "configure"
5746c8a0e2f4SThomas Veerman#include "confdefs.h"
5747c8a0e2f4SThomas Veerman
5748c8a0e2f4SThomas Veerman#include <sys/stat.h>
5749c8a0e2f4SThomas Veerman#include <unistd.h>
5750c8a0e2f4SThomas Veerman
5751c8a0e2f4SThomas Veermanint
5752c8a0e2f4SThomas Veermanmain ()
5753c8a0e2f4SThomas Veerman{
5754c8a0e2f4SThomas Veerman#ifndef lchown
5755c8a0e2f4SThomas Veerman  char *p = (char *) lchown;
5756c8a0e2f4SThomas Veerman#endif
5757c8a0e2f4SThomas Veerman
5758c8a0e2f4SThomas Veerman  ;
5759c8a0e2f4SThomas Veerman  return 0;
5760c8a0e2f4SThomas Veerman}
5761c8a0e2f4SThomas Veerman_ACEOF
5762c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
5763*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5763: \"$ac_compile\"") >&5
5764c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
5765c8a0e2f4SThomas Veerman  ac_status=$?
5766*0a6a1f1dSLionel Sambuc  echo "$as_me:5766: \$? = $ac_status" >&5
5767c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
5768c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
5769*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5769: \"$ac_try\"") >&5
5770c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
5771c8a0e2f4SThomas Veerman  ac_status=$?
5772*0a6a1f1dSLionel Sambuc  echo "$as_me:5772: \$? = $ac_status" >&5
5773c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
5774c8a0e2f4SThomas Veerman  ac_cv_have_decl_lchown=yes
5775c8a0e2f4SThomas Veermanelse
5776c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
5777c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
5778c8a0e2f4SThomas Veermanac_cv_have_decl_lchown=no
5779c8a0e2f4SThomas Veermanfi
5780c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
5781c8a0e2f4SThomas Veermanfi
5782*0a6a1f1dSLionel Sambucecho "$as_me:5782: result: $ac_cv_have_decl_lchown" >&5
5783c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_lchown" >&6
5784c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_lchown = yes; then
5785c8a0e2f4SThomas Veerman
5786c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
5787c8a0e2f4SThomas Veerman#define HAVE_DECL_LCHOWN 1
5788c8a0e2f4SThomas VeermanEOF
5789c8a0e2f4SThomas Veerman
5790c8a0e2f4SThomas Veermanelse
5791c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
5792c8a0e2f4SThomas Veerman#define HAVE_DECL_LCHOWN 0
5793c8a0e2f4SThomas VeermanEOF
5794c8a0e2f4SThomas Veerman
5795c8a0e2f4SThomas Veermanfi
5796c8a0e2f4SThomas Veerman
5797*0a6a1f1dSLionel Sambucecho "$as_me:5797: checking whether errc is declared" >&5
5798*0a6a1f1dSLionel Sambucecho $ECHO_N "checking whether errc is declared... $ECHO_C" >&6
5799*0a6a1f1dSLionel Sambucif test "${ac_cv_have_decl_errc+set}" = set; then
5800*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5801*0a6a1f1dSLionel Sambucelse
5802*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5803*0a6a1f1dSLionel Sambuc#line 5803 "configure"
5804*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5805*0a6a1f1dSLionel Sambuc
5806*0a6a1f1dSLionel Sambuc#ifdef HAVE_ERR_H
5807*0a6a1f1dSLionel Sambuc#include <err.h>
5808*0a6a1f1dSLionel Sambuc#endif
5809*0a6a1f1dSLionel Sambuc
5810*0a6a1f1dSLionel Sambucint
5811*0a6a1f1dSLionel Sambucmain ()
5812*0a6a1f1dSLionel Sambuc{
5813*0a6a1f1dSLionel Sambuc#ifndef errc
5814*0a6a1f1dSLionel Sambuc  char *p = (char *) errc;
5815*0a6a1f1dSLionel Sambuc#endif
5816*0a6a1f1dSLionel Sambuc
5817*0a6a1f1dSLionel Sambuc  ;
5818*0a6a1f1dSLionel Sambuc  return 0;
5819*0a6a1f1dSLionel Sambuc}
5820*0a6a1f1dSLionel Sambuc_ACEOF
5821*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
5822*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5822: \"$ac_compile\"") >&5
5823*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
5824*0a6a1f1dSLionel Sambuc  ac_status=$?
5825*0a6a1f1dSLionel Sambuc  echo "$as_me:5825: \$? = $ac_status" >&5
5826*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
5827*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
5828*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5828: \"$ac_try\"") >&5
5829*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
5830*0a6a1f1dSLionel Sambuc  ac_status=$?
5831*0a6a1f1dSLionel Sambuc  echo "$as_me:5831: \$? = $ac_status" >&5
5832*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
5833*0a6a1f1dSLionel Sambuc  ac_cv_have_decl_errc=yes
5834*0a6a1f1dSLionel Sambucelse
5835*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
5836*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
5837*0a6a1f1dSLionel Sambucac_cv_have_decl_errc=no
5838*0a6a1f1dSLionel Sambucfi
5839*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
5840*0a6a1f1dSLionel Sambucfi
5841*0a6a1f1dSLionel Sambucecho "$as_me:5841: result: $ac_cv_have_decl_errc" >&5
5842*0a6a1f1dSLionel Sambucecho "${ECHO_T}$ac_cv_have_decl_errc" >&6
5843*0a6a1f1dSLionel Sambucif test $ac_cv_have_decl_errc = yes; then
5844*0a6a1f1dSLionel Sambuc
5845*0a6a1f1dSLionel Sambuccat >>confdefs.h <<EOF
5846*0a6a1f1dSLionel Sambuc#define HAVE_DECL_ERRC 1
5847*0a6a1f1dSLionel SambucEOF
5848*0a6a1f1dSLionel Sambuc
5849*0a6a1f1dSLionel Sambucelse
5850*0a6a1f1dSLionel Sambuc  cat >>confdefs.h <<EOF
5851*0a6a1f1dSLionel Sambuc#define HAVE_DECL_ERRC 0
5852*0a6a1f1dSLionel SambucEOF
5853*0a6a1f1dSLionel Sambuc
5854*0a6a1f1dSLionel Sambucfi
5855*0a6a1f1dSLionel Sambucecho "$as_me:5855: checking whether verrc is declared" >&5
5856*0a6a1f1dSLionel Sambucecho $ECHO_N "checking whether verrc is declared... $ECHO_C" >&6
5857*0a6a1f1dSLionel Sambucif test "${ac_cv_have_decl_verrc+set}" = set; then
5858*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5859*0a6a1f1dSLionel Sambucelse
5860*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5861*0a6a1f1dSLionel Sambuc#line 5861 "configure"
5862*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5863*0a6a1f1dSLionel Sambuc
5864*0a6a1f1dSLionel Sambuc#ifdef HAVE_ERR_H
5865*0a6a1f1dSLionel Sambuc#include <err.h>
5866*0a6a1f1dSLionel Sambuc#endif
5867*0a6a1f1dSLionel Sambuc
5868*0a6a1f1dSLionel Sambucint
5869*0a6a1f1dSLionel Sambucmain ()
5870*0a6a1f1dSLionel Sambuc{
5871*0a6a1f1dSLionel Sambuc#ifndef verrc
5872*0a6a1f1dSLionel Sambuc  char *p = (char *) verrc;
5873*0a6a1f1dSLionel Sambuc#endif
5874*0a6a1f1dSLionel Sambuc
5875*0a6a1f1dSLionel Sambuc  ;
5876*0a6a1f1dSLionel Sambuc  return 0;
5877*0a6a1f1dSLionel Sambuc}
5878*0a6a1f1dSLionel Sambuc_ACEOF
5879*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
5880*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5880: \"$ac_compile\"") >&5
5881*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
5882*0a6a1f1dSLionel Sambuc  ac_status=$?
5883*0a6a1f1dSLionel Sambuc  echo "$as_me:5883: \$? = $ac_status" >&5
5884*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
5885*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
5886*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5886: \"$ac_try\"") >&5
5887*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
5888*0a6a1f1dSLionel Sambuc  ac_status=$?
5889*0a6a1f1dSLionel Sambuc  echo "$as_me:5889: \$? = $ac_status" >&5
5890*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
5891*0a6a1f1dSLionel Sambuc  ac_cv_have_decl_verrc=yes
5892*0a6a1f1dSLionel Sambucelse
5893*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
5894*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
5895*0a6a1f1dSLionel Sambucac_cv_have_decl_verrc=no
5896*0a6a1f1dSLionel Sambucfi
5897*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
5898*0a6a1f1dSLionel Sambucfi
5899*0a6a1f1dSLionel Sambucecho "$as_me:5899: result: $ac_cv_have_decl_verrc" >&5
5900*0a6a1f1dSLionel Sambucecho "${ECHO_T}$ac_cv_have_decl_verrc" >&6
5901*0a6a1f1dSLionel Sambucif test $ac_cv_have_decl_verrc = yes; then
5902*0a6a1f1dSLionel Sambuc
5903*0a6a1f1dSLionel Sambuccat >>confdefs.h <<EOF
5904*0a6a1f1dSLionel Sambuc#define HAVE_DECL_VERRC 1
5905*0a6a1f1dSLionel SambucEOF
5906*0a6a1f1dSLionel Sambuc
5907*0a6a1f1dSLionel Sambucelse
5908*0a6a1f1dSLionel Sambuc  cat >>confdefs.h <<EOF
5909*0a6a1f1dSLionel Sambuc#define HAVE_DECL_VERRC 0
5910*0a6a1f1dSLionel SambucEOF
5911*0a6a1f1dSLionel Sambuc
5912*0a6a1f1dSLionel Sambucfi
5913*0a6a1f1dSLionel Sambucecho "$as_me:5913: checking whether warnc is declared" >&5
5914*0a6a1f1dSLionel Sambucecho $ECHO_N "checking whether warnc is declared... $ECHO_C" >&6
5915*0a6a1f1dSLionel Sambucif test "${ac_cv_have_decl_warnc+set}" = set; then
5916*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5917*0a6a1f1dSLionel Sambucelse
5918*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5919*0a6a1f1dSLionel Sambuc#line 5919 "configure"
5920*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5921*0a6a1f1dSLionel Sambuc
5922*0a6a1f1dSLionel Sambuc#ifdef HAVE_ERR_H
5923*0a6a1f1dSLionel Sambuc#include <err.h>
5924*0a6a1f1dSLionel Sambuc#endif
5925*0a6a1f1dSLionel Sambuc
5926*0a6a1f1dSLionel Sambucint
5927*0a6a1f1dSLionel Sambucmain ()
5928*0a6a1f1dSLionel Sambuc{
5929*0a6a1f1dSLionel Sambuc#ifndef warnc
5930*0a6a1f1dSLionel Sambuc  char *p = (char *) warnc;
5931*0a6a1f1dSLionel Sambuc#endif
5932*0a6a1f1dSLionel Sambuc
5933*0a6a1f1dSLionel Sambuc  ;
5934*0a6a1f1dSLionel Sambuc  return 0;
5935*0a6a1f1dSLionel Sambuc}
5936*0a6a1f1dSLionel Sambuc_ACEOF
5937*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
5938*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5938: \"$ac_compile\"") >&5
5939*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
5940*0a6a1f1dSLionel Sambuc  ac_status=$?
5941*0a6a1f1dSLionel Sambuc  echo "$as_me:5941: \$? = $ac_status" >&5
5942*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
5943*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
5944*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5944: \"$ac_try\"") >&5
5945*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
5946*0a6a1f1dSLionel Sambuc  ac_status=$?
5947*0a6a1f1dSLionel Sambuc  echo "$as_me:5947: \$? = $ac_status" >&5
5948*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
5949*0a6a1f1dSLionel Sambuc  ac_cv_have_decl_warnc=yes
5950*0a6a1f1dSLionel Sambucelse
5951*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
5952*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
5953*0a6a1f1dSLionel Sambucac_cv_have_decl_warnc=no
5954*0a6a1f1dSLionel Sambucfi
5955*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
5956*0a6a1f1dSLionel Sambucfi
5957*0a6a1f1dSLionel Sambucecho "$as_me:5957: result: $ac_cv_have_decl_warnc" >&5
5958*0a6a1f1dSLionel Sambucecho "${ECHO_T}$ac_cv_have_decl_warnc" >&6
5959*0a6a1f1dSLionel Sambucif test $ac_cv_have_decl_warnc = yes; then
5960*0a6a1f1dSLionel Sambuc
5961*0a6a1f1dSLionel Sambuccat >>confdefs.h <<EOF
5962*0a6a1f1dSLionel Sambuc#define HAVE_DECL_WARNC 1
5963*0a6a1f1dSLionel SambucEOF
5964*0a6a1f1dSLionel Sambuc
5965*0a6a1f1dSLionel Sambucelse
5966*0a6a1f1dSLionel Sambuc  cat >>confdefs.h <<EOF
5967*0a6a1f1dSLionel Sambuc#define HAVE_DECL_WARNC 0
5968*0a6a1f1dSLionel SambucEOF
5969*0a6a1f1dSLionel Sambuc
5970*0a6a1f1dSLionel Sambucfi
5971*0a6a1f1dSLionel Sambucecho "$as_me:5971: checking whether vwarnc is declared" >&5
5972*0a6a1f1dSLionel Sambucecho $ECHO_N "checking whether vwarnc is declared... $ECHO_C" >&6
5973*0a6a1f1dSLionel Sambucif test "${ac_cv_have_decl_vwarnc+set}" = set; then
5974*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5975*0a6a1f1dSLionel Sambucelse
5976*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5977*0a6a1f1dSLionel Sambuc#line 5977 "configure"
5978*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5979*0a6a1f1dSLionel Sambuc
5980*0a6a1f1dSLionel Sambuc#ifdef HAVE_ERR_H
5981*0a6a1f1dSLionel Sambuc#include <err.h>
5982*0a6a1f1dSLionel Sambuc#endif
5983*0a6a1f1dSLionel Sambuc
5984*0a6a1f1dSLionel Sambucint
5985*0a6a1f1dSLionel Sambucmain ()
5986*0a6a1f1dSLionel Sambuc{
5987*0a6a1f1dSLionel Sambuc#ifndef vwarnc
5988*0a6a1f1dSLionel Sambuc  char *p = (char *) vwarnc;
5989*0a6a1f1dSLionel Sambuc#endif
5990*0a6a1f1dSLionel Sambuc
5991*0a6a1f1dSLionel Sambuc  ;
5992*0a6a1f1dSLionel Sambuc  return 0;
5993*0a6a1f1dSLionel Sambuc}
5994*0a6a1f1dSLionel Sambuc_ACEOF
5995*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
5996*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5996: \"$ac_compile\"") >&5
5997*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
5998*0a6a1f1dSLionel Sambuc  ac_status=$?
5999*0a6a1f1dSLionel Sambuc  echo "$as_me:5999: \$? = $ac_status" >&5
6000*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
6001*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
6002*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6002: \"$ac_try\"") >&5
6003*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
6004*0a6a1f1dSLionel Sambuc  ac_status=$?
6005*0a6a1f1dSLionel Sambuc  echo "$as_me:6005: \$? = $ac_status" >&5
6006*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
6007*0a6a1f1dSLionel Sambuc  ac_cv_have_decl_vwarnc=yes
6008*0a6a1f1dSLionel Sambucelse
6009*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
6010*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
6011*0a6a1f1dSLionel Sambucac_cv_have_decl_vwarnc=no
6012*0a6a1f1dSLionel Sambucfi
6013*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
6014*0a6a1f1dSLionel Sambucfi
6015*0a6a1f1dSLionel Sambucecho "$as_me:6015: result: $ac_cv_have_decl_vwarnc" >&5
6016*0a6a1f1dSLionel Sambucecho "${ECHO_T}$ac_cv_have_decl_vwarnc" >&6
6017*0a6a1f1dSLionel Sambucif test $ac_cv_have_decl_vwarnc = yes; then
6018*0a6a1f1dSLionel Sambuc
6019*0a6a1f1dSLionel Sambuccat >>confdefs.h <<EOF
6020*0a6a1f1dSLionel Sambuc#define HAVE_DECL_VWARNC 1
6021*0a6a1f1dSLionel SambucEOF
6022*0a6a1f1dSLionel Sambuc
6023*0a6a1f1dSLionel Sambucelse
6024*0a6a1f1dSLionel Sambuc  cat >>confdefs.h <<EOF
6025*0a6a1f1dSLionel Sambuc#define HAVE_DECL_VWARNC 0
6026*0a6a1f1dSLionel SambucEOF
6027*0a6a1f1dSLionel Sambuc
6028*0a6a1f1dSLionel Sambucfi
6029*0a6a1f1dSLionel Sambuc
6030*0a6a1f1dSLionel Sambucecho "$as_me:6030: checking whether htobe16 is declared" >&5
6031c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
6032c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_htobe16+set}" = set; then
6033c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6034c8a0e2f4SThomas Veermanelse
6035c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6036*0a6a1f1dSLionel Sambuc#line 6036 "configure"
6037c8a0e2f4SThomas Veerman#include "confdefs.h"
6038c8a0e2f4SThomas Veerman#include <sys/types.h>
6039c8a0e2f4SThomas Veerman
6040c8a0e2f4SThomas Veermanint
6041c8a0e2f4SThomas Veermanmain ()
6042c8a0e2f4SThomas Veerman{
6043c8a0e2f4SThomas Veerman#ifndef htobe16
6044c8a0e2f4SThomas Veerman  char *p = (char *) htobe16;
6045c8a0e2f4SThomas Veerman#endif
6046c8a0e2f4SThomas Veerman
6047c8a0e2f4SThomas Veerman  ;
6048c8a0e2f4SThomas Veerman  return 0;
6049c8a0e2f4SThomas Veerman}
6050c8a0e2f4SThomas Veerman_ACEOF
6051c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6052*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6052: \"$ac_compile\"") >&5
6053c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6054c8a0e2f4SThomas Veerman  ac_status=$?
6055*0a6a1f1dSLionel Sambuc  echo "$as_me:6055: \$? = $ac_status" >&5
6056c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6057c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6058*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6058: \"$ac_try\"") >&5
6059c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6060c8a0e2f4SThomas Veerman  ac_status=$?
6061*0a6a1f1dSLionel Sambuc  echo "$as_me:6061: \$? = $ac_status" >&5
6062c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6063c8a0e2f4SThomas Veerman  ac_cv_have_decl_htobe16=yes
6064c8a0e2f4SThomas Veermanelse
6065c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6066c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6067c8a0e2f4SThomas Veermanac_cv_have_decl_htobe16=no
6068c8a0e2f4SThomas Veermanfi
6069c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6070c8a0e2f4SThomas Veermanfi
6071*0a6a1f1dSLionel Sambucecho "$as_me:6071: result: $ac_cv_have_decl_htobe16" >&5
6072c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
6073c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_htobe16 = yes; then
6074c8a0e2f4SThomas Veerman
6075c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6076c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOBE16 1
6077c8a0e2f4SThomas VeermanEOF
6078c8a0e2f4SThomas Veerman
6079c8a0e2f4SThomas Veermanelse
6080c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6081c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOBE16 0
6082c8a0e2f4SThomas VeermanEOF
6083c8a0e2f4SThomas Veerman
6084c8a0e2f4SThomas Veermanfi
6085*0a6a1f1dSLionel Sambucecho "$as_me:6085: checking whether htobe32 is declared" >&5
6086c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
6087c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_htobe32+set}" = set; then
6088c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6089c8a0e2f4SThomas Veermanelse
6090c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6091*0a6a1f1dSLionel Sambuc#line 6091 "configure"
6092c8a0e2f4SThomas Veerman#include "confdefs.h"
6093c8a0e2f4SThomas Veerman#include <sys/types.h>
6094c8a0e2f4SThomas Veerman
6095c8a0e2f4SThomas Veermanint
6096c8a0e2f4SThomas Veermanmain ()
6097c8a0e2f4SThomas Veerman{
6098c8a0e2f4SThomas Veerman#ifndef htobe32
6099c8a0e2f4SThomas Veerman  char *p = (char *) htobe32;
6100c8a0e2f4SThomas Veerman#endif
6101c8a0e2f4SThomas Veerman
6102c8a0e2f4SThomas Veerman  ;
6103c8a0e2f4SThomas Veerman  return 0;
6104c8a0e2f4SThomas Veerman}
6105c8a0e2f4SThomas Veerman_ACEOF
6106c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6107*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6107: \"$ac_compile\"") >&5
6108c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6109c8a0e2f4SThomas Veerman  ac_status=$?
6110*0a6a1f1dSLionel Sambuc  echo "$as_me:6110: \$? = $ac_status" >&5
6111c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6112c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6113*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6113: \"$ac_try\"") >&5
6114c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6115c8a0e2f4SThomas Veerman  ac_status=$?
6116*0a6a1f1dSLionel Sambuc  echo "$as_me:6116: \$? = $ac_status" >&5
6117c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6118c8a0e2f4SThomas Veerman  ac_cv_have_decl_htobe32=yes
6119c8a0e2f4SThomas Veermanelse
6120c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6121c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6122c8a0e2f4SThomas Veermanac_cv_have_decl_htobe32=no
6123c8a0e2f4SThomas Veermanfi
6124c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6125c8a0e2f4SThomas Veermanfi
6126*0a6a1f1dSLionel Sambucecho "$as_me:6126: result: $ac_cv_have_decl_htobe32" >&5
6127c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
6128c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_htobe32 = yes; then
6129c8a0e2f4SThomas Veerman
6130c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6131c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOBE32 1
6132c8a0e2f4SThomas VeermanEOF
6133c8a0e2f4SThomas Veerman
6134c8a0e2f4SThomas Veermanelse
6135c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6136c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOBE32 0
6137c8a0e2f4SThomas VeermanEOF
6138c8a0e2f4SThomas Veerman
6139c8a0e2f4SThomas Veermanfi
6140*0a6a1f1dSLionel Sambucecho "$as_me:6140: checking whether htobe64 is declared" >&5
6141c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
6142c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_htobe64+set}" = set; then
6143c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6144c8a0e2f4SThomas Veermanelse
6145c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6146*0a6a1f1dSLionel Sambuc#line 6146 "configure"
6147c8a0e2f4SThomas Veerman#include "confdefs.h"
6148c8a0e2f4SThomas Veerman#include <sys/types.h>
6149c8a0e2f4SThomas Veerman
6150c8a0e2f4SThomas Veermanint
6151c8a0e2f4SThomas Veermanmain ()
6152c8a0e2f4SThomas Veerman{
6153c8a0e2f4SThomas Veerman#ifndef htobe64
6154c8a0e2f4SThomas Veerman  char *p = (char *) htobe64;
6155c8a0e2f4SThomas Veerman#endif
6156c8a0e2f4SThomas Veerman
6157c8a0e2f4SThomas Veerman  ;
6158c8a0e2f4SThomas Veerman  return 0;
6159c8a0e2f4SThomas Veerman}
6160c8a0e2f4SThomas Veerman_ACEOF
6161c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6162*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6162: \"$ac_compile\"") >&5
6163c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6164c8a0e2f4SThomas Veerman  ac_status=$?
6165*0a6a1f1dSLionel Sambuc  echo "$as_me:6165: \$? = $ac_status" >&5
6166c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6167c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6168*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6168: \"$ac_try\"") >&5
6169c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6170c8a0e2f4SThomas Veerman  ac_status=$?
6171*0a6a1f1dSLionel Sambuc  echo "$as_me:6171: \$? = $ac_status" >&5
6172c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6173c8a0e2f4SThomas Veerman  ac_cv_have_decl_htobe64=yes
6174c8a0e2f4SThomas Veermanelse
6175c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6176c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6177c8a0e2f4SThomas Veermanac_cv_have_decl_htobe64=no
6178c8a0e2f4SThomas Veermanfi
6179c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6180c8a0e2f4SThomas Veermanfi
6181*0a6a1f1dSLionel Sambucecho "$as_me:6181: result: $ac_cv_have_decl_htobe64" >&5
6182c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
6183c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_htobe64 = yes; then
6184c8a0e2f4SThomas Veerman
6185c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6186c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOBE64 1
6187c8a0e2f4SThomas VeermanEOF
6188c8a0e2f4SThomas Veerman
6189c8a0e2f4SThomas Veermanelse
6190c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6191c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOBE64 0
6192c8a0e2f4SThomas VeermanEOF
6193c8a0e2f4SThomas Veerman
6194c8a0e2f4SThomas Veermanfi
6195*0a6a1f1dSLionel Sambucecho "$as_me:6195: checking whether htole16 is declared" >&5
6196c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
6197c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_htole16+set}" = set; then
6198c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6199c8a0e2f4SThomas Veermanelse
6200c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6201*0a6a1f1dSLionel Sambuc#line 6201 "configure"
6202c8a0e2f4SThomas Veerman#include "confdefs.h"
6203c8a0e2f4SThomas Veerman#include <sys/types.h>
6204c8a0e2f4SThomas Veerman
6205c8a0e2f4SThomas Veermanint
6206c8a0e2f4SThomas Veermanmain ()
6207c8a0e2f4SThomas Veerman{
6208c8a0e2f4SThomas Veerman#ifndef htole16
6209c8a0e2f4SThomas Veerman  char *p = (char *) htole16;
6210c8a0e2f4SThomas Veerman#endif
6211c8a0e2f4SThomas Veerman
6212c8a0e2f4SThomas Veerman  ;
6213c8a0e2f4SThomas Veerman  return 0;
6214c8a0e2f4SThomas Veerman}
6215c8a0e2f4SThomas Veerman_ACEOF
6216c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6217*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6217: \"$ac_compile\"") >&5
6218c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6219c8a0e2f4SThomas Veerman  ac_status=$?
6220*0a6a1f1dSLionel Sambuc  echo "$as_me:6220: \$? = $ac_status" >&5
6221c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6222c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6223*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6223: \"$ac_try\"") >&5
6224c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6225c8a0e2f4SThomas Veerman  ac_status=$?
6226*0a6a1f1dSLionel Sambuc  echo "$as_me:6226: \$? = $ac_status" >&5
6227c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6228c8a0e2f4SThomas Veerman  ac_cv_have_decl_htole16=yes
6229c8a0e2f4SThomas Veermanelse
6230c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6231c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6232c8a0e2f4SThomas Veermanac_cv_have_decl_htole16=no
6233c8a0e2f4SThomas Veermanfi
6234c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6235c8a0e2f4SThomas Veermanfi
6236*0a6a1f1dSLionel Sambucecho "$as_me:6236: result: $ac_cv_have_decl_htole16" >&5
6237c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_htole16" >&6
6238c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_htole16 = yes; then
6239c8a0e2f4SThomas Veerman
6240c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6241c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOLE16 1
6242c8a0e2f4SThomas VeermanEOF
6243c8a0e2f4SThomas Veerman
6244c8a0e2f4SThomas Veermanelse
6245c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6246c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOLE16 0
6247c8a0e2f4SThomas VeermanEOF
6248c8a0e2f4SThomas Veerman
6249c8a0e2f4SThomas Veermanfi
6250*0a6a1f1dSLionel Sambucecho "$as_me:6250: checking whether htole32 is declared" >&5
6251c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
6252c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_htole32+set}" = set; then
6253c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6254c8a0e2f4SThomas Veermanelse
6255c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6256*0a6a1f1dSLionel Sambuc#line 6256 "configure"
6257c8a0e2f4SThomas Veerman#include "confdefs.h"
6258c8a0e2f4SThomas Veerman#include <sys/types.h>
6259c8a0e2f4SThomas Veerman
6260c8a0e2f4SThomas Veermanint
6261c8a0e2f4SThomas Veermanmain ()
6262c8a0e2f4SThomas Veerman{
6263c8a0e2f4SThomas Veerman#ifndef htole32
6264c8a0e2f4SThomas Veerman  char *p = (char *) htole32;
6265c8a0e2f4SThomas Veerman#endif
6266c8a0e2f4SThomas Veerman
6267c8a0e2f4SThomas Veerman  ;
6268c8a0e2f4SThomas Veerman  return 0;
6269c8a0e2f4SThomas Veerman}
6270c8a0e2f4SThomas Veerman_ACEOF
6271c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6272*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6272: \"$ac_compile\"") >&5
6273c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6274c8a0e2f4SThomas Veerman  ac_status=$?
6275*0a6a1f1dSLionel Sambuc  echo "$as_me:6275: \$? = $ac_status" >&5
6276c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6277c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6278*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6278: \"$ac_try\"") >&5
6279c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6280c8a0e2f4SThomas Veerman  ac_status=$?
6281*0a6a1f1dSLionel Sambuc  echo "$as_me:6281: \$? = $ac_status" >&5
6282c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6283c8a0e2f4SThomas Veerman  ac_cv_have_decl_htole32=yes
6284c8a0e2f4SThomas Veermanelse
6285c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6286c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6287c8a0e2f4SThomas Veermanac_cv_have_decl_htole32=no
6288c8a0e2f4SThomas Veermanfi
6289c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6290c8a0e2f4SThomas Veermanfi
6291*0a6a1f1dSLionel Sambucecho "$as_me:6291: result: $ac_cv_have_decl_htole32" >&5
6292c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_htole32" >&6
6293c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_htole32 = yes; then
6294c8a0e2f4SThomas Veerman
6295c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6296c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOLE32 1
6297c8a0e2f4SThomas VeermanEOF
6298c8a0e2f4SThomas Veerman
6299c8a0e2f4SThomas Veermanelse
6300c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6301c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOLE32 0
6302c8a0e2f4SThomas VeermanEOF
6303c8a0e2f4SThomas Veerman
6304c8a0e2f4SThomas Veermanfi
6305*0a6a1f1dSLionel Sambucecho "$as_me:6305: checking whether htole64 is declared" >&5
6306c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
6307c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_htole64+set}" = set; then
6308c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6309c8a0e2f4SThomas Veermanelse
6310c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6311*0a6a1f1dSLionel Sambuc#line 6311 "configure"
6312c8a0e2f4SThomas Veerman#include "confdefs.h"
6313c8a0e2f4SThomas Veerman#include <sys/types.h>
6314c8a0e2f4SThomas Veerman
6315c8a0e2f4SThomas Veermanint
6316c8a0e2f4SThomas Veermanmain ()
6317c8a0e2f4SThomas Veerman{
6318c8a0e2f4SThomas Veerman#ifndef htole64
6319c8a0e2f4SThomas Veerman  char *p = (char *) htole64;
6320c8a0e2f4SThomas Veerman#endif
6321c8a0e2f4SThomas Veerman
6322c8a0e2f4SThomas Veerman  ;
6323c8a0e2f4SThomas Veerman  return 0;
6324c8a0e2f4SThomas Veerman}
6325c8a0e2f4SThomas Veerman_ACEOF
6326c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6327*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6327: \"$ac_compile\"") >&5
6328c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6329c8a0e2f4SThomas Veerman  ac_status=$?
6330*0a6a1f1dSLionel Sambuc  echo "$as_me:6330: \$? = $ac_status" >&5
6331c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6332c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6333*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6333: \"$ac_try\"") >&5
6334c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6335c8a0e2f4SThomas Veerman  ac_status=$?
6336*0a6a1f1dSLionel Sambuc  echo "$as_me:6336: \$? = $ac_status" >&5
6337c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6338c8a0e2f4SThomas Veerman  ac_cv_have_decl_htole64=yes
6339c8a0e2f4SThomas Veermanelse
6340c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6341c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6342c8a0e2f4SThomas Veermanac_cv_have_decl_htole64=no
6343c8a0e2f4SThomas Veermanfi
6344c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6345c8a0e2f4SThomas Veermanfi
6346*0a6a1f1dSLionel Sambucecho "$as_me:6346: result: $ac_cv_have_decl_htole64" >&5
6347c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_htole64" >&6
6348c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_htole64 = yes; then
6349c8a0e2f4SThomas Veerman
6350c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6351c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOLE64 1
6352c8a0e2f4SThomas VeermanEOF
6353c8a0e2f4SThomas Veerman
6354c8a0e2f4SThomas Veermanelse
6355c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6356c8a0e2f4SThomas Veerman#define HAVE_DECL_HTOLE64 0
6357c8a0e2f4SThomas VeermanEOF
6358c8a0e2f4SThomas Veerman
6359c8a0e2f4SThomas Veermanfi
6360*0a6a1f1dSLionel Sambucecho "$as_me:6360: checking whether be16toh is declared" >&5
6361c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
6362c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be16toh+set}" = set; then
6363c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6364c8a0e2f4SThomas Veermanelse
6365c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6366*0a6a1f1dSLionel Sambuc#line 6366 "configure"
6367c8a0e2f4SThomas Veerman#include "confdefs.h"
6368c8a0e2f4SThomas Veerman#include <sys/types.h>
6369c8a0e2f4SThomas Veerman
6370c8a0e2f4SThomas Veermanint
6371c8a0e2f4SThomas Veermanmain ()
6372c8a0e2f4SThomas Veerman{
6373c8a0e2f4SThomas Veerman#ifndef be16toh
6374c8a0e2f4SThomas Veerman  char *p = (char *) be16toh;
6375c8a0e2f4SThomas Veerman#endif
6376c8a0e2f4SThomas Veerman
6377c8a0e2f4SThomas Veerman  ;
6378c8a0e2f4SThomas Veerman  return 0;
6379c8a0e2f4SThomas Veerman}
6380c8a0e2f4SThomas Veerman_ACEOF
6381c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6382*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6382: \"$ac_compile\"") >&5
6383c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6384c8a0e2f4SThomas Veerman  ac_status=$?
6385*0a6a1f1dSLionel Sambuc  echo "$as_me:6385: \$? = $ac_status" >&5
6386c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6387c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6388*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6388: \"$ac_try\"") >&5
6389c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6390c8a0e2f4SThomas Veerman  ac_status=$?
6391*0a6a1f1dSLionel Sambuc  echo "$as_me:6391: \$? = $ac_status" >&5
6392c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6393c8a0e2f4SThomas Veerman  ac_cv_have_decl_be16toh=yes
6394c8a0e2f4SThomas Veermanelse
6395c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6396c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6397c8a0e2f4SThomas Veermanac_cv_have_decl_be16toh=no
6398c8a0e2f4SThomas Veermanfi
6399c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6400c8a0e2f4SThomas Veermanfi
6401*0a6a1f1dSLionel Sambucecho "$as_me:6401: result: $ac_cv_have_decl_be16toh" >&5
6402c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
6403c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be16toh = yes; then
6404c8a0e2f4SThomas Veerman
6405c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6406c8a0e2f4SThomas Veerman#define HAVE_DECL_BE16TOH 1
6407c8a0e2f4SThomas VeermanEOF
6408c8a0e2f4SThomas Veerman
6409c8a0e2f4SThomas Veermanelse
6410c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6411c8a0e2f4SThomas Veerman#define HAVE_DECL_BE16TOH 0
6412c8a0e2f4SThomas VeermanEOF
6413c8a0e2f4SThomas Veerman
6414c8a0e2f4SThomas Veermanfi
6415*0a6a1f1dSLionel Sambucecho "$as_me:6415: checking whether be32toh is declared" >&5
6416c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
6417c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be32toh+set}" = set; then
6418c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6419c8a0e2f4SThomas Veermanelse
6420c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6421*0a6a1f1dSLionel Sambuc#line 6421 "configure"
6422c8a0e2f4SThomas Veerman#include "confdefs.h"
6423c8a0e2f4SThomas Veerman#include <sys/types.h>
6424c8a0e2f4SThomas Veerman
6425c8a0e2f4SThomas Veermanint
6426c8a0e2f4SThomas Veermanmain ()
6427c8a0e2f4SThomas Veerman{
6428c8a0e2f4SThomas Veerman#ifndef be32toh
6429c8a0e2f4SThomas Veerman  char *p = (char *) be32toh;
6430c8a0e2f4SThomas Veerman#endif
6431c8a0e2f4SThomas Veerman
6432c8a0e2f4SThomas Veerman  ;
6433c8a0e2f4SThomas Veerman  return 0;
6434c8a0e2f4SThomas Veerman}
6435c8a0e2f4SThomas Veerman_ACEOF
6436c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6437*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6437: \"$ac_compile\"") >&5
6438c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6439c8a0e2f4SThomas Veerman  ac_status=$?
6440*0a6a1f1dSLionel Sambuc  echo "$as_me:6440: \$? = $ac_status" >&5
6441c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6442c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6443*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6443: \"$ac_try\"") >&5
6444c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6445c8a0e2f4SThomas Veerman  ac_status=$?
6446*0a6a1f1dSLionel Sambuc  echo "$as_me:6446: \$? = $ac_status" >&5
6447c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6448c8a0e2f4SThomas Veerman  ac_cv_have_decl_be32toh=yes
6449c8a0e2f4SThomas Veermanelse
6450c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6451c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6452c8a0e2f4SThomas Veermanac_cv_have_decl_be32toh=no
6453c8a0e2f4SThomas Veermanfi
6454c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6455c8a0e2f4SThomas Veermanfi
6456*0a6a1f1dSLionel Sambucecho "$as_me:6456: result: $ac_cv_have_decl_be32toh" >&5
6457c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
6458c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be32toh = yes; then
6459c8a0e2f4SThomas Veerman
6460c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6461c8a0e2f4SThomas Veerman#define HAVE_DECL_BE32TOH 1
6462c8a0e2f4SThomas VeermanEOF
6463c8a0e2f4SThomas Veerman
6464c8a0e2f4SThomas Veermanelse
6465c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6466c8a0e2f4SThomas Veerman#define HAVE_DECL_BE32TOH 0
6467c8a0e2f4SThomas VeermanEOF
6468c8a0e2f4SThomas Veerman
6469c8a0e2f4SThomas Veermanfi
6470*0a6a1f1dSLionel Sambucecho "$as_me:6470: checking whether be64toh is declared" >&5
6471c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
6472c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be64toh+set}" = set; then
6473c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6474c8a0e2f4SThomas Veermanelse
6475c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6476*0a6a1f1dSLionel Sambuc#line 6476 "configure"
6477c8a0e2f4SThomas Veerman#include "confdefs.h"
6478c8a0e2f4SThomas Veerman#include <sys/types.h>
6479c8a0e2f4SThomas Veerman
6480c8a0e2f4SThomas Veermanint
6481c8a0e2f4SThomas Veermanmain ()
6482c8a0e2f4SThomas Veerman{
6483c8a0e2f4SThomas Veerman#ifndef be64toh
6484c8a0e2f4SThomas Veerman  char *p = (char *) be64toh;
6485c8a0e2f4SThomas Veerman#endif
6486c8a0e2f4SThomas Veerman
6487c8a0e2f4SThomas Veerman  ;
6488c8a0e2f4SThomas Veerman  return 0;
6489c8a0e2f4SThomas Veerman}
6490c8a0e2f4SThomas Veerman_ACEOF
6491c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6492*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6492: \"$ac_compile\"") >&5
6493c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6494c8a0e2f4SThomas Veerman  ac_status=$?
6495*0a6a1f1dSLionel Sambuc  echo "$as_me:6495: \$? = $ac_status" >&5
6496c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6497c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6498*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6498: \"$ac_try\"") >&5
6499c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6500c8a0e2f4SThomas Veerman  ac_status=$?
6501*0a6a1f1dSLionel Sambuc  echo "$as_me:6501: \$? = $ac_status" >&5
6502c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6503c8a0e2f4SThomas Veerman  ac_cv_have_decl_be64toh=yes
6504c8a0e2f4SThomas Veermanelse
6505c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6506c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6507c8a0e2f4SThomas Veermanac_cv_have_decl_be64toh=no
6508c8a0e2f4SThomas Veermanfi
6509c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6510c8a0e2f4SThomas Veermanfi
6511*0a6a1f1dSLionel Sambucecho "$as_me:6511: result: $ac_cv_have_decl_be64toh" >&5
6512c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
6513c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be64toh = yes; then
6514c8a0e2f4SThomas Veerman
6515c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6516c8a0e2f4SThomas Veerman#define HAVE_DECL_BE64TOH 1
6517c8a0e2f4SThomas VeermanEOF
6518c8a0e2f4SThomas Veerman
6519c8a0e2f4SThomas Veermanelse
6520c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6521c8a0e2f4SThomas Veerman#define HAVE_DECL_BE64TOH 0
6522c8a0e2f4SThomas VeermanEOF
6523c8a0e2f4SThomas Veerman
6524c8a0e2f4SThomas Veermanfi
6525*0a6a1f1dSLionel Sambucecho "$as_me:6525: checking whether le16toh is declared" >&5
6526c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
6527c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le16toh+set}" = set; then
6528c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6529c8a0e2f4SThomas Veermanelse
6530c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6531*0a6a1f1dSLionel Sambuc#line 6531 "configure"
6532c8a0e2f4SThomas Veerman#include "confdefs.h"
6533c8a0e2f4SThomas Veerman#include <sys/types.h>
6534c8a0e2f4SThomas Veerman
6535c8a0e2f4SThomas Veermanint
6536c8a0e2f4SThomas Veermanmain ()
6537c8a0e2f4SThomas Veerman{
6538c8a0e2f4SThomas Veerman#ifndef le16toh
6539c8a0e2f4SThomas Veerman  char *p = (char *) le16toh;
6540c8a0e2f4SThomas Veerman#endif
6541c8a0e2f4SThomas Veerman
6542c8a0e2f4SThomas Veerman  ;
6543c8a0e2f4SThomas Veerman  return 0;
6544c8a0e2f4SThomas Veerman}
6545c8a0e2f4SThomas Veerman_ACEOF
6546c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6547*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6547: \"$ac_compile\"") >&5
6548c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6549c8a0e2f4SThomas Veerman  ac_status=$?
6550*0a6a1f1dSLionel Sambuc  echo "$as_me:6550: \$? = $ac_status" >&5
6551c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6552c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6553*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6553: \"$ac_try\"") >&5
6554c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6555c8a0e2f4SThomas Veerman  ac_status=$?
6556*0a6a1f1dSLionel Sambuc  echo "$as_me:6556: \$? = $ac_status" >&5
6557c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6558c8a0e2f4SThomas Veerman  ac_cv_have_decl_le16toh=yes
6559c8a0e2f4SThomas Veermanelse
6560c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6561c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6562c8a0e2f4SThomas Veermanac_cv_have_decl_le16toh=no
6563c8a0e2f4SThomas Veermanfi
6564c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6565c8a0e2f4SThomas Veermanfi
6566*0a6a1f1dSLionel Sambucecho "$as_me:6566: result: $ac_cv_have_decl_le16toh" >&5
6567c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
6568c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le16toh = yes; then
6569c8a0e2f4SThomas Veerman
6570c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6571c8a0e2f4SThomas Veerman#define HAVE_DECL_LE16TOH 1
6572c8a0e2f4SThomas VeermanEOF
6573c8a0e2f4SThomas Veerman
6574c8a0e2f4SThomas Veermanelse
6575c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6576c8a0e2f4SThomas Veerman#define HAVE_DECL_LE16TOH 0
6577c8a0e2f4SThomas VeermanEOF
6578c8a0e2f4SThomas Veerman
6579c8a0e2f4SThomas Veermanfi
6580*0a6a1f1dSLionel Sambucecho "$as_me:6580: checking whether le32toh is declared" >&5
6581c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
6582c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le32toh+set}" = set; then
6583c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6584c8a0e2f4SThomas Veermanelse
6585c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6586*0a6a1f1dSLionel Sambuc#line 6586 "configure"
6587c8a0e2f4SThomas Veerman#include "confdefs.h"
6588c8a0e2f4SThomas Veerman#include <sys/types.h>
6589c8a0e2f4SThomas Veerman
6590c8a0e2f4SThomas Veermanint
6591c8a0e2f4SThomas Veermanmain ()
6592c8a0e2f4SThomas Veerman{
6593c8a0e2f4SThomas Veerman#ifndef le32toh
6594c8a0e2f4SThomas Veerman  char *p = (char *) le32toh;
6595c8a0e2f4SThomas Veerman#endif
6596c8a0e2f4SThomas Veerman
6597c8a0e2f4SThomas Veerman  ;
6598c8a0e2f4SThomas Veerman  return 0;
6599c8a0e2f4SThomas Veerman}
6600c8a0e2f4SThomas Veerman_ACEOF
6601c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6602*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6602: \"$ac_compile\"") >&5
6603c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6604c8a0e2f4SThomas Veerman  ac_status=$?
6605*0a6a1f1dSLionel Sambuc  echo "$as_me:6605: \$? = $ac_status" >&5
6606c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6607c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6608*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6608: \"$ac_try\"") >&5
6609c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6610c8a0e2f4SThomas Veerman  ac_status=$?
6611*0a6a1f1dSLionel Sambuc  echo "$as_me:6611: \$? = $ac_status" >&5
6612c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6613c8a0e2f4SThomas Veerman  ac_cv_have_decl_le32toh=yes
6614c8a0e2f4SThomas Veermanelse
6615c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6616c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6617c8a0e2f4SThomas Veermanac_cv_have_decl_le32toh=no
6618c8a0e2f4SThomas Veermanfi
6619c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6620c8a0e2f4SThomas Veermanfi
6621*0a6a1f1dSLionel Sambucecho "$as_me:6621: result: $ac_cv_have_decl_le32toh" >&5
6622c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
6623c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le32toh = yes; then
6624c8a0e2f4SThomas Veerman
6625c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6626c8a0e2f4SThomas Veerman#define HAVE_DECL_LE32TOH 1
6627c8a0e2f4SThomas VeermanEOF
6628c8a0e2f4SThomas Veerman
6629c8a0e2f4SThomas Veermanelse
6630c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6631c8a0e2f4SThomas Veerman#define HAVE_DECL_LE32TOH 0
6632c8a0e2f4SThomas VeermanEOF
6633c8a0e2f4SThomas Veerman
6634c8a0e2f4SThomas Veermanfi
6635*0a6a1f1dSLionel Sambucecho "$as_me:6635: checking whether le64toh is declared" >&5
6636c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
6637c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le64toh+set}" = set; then
6638c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6639c8a0e2f4SThomas Veermanelse
6640c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6641*0a6a1f1dSLionel Sambuc#line 6641 "configure"
6642c8a0e2f4SThomas Veerman#include "confdefs.h"
6643c8a0e2f4SThomas Veerman#include <sys/types.h>
6644c8a0e2f4SThomas Veerman
6645c8a0e2f4SThomas Veermanint
6646c8a0e2f4SThomas Veermanmain ()
6647c8a0e2f4SThomas Veerman{
6648c8a0e2f4SThomas Veerman#ifndef le64toh
6649c8a0e2f4SThomas Veerman  char *p = (char *) le64toh;
6650c8a0e2f4SThomas Veerman#endif
6651c8a0e2f4SThomas Veerman
6652c8a0e2f4SThomas Veerman  ;
6653c8a0e2f4SThomas Veerman  return 0;
6654c8a0e2f4SThomas Veerman}
6655c8a0e2f4SThomas Veerman_ACEOF
6656c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6657*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6657: \"$ac_compile\"") >&5
6658c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6659c8a0e2f4SThomas Veerman  ac_status=$?
6660*0a6a1f1dSLionel Sambuc  echo "$as_me:6660: \$? = $ac_status" >&5
6661c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6662c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6663*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6663: \"$ac_try\"") >&5
6664c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6665c8a0e2f4SThomas Veerman  ac_status=$?
6666*0a6a1f1dSLionel Sambuc  echo "$as_me:6666: \$? = $ac_status" >&5
6667c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6668c8a0e2f4SThomas Veerman  ac_cv_have_decl_le64toh=yes
6669c8a0e2f4SThomas Veermanelse
6670c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6671c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6672c8a0e2f4SThomas Veermanac_cv_have_decl_le64toh=no
6673c8a0e2f4SThomas Veermanfi
6674c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6675c8a0e2f4SThomas Veermanfi
6676*0a6a1f1dSLionel Sambucecho "$as_me:6676: result: $ac_cv_have_decl_le64toh" >&5
6677c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
6678c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le64toh = yes; then
6679c8a0e2f4SThomas Veerman
6680c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6681c8a0e2f4SThomas Veerman#define HAVE_DECL_LE64TOH 1
6682c8a0e2f4SThomas VeermanEOF
6683c8a0e2f4SThomas Veerman
6684c8a0e2f4SThomas Veermanelse
6685c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6686c8a0e2f4SThomas Veerman#define HAVE_DECL_LE64TOH 0
6687c8a0e2f4SThomas VeermanEOF
6688c8a0e2f4SThomas Veerman
6689c8a0e2f4SThomas Veermanfi
6690c8a0e2f4SThomas Veerman
6691*0a6a1f1dSLionel Sambucecho "$as_me:6691: checking whether bswap16 is declared" >&5
6692c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6
6693c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_bswap16+set}" = set; then
6694c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6695c8a0e2f4SThomas Veermanelse
6696c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6697*0a6a1f1dSLionel Sambuc#line 6697 "configure"
6698c8a0e2f4SThomas Veerman#include "confdefs.h"
6699c8a0e2f4SThomas Veerman#include <machine/bswap.h>
6700c8a0e2f4SThomas Veerman
6701c8a0e2f4SThomas Veermanint
6702c8a0e2f4SThomas Veermanmain ()
6703c8a0e2f4SThomas Veerman{
6704c8a0e2f4SThomas Veerman#ifndef bswap16
6705c8a0e2f4SThomas Veerman  char *p = (char *) bswap16;
6706c8a0e2f4SThomas Veerman#endif
6707c8a0e2f4SThomas Veerman
6708c8a0e2f4SThomas Veerman  ;
6709c8a0e2f4SThomas Veerman  return 0;
6710c8a0e2f4SThomas Veerman}
6711c8a0e2f4SThomas Veerman_ACEOF
6712c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6713*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6713: \"$ac_compile\"") >&5
6714c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6715c8a0e2f4SThomas Veerman  ac_status=$?
6716*0a6a1f1dSLionel Sambuc  echo "$as_me:6716: \$? = $ac_status" >&5
6717c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6718c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6719*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6719: \"$ac_try\"") >&5
6720c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6721c8a0e2f4SThomas Veerman  ac_status=$?
6722*0a6a1f1dSLionel Sambuc  echo "$as_me:6722: \$? = $ac_status" >&5
6723c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6724c8a0e2f4SThomas Veerman  ac_cv_have_decl_bswap16=yes
6725c8a0e2f4SThomas Veermanelse
6726c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6727c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6728c8a0e2f4SThomas Veermanac_cv_have_decl_bswap16=no
6729c8a0e2f4SThomas Veermanfi
6730c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6731c8a0e2f4SThomas Veermanfi
6732*0a6a1f1dSLionel Sambucecho "$as_me:6732: result: $ac_cv_have_decl_bswap16" >&5
6733c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_bswap16" >&6
6734c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_bswap16 = yes; then
6735c8a0e2f4SThomas Veerman
6736c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6737c8a0e2f4SThomas Veerman#define HAVE_DECL_BSWAP16 1
6738c8a0e2f4SThomas VeermanEOF
6739c8a0e2f4SThomas Veerman
6740c8a0e2f4SThomas Veermanelse
6741c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6742c8a0e2f4SThomas Veerman#define HAVE_DECL_BSWAP16 0
6743c8a0e2f4SThomas VeermanEOF
6744c8a0e2f4SThomas Veerman
6745c8a0e2f4SThomas Veermanfi
6746*0a6a1f1dSLionel Sambucecho "$as_me:6746: checking whether bswap32 is declared" >&5
6747c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6
6748c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_bswap32+set}" = set; then
6749c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6750c8a0e2f4SThomas Veermanelse
6751c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6752*0a6a1f1dSLionel Sambuc#line 6752 "configure"
6753c8a0e2f4SThomas Veerman#include "confdefs.h"
6754c8a0e2f4SThomas Veerman#include <machine/bswap.h>
6755c8a0e2f4SThomas Veerman
6756c8a0e2f4SThomas Veermanint
6757c8a0e2f4SThomas Veermanmain ()
6758c8a0e2f4SThomas Veerman{
6759c8a0e2f4SThomas Veerman#ifndef bswap32
6760c8a0e2f4SThomas Veerman  char *p = (char *) bswap32;
6761c8a0e2f4SThomas Veerman#endif
6762c8a0e2f4SThomas Veerman
6763c8a0e2f4SThomas Veerman  ;
6764c8a0e2f4SThomas Veerman  return 0;
6765c8a0e2f4SThomas Veerman}
6766c8a0e2f4SThomas Veerman_ACEOF
6767c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6768*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6768: \"$ac_compile\"") >&5
6769c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6770c8a0e2f4SThomas Veerman  ac_status=$?
6771*0a6a1f1dSLionel Sambuc  echo "$as_me:6771: \$? = $ac_status" >&5
6772c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6773c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6774*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6774: \"$ac_try\"") >&5
6775c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6776c8a0e2f4SThomas Veerman  ac_status=$?
6777*0a6a1f1dSLionel Sambuc  echo "$as_me:6777: \$? = $ac_status" >&5
6778c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6779c8a0e2f4SThomas Veerman  ac_cv_have_decl_bswap32=yes
6780c8a0e2f4SThomas Veermanelse
6781c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6782c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6783c8a0e2f4SThomas Veermanac_cv_have_decl_bswap32=no
6784c8a0e2f4SThomas Veermanfi
6785c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6786c8a0e2f4SThomas Veermanfi
6787*0a6a1f1dSLionel Sambucecho "$as_me:6787: result: $ac_cv_have_decl_bswap32" >&5
6788c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_bswap32" >&6
6789c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_bswap32 = yes; then
6790c8a0e2f4SThomas Veerman
6791c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6792c8a0e2f4SThomas Veerman#define HAVE_DECL_BSWAP32 1
6793c8a0e2f4SThomas VeermanEOF
6794c8a0e2f4SThomas Veerman
6795c8a0e2f4SThomas Veermanelse
6796c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6797c8a0e2f4SThomas Veerman#define HAVE_DECL_BSWAP32 0
6798c8a0e2f4SThomas VeermanEOF
6799c8a0e2f4SThomas Veerman
6800c8a0e2f4SThomas Veermanfi
6801*0a6a1f1dSLionel Sambucecho "$as_me:6801: checking whether bswap64 is declared" >&5
6802c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6
6803c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_bswap64+set}" = set; then
6804c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6805c8a0e2f4SThomas Veermanelse
6806c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6807*0a6a1f1dSLionel Sambuc#line 6807 "configure"
6808c8a0e2f4SThomas Veerman#include "confdefs.h"
6809c8a0e2f4SThomas Veerman#include <machine/bswap.h>
6810c8a0e2f4SThomas Veerman
6811c8a0e2f4SThomas Veermanint
6812c8a0e2f4SThomas Veermanmain ()
6813c8a0e2f4SThomas Veerman{
6814c8a0e2f4SThomas Veerman#ifndef bswap64
6815c8a0e2f4SThomas Veerman  char *p = (char *) bswap64;
6816c8a0e2f4SThomas Veerman#endif
6817c8a0e2f4SThomas Veerman
6818c8a0e2f4SThomas Veerman  ;
6819c8a0e2f4SThomas Veerman  return 0;
6820c8a0e2f4SThomas Veerman}
6821c8a0e2f4SThomas Veerman_ACEOF
6822c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6823*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6823: \"$ac_compile\"") >&5
6824c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6825c8a0e2f4SThomas Veerman  ac_status=$?
6826*0a6a1f1dSLionel Sambuc  echo "$as_me:6826: \$? = $ac_status" >&5
6827c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6828c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6829*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6829: \"$ac_try\"") >&5
6830c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6831c8a0e2f4SThomas Veerman  ac_status=$?
6832*0a6a1f1dSLionel Sambuc  echo "$as_me:6832: \$? = $ac_status" >&5
6833c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6834c8a0e2f4SThomas Veerman  ac_cv_have_decl_bswap64=yes
6835c8a0e2f4SThomas Veermanelse
6836c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6837c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6838c8a0e2f4SThomas Veermanac_cv_have_decl_bswap64=no
6839c8a0e2f4SThomas Veermanfi
6840c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6841c8a0e2f4SThomas Veermanfi
6842*0a6a1f1dSLionel Sambucecho "$as_me:6842: result: $ac_cv_have_decl_bswap64" >&5
6843c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_bswap64" >&6
6844c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_bswap64 = yes; then
6845c8a0e2f4SThomas Veerman
6846c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6847c8a0e2f4SThomas Veerman#define HAVE_DECL_BSWAP64 1
6848c8a0e2f4SThomas VeermanEOF
6849c8a0e2f4SThomas Veerman
6850c8a0e2f4SThomas Veermanelse
6851c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6852c8a0e2f4SThomas Veerman#define HAVE_DECL_BSWAP64 0
6853c8a0e2f4SThomas VeermanEOF
6854c8a0e2f4SThomas Veerman
6855c8a0e2f4SThomas Veermanfi
6856c8a0e2f4SThomas Veerman
6857*0a6a1f1dSLionel Sambucecho "$as_me:6857: checking whether be16enc is declared" >&5
6858c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6
6859c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be16enc+set}" = set; then
6860c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6861c8a0e2f4SThomas Veermanelse
6862c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6863*0a6a1f1dSLionel Sambuc#line 6863 "configure"
6864c8a0e2f4SThomas Veerman#include "confdefs.h"
6865c8a0e2f4SThomas Veerman#include <sys/endian.h>
6866c8a0e2f4SThomas Veerman
6867c8a0e2f4SThomas Veermanint
6868c8a0e2f4SThomas Veermanmain ()
6869c8a0e2f4SThomas Veerman{
6870c8a0e2f4SThomas Veerman#ifndef be16enc
6871c8a0e2f4SThomas Veerman  char *p = (char *) be16enc;
6872c8a0e2f4SThomas Veerman#endif
6873c8a0e2f4SThomas Veerman
6874c8a0e2f4SThomas Veerman  ;
6875c8a0e2f4SThomas Veerman  return 0;
6876c8a0e2f4SThomas Veerman}
6877c8a0e2f4SThomas Veerman_ACEOF
6878c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6879*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6879: \"$ac_compile\"") >&5
6880c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6881c8a0e2f4SThomas Veerman  ac_status=$?
6882*0a6a1f1dSLionel Sambuc  echo "$as_me:6882: \$? = $ac_status" >&5
6883c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6884c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6885*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6885: \"$ac_try\"") >&5
6886c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6887c8a0e2f4SThomas Veerman  ac_status=$?
6888*0a6a1f1dSLionel Sambuc  echo "$as_me:6888: \$? = $ac_status" >&5
6889c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6890c8a0e2f4SThomas Veerman  ac_cv_have_decl_be16enc=yes
6891c8a0e2f4SThomas Veermanelse
6892c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6893c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6894c8a0e2f4SThomas Veermanac_cv_have_decl_be16enc=no
6895c8a0e2f4SThomas Veermanfi
6896c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6897c8a0e2f4SThomas Veermanfi
6898*0a6a1f1dSLionel Sambucecho "$as_me:6898: result: $ac_cv_have_decl_be16enc" >&5
6899c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be16enc" >&6
6900c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be16enc = yes; then
6901c8a0e2f4SThomas Veerman
6902c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6903c8a0e2f4SThomas Veerman#define HAVE_DECL_BE16ENC 1
6904c8a0e2f4SThomas VeermanEOF
6905c8a0e2f4SThomas Veerman
6906c8a0e2f4SThomas Veermanelse
6907c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6908c8a0e2f4SThomas Veerman#define HAVE_DECL_BE16ENC 0
6909c8a0e2f4SThomas VeermanEOF
6910c8a0e2f4SThomas Veerman
6911c8a0e2f4SThomas Veermanfi
6912*0a6a1f1dSLionel Sambucecho "$as_me:6912: checking whether le16enc is declared" >&5
6913c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6
6914c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le16enc+set}" = set; then
6915c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6916c8a0e2f4SThomas Veermanelse
6917c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6918*0a6a1f1dSLionel Sambuc#line 6918 "configure"
6919c8a0e2f4SThomas Veerman#include "confdefs.h"
6920c8a0e2f4SThomas Veerman#include <sys/endian.h>
6921c8a0e2f4SThomas Veerman
6922c8a0e2f4SThomas Veermanint
6923c8a0e2f4SThomas Veermanmain ()
6924c8a0e2f4SThomas Veerman{
6925c8a0e2f4SThomas Veerman#ifndef le16enc
6926c8a0e2f4SThomas Veerman  char *p = (char *) le16enc;
6927c8a0e2f4SThomas Veerman#endif
6928c8a0e2f4SThomas Veerman
6929c8a0e2f4SThomas Veerman  ;
6930c8a0e2f4SThomas Veerman  return 0;
6931c8a0e2f4SThomas Veerman}
6932c8a0e2f4SThomas Veerman_ACEOF
6933c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6934*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6934: \"$ac_compile\"") >&5
6935c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6936c8a0e2f4SThomas Veerman  ac_status=$?
6937*0a6a1f1dSLionel Sambuc  echo "$as_me:6937: \$? = $ac_status" >&5
6938c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6939c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6940*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6940: \"$ac_try\"") >&5
6941c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6942c8a0e2f4SThomas Veerman  ac_status=$?
6943*0a6a1f1dSLionel Sambuc  echo "$as_me:6943: \$? = $ac_status" >&5
6944c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
6945c8a0e2f4SThomas Veerman  ac_cv_have_decl_le16enc=yes
6946c8a0e2f4SThomas Veermanelse
6947c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
6948c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
6949c8a0e2f4SThomas Veermanac_cv_have_decl_le16enc=no
6950c8a0e2f4SThomas Veermanfi
6951c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
6952c8a0e2f4SThomas Veermanfi
6953*0a6a1f1dSLionel Sambucecho "$as_me:6953: result: $ac_cv_have_decl_le16enc" >&5
6954c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le16enc" >&6
6955c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le16enc = yes; then
6956c8a0e2f4SThomas Veerman
6957c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
6958c8a0e2f4SThomas Veerman#define HAVE_DECL_LE16ENC 1
6959c8a0e2f4SThomas VeermanEOF
6960c8a0e2f4SThomas Veerman
6961c8a0e2f4SThomas Veermanelse
6962c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
6963c8a0e2f4SThomas Veerman#define HAVE_DECL_LE16ENC 0
6964c8a0e2f4SThomas VeermanEOF
6965c8a0e2f4SThomas Veerman
6966c8a0e2f4SThomas Veermanfi
6967*0a6a1f1dSLionel Sambucecho "$as_me:6967: checking whether be16dec is declared" >&5
6968c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6
6969c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be16dec+set}" = set; then
6970c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
6971c8a0e2f4SThomas Veermanelse
6972c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
6973*0a6a1f1dSLionel Sambuc#line 6973 "configure"
6974c8a0e2f4SThomas Veerman#include "confdefs.h"
6975c8a0e2f4SThomas Veerman#include <sys/endian.h>
6976c8a0e2f4SThomas Veerman
6977c8a0e2f4SThomas Veermanint
6978c8a0e2f4SThomas Veermanmain ()
6979c8a0e2f4SThomas Veerman{
6980c8a0e2f4SThomas Veerman#ifndef be16dec
6981c8a0e2f4SThomas Veerman  char *p = (char *) be16dec;
6982c8a0e2f4SThomas Veerman#endif
6983c8a0e2f4SThomas Veerman
6984c8a0e2f4SThomas Veerman  ;
6985c8a0e2f4SThomas Veerman  return 0;
6986c8a0e2f4SThomas Veerman}
6987c8a0e2f4SThomas Veerman_ACEOF
6988c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
6989*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:6989: \"$ac_compile\"") >&5
6990c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
6991c8a0e2f4SThomas Veerman  ac_status=$?
6992*0a6a1f1dSLionel Sambuc  echo "$as_me:6992: \$? = $ac_status" >&5
6993c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
6994c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
6995*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:6995: \"$ac_try\"") >&5
6996c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
6997c8a0e2f4SThomas Veerman  ac_status=$?
6998*0a6a1f1dSLionel Sambuc  echo "$as_me:6998: \$? = $ac_status" >&5
6999c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7000c8a0e2f4SThomas Veerman  ac_cv_have_decl_be16dec=yes
7001c8a0e2f4SThomas Veermanelse
7002c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7003c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7004c8a0e2f4SThomas Veermanac_cv_have_decl_be16dec=no
7005c8a0e2f4SThomas Veermanfi
7006c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7007c8a0e2f4SThomas Veermanfi
7008*0a6a1f1dSLionel Sambucecho "$as_me:7008: result: $ac_cv_have_decl_be16dec" >&5
7009c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be16dec" >&6
7010c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be16dec = yes; then
7011c8a0e2f4SThomas Veerman
7012c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7013c8a0e2f4SThomas Veerman#define HAVE_DECL_BE16DEC 1
7014c8a0e2f4SThomas VeermanEOF
7015c8a0e2f4SThomas Veerman
7016c8a0e2f4SThomas Veermanelse
7017c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7018c8a0e2f4SThomas Veerman#define HAVE_DECL_BE16DEC 0
7019c8a0e2f4SThomas VeermanEOF
7020c8a0e2f4SThomas Veerman
7021c8a0e2f4SThomas Veermanfi
7022*0a6a1f1dSLionel Sambucecho "$as_me:7022: checking whether le16dec is declared" >&5
7023c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6
7024c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le16dec+set}" = set; then
7025c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7026c8a0e2f4SThomas Veermanelse
7027c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7028*0a6a1f1dSLionel Sambuc#line 7028 "configure"
7029c8a0e2f4SThomas Veerman#include "confdefs.h"
7030c8a0e2f4SThomas Veerman#include <sys/endian.h>
7031c8a0e2f4SThomas Veerman
7032c8a0e2f4SThomas Veermanint
7033c8a0e2f4SThomas Veermanmain ()
7034c8a0e2f4SThomas Veerman{
7035c8a0e2f4SThomas Veerman#ifndef le16dec
7036c8a0e2f4SThomas Veerman  char *p = (char *) le16dec;
7037c8a0e2f4SThomas Veerman#endif
7038c8a0e2f4SThomas Veerman
7039c8a0e2f4SThomas Veerman  ;
7040c8a0e2f4SThomas Veerman  return 0;
7041c8a0e2f4SThomas Veerman}
7042c8a0e2f4SThomas Veerman_ACEOF
7043c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7044*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7044: \"$ac_compile\"") >&5
7045c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7046c8a0e2f4SThomas Veerman  ac_status=$?
7047*0a6a1f1dSLionel Sambuc  echo "$as_me:7047: \$? = $ac_status" >&5
7048c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7049c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7050*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7050: \"$ac_try\"") >&5
7051c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7052c8a0e2f4SThomas Veerman  ac_status=$?
7053*0a6a1f1dSLionel Sambuc  echo "$as_me:7053: \$? = $ac_status" >&5
7054c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7055c8a0e2f4SThomas Veerman  ac_cv_have_decl_le16dec=yes
7056c8a0e2f4SThomas Veermanelse
7057c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7058c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7059c8a0e2f4SThomas Veermanac_cv_have_decl_le16dec=no
7060c8a0e2f4SThomas Veermanfi
7061c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7062c8a0e2f4SThomas Veermanfi
7063*0a6a1f1dSLionel Sambucecho "$as_me:7063: result: $ac_cv_have_decl_le16dec" >&5
7064c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le16dec" >&6
7065c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le16dec = yes; then
7066c8a0e2f4SThomas Veerman
7067c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7068c8a0e2f4SThomas Veerman#define HAVE_DECL_LE16DEC 1
7069c8a0e2f4SThomas VeermanEOF
7070c8a0e2f4SThomas Veerman
7071c8a0e2f4SThomas Veermanelse
7072c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7073c8a0e2f4SThomas Veerman#define HAVE_DECL_LE16DEC 0
7074c8a0e2f4SThomas VeermanEOF
7075c8a0e2f4SThomas Veerman
7076c8a0e2f4SThomas Veermanfi
7077*0a6a1f1dSLionel Sambucecho "$as_me:7077: checking whether be32enc is declared" >&5
7078c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6
7079c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be32enc+set}" = set; then
7080c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7081c8a0e2f4SThomas Veermanelse
7082c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7083*0a6a1f1dSLionel Sambuc#line 7083 "configure"
7084c8a0e2f4SThomas Veerman#include "confdefs.h"
7085c8a0e2f4SThomas Veerman#include <sys/endian.h>
7086c8a0e2f4SThomas Veerman
7087c8a0e2f4SThomas Veermanint
7088c8a0e2f4SThomas Veermanmain ()
7089c8a0e2f4SThomas Veerman{
7090c8a0e2f4SThomas Veerman#ifndef be32enc
7091c8a0e2f4SThomas Veerman  char *p = (char *) be32enc;
7092c8a0e2f4SThomas Veerman#endif
7093c8a0e2f4SThomas Veerman
7094c8a0e2f4SThomas Veerman  ;
7095c8a0e2f4SThomas Veerman  return 0;
7096c8a0e2f4SThomas Veerman}
7097c8a0e2f4SThomas Veerman_ACEOF
7098c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7099*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7099: \"$ac_compile\"") >&5
7100c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7101c8a0e2f4SThomas Veerman  ac_status=$?
7102*0a6a1f1dSLionel Sambuc  echo "$as_me:7102: \$? = $ac_status" >&5
7103c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7104c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7105*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7105: \"$ac_try\"") >&5
7106c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7107c8a0e2f4SThomas Veerman  ac_status=$?
7108*0a6a1f1dSLionel Sambuc  echo "$as_me:7108: \$? = $ac_status" >&5
7109c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7110c8a0e2f4SThomas Veerman  ac_cv_have_decl_be32enc=yes
7111c8a0e2f4SThomas Veermanelse
7112c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7113c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7114c8a0e2f4SThomas Veermanac_cv_have_decl_be32enc=no
7115c8a0e2f4SThomas Veermanfi
7116c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7117c8a0e2f4SThomas Veermanfi
7118*0a6a1f1dSLionel Sambucecho "$as_me:7118: result: $ac_cv_have_decl_be32enc" >&5
7119c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be32enc" >&6
7120c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be32enc = yes; then
7121c8a0e2f4SThomas Veerman
7122c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7123c8a0e2f4SThomas Veerman#define HAVE_DECL_BE32ENC 1
7124c8a0e2f4SThomas VeermanEOF
7125c8a0e2f4SThomas Veerman
7126c8a0e2f4SThomas Veermanelse
7127c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7128c8a0e2f4SThomas Veerman#define HAVE_DECL_BE32ENC 0
7129c8a0e2f4SThomas VeermanEOF
7130c8a0e2f4SThomas Veerman
7131c8a0e2f4SThomas Veermanfi
7132*0a6a1f1dSLionel Sambucecho "$as_me:7132: checking whether le32enc is declared" >&5
7133c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6
7134c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le32enc+set}" = set; then
7135c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7136c8a0e2f4SThomas Veermanelse
7137c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7138*0a6a1f1dSLionel Sambuc#line 7138 "configure"
7139c8a0e2f4SThomas Veerman#include "confdefs.h"
7140c8a0e2f4SThomas Veerman#include <sys/endian.h>
7141c8a0e2f4SThomas Veerman
7142c8a0e2f4SThomas Veermanint
7143c8a0e2f4SThomas Veermanmain ()
7144c8a0e2f4SThomas Veerman{
7145c8a0e2f4SThomas Veerman#ifndef le32enc
7146c8a0e2f4SThomas Veerman  char *p = (char *) le32enc;
7147c8a0e2f4SThomas Veerman#endif
7148c8a0e2f4SThomas Veerman
7149c8a0e2f4SThomas Veerman  ;
7150c8a0e2f4SThomas Veerman  return 0;
7151c8a0e2f4SThomas Veerman}
7152c8a0e2f4SThomas Veerman_ACEOF
7153c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7154*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7154: \"$ac_compile\"") >&5
7155c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7156c8a0e2f4SThomas Veerman  ac_status=$?
7157*0a6a1f1dSLionel Sambuc  echo "$as_me:7157: \$? = $ac_status" >&5
7158c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7159c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7160*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7160: \"$ac_try\"") >&5
7161c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7162c8a0e2f4SThomas Veerman  ac_status=$?
7163*0a6a1f1dSLionel Sambuc  echo "$as_me:7163: \$? = $ac_status" >&5
7164c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7165c8a0e2f4SThomas Veerman  ac_cv_have_decl_le32enc=yes
7166c8a0e2f4SThomas Veermanelse
7167c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7168c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7169c8a0e2f4SThomas Veermanac_cv_have_decl_le32enc=no
7170c8a0e2f4SThomas Veermanfi
7171c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7172c8a0e2f4SThomas Veermanfi
7173*0a6a1f1dSLionel Sambucecho "$as_me:7173: result: $ac_cv_have_decl_le32enc" >&5
7174c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le32enc" >&6
7175c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le32enc = yes; then
7176c8a0e2f4SThomas Veerman
7177c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7178c8a0e2f4SThomas Veerman#define HAVE_DECL_LE32ENC 1
7179c8a0e2f4SThomas VeermanEOF
7180c8a0e2f4SThomas Veerman
7181c8a0e2f4SThomas Veermanelse
7182c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7183c8a0e2f4SThomas Veerman#define HAVE_DECL_LE32ENC 0
7184c8a0e2f4SThomas VeermanEOF
7185c8a0e2f4SThomas Veerman
7186c8a0e2f4SThomas Veermanfi
7187*0a6a1f1dSLionel Sambucecho "$as_me:7187: checking whether be32dec is declared" >&5
7188c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6
7189c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be32dec+set}" = set; then
7190c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7191c8a0e2f4SThomas Veermanelse
7192c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7193*0a6a1f1dSLionel Sambuc#line 7193 "configure"
7194c8a0e2f4SThomas Veerman#include "confdefs.h"
7195c8a0e2f4SThomas Veerman#include <sys/endian.h>
7196c8a0e2f4SThomas Veerman
7197c8a0e2f4SThomas Veermanint
7198c8a0e2f4SThomas Veermanmain ()
7199c8a0e2f4SThomas Veerman{
7200c8a0e2f4SThomas Veerman#ifndef be32dec
7201c8a0e2f4SThomas Veerman  char *p = (char *) be32dec;
7202c8a0e2f4SThomas Veerman#endif
7203c8a0e2f4SThomas Veerman
7204c8a0e2f4SThomas Veerman  ;
7205c8a0e2f4SThomas Veerman  return 0;
7206c8a0e2f4SThomas Veerman}
7207c8a0e2f4SThomas Veerman_ACEOF
7208c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7209*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7209: \"$ac_compile\"") >&5
7210c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7211c8a0e2f4SThomas Veerman  ac_status=$?
7212*0a6a1f1dSLionel Sambuc  echo "$as_me:7212: \$? = $ac_status" >&5
7213c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7214c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7215*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7215: \"$ac_try\"") >&5
7216c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7217c8a0e2f4SThomas Veerman  ac_status=$?
7218*0a6a1f1dSLionel Sambuc  echo "$as_me:7218: \$? = $ac_status" >&5
7219c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7220c8a0e2f4SThomas Veerman  ac_cv_have_decl_be32dec=yes
7221c8a0e2f4SThomas Veermanelse
7222c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7223c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7224c8a0e2f4SThomas Veermanac_cv_have_decl_be32dec=no
7225c8a0e2f4SThomas Veermanfi
7226c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7227c8a0e2f4SThomas Veermanfi
7228*0a6a1f1dSLionel Sambucecho "$as_me:7228: result: $ac_cv_have_decl_be32dec" >&5
7229c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be32dec" >&6
7230c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be32dec = yes; then
7231c8a0e2f4SThomas Veerman
7232c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7233c8a0e2f4SThomas Veerman#define HAVE_DECL_BE32DEC 1
7234c8a0e2f4SThomas VeermanEOF
7235c8a0e2f4SThomas Veerman
7236c8a0e2f4SThomas Veermanelse
7237c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7238c8a0e2f4SThomas Veerman#define HAVE_DECL_BE32DEC 0
7239c8a0e2f4SThomas VeermanEOF
7240c8a0e2f4SThomas Veerman
7241c8a0e2f4SThomas Veermanfi
7242*0a6a1f1dSLionel Sambucecho "$as_me:7242: checking whether le32dec is declared" >&5
7243c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6
7244c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le32dec+set}" = set; then
7245c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7246c8a0e2f4SThomas Veermanelse
7247c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7248*0a6a1f1dSLionel Sambuc#line 7248 "configure"
7249c8a0e2f4SThomas Veerman#include "confdefs.h"
7250c8a0e2f4SThomas Veerman#include <sys/endian.h>
7251c8a0e2f4SThomas Veerman
7252c8a0e2f4SThomas Veermanint
7253c8a0e2f4SThomas Veermanmain ()
7254c8a0e2f4SThomas Veerman{
7255c8a0e2f4SThomas Veerman#ifndef le32dec
7256c8a0e2f4SThomas Veerman  char *p = (char *) le32dec;
7257c8a0e2f4SThomas Veerman#endif
7258c8a0e2f4SThomas Veerman
7259c8a0e2f4SThomas Veerman  ;
7260c8a0e2f4SThomas Veerman  return 0;
7261c8a0e2f4SThomas Veerman}
7262c8a0e2f4SThomas Veerman_ACEOF
7263c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7264*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7264: \"$ac_compile\"") >&5
7265c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7266c8a0e2f4SThomas Veerman  ac_status=$?
7267*0a6a1f1dSLionel Sambuc  echo "$as_me:7267: \$? = $ac_status" >&5
7268c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7269c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7270*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7270: \"$ac_try\"") >&5
7271c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7272c8a0e2f4SThomas Veerman  ac_status=$?
7273*0a6a1f1dSLionel Sambuc  echo "$as_me:7273: \$? = $ac_status" >&5
7274c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7275c8a0e2f4SThomas Veerman  ac_cv_have_decl_le32dec=yes
7276c8a0e2f4SThomas Veermanelse
7277c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7278c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7279c8a0e2f4SThomas Veermanac_cv_have_decl_le32dec=no
7280c8a0e2f4SThomas Veermanfi
7281c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7282c8a0e2f4SThomas Veermanfi
7283*0a6a1f1dSLionel Sambucecho "$as_me:7283: result: $ac_cv_have_decl_le32dec" >&5
7284c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le32dec" >&6
7285c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le32dec = yes; then
7286c8a0e2f4SThomas Veerman
7287c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7288c8a0e2f4SThomas Veerman#define HAVE_DECL_LE32DEC 1
7289c8a0e2f4SThomas VeermanEOF
7290c8a0e2f4SThomas Veerman
7291c8a0e2f4SThomas Veermanelse
7292c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7293c8a0e2f4SThomas Veerman#define HAVE_DECL_LE32DEC 0
7294c8a0e2f4SThomas VeermanEOF
7295c8a0e2f4SThomas Veerman
7296c8a0e2f4SThomas Veermanfi
7297*0a6a1f1dSLionel Sambucecho "$as_me:7297: checking whether be64enc is declared" >&5
7298c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6
7299c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be64enc+set}" = set; then
7300c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7301c8a0e2f4SThomas Veermanelse
7302c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7303*0a6a1f1dSLionel Sambuc#line 7303 "configure"
7304c8a0e2f4SThomas Veerman#include "confdefs.h"
7305c8a0e2f4SThomas Veerman#include <sys/endian.h>
7306c8a0e2f4SThomas Veerman
7307c8a0e2f4SThomas Veermanint
7308c8a0e2f4SThomas Veermanmain ()
7309c8a0e2f4SThomas Veerman{
7310c8a0e2f4SThomas Veerman#ifndef be64enc
7311c8a0e2f4SThomas Veerman  char *p = (char *) be64enc;
7312c8a0e2f4SThomas Veerman#endif
7313c8a0e2f4SThomas Veerman
7314c8a0e2f4SThomas Veerman  ;
7315c8a0e2f4SThomas Veerman  return 0;
7316c8a0e2f4SThomas Veerman}
7317c8a0e2f4SThomas Veerman_ACEOF
7318c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7319*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7319: \"$ac_compile\"") >&5
7320c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7321c8a0e2f4SThomas Veerman  ac_status=$?
7322*0a6a1f1dSLionel Sambuc  echo "$as_me:7322: \$? = $ac_status" >&5
7323c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7324c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7325*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7325: \"$ac_try\"") >&5
7326c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7327c8a0e2f4SThomas Veerman  ac_status=$?
7328*0a6a1f1dSLionel Sambuc  echo "$as_me:7328: \$? = $ac_status" >&5
7329c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7330c8a0e2f4SThomas Veerman  ac_cv_have_decl_be64enc=yes
7331c8a0e2f4SThomas Veermanelse
7332c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7333c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7334c8a0e2f4SThomas Veermanac_cv_have_decl_be64enc=no
7335c8a0e2f4SThomas Veermanfi
7336c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7337c8a0e2f4SThomas Veermanfi
7338*0a6a1f1dSLionel Sambucecho "$as_me:7338: result: $ac_cv_have_decl_be64enc" >&5
7339c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be64enc" >&6
7340c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be64enc = yes; then
7341c8a0e2f4SThomas Veerman
7342c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7343c8a0e2f4SThomas Veerman#define HAVE_DECL_BE64ENC 1
7344c8a0e2f4SThomas VeermanEOF
7345c8a0e2f4SThomas Veerman
7346c8a0e2f4SThomas Veermanelse
7347c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7348c8a0e2f4SThomas Veerman#define HAVE_DECL_BE64ENC 0
7349c8a0e2f4SThomas VeermanEOF
7350c8a0e2f4SThomas Veerman
7351c8a0e2f4SThomas Veermanfi
7352*0a6a1f1dSLionel Sambucecho "$as_me:7352: checking whether le64enc is declared" >&5
7353c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6
7354c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le64enc+set}" = set; then
7355c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7356c8a0e2f4SThomas Veermanelse
7357c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7358*0a6a1f1dSLionel Sambuc#line 7358 "configure"
7359c8a0e2f4SThomas Veerman#include "confdefs.h"
7360c8a0e2f4SThomas Veerman#include <sys/endian.h>
7361c8a0e2f4SThomas Veerman
7362c8a0e2f4SThomas Veermanint
7363c8a0e2f4SThomas Veermanmain ()
7364c8a0e2f4SThomas Veerman{
7365c8a0e2f4SThomas Veerman#ifndef le64enc
7366c8a0e2f4SThomas Veerman  char *p = (char *) le64enc;
7367c8a0e2f4SThomas Veerman#endif
7368c8a0e2f4SThomas Veerman
7369c8a0e2f4SThomas Veerman  ;
7370c8a0e2f4SThomas Veerman  return 0;
7371c8a0e2f4SThomas Veerman}
7372c8a0e2f4SThomas Veerman_ACEOF
7373c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7374*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7374: \"$ac_compile\"") >&5
7375c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7376c8a0e2f4SThomas Veerman  ac_status=$?
7377*0a6a1f1dSLionel Sambuc  echo "$as_me:7377: \$? = $ac_status" >&5
7378c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7379c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7380*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7380: \"$ac_try\"") >&5
7381c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7382c8a0e2f4SThomas Veerman  ac_status=$?
7383*0a6a1f1dSLionel Sambuc  echo "$as_me:7383: \$? = $ac_status" >&5
7384c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7385c8a0e2f4SThomas Veerman  ac_cv_have_decl_le64enc=yes
7386c8a0e2f4SThomas Veermanelse
7387c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7388c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7389c8a0e2f4SThomas Veermanac_cv_have_decl_le64enc=no
7390c8a0e2f4SThomas Veermanfi
7391c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7392c8a0e2f4SThomas Veermanfi
7393*0a6a1f1dSLionel Sambucecho "$as_me:7393: result: $ac_cv_have_decl_le64enc" >&5
7394c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le64enc" >&6
7395c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le64enc = yes; then
7396c8a0e2f4SThomas Veerman
7397c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7398c8a0e2f4SThomas Veerman#define HAVE_DECL_LE64ENC 1
7399c8a0e2f4SThomas VeermanEOF
7400c8a0e2f4SThomas Veerman
7401c8a0e2f4SThomas Veermanelse
7402c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7403c8a0e2f4SThomas Veerman#define HAVE_DECL_LE64ENC 0
7404c8a0e2f4SThomas VeermanEOF
7405c8a0e2f4SThomas Veerman
7406c8a0e2f4SThomas Veermanfi
7407*0a6a1f1dSLionel Sambucecho "$as_me:7407: checking whether be64dec is declared" >&5
7408c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6
7409c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_be64dec+set}" = set; then
7410c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7411c8a0e2f4SThomas Veermanelse
7412c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7413*0a6a1f1dSLionel Sambuc#line 7413 "configure"
7414c8a0e2f4SThomas Veerman#include "confdefs.h"
7415c8a0e2f4SThomas Veerman#include <sys/endian.h>
7416c8a0e2f4SThomas Veerman
7417c8a0e2f4SThomas Veermanint
7418c8a0e2f4SThomas Veermanmain ()
7419c8a0e2f4SThomas Veerman{
7420c8a0e2f4SThomas Veerman#ifndef be64dec
7421c8a0e2f4SThomas Veerman  char *p = (char *) be64dec;
7422c8a0e2f4SThomas Veerman#endif
7423c8a0e2f4SThomas Veerman
7424c8a0e2f4SThomas Veerman  ;
7425c8a0e2f4SThomas Veerman  return 0;
7426c8a0e2f4SThomas Veerman}
7427c8a0e2f4SThomas Veerman_ACEOF
7428c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7429*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7429: \"$ac_compile\"") >&5
7430c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7431c8a0e2f4SThomas Veerman  ac_status=$?
7432*0a6a1f1dSLionel Sambuc  echo "$as_me:7432: \$? = $ac_status" >&5
7433c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7434c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7435*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7435: \"$ac_try\"") >&5
7436c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7437c8a0e2f4SThomas Veerman  ac_status=$?
7438*0a6a1f1dSLionel Sambuc  echo "$as_me:7438: \$? = $ac_status" >&5
7439c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7440c8a0e2f4SThomas Veerman  ac_cv_have_decl_be64dec=yes
7441c8a0e2f4SThomas Veermanelse
7442c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7443c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7444c8a0e2f4SThomas Veermanac_cv_have_decl_be64dec=no
7445c8a0e2f4SThomas Veermanfi
7446c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7447c8a0e2f4SThomas Veermanfi
7448*0a6a1f1dSLionel Sambucecho "$as_me:7448: result: $ac_cv_have_decl_be64dec" >&5
7449c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_be64dec" >&6
7450c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_be64dec = yes; then
7451c8a0e2f4SThomas Veerman
7452c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7453c8a0e2f4SThomas Veerman#define HAVE_DECL_BE64DEC 1
7454c8a0e2f4SThomas VeermanEOF
7455c8a0e2f4SThomas Veerman
7456c8a0e2f4SThomas Veermanelse
7457c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7458c8a0e2f4SThomas Veerman#define HAVE_DECL_BE64DEC 0
7459c8a0e2f4SThomas VeermanEOF
7460c8a0e2f4SThomas Veerman
7461c8a0e2f4SThomas Veermanfi
7462*0a6a1f1dSLionel Sambucecho "$as_me:7462: checking whether le64dec is declared" >&5
7463c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6
7464c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_le64dec+set}" = set; then
7465c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7466c8a0e2f4SThomas Veermanelse
7467c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7468*0a6a1f1dSLionel Sambuc#line 7468 "configure"
7469c8a0e2f4SThomas Veerman#include "confdefs.h"
7470c8a0e2f4SThomas Veerman#include <sys/endian.h>
7471c8a0e2f4SThomas Veerman
7472c8a0e2f4SThomas Veermanint
7473c8a0e2f4SThomas Veermanmain ()
7474c8a0e2f4SThomas Veerman{
7475c8a0e2f4SThomas Veerman#ifndef le64dec
7476c8a0e2f4SThomas Veerman  char *p = (char *) le64dec;
7477c8a0e2f4SThomas Veerman#endif
7478c8a0e2f4SThomas Veerman
7479c8a0e2f4SThomas Veerman  ;
7480c8a0e2f4SThomas Veerman  return 0;
7481c8a0e2f4SThomas Veerman}
7482c8a0e2f4SThomas Veerman_ACEOF
7483c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7484*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7484: \"$ac_compile\"") >&5
7485c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7486c8a0e2f4SThomas Veerman  ac_status=$?
7487*0a6a1f1dSLionel Sambuc  echo "$as_me:7487: \$? = $ac_status" >&5
7488c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7489c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7490*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7490: \"$ac_try\"") >&5
7491c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7492c8a0e2f4SThomas Veerman  ac_status=$?
7493*0a6a1f1dSLionel Sambuc  echo "$as_me:7493: \$? = $ac_status" >&5
7494c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7495c8a0e2f4SThomas Veerman  ac_cv_have_decl_le64dec=yes
7496c8a0e2f4SThomas Veermanelse
7497c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7498c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7499c8a0e2f4SThomas Veermanac_cv_have_decl_le64dec=no
7500c8a0e2f4SThomas Veermanfi
7501c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7502c8a0e2f4SThomas Veermanfi
7503*0a6a1f1dSLionel Sambucecho "$as_me:7503: result: $ac_cv_have_decl_le64dec" >&5
7504c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_le64dec" >&6
7505c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_le64dec = yes; then
7506c8a0e2f4SThomas Veerman
7507c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7508c8a0e2f4SThomas Veerman#define HAVE_DECL_LE64DEC 1
7509c8a0e2f4SThomas VeermanEOF
7510c8a0e2f4SThomas Veerman
7511c8a0e2f4SThomas Veermanelse
7512c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7513c8a0e2f4SThomas Veerman#define HAVE_DECL_LE64DEC 0
7514c8a0e2f4SThomas VeermanEOF
7515c8a0e2f4SThomas Veerman
7516c8a0e2f4SThomas Veermanfi
7517c8a0e2f4SThomas Veerman
7518*0a6a1f1dSLionel Sambucecho "$as_me:7518: checking whether fstatvfs is declared" >&5
7519c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6
7520c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_fstatvfs+set}" = set; then
7521c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7522c8a0e2f4SThomas Veermanelse
7523c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7524*0a6a1f1dSLionel Sambuc#line 7524 "configure"
7525c8a0e2f4SThomas Veerman#include "confdefs.h"
7526c8a0e2f4SThomas Veerman#include <sys/statvfs.h>
7527c8a0e2f4SThomas Veerman
7528c8a0e2f4SThomas Veermanint
7529c8a0e2f4SThomas Veermanmain ()
7530c8a0e2f4SThomas Veerman{
7531c8a0e2f4SThomas Veerman#ifndef fstatvfs
7532c8a0e2f4SThomas Veerman  char *p = (char *) fstatvfs;
7533c8a0e2f4SThomas Veerman#endif
7534c8a0e2f4SThomas Veerman
7535c8a0e2f4SThomas Veerman  ;
7536c8a0e2f4SThomas Veerman  return 0;
7537c8a0e2f4SThomas Veerman}
7538c8a0e2f4SThomas Veerman_ACEOF
7539c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7540*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7540: \"$ac_compile\"") >&5
7541c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7542c8a0e2f4SThomas Veerman  ac_status=$?
7543*0a6a1f1dSLionel Sambuc  echo "$as_me:7543: \$? = $ac_status" >&5
7544c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7545c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7546*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7546: \"$ac_try\"") >&5
7547c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7548c8a0e2f4SThomas Veerman  ac_status=$?
7549*0a6a1f1dSLionel Sambuc  echo "$as_me:7549: \$? = $ac_status" >&5
7550c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7551c8a0e2f4SThomas Veerman  ac_cv_have_decl_fstatvfs=yes
7552c8a0e2f4SThomas Veermanelse
7553c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7554c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7555c8a0e2f4SThomas Veermanac_cv_have_decl_fstatvfs=no
7556c8a0e2f4SThomas Veermanfi
7557c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7558c8a0e2f4SThomas Veermanfi
7559*0a6a1f1dSLionel Sambucecho "$as_me:7559: result: $ac_cv_have_decl_fstatvfs" >&5
7560c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6
7561c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_fstatvfs = yes; then
7562c8a0e2f4SThomas Veerman
7563c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7564c8a0e2f4SThomas Veerman#define HAVE_DECL_FSTATVFS 1
7565c8a0e2f4SThomas VeermanEOF
7566c8a0e2f4SThomas Veerman
7567c8a0e2f4SThomas Veermanelse
7568c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7569c8a0e2f4SThomas Veerman#define HAVE_DECL_FSTATVFS 0
7570c8a0e2f4SThomas VeermanEOF
7571c8a0e2f4SThomas Veerman
7572c8a0e2f4SThomas Veermanfi
7573c8a0e2f4SThomas Veerman
7574*0a6a1f1dSLionel Sambucecho "$as_me:7574: checking whether setgroupent is declared" >&5
7575c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
7576c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_setgroupent+set}" = set; then
7577c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7578c8a0e2f4SThomas Veermanelse
7579c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7580*0a6a1f1dSLionel Sambuc#line 7580 "configure"
7581c8a0e2f4SThomas Veerman#include "confdefs.h"
7582c8a0e2f4SThomas Veerman
7583c8a0e2f4SThomas Veerman#include <sys/types.h>
7584c8a0e2f4SThomas Veerman#include <grp.h>
7585c8a0e2f4SThomas Veerman#include <pwd.h>
7586c8a0e2f4SThomas Veerman
7587c8a0e2f4SThomas Veermanint
7588c8a0e2f4SThomas Veermanmain ()
7589c8a0e2f4SThomas Veerman{
7590c8a0e2f4SThomas Veerman#ifndef setgroupent
7591c8a0e2f4SThomas Veerman  char *p = (char *) setgroupent;
7592c8a0e2f4SThomas Veerman#endif
7593c8a0e2f4SThomas Veerman
7594c8a0e2f4SThomas Veerman  ;
7595c8a0e2f4SThomas Veerman  return 0;
7596c8a0e2f4SThomas Veerman}
7597c8a0e2f4SThomas Veerman_ACEOF
7598c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7599*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7599: \"$ac_compile\"") >&5
7600c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7601c8a0e2f4SThomas Veerman  ac_status=$?
7602*0a6a1f1dSLionel Sambuc  echo "$as_me:7602: \$? = $ac_status" >&5
7603c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7604c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7605*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7605: \"$ac_try\"") >&5
7606c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7607c8a0e2f4SThomas Veerman  ac_status=$?
7608*0a6a1f1dSLionel Sambuc  echo "$as_me:7608: \$? = $ac_status" >&5
7609c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7610c8a0e2f4SThomas Veerman  ac_cv_have_decl_setgroupent=yes
7611c8a0e2f4SThomas Veermanelse
7612c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7613c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7614c8a0e2f4SThomas Veermanac_cv_have_decl_setgroupent=no
7615c8a0e2f4SThomas Veermanfi
7616c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7617c8a0e2f4SThomas Veermanfi
7618*0a6a1f1dSLionel Sambucecho "$as_me:7618: result: $ac_cv_have_decl_setgroupent" >&5
7619c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
7620c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_setgroupent = yes; then
7621c8a0e2f4SThomas Veerman
7622c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7623c8a0e2f4SThomas Veerman#define HAVE_DECL_SETGROUPENT 1
7624c8a0e2f4SThomas VeermanEOF
7625c8a0e2f4SThomas Veerman
7626c8a0e2f4SThomas Veermanelse
7627c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7628c8a0e2f4SThomas Veerman#define HAVE_DECL_SETGROUPENT 0
7629c8a0e2f4SThomas VeermanEOF
7630c8a0e2f4SThomas Veerman
7631c8a0e2f4SThomas Veermanfi
7632*0a6a1f1dSLionel Sambucecho "$as_me:7632: checking whether setpassent is declared" >&5
7633c8a0e2f4SThomas Veermanecho $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
7634c8a0e2f4SThomas Veermanif test "${ac_cv_have_decl_setpassent+set}" = set; then
7635c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7636c8a0e2f4SThomas Veermanelse
7637c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7638*0a6a1f1dSLionel Sambuc#line 7638 "configure"
7639c8a0e2f4SThomas Veerman#include "confdefs.h"
7640c8a0e2f4SThomas Veerman
7641c8a0e2f4SThomas Veerman#include <sys/types.h>
7642c8a0e2f4SThomas Veerman#include <grp.h>
7643c8a0e2f4SThomas Veerman#include <pwd.h>
7644c8a0e2f4SThomas Veerman
7645c8a0e2f4SThomas Veermanint
7646c8a0e2f4SThomas Veermanmain ()
7647c8a0e2f4SThomas Veerman{
7648c8a0e2f4SThomas Veerman#ifndef setpassent
7649c8a0e2f4SThomas Veerman  char *p = (char *) setpassent;
7650c8a0e2f4SThomas Veerman#endif
7651c8a0e2f4SThomas Veerman
7652c8a0e2f4SThomas Veerman  ;
7653c8a0e2f4SThomas Veerman  return 0;
7654c8a0e2f4SThomas Veerman}
7655c8a0e2f4SThomas Veerman_ACEOF
7656c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext
7657*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7657: \"$ac_compile\"") >&5
7658c8a0e2f4SThomas Veerman  (eval $ac_compile) 2>&5
7659c8a0e2f4SThomas Veerman  ac_status=$?
7660*0a6a1f1dSLionel Sambuc  echo "$as_me:7660: \$? = $ac_status" >&5
7661c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7662c8a0e2f4SThomas Veerman         { ac_try='test -s conftest.$ac_objext'
7663*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7663: \"$ac_try\"") >&5
7664c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7665c8a0e2f4SThomas Veerman  ac_status=$?
7666*0a6a1f1dSLionel Sambuc  echo "$as_me:7666: \$? = $ac_status" >&5
7667c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7668c8a0e2f4SThomas Veerman  ac_cv_have_decl_setpassent=yes
7669c8a0e2f4SThomas Veermanelse
7670c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7671c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7672c8a0e2f4SThomas Veermanac_cv_have_decl_setpassent=no
7673c8a0e2f4SThomas Veermanfi
7674c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
7675c8a0e2f4SThomas Veermanfi
7676*0a6a1f1dSLionel Sambucecho "$as_me:7676: result: $ac_cv_have_decl_setpassent" >&5
7677c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
7678c8a0e2f4SThomas Veermanif test $ac_cv_have_decl_setpassent = yes; then
7679c8a0e2f4SThomas Veerman
7680c8a0e2f4SThomas Veermancat >>confdefs.h <<EOF
7681c8a0e2f4SThomas Veerman#define HAVE_DECL_SETPASSENT 1
7682c8a0e2f4SThomas VeermanEOF
7683c8a0e2f4SThomas Veerman
7684c8a0e2f4SThomas Veermanelse
7685c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7686c8a0e2f4SThomas Veerman#define HAVE_DECL_SETPASSENT 0
7687c8a0e2f4SThomas VeermanEOF
7688c8a0e2f4SThomas Veerman
7689c8a0e2f4SThomas Veermanfi
7690c8a0e2f4SThomas Veerman
7691c8a0e2f4SThomas Veerman# regcomp() and regexec() are also names of functions in the old V8
7692c8a0e2f4SThomas Veerman# regexp package.  To avoid them, we need to find out who has regfree().
7693c8a0e2f4SThomas Veerman
7694*0a6a1f1dSLionel Sambucecho "$as_me:7694: checking for regfree in -lregex" >&5
7695c8a0e2f4SThomas Veermanecho $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
7696c8a0e2f4SThomas Veermanif test "${ac_cv_lib_regex_regfree+set}" = set; then
7697c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7698c8a0e2f4SThomas Veermanelse
7699c8a0e2f4SThomas Veerman  ac_check_lib_save_LIBS=$LIBS
7700c8a0e2f4SThomas VeermanLIBS="-lregex  $LIBS"
7701c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
7702*0a6a1f1dSLionel Sambuc#line 7702 "configure"
7703c8a0e2f4SThomas Veerman#include "confdefs.h"
7704c8a0e2f4SThomas Veerman
7705c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
7706c8a0e2f4SThomas Veerman#ifdef __cplusplus
7707c8a0e2f4SThomas Veermanextern "C"
7708c8a0e2f4SThomas Veerman#endif
7709c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
7710c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
7711c8a0e2f4SThomas Veermanchar regfree ();
7712c8a0e2f4SThomas Veermanint
7713c8a0e2f4SThomas Veermanmain ()
7714c8a0e2f4SThomas Veerman{
7715c8a0e2f4SThomas Veermanregfree ();
7716c8a0e2f4SThomas Veerman  ;
7717c8a0e2f4SThomas Veerman  return 0;
7718c8a0e2f4SThomas Veerman}
7719c8a0e2f4SThomas Veerman_ACEOF
7720c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
7721*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7721: \"$ac_link\"") >&5
7722c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
7723c8a0e2f4SThomas Veerman  ac_status=$?
7724*0a6a1f1dSLionel Sambuc  echo "$as_me:7724: \$? = $ac_status" >&5
7725c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7726c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
7727*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7727: \"$ac_try\"") >&5
7728c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7729c8a0e2f4SThomas Veerman  ac_status=$?
7730*0a6a1f1dSLionel Sambuc  echo "$as_me:7730: \$? = $ac_status" >&5
7731c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7732c8a0e2f4SThomas Veerman  ac_cv_lib_regex_regfree=yes
7733c8a0e2f4SThomas Veermanelse
7734c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7735c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7736c8a0e2f4SThomas Veermanac_cv_lib_regex_regfree=no
7737c8a0e2f4SThomas Veermanfi
7738c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7739c8a0e2f4SThomas VeermanLIBS=$ac_check_lib_save_LIBS
7740c8a0e2f4SThomas Veermanfi
7741*0a6a1f1dSLionel Sambucecho "$as_me:7741: result: $ac_cv_lib_regex_regfree" >&5
7742c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
7743c8a0e2f4SThomas Veermanif test $ac_cv_lib_regex_regfree = yes; then
7744c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7745c8a0e2f4SThomas Veerman#define HAVE_LIBREGEX 1
7746c8a0e2f4SThomas VeermanEOF
7747c8a0e2f4SThomas Veerman
7748c8a0e2f4SThomas Veerman  LIBS="-lregex $LIBS"
7749c8a0e2f4SThomas Veerman
7750c8a0e2f4SThomas Veermanfi
7751c8a0e2f4SThomas Veerman
7752*0a6a1f1dSLionel Sambucecho "$as_me:7752: checking for library containing regfree" >&5
7753c8a0e2f4SThomas Veermanecho $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
7754c8a0e2f4SThomas Veermanif test "${ac_cv_search_regfree+set}" = set; then
7755c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7756c8a0e2f4SThomas Veermanelse
7757c8a0e2f4SThomas Veerman  ac_func_search_save_LIBS=$LIBS
7758c8a0e2f4SThomas Veermanac_cv_search_regfree=no
7759c8a0e2f4SThomas Veermancat >conftest.$ac_ext <<_ACEOF
7760*0a6a1f1dSLionel Sambuc#line 7760 "configure"
7761c8a0e2f4SThomas Veerman#include "confdefs.h"
7762c8a0e2f4SThomas Veerman
7763c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
7764c8a0e2f4SThomas Veerman#ifdef __cplusplus
7765c8a0e2f4SThomas Veermanextern "C"
7766c8a0e2f4SThomas Veerman#endif
7767c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
7768c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
7769c8a0e2f4SThomas Veermanchar regfree ();
7770c8a0e2f4SThomas Veermanint
7771c8a0e2f4SThomas Veermanmain ()
7772c8a0e2f4SThomas Veerman{
7773c8a0e2f4SThomas Veermanregfree ();
7774c8a0e2f4SThomas Veerman  ;
7775c8a0e2f4SThomas Veerman  return 0;
7776c8a0e2f4SThomas Veerman}
7777c8a0e2f4SThomas Veerman_ACEOF
7778c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
7779*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7779: \"$ac_link\"") >&5
7780c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
7781c8a0e2f4SThomas Veerman  ac_status=$?
7782*0a6a1f1dSLionel Sambuc  echo "$as_me:7782: \$? = $ac_status" >&5
7783c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7784c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
7785*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7785: \"$ac_try\"") >&5
7786c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7787c8a0e2f4SThomas Veerman  ac_status=$?
7788*0a6a1f1dSLionel Sambuc  echo "$as_me:7788: \$? = $ac_status" >&5
7789c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7790c8a0e2f4SThomas Veerman  ac_cv_search_regfree="none required"
7791c8a0e2f4SThomas Veermanelse
7792c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7793c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7794c8a0e2f4SThomas Veermanfi
7795c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7796c8a0e2f4SThomas Veermanif test "$ac_cv_search_regfree" = no; then
7797c8a0e2f4SThomas Veerman  for ac_lib in rx posix; do
7798c8a0e2f4SThomas Veerman    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7799c8a0e2f4SThomas Veerman    cat >conftest.$ac_ext <<_ACEOF
7800*0a6a1f1dSLionel Sambuc#line 7800 "configure"
7801c8a0e2f4SThomas Veerman#include "confdefs.h"
7802c8a0e2f4SThomas Veerman
7803c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
7804c8a0e2f4SThomas Veerman#ifdef __cplusplus
7805c8a0e2f4SThomas Veermanextern "C"
7806c8a0e2f4SThomas Veerman#endif
7807c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
7808c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
7809c8a0e2f4SThomas Veermanchar regfree ();
7810c8a0e2f4SThomas Veermanint
7811c8a0e2f4SThomas Veermanmain ()
7812c8a0e2f4SThomas Veerman{
7813c8a0e2f4SThomas Veermanregfree ();
7814c8a0e2f4SThomas Veerman  ;
7815c8a0e2f4SThomas Veerman  return 0;
7816c8a0e2f4SThomas Veerman}
7817c8a0e2f4SThomas Veerman_ACEOF
7818c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
7819*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7819: \"$ac_link\"") >&5
7820c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
7821c8a0e2f4SThomas Veerman  ac_status=$?
7822*0a6a1f1dSLionel Sambuc  echo "$as_me:7822: \$? = $ac_status" >&5
7823c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7824c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
7825*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7825: \"$ac_try\"") >&5
7826c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7827c8a0e2f4SThomas Veerman  ac_status=$?
7828*0a6a1f1dSLionel Sambuc  echo "$as_me:7828: \$? = $ac_status" >&5
7829c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7830c8a0e2f4SThomas Veerman  ac_cv_search_regfree="-l$ac_lib"
7831c8a0e2f4SThomas Veermanbreak
7832c8a0e2f4SThomas Veermanelse
7833c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7834c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7835c8a0e2f4SThomas Veermanfi
7836c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7837c8a0e2f4SThomas Veerman  done
7838c8a0e2f4SThomas Veermanfi
7839c8a0e2f4SThomas VeermanLIBS=$ac_func_search_save_LIBS
7840c8a0e2f4SThomas Veermanfi
7841*0a6a1f1dSLionel Sambucecho "$as_me:7841: result: $ac_cv_search_regfree" >&5
7842c8a0e2f4SThomas Veermanecho "${ECHO_T}$ac_cv_search_regfree" >&6
7843c8a0e2f4SThomas Veermanif test "$ac_cv_search_regfree" != no; then
7844c8a0e2f4SThomas Veerman  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
7845c8a0e2f4SThomas Veerman
7846c8a0e2f4SThomas Veermanfi
7847c8a0e2f4SThomas Veerman
7848*0a6a1f1dSLionel Sambucecho "$as_me:7848: checking for clock_gettime in -lrt" >&5
784984d9c625SLionel Sambucecho $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
785084d9c625SLionel Sambucif test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
785184d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
785284d9c625SLionel Sambucelse
785384d9c625SLionel Sambuc  ac_check_lib_save_LIBS=$LIBS
785484d9c625SLionel SambucLIBS="-lrt  $LIBS"
785584d9c625SLionel Sambuccat >conftest.$ac_ext <<_ACEOF
7856*0a6a1f1dSLionel Sambuc#line 7856 "configure"
785784d9c625SLionel Sambuc#include "confdefs.h"
785884d9c625SLionel Sambuc
785984d9c625SLionel Sambuc/* Override any gcc2 internal prototype to avoid an error.  */
786084d9c625SLionel Sambuc#ifdef __cplusplus
786184d9c625SLionel Sambucextern "C"
786284d9c625SLionel Sambuc#endif
786384d9c625SLionel Sambuc/* We use char because int might match the return type of a gcc2
786484d9c625SLionel Sambuc   builtin and then its argument prototype would still apply.  */
786584d9c625SLionel Sambucchar clock_gettime ();
786684d9c625SLionel Sambucint
786784d9c625SLionel Sambucmain ()
786884d9c625SLionel Sambuc{
786984d9c625SLionel Sambucclock_gettime ();
787084d9c625SLionel Sambuc  ;
787184d9c625SLionel Sambuc  return 0;
787284d9c625SLionel Sambuc}
787384d9c625SLionel Sambuc_ACEOF
787484d9c625SLionel Sambucrm -f conftest.$ac_objext conftest$ac_exeext
7875*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7875: \"$ac_link\"") >&5
787684d9c625SLionel Sambuc  (eval $ac_link) 2>&5
787784d9c625SLionel Sambuc  ac_status=$?
7878*0a6a1f1dSLionel Sambuc  echo "$as_me:7878: \$? = $ac_status" >&5
787984d9c625SLionel Sambuc  (exit $ac_status); } &&
788084d9c625SLionel Sambuc         { ac_try='test -s conftest$ac_exeext'
7881*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7881: \"$ac_try\"") >&5
788284d9c625SLionel Sambuc  (eval $ac_try) 2>&5
788384d9c625SLionel Sambuc  ac_status=$?
7884*0a6a1f1dSLionel Sambuc  echo "$as_me:7884: \$? = $ac_status" >&5
788584d9c625SLionel Sambuc  (exit $ac_status); }; }; then
788684d9c625SLionel Sambuc  ac_cv_lib_rt_clock_gettime=yes
788784d9c625SLionel Sambucelse
788884d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
788984d9c625SLionel Sambuccat conftest.$ac_ext >&5
789084d9c625SLionel Sambucac_cv_lib_rt_clock_gettime=no
789184d9c625SLionel Sambucfi
789284d9c625SLionel Sambucrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
789384d9c625SLionel SambucLIBS=$ac_check_lib_save_LIBS
789484d9c625SLionel Sambucfi
7895*0a6a1f1dSLionel Sambucecho "$as_me:7895: result: $ac_cv_lib_rt_clock_gettime" >&5
789684d9c625SLionel Sambucecho "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
789784d9c625SLionel Sambucif test $ac_cv_lib_rt_clock_gettime = yes; then
789884d9c625SLionel Sambuc  cat >>confdefs.h <<EOF
789984d9c625SLionel Sambuc#define HAVE_LIBRT 1
790084d9c625SLionel SambucEOF
790184d9c625SLionel Sambuc
790284d9c625SLionel Sambuc  LIBS="-lrt $LIBS"
790384d9c625SLionel Sambuc
790484d9c625SLionel Sambucfi
790584d9c625SLionel Sambuc
7906c8a0e2f4SThomas Veermanfor ac_func in fparseln
7907c8a0e2f4SThomas Veermando
7908c8a0e2f4SThomas Veermanas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7909*0a6a1f1dSLionel Sambucecho "$as_me:7909: checking for $ac_func" >&5
7910c8a0e2f4SThomas Veermanecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7911c8a0e2f4SThomas Veermanif eval "test \"\${$as_ac_var+set}\" = set"; then
7912c8a0e2f4SThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
7913c8a0e2f4SThomas Veermanelse
7914c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7915*0a6a1f1dSLionel Sambuc#line 7915 "configure"
7916c8a0e2f4SThomas Veerman#include "confdefs.h"
7917c8a0e2f4SThomas Veerman/* System header to define __stub macros and hopefully few prototypes,
7918c8a0e2f4SThomas Veerman    which can conflict with char $ac_func (); below.  */
7919c8a0e2f4SThomas Veerman#include <assert.h>
7920c8a0e2f4SThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
7921c8a0e2f4SThomas Veerman#ifdef __cplusplus
7922c8a0e2f4SThomas Veermanextern "C"
7923c8a0e2f4SThomas Veerman#endif
7924c8a0e2f4SThomas Veerman/* We use char because int might match the return type of a gcc2
7925c8a0e2f4SThomas Veerman   builtin and then its argument prototype would still apply.  */
7926c8a0e2f4SThomas Veermanchar $ac_func ();
7927c8a0e2f4SThomas Veermanchar (*f) ();
7928c8a0e2f4SThomas Veerman
7929c8a0e2f4SThomas Veermanint
7930c8a0e2f4SThomas Veermanmain ()
7931c8a0e2f4SThomas Veerman{
7932c8a0e2f4SThomas Veerman/* The GNU C library defines this for functions which it implements
7933c8a0e2f4SThomas Veerman    to always fail with ENOSYS.  Some functions are actually named
7934c8a0e2f4SThomas Veerman    something starting with __ and the normal name is an alias.  */
7935c8a0e2f4SThomas Veerman#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7936c8a0e2f4SThomas Veermanchoke me
7937c8a0e2f4SThomas Veerman#else
7938c8a0e2f4SThomas Veermanf = $ac_func;
7939c8a0e2f4SThomas Veerman#endif
7940c8a0e2f4SThomas Veerman
7941c8a0e2f4SThomas Veerman  ;
7942c8a0e2f4SThomas Veerman  return 0;
7943c8a0e2f4SThomas Veerman}
7944c8a0e2f4SThomas Veerman_ACEOF
7945c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
7946*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:7946: \"$ac_link\"") >&5
7947c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
7948c8a0e2f4SThomas Veerman  ac_status=$?
7949*0a6a1f1dSLionel Sambuc  echo "$as_me:7949: \$? = $ac_status" >&5
7950c8a0e2f4SThomas Veerman  (exit $ac_status); } &&
7951c8a0e2f4SThomas Veerman         { ac_try='test -s conftest$ac_exeext'
7952*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:7952: \"$ac_try\"") >&5
7953c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
7954c8a0e2f4SThomas Veerman  ac_status=$?
7955*0a6a1f1dSLionel Sambuc  echo "$as_me:7955: \$? = $ac_status" >&5
7956c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
7957c8a0e2f4SThomas Veerman  eval "$as_ac_var=yes"
7958c8a0e2f4SThomas Veermanelse
7959c8a0e2f4SThomas Veerman  echo "$as_me: failed program was:" >&5
7960c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
7961c8a0e2f4SThomas Veermaneval "$as_ac_var=no"
7962c8a0e2f4SThomas Veermanfi
7963c8a0e2f4SThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7964c8a0e2f4SThomas Veermanfi
7965*0a6a1f1dSLionel Sambucecho "$as_me:7965: result: `eval echo '${'$as_ac_var'}'`" >&5
7966c8a0e2f4SThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7967c8a0e2f4SThomas Veermanif test `eval echo '${'$as_ac_var'}'` = yes; then
7968c8a0e2f4SThomas Veerman  cat >>confdefs.h <<EOF
7969c8a0e2f4SThomas Veerman#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7970c8a0e2f4SThomas VeermanEOF
7971c8a0e2f4SThomas Veerman
7972*0a6a1f1dSLionel Sambuc    echo "$as_me:7972: checking if fparseln seems to work" >&5
7973c8a0e2f4SThomas Veermanecho $ECHO_N "checking if fparseln seems to work... $ECHO_C" >&6
7974c8a0e2f4SThomas Veerman    if test "$cross_compiling" = yes; then
7975*0a6a1f1dSLionel Sambuc  { echo "$as_me:7975: WARNING: cross compiling: not checking farseln" >&5
7976c8a0e2f4SThomas Veermanecho "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
7977c8a0e2f4SThomas Veerman
7978c8a0e2f4SThomas Veermanelse
7979c8a0e2f4SThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
7980*0a6a1f1dSLionel Sambuc#line 7980 "configure"
7981c8a0e2f4SThomas Veerman#include "confdefs.h"
7982c8a0e2f4SThomas Veerman
7983c8a0e2f4SThomas Veerman#define _NETBSD_SOURCE
7984c8a0e2f4SThomas Veerman#include <stdio.h>
7985c8a0e2f4SThomas Veerman#include <stdlib.h>
7986c8a0e2f4SThomas Veerman#define CONFTEST	"conftest.fparseln"
7987c8a0e2f4SThomas Veerman#define COMMENT		'#'
7988c8a0e2f4SThomas Veermanint
7989c8a0e2f4SThomas Veermanmain(void)
7990c8a0e2f4SThomas Veerman{
7991c8a0e2f4SThomas Veerman	static const char delim[3] = { '\0', '\0', COMMENT };
7992c8a0e2f4SThomas Veerman	FILE *fp;
7993c8a0e2f4SThomas Veerman	char *ptr;
7994c8a0e2f4SThomas Veerman	fp = fopen(CONFTEST, "w+");
7995c8a0e2f4SThomas Veerman	if (fp != NULL) {
7996c8a0e2f4SThomas Veerman		unlink(CONFTEST);
7997c8a0e2f4SThomas Veerman		ungetc(COMMENT, fp);
7998c8a0e2f4SThomas Veerman		ptr = fparseln(fp, NULL, NULL, delim,
7999c8a0e2f4SThomas Veerman		    FPARSELN_UNESCALL);
8000c8a0e2f4SThomas Veerman		fclose(fp);
8001c8a0e2f4SThomas Veerman		if (ptr == NULL)
8002c8a0e2f4SThomas Veerman			exit(0);
8003c8a0e2f4SThomas Veerman	}
8004c8a0e2f4SThomas Veerman	exit(1);
8005c8a0e2f4SThomas Veerman}
8006c8a0e2f4SThomas Veerman
8007c8a0e2f4SThomas Veerman_ACEOF
8008c8a0e2f4SThomas Veermanrm -f conftest$ac_exeext
8009*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:8009: \"$ac_link\"") >&5
8010c8a0e2f4SThomas Veerman  (eval $ac_link) 2>&5
8011c8a0e2f4SThomas Veerman  ac_status=$?
8012*0a6a1f1dSLionel Sambuc  echo "$as_me:8012: \$? = $ac_status" >&5
8013c8a0e2f4SThomas Veerman  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8014*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:8014: \"$ac_try\"") >&5
8015c8a0e2f4SThomas Veerman  (eval $ac_try) 2>&5
8016c8a0e2f4SThomas Veerman  ac_status=$?
8017*0a6a1f1dSLionel Sambuc  echo "$as_me:8017: \$? = $ac_status" >&5
8018c8a0e2f4SThomas Veerman  (exit $ac_status); }; }; then
8019*0a6a1f1dSLionel Sambuc  echo "$as_me:8019: result: yes" >&5
8020c8a0e2f4SThomas Veermanecho "${ECHO_T}yes" >&6
8021c8a0e2f4SThomas Veermanelse
8022c8a0e2f4SThomas Veerman  echo "$as_me: program exited with status $ac_status" >&5
8023c8a0e2f4SThomas Veermanecho "$as_me: failed program was:" >&5
8024c8a0e2f4SThomas Veermancat conftest.$ac_ext >&5
8025*0a6a1f1dSLionel Sambucecho "$as_me:8025: result: no" >&5
8026c8a0e2f4SThomas Veermanecho "${ECHO_T}no" >&6
8027c8a0e2f4SThomas Veerman
8028c8a0e2f4SThomas Veermancat >>confdefs.h <<\EOF
8029c8a0e2f4SThomas Veerman#define BROKEN_FPARSELN 1
8030c8a0e2f4SThomas VeermanEOF
8031c8a0e2f4SThomas Veerman
8032c8a0e2f4SThomas Veermanfi
8033c8a0e2f4SThomas Veermanrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8034c8a0e2f4SThomas Veermanfi
8035c8a0e2f4SThomas Veerman
8036c8a0e2f4SThomas Veermanfi
8037c8a0e2f4SThomas Veermandone
8038c8a0e2f4SThomas Veerman
8039c8a0e2f4SThomas Veerman# Variables substituted via @VARNAME@ in defs.mk.in
8040c8a0e2f4SThomas VeermanHAVE_PTHREAD_H=$ac_cv_header_pthread_h
8041c8a0e2f4SThomas Veerman
8042c8a0e2f4SThomas Veermancat >confcache <<\_ACEOF
8043c8a0e2f4SThomas Veerman# This file is a shell script that caches the results of configure
8044c8a0e2f4SThomas Veerman# tests run on this system so they can be shared between configure
8045c8a0e2f4SThomas Veerman# scripts and configure runs, see configure's option --config-cache.
8046c8a0e2f4SThomas Veerman# It is not useful on other systems.  If it contains results you don't
8047c8a0e2f4SThomas Veerman# want to keep, you may remove or edit it.
8048c8a0e2f4SThomas Veerman#
8049c8a0e2f4SThomas Veerman# config.status only pays attention to the cache file if you give it
8050c8a0e2f4SThomas Veerman# the --recheck option to rerun configure.
8051c8a0e2f4SThomas Veerman#
8052c8a0e2f4SThomas Veerman# `ac_cv_env_foo' variables (set or unset) will be overriden when
8053c8a0e2f4SThomas Veerman# loading this file, other *unset* `ac_cv_foo' will be assigned the
8054c8a0e2f4SThomas Veerman# following values.
8055c8a0e2f4SThomas Veerman
8056c8a0e2f4SThomas Veerman_ACEOF
8057c8a0e2f4SThomas Veerman
8058c8a0e2f4SThomas Veerman# The following way of writing the cache mishandles newlines in values,
8059c8a0e2f4SThomas Veerman# but we know of no workaround that is simple, portable, and efficient.
8060c8a0e2f4SThomas Veerman# So, don't put newlines in cache variables' values.
8061c8a0e2f4SThomas Veerman# Ultrix sh set writes to stderr and can't be redirected directly,
8062c8a0e2f4SThomas Veerman# and sets the high bit in the cache file unless we assign to the vars.
8063c8a0e2f4SThomas Veerman{
8064c8a0e2f4SThomas Veerman  (set) 2>&1 |
8065c8a0e2f4SThomas Veerman    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8066c8a0e2f4SThomas Veerman    *ac_space=\ *)
8067c8a0e2f4SThomas Veerman      # `set' does not quote correctly, so add quotes (double-quote
8068c8a0e2f4SThomas Veerman      # substitution turns \\\\ into \\, and sed turns \\ into \).
8069c8a0e2f4SThomas Veerman      sed -n \
8070c8a0e2f4SThomas Veerman        "s/'/'\\\\''/g;
8071c8a0e2f4SThomas Veerman    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8072c8a0e2f4SThomas Veerman      ;;
8073c8a0e2f4SThomas Veerman    *)
8074c8a0e2f4SThomas Veerman      # `set' quotes correctly as required by POSIX, so do not add quotes.
8075c8a0e2f4SThomas Veerman      sed -n \
8076c8a0e2f4SThomas Veerman        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8077c8a0e2f4SThomas Veerman      ;;
8078c8a0e2f4SThomas Veerman    esac;
8079c8a0e2f4SThomas Veerman} |
8080c8a0e2f4SThomas Veerman  sed '
8081c8a0e2f4SThomas Veerman     t clear
8082c8a0e2f4SThomas Veerman     : clear
8083c8a0e2f4SThomas Veerman     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8084c8a0e2f4SThomas Veerman     t end
8085c8a0e2f4SThomas Veerman     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8086c8a0e2f4SThomas Veerman     : end' >>confcache
8087c8a0e2f4SThomas Veermanif cmp -s $cache_file confcache; then :; else
8088c8a0e2f4SThomas Veerman  if test -w $cache_file; then
8089c8a0e2f4SThomas Veerman    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8090c8a0e2f4SThomas Veerman    cat confcache >$cache_file
8091c8a0e2f4SThomas Veerman  else
8092c8a0e2f4SThomas Veerman    echo "not updating unwritable cache $cache_file"
8093c8a0e2f4SThomas Veerman  fi
8094c8a0e2f4SThomas Veermanfi
8095c8a0e2f4SThomas Veermanrm -f confcache
8096c8a0e2f4SThomas Veerman
8097c8a0e2f4SThomas Veermantest "x$prefix" = xNONE && prefix=$ac_default_prefix
8098c8a0e2f4SThomas Veerman# Let make expand exec_prefix.
8099c8a0e2f4SThomas Veermantest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8100c8a0e2f4SThomas Veerman
8101c8a0e2f4SThomas Veerman# VPATH may cause trouble with some makes, so we remove $(srcdir),
8102c8a0e2f4SThomas Veerman# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8103c8a0e2f4SThomas Veerman# trailing colons and then remove the whole line if VPATH becomes empty
8104c8a0e2f4SThomas Veerman# (actually we leave an empty line to preserve line numbers).
8105c8a0e2f4SThomas Veermanif test "x$srcdir" = x.; then
8106c8a0e2f4SThomas Veerman  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
8107c8a0e2f4SThomas Veermans/:*\$(srcdir):*/:/;
8108c8a0e2f4SThomas Veermans/:*\${srcdir}:*/:/;
8109c8a0e2f4SThomas Veermans/:*@srcdir@:*/:/;
8110c8a0e2f4SThomas Veermans/^\([^=]*=[ 	]*\):*/\1/;
8111c8a0e2f4SThomas Veermans/:*$//;
8112c8a0e2f4SThomas Veermans/^[^=]*=[ 	]*$//;
8113c8a0e2f4SThomas Veerman}'
8114c8a0e2f4SThomas Veermanfi
8115c8a0e2f4SThomas Veerman
8116c8a0e2f4SThomas VeermanDEFS=-DHAVE_CONFIG_H
8117c8a0e2f4SThomas Veerman
8118c8a0e2f4SThomas Veerman: ${CONFIG_STATUS=./config.status}
8119c8a0e2f4SThomas Veermanac_clean_files_save=$ac_clean_files
8120c8a0e2f4SThomas Veermanac_clean_files="$ac_clean_files $CONFIG_STATUS"
8121*0a6a1f1dSLionel Sambuc{ echo "$as_me:8121: creating $CONFIG_STATUS" >&5
8122c8a0e2f4SThomas Veermanecho "$as_me: creating $CONFIG_STATUS" >&6;}
8123c8a0e2f4SThomas Veermancat >$CONFIG_STATUS <<_ACEOF
8124c8a0e2f4SThomas Veerman#! $SHELL
8125c8a0e2f4SThomas Veerman# Generated automatically by configure.
8126c8a0e2f4SThomas Veerman# Run this file to recreate the current configuration.
8127c8a0e2f4SThomas Veerman# Compiler output produced by configure, useful for debugging
8128c8a0e2f4SThomas Veerman# configure, is in config.log if it exists.
8129c8a0e2f4SThomas Veerman
8130c8a0e2f4SThomas Veermandebug=false
8131c8a0e2f4SThomas VeermanSHELL=\${CONFIG_SHELL-$SHELL}
8132c8a0e2f4SThomas Veermanac_cs_invocation="\$0 \$@"
8133c8a0e2f4SThomas Veerman
8134c8a0e2f4SThomas Veerman_ACEOF
8135c8a0e2f4SThomas Veerman
8136c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\_ACEOF
8137c8a0e2f4SThomas Veerman# Be Bourne compatible
8138c8a0e2f4SThomas Veermanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8139c8a0e2f4SThomas Veerman  emulate sh
8140c8a0e2f4SThomas Veerman  NULLCMD=:
8141c8a0e2f4SThomas Veermanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8142c8a0e2f4SThomas Veerman  set -o posix
8143c8a0e2f4SThomas Veermanfi
8144c8a0e2f4SThomas Veerman
8145c8a0e2f4SThomas Veerman# Name of the executable.
8146c8a0e2f4SThomas Veermanas_me=`echo "$0" |sed 's,.*[\\/],,'`
8147c8a0e2f4SThomas Veerman
8148c8a0e2f4SThomas Veermanif expr a : '\(a\)' >/dev/null 2>&1; then
8149c8a0e2f4SThomas Veerman  as_expr=expr
8150c8a0e2f4SThomas Veermanelse
8151c8a0e2f4SThomas Veerman  as_expr=false
8152c8a0e2f4SThomas Veermanfi
8153c8a0e2f4SThomas Veerman
8154c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
8155c8a0e2f4SThomas Veermanecho >conf$$.file
8156c8a0e2f4SThomas Veermanif ln -s conf$$.file conf$$ 2>/dev/null; then
8157c8a0e2f4SThomas Veerman  # We could just check for DJGPP; but this test a) works b) is more generic
8158c8a0e2f4SThomas Veerman  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8159c8a0e2f4SThomas Veerman  if test -f conf$$.exe; then
8160c8a0e2f4SThomas Veerman    # Don't use ln at all; we don't have any links
8161c8a0e2f4SThomas Veerman    as_ln_s='cp -p'
8162c8a0e2f4SThomas Veerman  else
8163c8a0e2f4SThomas Veerman    as_ln_s='ln -s'
8164c8a0e2f4SThomas Veerman  fi
8165c8a0e2f4SThomas Veermanelif ln conf$$.file conf$$ 2>/dev/null; then
8166c8a0e2f4SThomas Veerman  as_ln_s=ln
8167c8a0e2f4SThomas Veermanelse
8168c8a0e2f4SThomas Veerman  as_ln_s='cp -p'
8169c8a0e2f4SThomas Veermanfi
8170c8a0e2f4SThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
8171c8a0e2f4SThomas Veerman
8172c8a0e2f4SThomas Veermanas_executable_p="test -f"
8173c8a0e2f4SThomas Veerman
8174c8a0e2f4SThomas Veerman# Support unset when possible.
8175c8a0e2f4SThomas Veermanif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8176c8a0e2f4SThomas Veerman  as_unset=unset
8177c8a0e2f4SThomas Veermanelse
8178c8a0e2f4SThomas Veerman  as_unset=false
8179c8a0e2f4SThomas Veermanfi
8180c8a0e2f4SThomas Veerman
8181c8a0e2f4SThomas Veerman# NLS nuisances.
8182c8a0e2f4SThomas Veerman$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8183c8a0e2f4SThomas Veerman$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8184c8a0e2f4SThomas Veerman$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8185c8a0e2f4SThomas Veerman$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8186c8a0e2f4SThomas Veerman$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8187c8a0e2f4SThomas Veerman$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8188c8a0e2f4SThomas Veerman$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8189c8a0e2f4SThomas Veerman$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8190c8a0e2f4SThomas Veerman
8191c8a0e2f4SThomas Veerman# IFS
8192c8a0e2f4SThomas Veerman# We need space, tab and new line, in precisely that order.
8193c8a0e2f4SThomas Veermanas_nl='
8194c8a0e2f4SThomas Veerman'
8195c8a0e2f4SThomas VeermanIFS=" 	$as_nl"
8196c8a0e2f4SThomas Veerman
8197c8a0e2f4SThomas Veerman# CDPATH.
8198c8a0e2f4SThomas Veerman$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8199c8a0e2f4SThomas Veerman
8200c8a0e2f4SThomas Veermanexec 6>&1
8201c8a0e2f4SThomas Veerman
8202c8a0e2f4SThomas Veerman_ACEOF
8203c8a0e2f4SThomas Veerman
8204c8a0e2f4SThomas Veerman# Files that config.status was made for.
8205c8a0e2f4SThomas Veermanif test -n "$ac_config_files"; then
8206c8a0e2f4SThomas Veerman  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8207c8a0e2f4SThomas Veermanfi
8208c8a0e2f4SThomas Veerman
8209c8a0e2f4SThomas Veermanif test -n "$ac_config_headers"; then
8210c8a0e2f4SThomas Veerman  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8211c8a0e2f4SThomas Veermanfi
8212c8a0e2f4SThomas Veerman
8213c8a0e2f4SThomas Veermanif test -n "$ac_config_links"; then
8214c8a0e2f4SThomas Veerman  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8215c8a0e2f4SThomas Veermanfi
8216c8a0e2f4SThomas Veerman
8217c8a0e2f4SThomas Veermanif test -n "$ac_config_commands"; then
8218c8a0e2f4SThomas Veerman  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8219c8a0e2f4SThomas Veermanfi
8220c8a0e2f4SThomas Veerman
8221c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8222c8a0e2f4SThomas Veerman
8223c8a0e2f4SThomas Veermanac_cs_usage="\
8224c8a0e2f4SThomas Veerman\`$as_me' instantiates files from templates according to the
8225c8a0e2f4SThomas Veermancurrent configuration.
8226c8a0e2f4SThomas Veerman
8227c8a0e2f4SThomas VeermanUsage: $0 [OPTIONS] [FILE]...
8228c8a0e2f4SThomas Veerman
8229c8a0e2f4SThomas Veerman  -h, --help       print this help, then exit
8230c8a0e2f4SThomas Veerman  -V, --version    print version number, then exit
8231c8a0e2f4SThomas Veerman  -d, --debug      don't remove temporary files
8232c8a0e2f4SThomas Veerman      --recheck    update $as_me by reconfiguring in the same conditions
8233c8a0e2f4SThomas Veerman  --file=FILE[:TEMPLATE]
8234c8a0e2f4SThomas Veerman                   instantiate the configuration file FILE
8235c8a0e2f4SThomas Veerman  --header=FILE[:TEMPLATE]
8236c8a0e2f4SThomas Veerman                   instantiate the configuration header FILE
8237c8a0e2f4SThomas Veerman
8238c8a0e2f4SThomas VeermanConfiguration files:
8239c8a0e2f4SThomas Veerman$config_files
8240c8a0e2f4SThomas Veerman
8241c8a0e2f4SThomas VeermanConfiguration headers:
8242c8a0e2f4SThomas Veerman$config_headers
8243c8a0e2f4SThomas Veerman
8244c8a0e2f4SThomas VeermanReport bugs to <bug-autoconf@gnu.org>."
8245c8a0e2f4SThomas VeermanEOF
8246c8a0e2f4SThomas Veerman
8247c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
8248c8a0e2f4SThomas Veermanac_cs_version="\\
8249c8a0e2f4SThomas Veermanlibnbcompat config.status noversion
8250c8a0e2f4SThomas Veermanconfigured by $0, generated by GNU Autoconf 2.52,
8251c8a0e2f4SThomas Veerman  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8252c8a0e2f4SThomas Veerman
8253c8a0e2f4SThomas VeermanCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8254c8a0e2f4SThomas VeermanFree Software Foundation, Inc.
8255c8a0e2f4SThomas VeermanThis config.status script is free software; the Free Software Foundation
8256c8a0e2f4SThomas Veermangives unlimited permission to copy, distribute and modify it."
8257c8a0e2f4SThomas Veermansrcdir=$srcdir
8258c8a0e2f4SThomas VeermanEOF
8259c8a0e2f4SThomas Veerman
8260c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8261c8a0e2f4SThomas Veerman# If no file are specified by the user, then we need to provide default
8262c8a0e2f4SThomas Veerman# value.  By we need to know if files were specified by the user.
8263c8a0e2f4SThomas Veermanac_need_defaults=:
8264c8a0e2f4SThomas Veermanwhile test $# != 0
8265c8a0e2f4SThomas Veermando
8266c8a0e2f4SThomas Veerman  case $1 in
8267c8a0e2f4SThomas Veerman  --*=*)
8268c8a0e2f4SThomas Veerman    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8269c8a0e2f4SThomas Veerman    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8270c8a0e2f4SThomas Veerman    shift
8271c8a0e2f4SThomas Veerman    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8272c8a0e2f4SThomas Veerman    shift
8273c8a0e2f4SThomas Veerman    ;;
8274c8a0e2f4SThomas Veerman  -*);;
8275c8a0e2f4SThomas Veerman  *) # This is not an option, so the user has probably given explicit
8276c8a0e2f4SThomas Veerman     # arguments.
8277c8a0e2f4SThomas Veerman     ac_need_defaults=false;;
8278c8a0e2f4SThomas Veerman  esac
8279c8a0e2f4SThomas Veerman
8280c8a0e2f4SThomas Veerman  case $1 in
8281c8a0e2f4SThomas Veerman  # Handling of the options.
8282c8a0e2f4SThomas VeermanEOF
8283c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
8284c8a0e2f4SThomas Veerman  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8285c8a0e2f4SThomas Veerman    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8286c8a0e2f4SThomas Veerman    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8287c8a0e2f4SThomas VeermanEOF
8288c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8289c8a0e2f4SThomas Veerman  --version | --vers* | -V )
8290c8a0e2f4SThomas Veerman    echo "$ac_cs_version"; exit 0 ;;
8291c8a0e2f4SThomas Veerman  --he | --h)
8292c8a0e2f4SThomas Veerman    # Conflict between --help and --header
8293*0a6a1f1dSLionel Sambuc    { { echo "$as_me:8293: error: ambiguous option: $1
8294c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&5
8295c8a0e2f4SThomas Veermanecho "$as_me: error: ambiguous option: $1
8296c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&2;}
8297c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
8298c8a0e2f4SThomas Veerman  --help | --hel | -h )
8299c8a0e2f4SThomas Veerman    echo "$ac_cs_usage"; exit 0 ;;
8300c8a0e2f4SThomas Veerman  --debug | --d* | -d )
8301c8a0e2f4SThomas Veerman    debug=: ;;
8302c8a0e2f4SThomas Veerman  --file | --fil | --fi | --f )
8303c8a0e2f4SThomas Veerman    shift
8304c8a0e2f4SThomas Veerman    CONFIG_FILES="$CONFIG_FILES $1"
8305c8a0e2f4SThomas Veerman    ac_need_defaults=false;;
8306c8a0e2f4SThomas Veerman  --header | --heade | --head | --hea )
8307c8a0e2f4SThomas Veerman    shift
8308c8a0e2f4SThomas Veerman    CONFIG_HEADERS="$CONFIG_HEADERS $1"
8309c8a0e2f4SThomas Veerman    ac_need_defaults=false;;
8310c8a0e2f4SThomas Veerman
8311c8a0e2f4SThomas Veerman  # This is an error.
8312*0a6a1f1dSLionel Sambuc  -*) { { echo "$as_me:8312: error: unrecognized option: $1
8313c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&5
8314c8a0e2f4SThomas Veermanecho "$as_me: error: unrecognized option: $1
8315c8a0e2f4SThomas VeermanTry \`$0 --help' for more information." >&2;}
8316c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; } ;;
8317c8a0e2f4SThomas Veerman
8318c8a0e2f4SThomas Veerman  *) ac_config_targets="$ac_config_targets $1" ;;
8319c8a0e2f4SThomas Veerman
8320c8a0e2f4SThomas Veerman  esac
8321c8a0e2f4SThomas Veerman  shift
8322c8a0e2f4SThomas Veermandone
8323c8a0e2f4SThomas Veerman
8324c8a0e2f4SThomas Veermanexec 5>>config.log
8325c8a0e2f4SThomas Veermancat >&5 << _ACEOF
8326c8a0e2f4SThomas Veerman
8327c8a0e2f4SThomas Veerman## ----------------------- ##
8328c8a0e2f4SThomas Veerman## Running config.status.  ##
8329c8a0e2f4SThomas Veerman## ----------------------- ##
8330c8a0e2f4SThomas Veerman
8331c8a0e2f4SThomas VeermanThis file was extended by $as_me (libnbcompat noversion) 2.52, executed with
8332c8a0e2f4SThomas Veerman  CONFIG_FILES    = $CONFIG_FILES
8333c8a0e2f4SThomas Veerman  CONFIG_HEADERS  = $CONFIG_HEADERS
8334c8a0e2f4SThomas Veerman  CONFIG_LINKS    = $CONFIG_LINKS
8335c8a0e2f4SThomas Veerman  CONFIG_COMMANDS = $CONFIG_COMMANDS
8336c8a0e2f4SThomas Veerman  > $ac_cs_invocation
8337c8a0e2f4SThomas Veermanon `(hostname || uname -n) 2>/dev/null | sed 1q`
8338c8a0e2f4SThomas Veerman
8339c8a0e2f4SThomas Veerman_ACEOF
8340c8a0e2f4SThomas VeermanEOF
8341c8a0e2f4SThomas Veerman
8342c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8343c8a0e2f4SThomas Veermanfor ac_config_target in $ac_config_targets
8344c8a0e2f4SThomas Veermando
8345c8a0e2f4SThomas Veerman  case "$ac_config_target" in
8346c8a0e2f4SThomas Veerman  # Handling of arguments.
8347c8a0e2f4SThomas Veerman  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
8348c8a0e2f4SThomas Veerman  "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
8349*0a6a1f1dSLionel Sambuc  *) { { echo "$as_me:8349: error: invalid argument: $ac_config_target" >&5
8350c8a0e2f4SThomas Veermanecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
8351c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; };;
8352c8a0e2f4SThomas Veerman  esac
8353c8a0e2f4SThomas Veermandone
8354c8a0e2f4SThomas Veerman
8355c8a0e2f4SThomas Veerman# If the user did not use the arguments to specify the items to instantiate,
8356c8a0e2f4SThomas Veerman# then the envvar interface is used.  Set only those that are not.
8357c8a0e2f4SThomas Veerman# We use the long form for the default assignment because of an extremely
8358c8a0e2f4SThomas Veerman# bizarre bug on SunOS 4.1.3.
8359c8a0e2f4SThomas Veermanif $ac_need_defaults; then
8360c8a0e2f4SThomas Veerman  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8361c8a0e2f4SThomas Veerman  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8362c8a0e2f4SThomas Veermanfi
8363c8a0e2f4SThomas Veerman
8364c8a0e2f4SThomas Veerman# Create a temporary directory, and hook for its removal unless debugging.
8365c8a0e2f4SThomas Veerman$debug ||
8366c8a0e2f4SThomas Veerman{
8367c8a0e2f4SThomas Veerman  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8368c8a0e2f4SThomas Veerman  trap '{ (exit 1); exit 1; }' 1 2 13 15
8369c8a0e2f4SThomas Veerman}
8370c8a0e2f4SThomas Veerman
8371c8a0e2f4SThomas Veerman# Create a (secure) tmp directory for tmp files.
8372c8a0e2f4SThomas Veerman: ${TMPDIR=/tmp}
8373c8a0e2f4SThomas Veerman{
8374c8a0e2f4SThomas Veerman  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8375c8a0e2f4SThomas Veerman  test -n "$tmp" && test -d "$tmp"
8376c8a0e2f4SThomas Veerman}  ||
8377c8a0e2f4SThomas Veerman{
8378c8a0e2f4SThomas Veerman  tmp=$TMPDIR/cs$$-$RANDOM
8379c8a0e2f4SThomas Veerman  (umask 077 && mkdir $tmp)
8380c8a0e2f4SThomas Veerman} ||
8381c8a0e2f4SThomas Veerman{
8382c8a0e2f4SThomas Veerman   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8383c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }
8384c8a0e2f4SThomas Veerman}
8385c8a0e2f4SThomas Veerman
8386c8a0e2f4SThomas VeermanEOF
8387c8a0e2f4SThomas Veerman
8388c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
8389c8a0e2f4SThomas Veerman
8390c8a0e2f4SThomas Veerman#
8391c8a0e2f4SThomas Veerman# CONFIG_FILES section.
8392c8a0e2f4SThomas Veerman#
8393c8a0e2f4SThomas Veerman
8394c8a0e2f4SThomas Veerman# No need to generate the scripts if there are no CONFIG_FILES.
8395c8a0e2f4SThomas Veerman# This happens for instance when ./config.status config.h
8396c8a0e2f4SThomas Veermanif test -n "\$CONFIG_FILES"; then
8397c8a0e2f4SThomas Veerman  # Protect against being on the right side of a sed subst in config.status.
8398c8a0e2f4SThomas Veerman  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8399c8a0e2f4SThomas Veerman   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8400c8a0e2f4SThomas Veermans,@SHELL@,$SHELL,;t t
8401c8a0e2f4SThomas Veermans,@exec_prefix@,$exec_prefix,;t t
8402c8a0e2f4SThomas Veermans,@prefix@,$prefix,;t t
8403c8a0e2f4SThomas Veermans,@program_transform_name@,$program_transform_name,;t t
8404c8a0e2f4SThomas Veermans,@bindir@,$bindir,;t t
8405c8a0e2f4SThomas Veermans,@sbindir@,$sbindir,;t t
8406c8a0e2f4SThomas Veermans,@libexecdir@,$libexecdir,;t t
8407c8a0e2f4SThomas Veermans,@datadir@,$datadir,;t t
8408c8a0e2f4SThomas Veermans,@sysconfdir@,$sysconfdir,;t t
8409c8a0e2f4SThomas Veermans,@sharedstatedir@,$sharedstatedir,;t t
8410c8a0e2f4SThomas Veermans,@localstatedir@,$localstatedir,;t t
8411c8a0e2f4SThomas Veermans,@libdir@,$libdir,;t t
8412c8a0e2f4SThomas Veermans,@includedir@,$includedir,;t t
8413c8a0e2f4SThomas Veermans,@oldincludedir@,$oldincludedir,;t t
8414c8a0e2f4SThomas Veermans,@infodir@,$infodir,;t t
8415c8a0e2f4SThomas Veermans,@mandir@,$mandir,;t t
8416c8a0e2f4SThomas Veermans,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8417c8a0e2f4SThomas Veermans,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8418c8a0e2f4SThomas Veermans,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8419c8a0e2f4SThomas Veermans,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8420c8a0e2f4SThomas Veermans,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8421c8a0e2f4SThomas Veermans,@build_alias@,$build_alias,;t t
8422c8a0e2f4SThomas Veermans,@host_alias@,$host_alias,;t t
8423c8a0e2f4SThomas Veermans,@target_alias@,$target_alias,;t t
8424c8a0e2f4SThomas Veermans,@ECHO_C@,$ECHO_C,;t t
8425c8a0e2f4SThomas Veermans,@ECHO_N@,$ECHO_N,;t t
8426c8a0e2f4SThomas Veermans,@ECHO_T@,$ECHO_T,;t t
8427c8a0e2f4SThomas Veermans,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8428c8a0e2f4SThomas Veermans,@DEFS@,$DEFS,;t t
8429c8a0e2f4SThomas Veermans,@LIBS@,$LIBS,;t t
8430c8a0e2f4SThomas Veermans,@CC@,$CC,;t t
8431c8a0e2f4SThomas Veermans,@CFLAGS@,$CFLAGS,;t t
8432c8a0e2f4SThomas Veermans,@LDFLAGS@,$LDFLAGS,;t t
8433c8a0e2f4SThomas Veermans,@CPPFLAGS@,$CPPFLAGS,;t t
8434c8a0e2f4SThomas Veermans,@ac_ct_CC@,$ac_ct_CC,;t t
8435c8a0e2f4SThomas Veermans,@EXEEXT@,$EXEEXT,;t t
8436c8a0e2f4SThomas Veermans,@OBJEXT@,$OBJEXT,;t t
8437c8a0e2f4SThomas Veermans,@CPP@,$CPP,;t t
8438c8a0e2f4SThomas Veermans,@BSHELL@,$BSHELL,;t t
8439c8a0e2f4SThomas Veermans,@ALLOCA@,$ALLOCA,;t t
8440c8a0e2f4SThomas Veermans,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t
8441c8a0e2f4SThomas VeermanCEOF
8442c8a0e2f4SThomas Veerman
8443c8a0e2f4SThomas VeermanEOF
8444c8a0e2f4SThomas Veerman
8445c8a0e2f4SThomas Veerman  cat >>$CONFIG_STATUS <<\EOF
8446c8a0e2f4SThomas Veerman  # Split the substitutions into bite-sized pieces for seds with
8447c8a0e2f4SThomas Veerman  # small command number limits, like on Digital OSF/1 and HP-UX.
8448c8a0e2f4SThomas Veerman  ac_max_sed_lines=48
8449c8a0e2f4SThomas Veerman  ac_sed_frag=1 # Number of current file.
8450c8a0e2f4SThomas Veerman  ac_beg=1 # First line for current file.
8451c8a0e2f4SThomas Veerman  ac_end=$ac_max_sed_lines # Line after last line for current file.
8452c8a0e2f4SThomas Veerman  ac_more_lines=:
8453c8a0e2f4SThomas Veerman  ac_sed_cmds=
8454c8a0e2f4SThomas Veerman  while $ac_more_lines; do
8455c8a0e2f4SThomas Veerman    if test $ac_beg -gt 1; then
8456c8a0e2f4SThomas Veerman      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8457c8a0e2f4SThomas Veerman    else
8458c8a0e2f4SThomas Veerman      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8459c8a0e2f4SThomas Veerman    fi
8460c8a0e2f4SThomas Veerman    if test ! -s $tmp/subs.frag; then
8461c8a0e2f4SThomas Veerman      ac_more_lines=false
8462c8a0e2f4SThomas Veerman    else
8463c8a0e2f4SThomas Veerman      # The purpose of the label and of the branching condition is to
8464c8a0e2f4SThomas Veerman      # speed up the sed processing (if there are no `@' at all, there
8465c8a0e2f4SThomas Veerman      # is no need to browse any of the substitutions).
8466c8a0e2f4SThomas Veerman      # These are the two extra sed commands mentioned above.
8467c8a0e2f4SThomas Veerman      (echo ':t
8468c8a0e2f4SThomas Veerman  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8469c8a0e2f4SThomas Veerman      if test -z "$ac_sed_cmds"; then
8470c8a0e2f4SThomas Veerman  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8471c8a0e2f4SThomas Veerman      else
8472c8a0e2f4SThomas Veerman  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8473c8a0e2f4SThomas Veerman      fi
8474c8a0e2f4SThomas Veerman      ac_sed_frag=`expr $ac_sed_frag + 1`
8475c8a0e2f4SThomas Veerman      ac_beg=$ac_end
8476c8a0e2f4SThomas Veerman      ac_end=`expr $ac_end + $ac_max_sed_lines`
8477c8a0e2f4SThomas Veerman    fi
8478c8a0e2f4SThomas Veerman  done
8479c8a0e2f4SThomas Veerman  if test -z "$ac_sed_cmds"; then
8480c8a0e2f4SThomas Veerman    ac_sed_cmds=cat
8481c8a0e2f4SThomas Veerman  fi
8482c8a0e2f4SThomas Veermanfi # test -n "$CONFIG_FILES"
8483c8a0e2f4SThomas Veerman
8484c8a0e2f4SThomas VeermanEOF
8485c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8486c8a0e2f4SThomas Veermanfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8487c8a0e2f4SThomas Veerman  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8488c8a0e2f4SThomas Veerman  case $ac_file in
8489c8a0e2f4SThomas Veerman  - | *:- | *:-:* ) # input from stdin
8490c8a0e2f4SThomas Veerman        cat >$tmp/stdin
8491c8a0e2f4SThomas Veerman        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8492c8a0e2f4SThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8493c8a0e2f4SThomas Veerman  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8494c8a0e2f4SThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8495c8a0e2f4SThomas Veerman  * )   ac_file_in=$ac_file.in ;;
8496c8a0e2f4SThomas Veerman  esac
8497c8a0e2f4SThomas Veerman
8498c8a0e2f4SThomas Veerman  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8499c8a0e2f4SThomas Veerman  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8500c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(//\)[^/]' \| \
8501c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(//\)$' \| \
8502c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(/\)' \| \
8503c8a0e2f4SThomas Veerman         .     : '\(.\)' 2>/dev/null ||
8504c8a0e2f4SThomas Veermanecho X"$ac_file" |
8505c8a0e2f4SThomas Veerman    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8506c8a0e2f4SThomas Veerman  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8507c8a0e2f4SThomas Veerman  	  /^X\(\/\/\)$/{ s//\1/; q; }
8508c8a0e2f4SThomas Veerman  	  /^X\(\/\).*/{ s//\1/; q; }
8509c8a0e2f4SThomas Veerman  	  s/.*/./; q'`
8510c8a0e2f4SThomas Veerman  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8511c8a0e2f4SThomas Veerman    { case "$ac_dir" in
8512c8a0e2f4SThomas Veerman  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8513c8a0e2f4SThomas Veerman  *)                      as_incr_dir=.;;
8514c8a0e2f4SThomas Veermanesac
8515c8a0e2f4SThomas Veermanas_dummy="$ac_dir"
8516c8a0e2f4SThomas Veermanfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8517c8a0e2f4SThomas Veerman  case $as_mkdir_dir in
8518c8a0e2f4SThomas Veerman    # Skip DOS drivespec
8519c8a0e2f4SThomas Veerman    ?:) as_incr_dir=$as_mkdir_dir ;;
8520c8a0e2f4SThomas Veerman    *)
8521c8a0e2f4SThomas Veerman      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8522c8a0e2f4SThomas Veerman      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8523c8a0e2f4SThomas Veerman    ;;
8524c8a0e2f4SThomas Veerman  esac
8525c8a0e2f4SThomas Veermandone; }
8526c8a0e2f4SThomas Veerman
8527c8a0e2f4SThomas Veerman    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8528c8a0e2f4SThomas Veerman    # A "../" for each directory in $ac_dir_suffix.
8529c8a0e2f4SThomas Veerman    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8530c8a0e2f4SThomas Veerman  else
8531c8a0e2f4SThomas Veerman    ac_dir_suffix= ac_dots=
8532c8a0e2f4SThomas Veerman  fi
8533c8a0e2f4SThomas Veerman
8534c8a0e2f4SThomas Veerman  case $srcdir in
8535c8a0e2f4SThomas Veerman  .)  ac_srcdir=.
8536c8a0e2f4SThomas Veerman      if test -z "$ac_dots"; then
8537c8a0e2f4SThomas Veerman         ac_top_srcdir=.
8538c8a0e2f4SThomas Veerman      else
8539c8a0e2f4SThomas Veerman         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8540c8a0e2f4SThomas Veerman      fi ;;
8541c8a0e2f4SThomas Veerman  [\\/]* | ?:[\\/]* )
8542c8a0e2f4SThomas Veerman      ac_srcdir=$srcdir$ac_dir_suffix;
8543c8a0e2f4SThomas Veerman      ac_top_srcdir=$srcdir ;;
8544c8a0e2f4SThomas Veerman  *) # Relative path.
8545c8a0e2f4SThomas Veerman    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8546c8a0e2f4SThomas Veerman    ac_top_srcdir=$ac_dots$srcdir ;;
8547c8a0e2f4SThomas Veerman  esac
8548c8a0e2f4SThomas Veerman
8549c8a0e2f4SThomas Veerman  if test x"$ac_file" != x-; then
8550*0a6a1f1dSLionel Sambuc    { echo "$as_me:8550: creating $ac_file" >&5
8551c8a0e2f4SThomas Veermanecho "$as_me: creating $ac_file" >&6;}
8552c8a0e2f4SThomas Veerman    rm -f "$ac_file"
8553c8a0e2f4SThomas Veerman  fi
8554c8a0e2f4SThomas Veerman  # Let's still pretend it is `configure' which instantiates (i.e., don't
8555c8a0e2f4SThomas Veerman  # use $as_me), people would be surprised to read:
8556c8a0e2f4SThomas Veerman  #    /* config.h.  Generated automatically by config.status.  */
8557c8a0e2f4SThomas Veerman  configure_input="Generated automatically from `echo $ac_file_in |
8558c8a0e2f4SThomas Veerman                                                 sed 's,.*/,,'` by configure."
8559c8a0e2f4SThomas Veerman
8560c8a0e2f4SThomas Veerman  # First look for the input files in the build tree, otherwise in the
8561c8a0e2f4SThomas Veerman  # src tree.
8562c8a0e2f4SThomas Veerman  ac_file_inputs=`IFS=:
8563c8a0e2f4SThomas Veerman    for f in $ac_file_in; do
8564c8a0e2f4SThomas Veerman      case $f in
8565c8a0e2f4SThomas Veerman      -) echo $tmp/stdin ;;
8566c8a0e2f4SThomas Veerman      [\\/$]*)
8567c8a0e2f4SThomas Veerman         # Absolute (can't be DOS-style, as IFS=:)
8568*0a6a1f1dSLionel Sambuc         test -f "$f" || { { echo "$as_me:8568: error: cannot find input file: $f" >&5
8569c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
8570c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
8571c8a0e2f4SThomas Veerman         echo $f;;
8572c8a0e2f4SThomas Veerman      *) # Relative
8573c8a0e2f4SThomas Veerman         if test -f "$f"; then
8574c8a0e2f4SThomas Veerman           # Build tree
8575c8a0e2f4SThomas Veerman           echo $f
8576c8a0e2f4SThomas Veerman         elif test -f "$srcdir/$f"; then
8577c8a0e2f4SThomas Veerman           # Source tree
8578c8a0e2f4SThomas Veerman           echo $srcdir/$f
8579c8a0e2f4SThomas Veerman         else
8580c8a0e2f4SThomas Veerman           # /dev/null tree
8581*0a6a1f1dSLionel Sambuc           { { echo "$as_me:8581: error: cannot find input file: $f" >&5
8582c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
8583c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
8584c8a0e2f4SThomas Veerman         fi;;
8585c8a0e2f4SThomas Veerman      esac
8586c8a0e2f4SThomas Veerman    done` || { (exit 1); exit 1; }
8587c8a0e2f4SThomas VeermanEOF
8588c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<EOF
8589c8a0e2f4SThomas Veerman  sed "$ac_vpsub
8590c8a0e2f4SThomas Veerman$extrasub
8591c8a0e2f4SThomas VeermanEOF
8592c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8593c8a0e2f4SThomas Veerman:t
8594c8a0e2f4SThomas Veerman/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8595c8a0e2f4SThomas Veermans,@configure_input@,$configure_input,;t t
8596c8a0e2f4SThomas Veermans,@srcdir@,$ac_srcdir,;t t
8597c8a0e2f4SThomas Veermans,@top_srcdir@,$ac_top_srcdir,;t t
8598c8a0e2f4SThomas Veerman" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8599c8a0e2f4SThomas Veerman  rm -f $tmp/stdin
8600c8a0e2f4SThomas Veerman  if test x"$ac_file" != x-; then
8601c8a0e2f4SThomas Veerman    mv $tmp/out $ac_file
8602c8a0e2f4SThomas Veerman  else
8603c8a0e2f4SThomas Veerman    cat $tmp/out
8604c8a0e2f4SThomas Veerman    rm -f $tmp/out
8605c8a0e2f4SThomas Veerman  fi
8606c8a0e2f4SThomas Veerman
8607c8a0e2f4SThomas Veermandone
8608c8a0e2f4SThomas VeermanEOF
8609c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8610c8a0e2f4SThomas Veerman
8611c8a0e2f4SThomas Veerman#
8612c8a0e2f4SThomas Veerman# CONFIG_HEADER section.
8613c8a0e2f4SThomas Veerman#
8614c8a0e2f4SThomas Veerman
8615c8a0e2f4SThomas Veerman# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8616c8a0e2f4SThomas Veerman# NAME is the cpp macro being defined and VALUE is the value it is being given.
8617c8a0e2f4SThomas Veerman#
8618c8a0e2f4SThomas Veerman# ac_d sets the value in "#define NAME VALUE" lines.
8619c8a0e2f4SThomas Veermanac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
8620c8a0e2f4SThomas Veermanac_dB='[ 	].*$,\1#\2'
8621c8a0e2f4SThomas Veermanac_dC=' '
8622c8a0e2f4SThomas Veermanac_dD=',;t'
8623c8a0e2f4SThomas Veerman# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8624c8a0e2f4SThomas Veermanac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
8625c8a0e2f4SThomas Veermanac_uB='$,\1#\2define\3'
8626c8a0e2f4SThomas Veermanac_uC=' '
8627c8a0e2f4SThomas Veermanac_uD=',;t'
8628c8a0e2f4SThomas Veerman
8629c8a0e2f4SThomas Veermanfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8630c8a0e2f4SThomas Veerman  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8631c8a0e2f4SThomas Veerman  case $ac_file in
8632c8a0e2f4SThomas Veerman  - | *:- | *:-:* ) # input from stdin
8633c8a0e2f4SThomas Veerman        cat >$tmp/stdin
8634c8a0e2f4SThomas Veerman        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8635c8a0e2f4SThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8636c8a0e2f4SThomas Veerman  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8637c8a0e2f4SThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8638c8a0e2f4SThomas Veerman  * )   ac_file_in=$ac_file.in ;;
8639c8a0e2f4SThomas Veerman  esac
8640c8a0e2f4SThomas Veerman
8641*0a6a1f1dSLionel Sambuc  test x"$ac_file" != x- && { echo "$as_me:8641: creating $ac_file" >&5
8642c8a0e2f4SThomas Veermanecho "$as_me: creating $ac_file" >&6;}
8643c8a0e2f4SThomas Veerman
8644c8a0e2f4SThomas Veerman  # First look for the input files in the build tree, otherwise in the
8645c8a0e2f4SThomas Veerman  # src tree.
8646c8a0e2f4SThomas Veerman  ac_file_inputs=`IFS=:
8647c8a0e2f4SThomas Veerman    for f in $ac_file_in; do
8648c8a0e2f4SThomas Veerman      case $f in
8649c8a0e2f4SThomas Veerman      -) echo $tmp/stdin ;;
8650c8a0e2f4SThomas Veerman      [\\/$]*)
8651c8a0e2f4SThomas Veerman         # Absolute (can't be DOS-style, as IFS=:)
8652*0a6a1f1dSLionel Sambuc         test -f "$f" || { { echo "$as_me:8652: error: cannot find input file: $f" >&5
8653c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
8654c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
8655c8a0e2f4SThomas Veerman         echo $f;;
8656c8a0e2f4SThomas Veerman      *) # Relative
8657c8a0e2f4SThomas Veerman         if test -f "$f"; then
8658c8a0e2f4SThomas Veerman           # Build tree
8659c8a0e2f4SThomas Veerman           echo $f
8660c8a0e2f4SThomas Veerman         elif test -f "$srcdir/$f"; then
8661c8a0e2f4SThomas Veerman           # Source tree
8662c8a0e2f4SThomas Veerman           echo $srcdir/$f
8663c8a0e2f4SThomas Veerman         else
8664c8a0e2f4SThomas Veerman           # /dev/null tree
8665*0a6a1f1dSLionel Sambuc           { { echo "$as_me:8665: error: cannot find input file: $f" >&5
8666c8a0e2f4SThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
8667c8a0e2f4SThomas Veerman   { (exit 1); exit 1; }; }
8668c8a0e2f4SThomas Veerman         fi;;
8669c8a0e2f4SThomas Veerman      esac
8670c8a0e2f4SThomas Veerman    done` || { (exit 1); exit 1; }
8671c8a0e2f4SThomas Veerman  # Remove the trailing spaces.
8672c8a0e2f4SThomas Veerman  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
8673c8a0e2f4SThomas Veerman
8674c8a0e2f4SThomas VeermanEOF
8675c8a0e2f4SThomas Veerman
8676c8a0e2f4SThomas Veerman# Transform confdefs.h into two sed scripts, `conftest.defines' and
8677c8a0e2f4SThomas Veerman# `conftest.undefs', that substitutes the proper values into
8678c8a0e2f4SThomas Veerman# config.h.in to produce config.h.  The first handles `#define'
8679c8a0e2f4SThomas Veerman# templates, and the second `#undef' templates.
8680c8a0e2f4SThomas Veerman# And first: Protect against being on the right side of a sed subst in
8681c8a0e2f4SThomas Veerman# config.status.  Protect against being in an unquoted here document
8682c8a0e2f4SThomas Veerman# in config.status.
8683c8a0e2f4SThomas Veermanrm -f conftest.defines conftest.undefs
8684c8a0e2f4SThomas Veerman# Using a here document instead of a string reduces the quoting nightmare.
8685c8a0e2f4SThomas Veerman# Putting comments in sed scripts is not portable.
8686c8a0e2f4SThomas Veerman#
8687c8a0e2f4SThomas Veerman# `end' is used to avoid that the second main sed command (meant for
8688c8a0e2f4SThomas Veerman# 0-ary CPP macros) applies to n-ary macro definitions.
8689c8a0e2f4SThomas Veerman# See the Autoconf documentation for `clear'.
8690c8a0e2f4SThomas Veermancat >confdef2sed.sed <<\EOF
8691c8a0e2f4SThomas Veermans/[\\&,]/\\&/g
8692c8a0e2f4SThomas Veermans,[\\$`],\\&,g
8693c8a0e2f4SThomas Veermant clear
8694c8a0e2f4SThomas Veerman: clear
8695c8a0e2f4SThomas Veermans,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8696c8a0e2f4SThomas Veermant end
8697c8a0e2f4SThomas Veermans,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8698c8a0e2f4SThomas Veerman: end
8699c8a0e2f4SThomas VeermanEOF
8700c8a0e2f4SThomas Veerman# If some macros were called several times there might be several times
8701c8a0e2f4SThomas Veerman# the same #defines, which is useless.  Nevertheless, we may not want to
8702c8a0e2f4SThomas Veerman# sort them, since we want the *last* AC-DEFINE to be honored.
8703c8a0e2f4SThomas Veermanuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8704c8a0e2f4SThomas Veermansed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8705c8a0e2f4SThomas Veermanrm -f confdef2sed.sed
8706c8a0e2f4SThomas Veerman
8707c8a0e2f4SThomas Veerman# This sed command replaces #undef with comments.  This is necessary, for
8708c8a0e2f4SThomas Veerman# example, in the case of _POSIX_SOURCE, which is predefined and required
8709c8a0e2f4SThomas Veerman# on some systems where configure will not decide to define it.
8710c8a0e2f4SThomas Veermancat >>conftest.undefs <<\EOF
8711c8a0e2f4SThomas Veermans,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8712c8a0e2f4SThomas VeermanEOF
8713c8a0e2f4SThomas Veerman
8714c8a0e2f4SThomas Veerman# Break up conftest.defines because some shells have a limit on the size
8715c8a0e2f4SThomas Veerman# of here documents, and old seds have small limits too (100 cmds).
8716c8a0e2f4SThomas Veermanecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8717c8a0e2f4SThomas Veermanecho '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8718c8a0e2f4SThomas Veermanecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8719c8a0e2f4SThomas Veermanecho '  :' >>$CONFIG_STATUS
8720c8a0e2f4SThomas Veermanrm -f conftest.tail
8721c8a0e2f4SThomas Veermanwhile grep . conftest.defines >/dev/null
8722c8a0e2f4SThomas Veermando
8723c8a0e2f4SThomas Veerman  # Write a limited-size here document to $tmp/defines.sed.
8724c8a0e2f4SThomas Veerman  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8725c8a0e2f4SThomas Veerman  # Speed up: don't consider the non `#define' lines.
8726c8a0e2f4SThomas Veerman  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
8727c8a0e2f4SThomas Veerman  # Work around the forget-to-reset-the-flag bug.
8728c8a0e2f4SThomas Veerman  echo 't clr' >>$CONFIG_STATUS
8729c8a0e2f4SThomas Veerman  echo ': clr' >>$CONFIG_STATUS
8730c8a0e2f4SThomas Veerman  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8731c8a0e2f4SThomas Veerman  echo 'CEOF
8732c8a0e2f4SThomas Veerman  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8733c8a0e2f4SThomas Veerman  rm -f $tmp/in
8734c8a0e2f4SThomas Veerman  mv $tmp/out $tmp/in
8735c8a0e2f4SThomas Veerman' >>$CONFIG_STATUS
8736c8a0e2f4SThomas Veerman  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8737c8a0e2f4SThomas Veerman  rm -f conftest.defines
8738c8a0e2f4SThomas Veerman  mv conftest.tail conftest.defines
8739c8a0e2f4SThomas Veermandone
8740c8a0e2f4SThomas Veermanrm -f conftest.defines
8741c8a0e2f4SThomas Veermanecho '  fi # egrep' >>$CONFIG_STATUS
8742c8a0e2f4SThomas Veermanecho >>$CONFIG_STATUS
8743c8a0e2f4SThomas Veerman
8744c8a0e2f4SThomas Veerman# Break up conftest.undefs because some shells have a limit on the size
8745c8a0e2f4SThomas Veerman# of here documents, and old seds have small limits too (100 cmds).
8746c8a0e2f4SThomas Veermanecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
8747c8a0e2f4SThomas Veermanrm -f conftest.tail
8748c8a0e2f4SThomas Veermanwhile grep . conftest.undefs >/dev/null
8749c8a0e2f4SThomas Veermando
8750c8a0e2f4SThomas Veerman  # Write a limited-size here document to $tmp/undefs.sed.
8751c8a0e2f4SThomas Veerman  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8752c8a0e2f4SThomas Veerman  # Speed up: don't consider the non `#undef'
8753c8a0e2f4SThomas Veerman  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
8754c8a0e2f4SThomas Veerman  # Work around the forget-to-reset-the-flag bug.
8755c8a0e2f4SThomas Veerman  echo 't clr' >>$CONFIG_STATUS
8756c8a0e2f4SThomas Veerman  echo ': clr' >>$CONFIG_STATUS
8757c8a0e2f4SThomas Veerman  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8758c8a0e2f4SThomas Veerman  echo 'CEOF
8759c8a0e2f4SThomas Veerman  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8760c8a0e2f4SThomas Veerman  rm -f $tmp/in
8761c8a0e2f4SThomas Veerman  mv $tmp/out $tmp/in
8762c8a0e2f4SThomas Veerman' >>$CONFIG_STATUS
8763c8a0e2f4SThomas Veerman  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8764c8a0e2f4SThomas Veerman  rm -f conftest.undefs
8765c8a0e2f4SThomas Veerman  mv conftest.tail conftest.undefs
8766c8a0e2f4SThomas Veermandone
8767c8a0e2f4SThomas Veermanrm -f conftest.undefs
8768c8a0e2f4SThomas Veerman
8769c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8770c8a0e2f4SThomas Veerman  # Let's still pretend it is `configure' which instantiates (i.e., don't
8771c8a0e2f4SThomas Veerman  # use $as_me), people would be surprised to read:
8772c8a0e2f4SThomas Veerman  #    /* config.h.  Generated automatically by config.status.  */
8773c8a0e2f4SThomas Veerman  if test x"$ac_file" = x-; then
8774c8a0e2f4SThomas Veerman    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8775c8a0e2f4SThomas Veerman  else
8776c8a0e2f4SThomas Veerman    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8777c8a0e2f4SThomas Veerman  fi
8778c8a0e2f4SThomas Veerman  cat $tmp/in >>$tmp/config.h
8779c8a0e2f4SThomas Veerman  rm -f $tmp/in
8780c8a0e2f4SThomas Veerman  if test x"$ac_file" != x-; then
8781c8a0e2f4SThomas Veerman    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8782*0a6a1f1dSLionel Sambuc      { echo "$as_me:8782: $ac_file is unchanged" >&5
8783c8a0e2f4SThomas Veermanecho "$as_me: $ac_file is unchanged" >&6;}
8784c8a0e2f4SThomas Veerman    else
8785c8a0e2f4SThomas Veerman      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8786c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(//\)[^/]' \| \
8787c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(//\)$' \| \
8788c8a0e2f4SThomas Veerman         X"$ac_file" : 'X\(/\)' \| \
8789c8a0e2f4SThomas Veerman         .     : '\(.\)' 2>/dev/null ||
8790c8a0e2f4SThomas Veermanecho X"$ac_file" |
8791c8a0e2f4SThomas Veerman    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8792c8a0e2f4SThomas Veerman  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8793c8a0e2f4SThomas Veerman  	  /^X\(\/\/\)$/{ s//\1/; q; }
8794c8a0e2f4SThomas Veerman  	  /^X\(\/\).*/{ s//\1/; q; }
8795c8a0e2f4SThomas Veerman  	  s/.*/./; q'`
8796c8a0e2f4SThomas Veerman      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8797c8a0e2f4SThomas Veerman        { case "$ac_dir" in
8798c8a0e2f4SThomas Veerman  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8799c8a0e2f4SThomas Veerman  *)                      as_incr_dir=.;;
8800c8a0e2f4SThomas Veermanesac
8801c8a0e2f4SThomas Veermanas_dummy="$ac_dir"
8802c8a0e2f4SThomas Veermanfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8803c8a0e2f4SThomas Veerman  case $as_mkdir_dir in
8804c8a0e2f4SThomas Veerman    # Skip DOS drivespec
8805c8a0e2f4SThomas Veerman    ?:) as_incr_dir=$as_mkdir_dir ;;
8806c8a0e2f4SThomas Veerman    *)
8807c8a0e2f4SThomas Veerman      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8808c8a0e2f4SThomas Veerman      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8809c8a0e2f4SThomas Veerman    ;;
8810c8a0e2f4SThomas Veerman  esac
8811c8a0e2f4SThomas Veermandone; }
8812c8a0e2f4SThomas Veerman
8813c8a0e2f4SThomas Veerman      fi
8814c8a0e2f4SThomas Veerman      rm -f $ac_file
8815c8a0e2f4SThomas Veerman      mv $tmp/config.h $ac_file
8816c8a0e2f4SThomas Veerman    fi
8817c8a0e2f4SThomas Veerman  else
8818c8a0e2f4SThomas Veerman    cat $tmp/config.h
8819c8a0e2f4SThomas Veerman    rm -f $tmp/config.h
8820c8a0e2f4SThomas Veerman  fi
8821c8a0e2f4SThomas Veermandone
8822c8a0e2f4SThomas VeermanEOF
8823c8a0e2f4SThomas Veerman
8824c8a0e2f4SThomas Veermancat >>$CONFIG_STATUS <<\EOF
8825c8a0e2f4SThomas Veerman
8826c8a0e2f4SThomas Veerman{ (exit 0); exit 0; }
8827c8a0e2f4SThomas VeermanEOF
8828c8a0e2f4SThomas Veermanchmod +x $CONFIG_STATUS
8829c8a0e2f4SThomas Veermanac_clean_files=$ac_clean_files_save
8830c8a0e2f4SThomas Veerman
8831c8a0e2f4SThomas Veerman# configure is writing to config.log, and then calls config.status.
8832c8a0e2f4SThomas Veerman# config.status does its own redirection, appending to config.log.
8833c8a0e2f4SThomas Veerman# Unfortunately, on DOS this fails, as config.log is still kept open
8834c8a0e2f4SThomas Veerman# by configure, so config.status won't be able to write to it; its
8835c8a0e2f4SThomas Veerman# output is simply discarded.  So we exec the FD to /dev/null,
8836c8a0e2f4SThomas Veerman# effectively closing config.log, so it can be properly (re)opened and
8837c8a0e2f4SThomas Veerman# appended to by config.status.  When coming back to configure, we
8838c8a0e2f4SThomas Veerman# need to make the FD available again.
8839c8a0e2f4SThomas Veermanif test "$no_create" != yes; then
8840c8a0e2f4SThomas Veerman  ac_cs_success=:
8841c8a0e2f4SThomas Veerman  exec 5>/dev/null
8842c8a0e2f4SThomas Veerman  $SHELL $CONFIG_STATUS || ac_cs_success=false
8843c8a0e2f4SThomas Veerman  exec 5>>config.log
8844c8a0e2f4SThomas Veerman  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8845c8a0e2f4SThomas Veerman  # would make configure fail if this is the last instruction.
8846c8a0e2f4SThomas Veerman  $ac_cs_success || { (exit 1); exit 1; }
8847c8a0e2f4SThomas Veermanfi
8848c8a0e2f4SThomas Veerman
8849