]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
692a7f9f555c34a8d055cec9210e934a2a696940
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895   --with-included-gettext use the GNU gettext library included here
896  --with-readline=DIR             specify readline library directory
897
898   --with-python=DIR       Include Python support.  DIR is the Python base
899                           install directory, default is to search through
900                           a number of common places for the Python files.
901   --with-tcp-wrappers=DIR        enable tcpwrappers support
902   --with-openssl[=DIR]
903                           Include OpenSSL support. DIR is the OpenSSL base
904   --with-working-dir=PATH        specify path of Bacula working directory
905   --with-scriptdir=PATH    specify path of Bacula scripts directory
906   --with-dump-email=EMAIL        dump email address
907   --with-job-email=EMAIL         job output email address
908   --with-smtp-host=HOST          SMTP mail host address
909   --with-pid-dir=PATH            specify location of Bacula pid files
910   --with-subsys-dir=PATH         specify location of Bacula subsys file
911   --with-baseport=PORT           specify base port address for daemons
912   --with-dir-password=PASSWORD   specify Director's password
913   --with-fd-password=PASSWORD    specify Client's password
914   --with-sd-password=PASSWORD    specify Storage daemon's password
915   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
916   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
917   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
918   --with-dir-user=USER           specify user for Director daemon
919   --with-dir-group=GROUP                 specify group for Director daemon
920   --with-sd-user=USER            specify user for Storage daemon
921   --with-sd-group=GROUP          specify group for Storage daemon
922   --with-fd-user=USER            specify user for File daemon
923   --with-fd-group=GROUP          specify group for File daemon
924   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
925   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
926                           base install directory, defaults to /usr/local/pgsql
927
928   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
929                           install directory, default is to search through
930                           a number of common places for the MySQL files.
931
932   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
933                           install directory, default is to search through
934                           a number of common places for the MySQL files.
935
936   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
937                           install directory, default is to search through
938                           a number of common places for the SQLite3 files.
939
940   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
941                           install directory, default is to search through
942                           a number of common places for the SQLite files.
943   --with-x                use the X Window System
944
945 Some influential environment variables:
946   CC          C compiler command
947   CFLAGS      C compiler flags
948   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
949               nonstandard directory <lib dir>
950   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951               headers in a nonstandard directory <include dir>
952   CXX         C++ compiler command
953   CXXFLAGS    C++ compiler flags
954   CPP         C preprocessor
955   WXCONFIG    wx-config command. On some systems, you must set it to
956               wx-config-2.6 to use wxWidgets 2.6.
957   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
958
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
961
962 _ACEOF
963 fi
964
965 if test "$ac_init_help" = "recursive"; then
966   # If there are subdirs, report their specific --help.
967   ac_popdir=`pwd`
968   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969     test -d $ac_dir || continue
970     ac_builddir=.
971
972 if test "$ac_dir" != .; then
973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974   # A "../" for each directory in $ac_dir_suffix.
975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 else
977   ac_dir_suffix= ac_top_builddir=
978 fi
979
980 case $srcdir in
981   .)  # No --srcdir option.  We are building in place.
982     ac_srcdir=.
983     if test -z "$ac_top_builddir"; then
984        ac_top_srcdir=.
985     else
986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987     fi ;;
988   [\\/]* | ?:[\\/]* )  # Absolute path.
989     ac_srcdir=$srcdir$ac_dir_suffix;
990     ac_top_srcdir=$srcdir ;;
991   *) # Relative path.
992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
994 esac
995
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
998 case `pwd` in
999 .) ac_abs_builddir="$ac_dir";;
1000 *)
1001   case "$ac_dir" in
1002   .) ac_abs_builddir=`pwd`;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *)
1010   case ${ac_top_builddir}. in
1011   .) ac_abs_top_builddir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1014   esac;;
1015 esac
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1018 *)
1019   case $ac_srcdir in
1020   .) ac_abs_srcdir=$ac_abs_builddir;;
1021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1023   esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *)
1028   case $ac_top_srcdir in
1029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032   esac;;
1033 esac
1034
1035     cd $ac_dir
1036     # Check for guested configure; otherwise get Cygnus style configure.
1037     if test -f $ac_srcdir/configure.gnu; then
1038       echo
1039       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1040     elif test -f $ac_srcdir/configure; then
1041       echo
1042       $SHELL $ac_srcdir/configure  --help=recursive
1043     elif test -f $ac_srcdir/configure.ac ||
1044            test -f $ac_srcdir/configure.in; then
1045       echo
1046       $ac_configure --help
1047     else
1048       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1049     fi
1050     cd $ac_popdir
1051   done
1052 fi
1053
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1056   cat <<\_ACEOF
1057
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1061 _ACEOF
1062   exit 0
1063 fi
1064 exec 5>config.log
1065 cat >&5 <<_ACEOF
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1068
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59.  Invocation command line was
1071
1072   $ $0 $@
1073
1074 _ACEOF
1075 {
1076 cat <<_ASUNAME
1077 ## --------- ##
1078 ## Platform. ##
1079 ## --------- ##
1080
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1089
1090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1097
1098 _ASUNAME
1099
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 for as_dir in $PATH
1102 do
1103   IFS=$as_save_IFS
1104   test -z "$as_dir" && as_dir=.
1105   echo "PATH: $as_dir"
1106 done
1107
1108 } >&5
1109
1110 cat >&5 <<_ACEOF
1111
1112
1113 ## ----------- ##
1114 ## Core tests. ##
1115 ## ----------- ##
1116
1117 _ACEOF
1118
1119
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_configure_args=
1126 ac_configure_args0=
1127 ac_configure_args1=
1128 ac_sep=
1129 ac_must_keep_next=false
1130 for ac_pass in 1 2
1131 do
1132   for ac_arg
1133   do
1134     case $ac_arg in
1135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137     | -silent | --silent | --silen | --sile | --sil)
1138       continue ;;
1139     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1141     esac
1142     case $ac_pass in
1143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144     2)
1145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146       if test $ac_must_keep_next = true; then
1147         ac_must_keep_next=false # Got value, back to normal.
1148       else
1149         case $ac_arg in
1150           *=* | --config-cache | -C | -disable-* | --disable-* \
1151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153           | -with-* | --with-* | -without-* | --without-* | --x)
1154             case "$ac_configure_args0 " in
1155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1156             esac
1157             ;;
1158           -* ) ac_must_keep_next=true ;;
1159         esac
1160       fi
1161       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162       # Get rid of the leading space.
1163       ac_sep=" "
1164       ;;
1165     esac
1166   done
1167 done
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log.  We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177   # Save into config.log some information that might help in debugging.
1178   {
1179     echo
1180
1181     cat <<\_ASBOX
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1185 _ASBOX
1186     echo
1187     # The following way of writing the cache mishandles newlines in values,
1188 {
1189   (set) 2>&1 |
1190     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1191     *ac_space=\ *)
1192       sed -n \
1193         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195       ;;
1196     *)
1197       sed -n \
1198         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199       ;;
1200     esac;
1201 }
1202     echo
1203
1204     cat <<\_ASBOX
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1208 _ASBOX
1209     echo
1210     for ac_var in $ac_subst_vars
1211     do
1212       eval ac_val=$`echo $ac_var`
1213       echo "$ac_var='"'"'$ac_val'"'"'"
1214     done | sort
1215     echo
1216
1217     if test -n "$ac_subst_files"; then
1218       cat <<\_ASBOX
1219 ## ------------- ##
1220 ## Output files. ##
1221 ## ------------- ##
1222 _ASBOX
1223       echo
1224       for ac_var in $ac_subst_files
1225       do
1226         eval ac_val=$`echo $ac_var`
1227         echo "$ac_var='"'"'$ac_val'"'"'"
1228       done | sort
1229       echo
1230     fi
1231
1232     if test -s confdefs.h; then
1233       cat <<\_ASBOX
1234 ## ----------- ##
1235 ## confdefs.h. ##
1236 ## ----------- ##
1237 _ASBOX
1238       echo
1239       sed "/^$/d" confdefs.h | sort
1240       echo
1241     fi
1242     test "$ac_signal" != 0 &&
1243       echo "$as_me: caught signal $ac_signal"
1244     echo "$as_me: exit $exit_status"
1245   } >&5
1246   rm -f core *.core &&
1247   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1248     exit $exit_status
1249      ' 0
1250 for ac_signal in 1 2 13 15; do
1251   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 done
1253 ac_signal=0
1254
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1258 echo >confdefs.h
1259
1260 # Predefined preprocessor variables.
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 _ACEOF
1285
1286
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290   if test "x$prefix" != xNONE; then
1291     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292   else
1293     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1294   fi
1295 fi
1296 for ac_site_file in $CONFIG_SITE; do
1297   if test -r "$ac_site_file"; then
1298     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300     sed 's/^/| /' "$ac_site_file" >&5
1301     . "$ac_site_file"
1302   fi
1303 done
1304
1305 if test -r "$cache_file"; then
1306   # Some versions of bash will fail to source /dev/null (special
1307   # files actually), so we avoid doing that.
1308   if test -f "$cache_file"; then
1309     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1311     case $cache_file in
1312       [\\/]* | ?:[\\/]* ) . $cache_file;;
1313       *)                      . ./$cache_file;;
1314     esac
1315   fi
1316 else
1317   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1319   >$cache_file
1320 fi
1321
1322 # Check that the precious variables saved in the cache have kept the same
1323 # value.
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328   eval ac_new_set=\$ac_env_${ac_var}_set
1329   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330   eval ac_new_val="\$ac_env_${ac_var}_value"
1331   case $ac_old_set,$ac_new_set in
1332     set,)
1333       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335       ac_cache_corrupted=: ;;
1336     ,set)
1337       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339       ac_cache_corrupted=: ;;
1340     ,);;
1341     *)
1342       if test "x$ac_old_val" != "x$ac_new_val"; then
1343         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1346 echo "$as_me:   former value:  $ac_old_val" >&2;}
1347         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1348 echo "$as_me:   current value: $ac_new_val" >&2;}
1349         ac_cache_corrupted=:
1350       fi;;
1351   esac
1352   # Pass precious variables to config.status.
1353   if test "$ac_new_set" = set; then
1354     case $ac_new_val in
1355     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357     *) ac_arg=$ac_var=$ac_new_val ;;
1358     esac
1359     case " $ac_configure_args " in
1360       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1361       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362     esac
1363   fi
1364 done
1365 if $ac_cache_corrupted; then
1366   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372
1373 ac_ext=c
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 BUILD_DIR=`pwd`
1398 cd ..
1399 TOP_DIR=`pwd`
1400 cd ${BUILD_DIR}
1401
1402 ac_aux_dir=
1403 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1404   if test -f $ac_dir/install-sh; then
1405     ac_aux_dir=$ac_dir
1406     ac_install_sh="$ac_aux_dir/install-sh -c"
1407     break
1408   elif test -f $ac_dir/install.sh; then
1409     ac_aux_dir=$ac_dir
1410     ac_install_sh="$ac_aux_dir/install.sh -c"
1411     break
1412   elif test -f $ac_dir/shtool; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/shtool install -c"
1415     break
1416   fi
1417 done
1418 if test -z "$ac_aux_dir"; then
1419   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1421    { (exit 1); exit 1; }; }
1422 fi
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426
1427           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1428
1429
1430
1431
1432
1433 for ac_prog in true
1434 do
1435   # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy $ac_prog; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   case $TRUEPRG in
1443   [\\/]* | ?:[\\/]*)
1444   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1445   ;;
1446   *)
1447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450   IFS=$as_save_IFS
1451   test -z "$as_dir" && as_dir=.
1452   for ac_exec_ext in '' $ac_executable_extensions; do
1453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456     break 2
1457   fi
1458 done
1459 done
1460
1461   ;;
1462 esac
1463 fi
1464 TRUEPRG=$ac_cv_path_TRUEPRG
1465
1466 if test -n "$TRUEPRG"; then
1467   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1468 echo "${ECHO_T}$TRUEPRG" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474   test -n "$TRUEPRG" && break
1475 done
1476 test -n "$TRUEPRG" || TRUEPRG=":"
1477
1478 for ac_prog in false
1479 do
1480   # Extract the first word of "$ac_prog", so it can be a program name with args.
1481 set dummy $ac_prog; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   case $FALSEPRG in
1488   [\\/]* | ?:[\\/]*)
1489   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1490   ;;
1491   *)
1492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1494 do
1495   IFS=$as_save_IFS
1496   test -z "$as_dir" && as_dir=.
1497   for ac_exec_ext in '' $ac_executable_extensions; do
1498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501     break 2
1502   fi
1503 done
1504 done
1505
1506   ;;
1507 esac
1508 fi
1509 FALSEPRG=$ac_cv_path_FALSEPRG
1510
1511 if test -n "$FALSEPRG"; then
1512   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1513 echo "${ECHO_T}$FALSEPRG" >&6
1514 else
1515   echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 fi
1518
1519   test -n "$FALSEPRG" && break
1520 done
1521 test -n "$FALSEPRG" || FALSEPRG=":"
1522
1523
1524 #AC_CANONICAL_HOST
1525
1526 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 echo "configuring for bacula $VERSION ($DATE)"
1530
1531
1532
1533 ac_ext=c
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538 if test -n "$ac_tool_prefix"; then
1539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$CC"; then
1547   ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 CC=$ac_cv_prog_CC
1566 if test -n "$CC"; then
1567   echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 fi
1575 if test -z "$ac_cv_prog_CC"; then
1576   ac_ct_CC=$CC
1577   # Extract the first word of "gcc", so it can be a program name with args.
1578 set dummy gcc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   if test -n "$ac_ct_CC"; then
1585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   for ac_exec_ext in '' $ac_executable_extensions; do
1593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594     ac_cv_prog_ac_ct_CC="gcc"
1595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596     break 2
1597   fi
1598 done
1599 done
1600
1601 fi
1602 fi
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1607 else
1608   echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612   CC=$ac_ct_CC
1613 else
1614   CC="$ac_cv_prog_CC"
1615 fi
1616
1617 if test -z "$CC"; then
1618   if test -n "$ac_tool_prefix"; then
1619   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1620 set dummy ${ac_tool_prefix}cc; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   if test -n "$CC"; then
1627   ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   for ac_exec_ext in '' $ac_executable_extensions; do
1635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636     ac_cv_prog_CC="${ac_tool_prefix}cc"
1637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638     break 2
1639   fi
1640 done
1641 done
1642
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647   echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650   echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 fi
1655 if test -z "$ac_cv_prog_CC"; then
1656   ac_ct_CC=$CC
1657   # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   if test -n "$ac_ct_CC"; then
1665   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670   IFS=$as_save_IFS
1671   test -z "$as_dir" && as_dir=.
1672   for ac_exec_ext in '' $ac_executable_extensions; do
1673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674     ac_cv_prog_ac_ct_CC="cc"
1675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676     break 2
1677   fi
1678 done
1679 done
1680
1681 fi
1682 fi
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1687 else
1688   echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1690 fi
1691
1692   CC=$ac_ct_CC
1693 else
1694   CC="$ac_cv_prog_CC"
1695 fi
1696
1697 fi
1698 if test -z "$CC"; then
1699   # Extract the first word of "cc", so it can be a program name with args.
1700 set dummy cc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$CC"; then
1707   ac_cv_prog_CC="$CC" # Let the user override the test.
1708 else
1709   ac_prog_rejected=no
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   for ac_exec_ext in '' $ac_executable_extensions; do
1716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1718        ac_prog_rejected=yes
1719        continue
1720      fi
1721     ac_cv_prog_CC="cc"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728 if test $ac_prog_rejected = yes; then
1729   # We found a bogon in the path, so make sure we never use it.
1730   set dummy $ac_cv_prog_CC
1731   shift
1732   if test $# != 0; then
1733     # We chose a different compiler from the bogus one.
1734     # However, it has the same basename, so the bogon will be chosen
1735     # first if we set CC to just the basename; use the full file name.
1736     shift
1737     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1738   fi
1739 fi
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$CC"; then
1753   if test -n "$ac_tool_prefix"; then
1754   for ac_prog in cl
1755   do
1756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   if test -n "$CC"; then
1764   ac_cv_prog_CC="$CC" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   for ac_exec_ext in '' $ac_executable_extensions; do
1772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775     break 2
1776   fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 CC=$ac_cv_prog_CC
1783 if test -n "$CC"; then
1784   echo "$as_me:$LINENO: result: $CC" >&5
1785 echo "${ECHO_T}$CC" >&6
1786 else
1787   echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791     test -n "$CC" && break
1792   done
1793 fi
1794 if test -z "$CC"; then
1795   ac_ct_CC=$CC
1796   for ac_prog in cl
1797 do
1798   # Extract the first word of "$ac_prog", so it can be a program name with args.
1799 set dummy $ac_prog; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   if test -n "$ac_ct_CC"; then
1806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813   for ac_exec_ext in '' $ac_executable_extensions; do
1814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815     ac_cv_prog_ac_ct_CC="$ac_prog"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821
1822 fi
1823 fi
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1828 else
1829   echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1831 fi
1832
1833   test -n "$ac_ct_CC" && break
1834 done
1835
1836   CC=$ac_ct_CC
1837 fi
1838
1839 fi
1840
1841
1842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: no acceptable C compiler found in \$PATH
1845 See \`config.log' for more details." >&2;}
1846    { (exit 1); exit 1; }; }
1847
1848 # Provide some information about the compiler.
1849 echo "$as_me:$LINENO:" \
1850      "checking for C compiler version" >&5
1851 ac_compiler=`set X $ac_compile; echo $2`
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1853   (eval $ac_compiler --version </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1858   (eval $ac_compiler -v </dev/null >&5) 2>&5
1859   ac_status=$?
1860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861   (exit $ac_status); }
1862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1863   (eval $ac_compiler -V </dev/null >&5) 2>&5
1864   ac_status=$?
1865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866   (exit $ac_status); }
1867
1868 cat >conftest.$ac_ext <<_ACEOF
1869 /* confdefs.h.  */
1870 _ACEOF
1871 cat confdefs.h >>conftest.$ac_ext
1872 cat >>conftest.$ac_ext <<_ACEOF
1873 /* end confdefs.h.  */
1874
1875 int
1876 main ()
1877 {
1878
1879   ;
1880   return 0;
1881 }
1882 _ACEOF
1883 ac_clean_files_save=$ac_clean_files
1884 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1885 # Try to create an executable without -o first, disregard a.out.
1886 # It will help us diagnose broken compilers, and finding out an intuition
1887 # of exeext.
1888 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1889 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1891 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1892   (eval $ac_link_default) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; then
1896   # Find the output, starting from the most likely.  This scheme is
1897 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1898 # resort.
1899
1900 # Be careful to initialize this variable, since it used to be cached.
1901 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902 ac_cv_exeext=
1903 # b.out is created by i960 compilers.
1904 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905 do
1906   test -f "$ac_file" || continue
1907   case $ac_file in
1908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1909         ;;
1910     conftest.$ac_ext )
1911         # This is the source file.
1912         ;;
1913     [ab].out )
1914         # We found the default executable, but exeext='' is most
1915         # certainly right.
1916         break;;
1917     *.* )
1918         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919         # FIXME: I believe we export ac_cv_exeext for Libtool,
1920         # but it would be cool to find out if it's true.  Does anybody
1921         # maintain Libtool? --akim.
1922         export ac_cv_exeext
1923         break;;
1924     * )
1925         break;;
1926   esac
1927 done
1928 else
1929   echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: C compiler cannot create executables
1935 See \`config.log' for more details." >&2;}
1936    { (exit 77); exit 77; }; }
1937 fi
1938
1939 ac_exeext=$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_file" >&5
1941 echo "${ECHO_T}$ac_file" >&6
1942
1943 # Check the compiler produces executables we can run.  If not, either
1944 # the compiler is broken, or we cross compile.
1945 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1946 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1947 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1948 # If not cross compiling, check that we can run a simple program.
1949 if test "$cross_compiling" != yes; then
1950   if { ac_try='./$ac_file'
1951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1952   (eval $ac_try) 2>&5
1953   ac_status=$?
1954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955   (exit $ac_status); }; }; then
1956     cross_compiling=no
1957   else
1958     if test "$cross_compiling" = maybe; then
1959         cross_compiling=yes
1960     else
1961         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&5
1964 echo "$as_me: error: cannot run C compiled programs.
1965 If you meant to cross compile, use \`--host'.
1966 See \`config.log' for more details." >&2;}
1967    { (exit 1); exit 1; }; }
1968     fi
1969   fi
1970 fi
1971 echo "$as_me:$LINENO: result: yes" >&5
1972 echo "${ECHO_T}yes" >&6
1973
1974 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1975 ac_clean_files=$ac_clean_files_save
1976 # Check the compiler produces executables we can run.  If not, either
1977 # the compiler is broken, or we cross compile.
1978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1981 echo "${ECHO_T}$cross_compiling" >&6
1982
1983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1986   (eval $ac_link) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }; then
1990   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1992 # work properly (i.e., refer to `conftest.exe'), while it won't with
1993 # `rm'.
1994 for ac_file in conftest.exe conftest conftest.*; do
1995   test -f "$ac_file" || continue
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1998     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1999           export ac_cv_exeext
2000           break;;
2001     * ) break;;
2002   esac
2003 done
2004 else
2005   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2008 See \`config.log' for more details." >&2;}
2009    { (exit 1); exit 1; }; }
2010 fi
2011
2012 rm -f conftest$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2014 echo "${ECHO_T}$ac_cv_exeext" >&6
2015
2016 rm -f conftest.$ac_ext
2017 EXEEXT=$ac_cv_exeext
2018 ac_exeext=$EXEEXT
2019 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2021 if test "${ac_cv_objext+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   cat >conftest.$ac_ext <<_ACEOF
2025 /* confdefs.h.  */
2026 _ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h.  */
2030
2031 int
2032 main ()
2033 {
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041   (eval $ac_compile) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }; then
2045   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046   case $ac_file in
2047     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2048     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2049        break;;
2050   esac
2051 done
2052 else
2053   echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2057 See \`config.log' for more details." >&5
2058 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2059 See \`config.log' for more details." >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064 fi
2065 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2066 echo "${ECHO_T}$ac_cv_objext" >&6
2067 OBJEXT=$ac_cv_objext
2068 ac_objext=$OBJEXT
2069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   cat >conftest.$ac_ext <<_ACEOF
2075 /* confdefs.h.  */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h.  */
2080
2081 int
2082 main ()
2083 {
2084 #ifndef __GNUC__
2085        choke me
2086 #endif
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094   (eval $ac_compile) 2>conftest.er1
2095   ac_status=$?
2096   grep -v '^ *+' conftest.er1 >conftest.err
2097   rm -f conftest.er1
2098   cat conftest.err >&5
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); } &&
2101          { ac_try='test -z "$ac_c_werror_flag"
2102                          || test ! -s conftest.err'
2103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104   (eval $ac_try) 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }; } &&
2108          { ac_try='test -s conftest.$ac_objext'
2109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110   (eval $ac_try) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }; }; then
2114   ac_compiler_gnu=yes
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 ac_compiler_gnu=no
2120 fi
2121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2123
2124 fi
2125 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2127 GCC=`test $ac_compiler_gnu = yes && echo yes`
2128 ac_test_CFLAGS=${CFLAGS+set}
2129 ac_save_CFLAGS=$CFLAGS
2130 CFLAGS="-g"
2131 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_g+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h.  */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h.  */
2142
2143 int
2144 main ()
2145 {
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153   (eval $ac_compile) 2>conftest.er1
2154   ac_status=$?
2155   grep -v '^ *+' conftest.er1 >conftest.err
2156   rm -f conftest.er1
2157   cat conftest.err >&5
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); } &&
2160          { ac_try='test -z "$ac_c_werror_flag"
2161                          || test ! -s conftest.err'
2162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163   (eval $ac_try) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; } &&
2167          { ac_try='test -s conftest.$ac_objext'
2168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169   (eval $ac_try) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; }; then
2173   ac_cv_prog_cc_g=yes
2174 else
2175   echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 ac_cv_prog_cc_g=no
2179 fi
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 fi
2182 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2183 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2184 if test "$ac_test_CFLAGS" = set; then
2185   CFLAGS=$ac_save_CFLAGS
2186 elif test $ac_cv_prog_cc_g = yes; then
2187   if test "$GCC" = yes; then
2188     CFLAGS="-g -O2"
2189   else
2190     CFLAGS="-g"
2191   fi
2192 else
2193   if test "$GCC" = yes; then
2194     CFLAGS="-O2"
2195   else
2196     CFLAGS=
2197   fi
2198 fi
2199 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2200 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   ac_cv_prog_cc_stdc=no
2205 ac_save_CC=$CC
2206 cat >conftest.$ac_ext <<_ACEOF
2207 /* confdefs.h.  */
2208 _ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h.  */
2212 #include <stdarg.h>
2213 #include <stdio.h>
2214 #include <sys/types.h>
2215 #include <sys/stat.h>
2216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2217 struct buf { int x; };
2218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2219 static char *e (p, i)
2220      char **p;
2221      int i;
2222 {
2223   return p[i];
2224 }
2225 static char *f (char * (*g) (char **, int), char **p, ...)
2226 {
2227   char *s;
2228   va_list v;
2229   va_start (v,p);
2230   s = g (p, va_arg (v,int));
2231   va_end (v);
2232   return s;
2233 }
2234
2235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2236    function prototypes and stuff, but not '\xHH' hex character constants.
2237    These don't provoke an error unfortunately, instead are silently treated
2238    as 'x'.  The following induces an error, until -std1 is added to get
2239    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2240    array size at least.  It's necessary to write '\x00'==0 to get something
2241    that's true only with -std1.  */
2242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2243
2244 int test (int i, double x);
2245 struct s1 {int (*f) (int a);};
2246 struct s2 {int (*f) (double a);};
2247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2248 int argc;
2249 char **argv;
2250 int
2251 main ()
2252 {
2253 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 # Don't try gcc -ansi; that turns off useful extensions and
2259 # breaks some systems' header files.
2260 # AIX                   -qlanglvl=ansi
2261 # Ultrix and OSF/1      -std1
2262 # HP-UX 10.20 and later -Ae
2263 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2264 # SVR4                  -Xc -D__EXTENSIONS__
2265 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2266 do
2267   CC="$ac_save_CC $ac_arg"
2268   rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>conftest.er1
2271   ac_status=$?
2272   grep -v '^ *+' conftest.er1 >conftest.err
2273   rm -f conftest.er1
2274   cat conftest.err >&5
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); } &&
2277          { ac_try='test -z "$ac_c_werror_flag"
2278                          || test ! -s conftest.err'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; } &&
2284          { ac_try='test -s conftest.$ac_objext'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; }; then
2290   ac_cv_prog_cc_stdc=$ac_arg
2291 break
2292 else
2293   echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 fi
2297 rm -f conftest.err conftest.$ac_objext
2298 done
2299 rm -f conftest.$ac_ext conftest.$ac_objext
2300 CC=$ac_save_CC
2301
2302 fi
2303
2304 case "x$ac_cv_prog_cc_stdc" in
2305   x|xno)
2306     echo "$as_me:$LINENO: result: none needed" >&5
2307 echo "${ECHO_T}none needed" >&6 ;;
2308   *)
2309     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2310 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2311     CC="$CC $ac_cv_prog_cc_stdc" ;;
2312 esac
2313
2314 # Some people use a C++ compiler to compile C.  Since we use `exit',
2315 # in C++ we need to declare it.  In case someone uses the same compiler
2316 # for both compiling C and C++ we need to have the C++ compiler decide
2317 # the declaration of exit, since it's the most demanding environment.
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #ifndef __cplusplus
2320   choke me
2321 #endif
2322 _ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325   (eval $ac_compile) 2>conftest.er1
2326   ac_status=$?
2327   grep -v '^ *+' conftest.er1 >conftest.err
2328   rm -f conftest.er1
2329   cat conftest.err >&5
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); } &&
2332          { ac_try='test -z "$ac_c_werror_flag"
2333                          || test ! -s conftest.err'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; } &&
2339          { ac_try='test -s conftest.$ac_objext'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345   for ac_declaration in \
2346    '' \
2347    'extern "C" void std::exit (int) throw (); using std::exit;' \
2348    'extern "C" void std::exit (int); using std::exit;' \
2349    'extern "C" void exit (int) throw ();' \
2350    'extern "C" void exit (int);' \
2351    'void exit (int);'
2352 do
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359 $ac_declaration
2360 #include <stdlib.h>
2361 int
2362 main ()
2363 {
2364 exit (42);
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag"
2379                          || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   :
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 continue
2397 fi
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399   cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h.  */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h.  */
2405 $ac_declaration
2406 int
2407 main ()
2408 {
2409 exit (42);
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416   (eval $ac_compile) 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } &&
2423          { ac_try='test -z "$ac_c_werror_flag"
2424                          || test ! -s conftest.err'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436   break
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 done
2444 rm -f conftest*
2445 if test -n "$ac_declaration"; then
2446   echo '#ifdef __cplusplus' >>confdefs.h
2447   echo $ac_declaration      >>confdefs.h
2448   echo '#endif'             >>confdefs.h
2449 fi
2450
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 fi
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
2463 ac_ext=cc
2464 ac_cpp='$CXXCPP $CPPFLAGS'
2465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2468 if test -n "$ac_tool_prefix"; then
2469   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2470   do
2471     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CXX+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   if test -n "$CXX"; then
2479   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486   for ac_exec_ext in '' $ac_executable_extensions; do
2487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494
2495 fi
2496 fi
2497 CXX=$ac_cv_prog_CXX
2498 if test -n "$CXX"; then
2499   echo "$as_me:$LINENO: result: $CXX" >&5
2500 echo "${ECHO_T}$CXX" >&6
2501 else
2502   echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2504 fi
2505
2506     test -n "$CXX" && break
2507   done
2508 fi
2509 if test -z "$CXX"; then
2510   ac_ct_CXX=$CXX
2511   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2512 do
2513   # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test -n "$ac_ct_CXX"; then
2521   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528   for ac_exec_ext in '' $ac_executable_extensions; do
2529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530     ac_cv_prog_ac_ct_CXX="$ac_prog"
2531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536
2537 fi
2538 fi
2539 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2540 if test -n "$ac_ct_CXX"; then
2541   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2542 echo "${ECHO_T}$ac_ct_CXX" >&6
2543 else
2544   echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2546 fi
2547
2548   test -n "$ac_ct_CXX" && break
2549 done
2550 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2551
2552   CXX=$ac_ct_CXX
2553 fi
2554
2555
2556 # Provide some information about the compiler.
2557 echo "$as_me:$LINENO:" \
2558      "checking for C++ compiler version" >&5
2559 ac_compiler=`set X $ac_compile; echo $2`
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2561   (eval $ac_compiler --version </dev/null >&5) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }
2565 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2566   (eval $ac_compiler -v </dev/null >&5) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }
2570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2571   (eval $ac_compiler -V </dev/null >&5) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }
2575
2576 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2577 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2578 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587
2588 int
2589 main ()
2590 {
2591 #ifndef __GNUC__
2592        choke me
2593 #endif
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_cxx_werror_flag"
2609                          || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   ac_compiler_gnu=yes
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 ac_compiler_gnu=no
2627 fi
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2630
2631 fi
2632 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2633 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2634 GXX=`test $ac_compiler_gnu = yes && echo yes`
2635 ac_test_CXXFLAGS=${CXXFLAGS+set}
2636 ac_save_CXXFLAGS=$CXXFLAGS
2637 CXXFLAGS="-g"
2638 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2639 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2640 if test "${ac_cv_prog_cxx_g+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 int
2651 main ()
2652 {
2653
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660   (eval $ac_compile) 2>conftest.er1
2661   ac_status=$?
2662   grep -v '^ *+' conftest.er1 >conftest.err
2663   rm -f conftest.er1
2664   cat conftest.err >&5
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); } &&
2667          { ac_try='test -z "$ac_cxx_werror_flag"
2668                          || test ! -s conftest.err'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; } &&
2674          { ac_try='test -s conftest.$ac_objext'
2675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676   (eval $ac_try) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }; }; then
2680   ac_cv_prog_cxx_g=yes
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 ac_cv_prog_cxx_g=no
2686 fi
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 fi
2689 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2691 if test "$ac_test_CXXFLAGS" = set; then
2692   CXXFLAGS=$ac_save_CXXFLAGS
2693 elif test $ac_cv_prog_cxx_g = yes; then
2694   if test "$GXX" = yes; then
2695     CXXFLAGS="-g -O2"
2696   else
2697     CXXFLAGS="-g"
2698   fi
2699 else
2700   if test "$GXX" = yes; then
2701     CXXFLAGS="-O2"
2702   else
2703     CXXFLAGS=
2704   fi
2705 fi
2706 for ac_declaration in \
2707    '' \
2708    'extern "C" void std::exit (int) throw (); using std::exit;' \
2709    'extern "C" void std::exit (int); using std::exit;' \
2710    'extern "C" void exit (int) throw ();' \
2711    'extern "C" void exit (int);' \
2712    'void exit (int);'
2713 do
2714   cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720 $ac_declaration
2721 #include <stdlib.h>
2722 int
2723 main ()
2724 {
2725 exit (42);
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>conftest.er1
2733   ac_status=$?
2734   grep -v '^ *+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -z "$ac_cxx_werror_flag"
2740                          || test ! -s conftest.err'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   :
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 continue
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760   cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 $ac_declaration
2767 int
2768 main ()
2769 {
2770 exit (42);
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777   (eval $ac_compile) 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -z "$ac_cxx_werror_flag"
2785                          || test ! -s conftest.err'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; } &&
2791          { ac_try='test -s conftest.$ac_objext'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797   break
2798 else
2799   echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 fi
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 done
2805 rm -f conftest*
2806 if test -n "$ac_declaration"; then
2807   echo '#ifdef __cplusplus' >>confdefs.h
2808   echo $ac_declaration      >>confdefs.h
2809   echo '#endif'             >>confdefs.h
2810 fi
2811
2812 ac_ext=c
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817
2818 if test "x$CC" != xcc; then
2819   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2820 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2821 else
2822   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2823 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2824 fi
2825 set dummy $CC; ac_cc=`echo $2 |
2826                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2827 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h.  */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h.  */
2836
2837 int
2838 main ()
2839 {
2840
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 # Make sure it works both with $CC and with simple cc.
2846 # We do the test twice because some compilers refuse to overwrite an
2847 # existing .o file with -o, though they will create one.
2848 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2849 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); } &&
2854    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); };
2859 then
2860   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2861   if test "x$CC" != xcc; then
2862     # Test first that cc exists at all.
2863     if { ac_try='cc -c conftest.$ac_ext >&5'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2870       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871   (eval $ac_try) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); } &&
2875          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); };
2880       then
2881         # cc works too.
2882         :
2883       else
2884         # cc exists but doesn't like -o.
2885         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2886       fi
2887     fi
2888   fi
2889 else
2890   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2891 fi
2892 rm -f conftest*
2893
2894 fi
2895 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2896   echo "$as_me:$LINENO: result: yes" >&5
2897 echo "${ECHO_T}yes" >&6
2898 else
2899   echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901
2902 cat >>confdefs.h <<\_ACEOF
2903 #define NO_MINUS_C_MINUS_O 1
2904 _ACEOF
2905
2906 fi
2907
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2915 # On Suns, sometimes $CPP names a directory.
2916 if test -n "$CPP" && test -d "$CPP"; then
2917   CPP=
2918 fi
2919 if test -z "$CPP"; then
2920   if test "${ac_cv_prog_CPP+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923       # Double quotes because CPP needs to be expanded
2924     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2925     do
2926       ac_preproc_ok=false
2927 for ac_c_preproc_warn_flag in '' yes
2928 do
2929   # Use a header file that comes with gcc, so configuring glibc
2930   # with a fresh cross-compiler works.
2931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932   # <limits.h> exists even on freestanding compilers.
2933   # On the NeXT, cc -E runs the code through the compiler's parser,
2934   # not just through cpp. "Syntax error" is here to catch this case.
2935   cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h.  */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h.  */
2941 #ifdef __STDC__
2942 # include <limits.h>
2943 #else
2944 # include <assert.h>
2945 #endif
2946                      Syntax error
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } >/dev/null; then
2956   if test -s conftest.err; then
2957     ac_cpp_err=$ac_c_preproc_warn_flag
2958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   :
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971   # Broken: fails on valid input.
2972 continue
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976   # OK, works on sane cases.  Now check whether non-existent headers
2977   # can be detected and how.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 #include <ac_nonexistent.h>
2985 _ACEOF
2986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988   ac_status=$?
2989   grep -v '^ *+' conftest.er1 >conftest.err
2990   rm -f conftest.er1
2991   cat conftest.err >&5
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); } >/dev/null; then
2994   if test -s conftest.err; then
2995     ac_cpp_err=$ac_c_preproc_warn_flag
2996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997   else
2998     ac_cpp_err=
2999   fi
3000 else
3001   ac_cpp_err=yes
3002 fi
3003 if test -z "$ac_cpp_err"; then
3004   # Broken: success on invalid input.
3005 continue
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010   # Passes both tests.
3011 ac_preproc_ok=:
3012 break
3013 fi
3014 rm -f conftest.err conftest.$ac_ext
3015
3016 done
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3020   break
3021 fi
3022
3023     done
3024     ac_cv_prog_CPP=$CPP
3025
3026 fi
3027   CPP=$ac_cv_prog_CPP
3028 else
3029   ac_cv_prog_CPP=$CPP
3030 fi
3031 echo "$as_me:$LINENO: result: $CPP" >&5
3032 echo "${ECHO_T}$CPP" >&6
3033 ac_preproc_ok=false
3034 for ac_c_preproc_warn_flag in '' yes
3035 do
3036   # Use a header file that comes with gcc, so configuring glibc
3037   # with a fresh cross-compiler works.
3038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3039   # <limits.h> exists even on freestanding compilers.
3040   # On the NeXT, cc -E runs the code through the compiler's parser,
3041   # not just through cpp. "Syntax error" is here to catch this case.
3042   cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048 #ifdef __STDC__
3049 # include <limits.h>
3050 #else
3051 # include <assert.h>
3052 #endif
3053                      Syntax error
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } >/dev/null; then
3063   if test -s conftest.err; then
3064     ac_cpp_err=$ac_c_preproc_warn_flag
3065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   :
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078   # Broken: fails on valid input.
3079 continue
3080 fi
3081 rm -f conftest.err conftest.$ac_ext
3082
3083   # OK, works on sane cases.  Now check whether non-existent headers
3084   # can be detected and how.
3085   cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091 #include <ac_nonexistent.h>
3092 _ACEOF
3093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } >/dev/null; then
3101   if test -s conftest.err; then
3102     ac_cpp_err=$ac_c_preproc_warn_flag
3103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3104   else
3105     ac_cpp_err=
3106   fi
3107 else
3108   ac_cpp_err=yes
3109 fi
3110 if test -z "$ac_cpp_err"; then
3111   # Broken: success on invalid input.
3112 continue
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117   # Passes both tests.
3118 ac_preproc_ok=:
3119 break
3120 fi
3121 rm -f conftest.err conftest.$ac_ext
3122
3123 done
3124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3125 rm -f conftest.err conftest.$ac_ext
3126 if $ac_preproc_ok; then
3127   :
3128 else
3129   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3132 See \`config.log' for more details." >&2;}
3133    { (exit 1); exit 1; }; }
3134 fi
3135
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
3142
3143 echo "$as_me:$LINENO: checking for egrep" >&5
3144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3145 if test "${ac_cv_prog_egrep+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3149     then ac_cv_prog_egrep='grep -E'
3150     else ac_cv_prog_egrep='egrep'
3151     fi
3152 fi
3153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3155  EGREP=$ac_cv_prog_egrep
3156
3157
3158 if test $ac_cv_c_compiler_gnu = yes; then
3159     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3160 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3161 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164     ac_pattern="Autoconf.*'x'"
3165   cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171 #include <sgtty.h>
3172 Autoconf TIOCGETP
3173 _ACEOF
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3176   ac_cv_prog_gcc_traditional=yes
3177 else
3178   ac_cv_prog_gcc_traditional=no
3179 fi
3180 rm -f conftest*
3181
3182
3183   if test $ac_cv_prog_gcc_traditional = no; then
3184     cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #include <termio.h>
3191 Autoconf TCGETA
3192 _ACEOF
3193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3194   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3195   ac_cv_prog_gcc_traditional=yes
3196 fi
3197 rm -f conftest*
3198
3199   fi
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3202 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3203   if test $ac_cv_prog_gcc_traditional = yes; then
3204     CC="$CC -traditional"
3205   fi
3206 fi
3207
3208 if test "x$CC" = xgcc; then
3209    cat >>confdefs.h <<\_ACEOF
3210 #define HAVE_GCC 1
3211 _ACEOF
3212
3213 fi
3214 # Extract the first word of "$CXX", so it can be a program name with args.
3215 set dummy $CXX; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_CXX+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $CXX in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3241   ;;
3242 esac
3243 fi
3244 CXX=$ac_cv_path_CXX
3245
3246 if test -n "$CXX"; then
3247   echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 if test ! -e $CXX; then
3255    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3256 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3257    { (exit 1); exit 1; }; }
3258 fi
3259
3260 # Find a good install program.  We prefer a C program (faster),
3261 # so one script is as good as another.  But avoid the broken or
3262 # incompatible versions:
3263 # SysV /etc/install, /usr/sbin/install
3264 # SunOS /usr/etc/install
3265 # IRIX /sbin/install
3266 # AIX /bin/install
3267 # AmigaOS /C/install, which installs bootblocks on floppy discs
3268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271 # OS/2's system install, which has a completely different semantic
3272 # ./install, which can be erroneously created by make from ./install.sh.
3273 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3274 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3275 if test -z "$INSTALL"; then
3276 if test "${ac_cv_path_install+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282   IFS=$as_save_IFS
3283   test -z "$as_dir" && as_dir=.
3284   # Account for people who put trailing slashes in PATH elements.
3285 case $as_dir/ in
3286   ./ | .// | /cC/* | \
3287   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3288   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3289   /usr/ucb/* ) ;;
3290   *)
3291     # OSF1 and SCO ODT 3.0 have their own names for install.
3292     # Don't use installbsd from OSF since it installs stuff as root
3293     # by default.
3294     for ac_prog in ginstall scoinst install; do
3295       for ac_exec_ext in '' $ac_executable_extensions; do
3296         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3297           if test $ac_prog = install &&
3298             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3299             # AIX install.  It has an incompatible calling convention.
3300             :
3301           elif test $ac_prog = install &&
3302             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303             # program-specific install script used by HP pwplus--don't use.
3304             :
3305           else
3306             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3307             break 3
3308           fi
3309         fi
3310       done
3311     done
3312     ;;
3313 esac
3314 done
3315
3316
3317 fi
3318   if test "${ac_cv_path_install+set}" = set; then
3319     INSTALL=$ac_cv_path_install
3320   else
3321     # As a last resort, use the slow shell script.  We don't cache a
3322     # path for INSTALL within a source directory, because that will
3323     # break other packages using the cache if that directory is
3324     # removed, or if the path is relative.
3325     INSTALL=$ac_install_sh
3326   fi
3327 fi
3328 echo "$as_me:$LINENO: result: $INSTALL" >&5
3329 echo "${ECHO_T}$INSTALL" >&6
3330
3331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3332 # It thinks the first close brace ends the variable substitution.
3333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334
3335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336
3337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338
3339 if test -n "$ac_tool_prefix"; then
3340   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3342 echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_RANLIB+set}" = set; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347   if test -n "$RANLIB"; then
3348   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364 fi
3365 fi
3366 RANLIB=$ac_cv_prog_RANLIB
3367 if test -n "$RANLIB"; then
3368   echo "$as_me:$LINENO: result: $RANLIB" >&5
3369 echo "${ECHO_T}$RANLIB" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375 fi
3376 if test -z "$ac_cv_prog_RANLIB"; then
3377   ac_ct_RANLIB=$RANLIB
3378   # Extract the first word of "ranlib", so it can be a program name with args.
3379 set dummy ranlib; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   if test -n "$ac_ct_RANLIB"; then
3386   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393   for ac_exec_ext in '' $ac_executable_extensions; do
3394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395     ac_cv_prog_ac_ct_RANLIB="ranlib"
3396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400 done
3401
3402   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3403 fi
3404 fi
3405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3406 if test -n "$ac_ct_RANLIB"; then
3407   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414   RANLIB=$ac_ct_RANLIB
3415 else
3416   RANLIB="$ac_cv_prog_RANLIB"
3417 fi
3418
3419 # Extract the first word of "mv", so it can be a program name with args.
3420 set dummy mv; ac_word=$2
3421 echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423 if test "${ac_cv_path_MV+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   case $MV in
3427   [\\/]* | ?:[\\/]*)
3428   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3429   ;;
3430   *)
3431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_exec_ext in '' $ac_executable_extensions; do
3437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443 done
3444
3445   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3446   ;;
3447 esac
3448 fi
3449 MV=$ac_cv_path_MV
3450
3451 if test -n "$MV"; then
3452   echo "$as_me:$LINENO: result: $MV" >&5
3453 echo "${ECHO_T}$MV" >&6
3454 else
3455   echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3457 fi
3458
3459 # Extract the first word of "rm", so it can be a program name with args.
3460 set dummy rm; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_path_RM+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   case $RM in
3467   [\\/]* | ?:[\\/]*)
3468   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3469   ;;
3470   *)
3471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476   for ac_exec_ext in '' $ac_executable_extensions; do
3477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483 done
3484
3485   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3486   ;;
3487 esac
3488 fi
3489 RM=$ac_cv_path_RM
3490
3491 if test -n "$RM"; then
3492   echo "$as_me:$LINENO: result: $RM" >&5
3493 echo "${ECHO_T}$RM" >&6
3494 else
3495   echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3497 fi
3498
3499 # Extract the first word of "cp", so it can be a program name with args.
3500 set dummy cp; ac_word=$2
3501 echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503 if test "${ac_cv_path_CP+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   case $CP in
3507   [\\/]* | ?:[\\/]*)
3508   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3509   ;;
3510   *)
3511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516   for ac_exec_ext in '' $ac_executable_extensions; do
3517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523 done
3524
3525   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3526   ;;
3527 esac
3528 fi
3529 CP=$ac_cv_path_CP
3530
3531 if test -n "$CP"; then
3532   echo "$as_me:$LINENO: result: $CP" >&5
3533 echo "${ECHO_T}$CP" >&6
3534 else
3535   echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3537 fi
3538
3539 # Extract the first word of "sed", so it can be a program name with args.
3540 set dummy sed; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_path_SED+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   case $SED in
3547   [\\/]* | ?:[\\/]*)
3548   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3549   ;;
3550   *)
3551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556   for ac_exec_ext in '' $ac_executable_extensions; do
3557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563 done
3564
3565   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3566   ;;
3567 esac
3568 fi
3569 SED=$ac_cv_path_SED
3570
3571 if test -n "$SED"; then
3572   echo "$as_me:$LINENO: result: $SED" >&5
3573 echo "${ECHO_T}$SED" >&6
3574 else
3575   echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3577 fi
3578
3579 # Extract the first word of "echo", so it can be a program name with args.
3580 set dummy echo; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_path_ECHO+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   case $ECHO in
3587   [\\/]* | ?:[\\/]*)
3588   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3589   ;;
3590   *)
3591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596   for ac_exec_ext in '' $ac_executable_extensions; do
3597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603 done
3604
3605   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3606   ;;
3607 esac
3608 fi
3609 ECHO=$ac_cv_path_ECHO
3610
3611 if test -n "$ECHO"; then
3612   echo "$as_me:$LINENO: result: $ECHO" >&5
3613 echo "${ECHO_T}$ECHO" >&6
3614 else
3615   echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6
3617 fi
3618
3619 # Extract the first word of "cmp", so it can be a program name with args.
3620 set dummy cmp; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_path_CMP+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   case $CMP in
3627   [\\/]* | ?:[\\/]*)
3628   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3629   ;;
3630   *)
3631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636   for ac_exec_ext in '' $ac_executable_extensions; do
3637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640     break 2
3641   fi
3642 done
3643 done
3644
3645   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3646   ;;
3647 esac
3648 fi
3649 CMP=$ac_cv_path_CMP
3650
3651 if test -n "$CMP"; then
3652   echo "$as_me:$LINENO: result: $CMP" >&5
3653 echo "${ECHO_T}$CMP" >&6
3654 else
3655   echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3657 fi
3658
3659 # Extract the first word of "tbl", so it can be a program name with args.
3660 set dummy tbl; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_path_TBL+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   case $TBL in
3667   [\\/]* | ?:[\\/]*)
3668   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3669   ;;
3670   *)
3671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676   for ac_exec_ext in '' $ac_executable_extensions; do
3677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680     break 2
3681   fi
3682 done
3683 done
3684
3685   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3686   ;;
3687 esac
3688 fi
3689 TBL=$ac_cv_path_TBL
3690
3691 if test -n "$TBL"; then
3692   echo "$as_me:$LINENO: result: $TBL" >&5
3693 echo "${ECHO_T}$TBL" >&6
3694 else
3695   echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3697 fi
3698
3699 # Extract the first word of "ar", so it can be a program name with args.
3700 set dummy ar; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_path_AR+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   case $AR in
3707   [\\/]* | ?:[\\/]*)
3708   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3709   ;;
3710   *)
3711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_exec_ext in '' $ac_executable_extensions; do
3717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720     break 2
3721   fi
3722 done
3723 done
3724
3725   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3726   ;;
3727 esac
3728 fi
3729 AR=$ac_cv_path_AR
3730
3731 if test -n "$AR"; then
3732   echo "$as_me:$LINENO: result: $AR" >&5
3733 echo "${ECHO_T}$AR" >&6
3734 else
3735   echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3737 fi
3738
3739 # Extract the first word of "openssl", so it can be a program name with args.
3740 set dummy openssl; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_path_OPENSSL+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   case $OPENSSL in
3747   [\\/]* | ?:[\\/]*)
3748   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3749   ;;
3750   *)
3751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756   for ac_exec_ext in '' $ac_executable_extensions; do
3757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760     break 2
3761   fi
3762 done
3763 done
3764
3765   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3766   ;;
3767 esac
3768 fi
3769 OPENSSL=$ac_cv_path_OPENSSL
3770
3771 if test -n "$OPENSSL"; then
3772   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3773 echo "${ECHO_T}$OPENSSL" >&6
3774 else
3775   echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3777 fi
3778
3779 # Extract the first word of "mtx", so it can be a program name with args.
3780 set dummy mtx; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_path_MTX+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   case $MTX in
3787   [\\/]* | ?:[\\/]*)
3788   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3789   ;;
3790   *)
3791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796   for ac_exec_ext in '' $ac_executable_extensions; do
3797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800     break 2
3801   fi
3802 done
3803 done
3804
3805   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3806   ;;
3807 esac
3808 fi
3809 MTX=$ac_cv_path_MTX
3810
3811 if test -n "$MTX"; then
3812   echo "$as_me:$LINENO: result: $MTX" >&5
3813 echo "${ECHO_T}$MTX" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
3818
3819 # Extract the first word of "df", so it can be a program name with args.
3820 set dummy df; ac_word=$2
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823 if test "${ac_cv_path_DF+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   case $DF in
3827   [\\/]* | ?:[\\/]*)
3828   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3829   ;;
3830   *)
3831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   for ac_exec_ext in '' $ac_executable_extensions; do
3837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843 done
3844
3845   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3846   ;;
3847 esac
3848 fi
3849 DF=$ac_cv_path_DF
3850
3851 if test -n "$DF"; then
3852   echo "$as_me:$LINENO: result: $DF" >&5
3853 echo "${ECHO_T}$DF" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859 # Extract the first word of "mkisofs", so it can be a program name with args.
3860 set dummy mkisofs; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_path_MKISOFS+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   case $MKISOFS in
3867   [\\/]* | ?:[\\/]*)
3868   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3869   ;;
3870   *)
3871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883 done
3884
3885   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3886   ;;
3887 esac
3888 fi
3889 MKISOFS=$ac_cv_path_MKISOFS
3890
3891 if test -n "$MKISOFS"; then
3892   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3893 echo "${ECHO_T}$MKISOFS" >&6
3894 else
3895   echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3897 fi
3898
3899 # Extract the first word of "python", so it can be a program name with args.
3900 set dummy python; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_PYTHON+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   case $PYTHON in
3907   [\\/]* | ?:[\\/]*)
3908   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3909   ;;
3910   *)
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for ac_exec_ext in '' $ac_executable_extensions; do
3917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920     break 2
3921   fi
3922 done
3923 done
3924
3925   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3926   ;;
3927 esac
3928 fi
3929 PYTHON=$ac_cv_path_PYTHON
3930
3931 if test -n "$PYTHON"; then
3932   echo "$as_me:$LINENO: result: $PYTHON" >&5
3933 echo "${ECHO_T}$PYTHON" >&6
3934 else
3935   echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939 # Extract the first word of "growisofs", so it can be a program name with args.
3940 set dummy growisofs; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   case $GROWISOFS in
3947   [\\/]* | ?:[\\/]*)
3948   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3949   ;;
3950   *)
3951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954   IFS=$as_save_IFS
3955   test -z "$as_dir" && as_dir=.
3956   for ac_exec_ext in '' $ac_executable_extensions; do
3957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960     break 2
3961   fi
3962 done
3963 done
3964
3965   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3966   ;;
3967 esac
3968 fi
3969 GROWISOFS=$ac_cv_path_GROWISOFS
3970
3971 if test -n "$GROWISOFS"; then
3972   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3973 echo "${ECHO_T}$GROWISOFS" >&6
3974 else
3975   echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3977 fi
3978
3979 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3980 set dummy dvd+rw-mediainfo; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   case $DVDRWMEDIAINFO in
3987   [\\/]* | ?:[\\/]*)
3988   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3989   ;;
3990   *)
3991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996   for ac_exec_ext in '' $ac_executable_extensions; do
3997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003 done
4004
4005   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4006   ;;
4007 esac
4008 fi
4009 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4010
4011 if test -n "$DVDRWMEDIAINFO"; then
4012   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4013 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4014 else
4015   echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4017 fi
4018
4019 # Extract the first word of "pkg-config", so it can be a program name with args.
4020 set dummy pkg-config; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   case $PKGCONFIG in
4027   [\\/]* | ?:[\\/]*)
4028   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4029   ;;
4030   *)
4031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036   for ac_exec_ext in '' $ac_executable_extensions; do
4037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043 done
4044
4045   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4046   ;;
4047 esac
4048 fi
4049 PKGCONFIG=$ac_cv_path_PKGCONFIG
4050
4051 if test -n "$PKGCONFIG"; then
4052   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4053 echo "${ECHO_T}$PKGCONFIG" >&6
4054 else
4055   echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4057 fi
4058
4059
4060 if test "x$WXCONFIG" = x; then
4061   WXCONFIG=wx-config
4062 fi
4063 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4064 set dummy ${WXCONFIG}; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   case $WXCONFIG in
4071   [\\/]* | ?:[\\/]*)
4072   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4073   ;;
4074   *)
4075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087 done
4088
4089   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4090   ;;
4091 esac
4092 fi
4093 WXCONFIG=$ac_cv_path_WXCONFIG
4094
4095 if test -n "$WXCONFIG"; then
4096   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4097 echo "${ECHO_T}$WXCONFIG" >&6
4098 else
4099   echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101 fi
4102
4103
4104 # Extract the first word of "cdrecord", so it can be a program name with args.
4105 set dummy cdrecord; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_CDRECORD+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   case $CDRECORD in
4112   [\\/]* | ?:[\\/]*)
4113   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4114   ;;
4115   *)
4116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121   for ac_exec_ext in '' $ac_executable_extensions; do
4122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128 done
4129
4130   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4131   ;;
4132 esac
4133 fi
4134 CDRECORD=$ac_cv_path_CDRECORD
4135
4136 if test -n "$CDRECORD"; then
4137   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4138 echo "${ECHO_T}$CDRECORD" >&6
4139 else
4140   echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4142 fi
4143
4144 # Extract the first word of "pidof", so it can be a program name with args.
4145 set dummy pidof; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_path_PIDOF+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   case $PIDOF in
4152   [\\/]* | ?:[\\/]*)
4153   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4154   ;;
4155   *)
4156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159   IFS=$as_save_IFS
4160   test -z "$as_dir" && as_dir=.
4161   for ac_exec_ext in '' $ac_executable_extensions; do
4162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165     break 2
4166   fi
4167 done
4168 done
4169
4170   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4171   ;;
4172 esac
4173 fi
4174 PIDOF=$ac_cv_path_PIDOF
4175
4176 if test -n "$PIDOF"; then
4177   echo "$as_me:$LINENO: result: $PIDOF" >&5
4178 echo "${ECHO_T}$PIDOF" >&6
4179 else
4180   echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182 fi
4183
4184 for ac_prog in gawk mawk nawk awk
4185 do
4186   # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190 if test "${ac_cv_prog_AWK+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   if test -n "$AWK"; then
4194   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201   for ac_exec_ext in '' $ac_executable_extensions; do
4202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203     ac_cv_prog_AWK="$ac_prog"
4204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208 done
4209
4210 fi
4211 fi
4212 AWK=$ac_cv_prog_AWK
4213 if test -n "$AWK"; then
4214   echo "$as_me:$LINENO: result: $AWK" >&5
4215 echo "${ECHO_T}$AWK" >&6
4216 else
4217   echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4219 fi
4220
4221   test -n "$AWK" && break
4222 done
4223
4224 # Some AWK programs fail, so test it and warn the user
4225 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4226       { if ((prog == $2) || (("(" prog ")") == $2) ||
4227            (("" prog "") == $2) ||
4228            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4229 else
4230   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4231    The regex engine of $AWK is too broken to be used you
4232    might want to install GNU AWK.
4233    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4234 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4235    The regex engine of $AWK is too broken to be used you
4236    might want to install GNU AWK.
4237    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4238    { (exit 1); exit 1; }; }
4239 fi
4240 THE_AWK=$AWK
4241 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4242 set dummy $THE_AWK; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_path_AWK+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   case $AWK in
4249   [\\/]* | ?:[\\/]*)
4250   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4251   ;;
4252   *)
4253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266
4267   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4268   ;;
4269 esac
4270 fi
4271 AWK=$ac_cv_path_AWK
4272
4273 if test -n "$AWK"; then
4274   echo "$as_me:$LINENO: result: $AWK" >&5
4275 echo "${ECHO_T}$AWK" >&6
4276 else
4277   echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282 test -n "$ARFLAG" || ARFLAGS="cr"
4283
4284
4285 MAKE_SHELL=/bin/sh
4286
4287
4288
4289
4290
4291
4292
4293 # Make sure we can run config.sub.
4294 $ac_config_sub sun4 >/dev/null 2>&1 ||
4295   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4297    { (exit 1); exit 1; }; }
4298
4299 echo "$as_me:$LINENO: checking build system type" >&5
4300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4301 if test "${ac_cv_build+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   ac_cv_build_alias=$build_alias
4305 test -z "$ac_cv_build_alias" &&
4306   ac_cv_build_alias=`$ac_config_guess`
4307 test -z "$ac_cv_build_alias" &&
4308   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4310    { (exit 1); exit 1; }; }
4311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4312   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4314    { (exit 1); exit 1; }; }
4315
4316 fi
4317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4318 echo "${ECHO_T}$ac_cv_build" >&6
4319 build=$ac_cv_build
4320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4323
4324
4325
4326 echo "$as_me:$LINENO: checking host system type" >&5
4327 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4328 if test "${ac_cv_host+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   ac_cv_host_alias=$host_alias
4332 test -z "$ac_cv_host_alias" &&
4333   ac_cv_host_alias=$ac_cv_build_alias
4334 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4335   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4336 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4337    { (exit 1); exit 1; }; }
4338
4339 fi
4340 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4341 echo "${ECHO_T}$ac_cv_host" >&6
4342 host=$ac_cv_host
4343 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4344 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4345 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4346
4347
4348 case $host_os in
4349   *cygwin* ) CYGWIN=yes;;
4350          * ) CYGWIN=no;;
4351 esac
4352
4353 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4354 then
4355
4356
4357 if $TRUEPRG; then
4358   HAVE_SUN_OS_TRUE=
4359   HAVE_SUN_OS_FALSE='#'
4360 else
4361   HAVE_SUN_OS_TRUE='#'
4362   HAVE_SUN_OS_FALSE=
4363 fi
4364         cat >>confdefs.h <<\_ACEOF
4365 #define HAVE_SUN_OS 1
4366 _ACEOF
4367
4368 else
4369
4370
4371 if $FALSEPRG; then
4372   HAVE_SUN_OS_TRUE=
4373   HAVE_SUN_OS_FALSE='#'
4374 else
4375   HAVE_SUN_OS_TRUE='#'
4376   HAVE_SUN_OS_FALSE=
4377 fi
4378 fi
4379
4380 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4381 then
4382
4383
4384 if $TRUEPRG; then
4385   HAVE_OSF1_OS_TRUE=
4386   HAVE_OSF1_OS_FALSE='#'
4387 else
4388   HAVE_OSF1_OS_TRUE='#'
4389   HAVE_OSF1_OS_FALSE=
4390 fi
4391         cat >>confdefs.h <<\_ACEOF
4392 #define HAVE_OSF1_OS 1
4393 _ACEOF
4394
4395 else
4396
4397
4398 if $FALSEPRG; then
4399   HAVE_OSF1_OS_TRUE=
4400   HAVE_OSF1_OS_FALSE='#'
4401 else
4402   HAVE_OSF1_OS_TRUE='#'
4403   HAVE_OSF1_OS_FALSE=
4404 fi
4405 fi
4406
4407 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4408 then
4409
4410
4411 if $TRUEPRG; then
4412   HAVE_AIX_OS_TRUE=
4413   HAVE_AIX_OS_FALSE='#'
4414 else
4415   HAVE_AIX_OS_TRUE='#'
4416   HAVE_AIX_OS_FALSE=
4417 fi
4418         cat >>confdefs.h <<\_ACEOF
4419 #define HAVE_AIX_OS 1
4420 _ACEOF
4421
4422 else
4423
4424
4425 if $FALSEPRG; then
4426   HAVE_AIX_OS_TRUE=
4427   HAVE_AIX_OS_FALSE='#'
4428 else
4429   HAVE_AIX_OS_TRUE='#'
4430   HAVE_AIX_OS_FALSE=
4431 fi
4432 fi
4433
4434 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4435 then
4436
4437
4438 if $TRUEPRG; then
4439   HAVE_HPUX_OS_TRUE=
4440   HAVE_HPUX_OS_FALSE='#'
4441 else
4442   HAVE_HPUX_OS_TRUE='#'
4443   HAVE_HPUX_OS_FALSE=
4444 fi
4445         cat >>confdefs.h <<\_ACEOF
4446 #define HAVE_HPUX_OS 1
4447 _ACEOF
4448
4449 else
4450
4451
4452 if $FALSEPRG; then
4453   HAVE_HPUX_OS_TRUE=
4454   HAVE_HPUX_OS_FALSE='#'
4455 else
4456   HAVE_HPUX_OS_TRUE='#'
4457   HAVE_HPUX_OS_FALSE=
4458 fi
4459 fi
4460
4461 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4462 then
4463
4464
4465 if $TRUEPRG; then
4466   HAVE_LINUX_OS_TRUE=
4467   HAVE_LINUX_OS_FALSE='#'
4468 else
4469   HAVE_LINUX_OS_TRUE='#'
4470   HAVE_LINUX_OS_FALSE=
4471 fi
4472         cat >>confdefs.h <<\_ACEOF
4473 #define HAVE_LINUX_OS 1
4474 _ACEOF
4475
4476 else
4477
4478
4479 if $FALSEPRG; then
4480   HAVE_LINUX_OS_TRUE=
4481   HAVE_LINUX_OS_FALSE='#'
4482 else
4483   HAVE_LINUX_OS_TRUE='#'
4484   HAVE_LINUX_OS_FALSE=
4485 fi
4486 fi
4487
4488 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4489 then
4490
4491
4492 if $TRUEPRG; then
4493   HAVE_FREEBSD_OS_TRUE=
4494   HAVE_FREEBSD_OS_FALSE='#'
4495 else
4496   HAVE_FREEBSD_OS_TRUE='#'
4497   HAVE_FREEBSD_OS_FALSE=
4498 fi
4499         cat >>confdefs.h <<\_ACEOF
4500 #define HAVE_FREEBSD_OS 1
4501 _ACEOF
4502
4503 else
4504
4505
4506 if $FALSEPRG; then
4507   HAVE_FREEBSD_OS_TRUE=
4508   HAVE_FREEBSD_OS_FALSE='#'
4509 else
4510   HAVE_FREEBSD_OS_TRUE='#'
4511   HAVE_FREEBSD_OS_FALSE=
4512 fi
4513 fi
4514
4515 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4516 then
4517
4518
4519 if $TRUEPRG; then
4520   HAVE_NETBSD_OS_TRUE=
4521   HAVE_NETBSD_OS_FALSE='#'
4522 else
4523   HAVE_NETBSD_OS_TRUE='#'
4524   HAVE_NETBSD_OS_FALSE=
4525 fi
4526         cat >>confdefs.h <<\_ACEOF
4527 #define HAVE_NETBSD_OS 1
4528 _ACEOF
4529
4530 else
4531
4532
4533 if $FALSEPRG; then
4534   HAVE_NETBSD_OS_TRUE=
4535   HAVE_NETBSD_OS_FALSE='#'
4536 else
4537   HAVE_NETBSD_OS_TRUE='#'
4538   HAVE_NETBSD_OS_FALSE=
4539 fi
4540 fi
4541
4542 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4543 then
4544
4545
4546 if $TRUEPRG; then
4547   HAVE_OPENBSD_OS_TRUE=
4548   HAVE_OPENBSD_OS_FALSE='#'
4549 else
4550   HAVE_OPENBSD_OS_TRUE='#'
4551   HAVE_OPENBSD_OS_FALSE=
4552 fi
4553         cat >>confdefs.h <<\_ACEOF
4554 #define HAVE_OPENBSD_OS 1
4555 _ACEOF
4556
4557 else
4558
4559
4560 if $FALSEPRG; then
4561   HAVE_OPENBSD_OS_TRUE=
4562   HAVE_OPENBSD_OS_FALSE='#'
4563 else
4564   HAVE_OPENBSD_OS_TRUE='#'
4565   HAVE_OPENBSD_OS_FALSE=
4566 fi
4567 fi
4568
4569 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4570 then
4571
4572
4573 if $TRUEPRG; then
4574   HAVE_BSDI_OS_TRUE=
4575   HAVE_BSDI_OS_FALSE='#'
4576 else
4577   HAVE_BSDI_OS_TRUE='#'
4578   HAVE_BSDI_OS_FALSE=
4579 fi
4580         cat >>confdefs.h <<\_ACEOF
4581 #define HAVE_BSDI_OS 1
4582 _ACEOF
4583
4584 else
4585
4586
4587 if $FALSEPRG; then
4588   HAVE_BSDI_OS_TRUE=
4589   HAVE_BSDI_OS_FALSE='#'
4590 else
4591   HAVE_BSDI_OS_TRUE='#'
4592   HAVE_BSDI_OS_FALSE=
4593 fi
4594 fi
4595
4596 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4597 then
4598
4599
4600 if $TRUEPRG; then
4601   HAVE_SGI_OS_TRUE=
4602   HAVE_SGI_OS_FALSE='#'
4603 else
4604   HAVE_SGI_OS_TRUE='#'
4605   HAVE_SGI_OS_FALSE=
4606 fi
4607         cat >>confdefs.h <<\_ACEOF
4608 #define HAVE_SGI_OS 1
4609 _ACEOF
4610
4611 else
4612
4613
4614 if $FALSEPRG; then
4615   HAVE_SGI_OS_TRUE=
4616   HAVE_SGI_OS_FALSE='#'
4617 else
4618   HAVE_SGI_OS_TRUE='#'
4619   HAVE_SGI_OS_FALSE=
4620 fi
4621 fi
4622
4623 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4624 then
4625
4626
4627 if $TRUEPRG; then
4628   HAVE_IRIX_OS_TRUE=
4629   HAVE_IRIX_OS_FALSE='#'
4630 else
4631   HAVE_IRIX_OS_TRUE='#'
4632   HAVE_IRIX_OS_FALSE=
4633 fi
4634         cat >>confdefs.h <<\_ACEOF
4635 #define HAVE_IRIX_OS 1
4636 _ACEOF
4637
4638 else
4639
4640
4641 if $FALSEPRG; then
4642   HAVE_IRIX_OS_TRUE=
4643   HAVE_IRIX_OS_FALSE='#'
4644 else
4645   HAVE_IRIX_OS_TRUE='#'
4646   HAVE_IRIX_OS_FALSE=
4647 fi
4648 fi
4649
4650 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4651 then
4652
4653
4654 if $TRUEPRG; then
4655   HAVE_DARWIN_OS_TRUE=
4656   HAVE_DARWIN_OS_FALSE='#'
4657 else
4658   HAVE_DARWIN_OS_TRUE='#'
4659   HAVE_DARWIN_OS_FALSE=
4660 fi
4661     cat >>confdefs.h <<\_ACEOF
4662 #define HAVE_DARWIN_OS 1
4663 _ACEOF
4664
4665 else
4666
4667
4668 if $FALSEPRG; then
4669   HAVE_DARWIN_OS_TRUE=
4670   HAVE_DARWIN_OS_FALSE='#'
4671 else
4672   HAVE_DARWIN_OS_TRUE='#'
4673   HAVE_DARWIN_OS_FALSE=
4674 fi
4675 fi
4676
4677
4678 # -----------------------------------------------------------
4679 # ----------------------------------------------------------
4680 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4681 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4682 if test "x$DISTNAME" != "x"
4683 then
4684         echo "distname set to $DISTNAME"
4685 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4686 then
4687         DISTNAME=alpha
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4689 then
4690         DISTNAME=aix
4691 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4692 then
4693         DISTNAME=hpux
4694 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4695 then
4696         DISTNAME=solaris
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4698 then
4699         DISTNAME=freebsd
4700 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4701 then
4702         DISTNAME=netbsd
4703 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4704 then
4705         DISTNAME=openbsd
4706 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4707 then
4708         DISTNAME=irix
4709 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4710 then
4711         DISTNAME=bsdi
4712 elif test -f /etc/SuSE-release
4713 then
4714         DISTNAME=suse
4715 elif test -d /etc/SuSEconfig
4716 then
4717         DISTNAME=suse5
4718 elif test -f /etc/mandrake-release
4719 then
4720         DISTNAME=mandrake
4721 elif test -f /etc/whitebox-release
4722 then
4723        DISTNAME=redhat
4724 elif test -f /etc/redhat-release
4725 then
4726         DISTNAME=redhat
4727 elif test -f /etc/gentoo-release
4728 then
4729         DISTNAME=gentoo
4730 elif test -f /etc/debian_version
4731 then
4732         DISTNAME=debian
4733 elif test -f /etc/slackware-version
4734 then
4735         DISTNAME=slackware
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4737 then
4738     DISTNAME=darwin
4739 elif test -f /etc/engarde-version
4740 then
4741         DISTNAME=engarde
4742 elif test "$CYGWIN" = yes
4743 then
4744         DISTNAME=cygwin
4745         cat >>confdefs.h <<\_ACEOF
4746 #define HAVE_CYGWIN 1
4747 _ACEOF
4748
4749 else
4750         DISTNAME=unknown
4751 fi
4752 echo "$as_me:$LINENO: result: done" >&5
4753 echo "${ECHO_T}done" >&6
4754
4755
4756 # --------------------------------------------------
4757 # Suppport for gettext (translations)
4758 # By default, $datadir is ${prefix}/share
4759 # --------------------------------------------------
4760 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4761 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4763 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   cat >conftest.make <<\_ACEOF
4767 all:
4768         @echo 'ac_maketemp="$(MAKE)"'
4769 _ACEOF
4770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4771 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4772 if test -n "$ac_maketemp"; then
4773   eval ac_cv_prog_make_${ac_make}_set=yes
4774 else
4775   eval ac_cv_prog_make_${ac_make}_set=no
4776 fi
4777 rm -f conftest.make
4778 fi
4779 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4780   echo "$as_me:$LINENO: result: yes" >&5
4781 echo "${ECHO_T}yes" >&6
4782   SET_MAKE=
4783 else
4784   echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6
4786   SET_MAKE="MAKE=${MAKE-make}"
4787 fi
4788
4789
4790
4791         MKINSTALLDIRS=
4792   if test -n "$ac_aux_dir"; then
4793     case "$ac_aux_dir" in
4794       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4795       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4796     esac
4797   fi
4798   if test -z "$MKINSTALLDIRS"; then
4799     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4800   fi
4801
4802
4803
4804   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4805 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4806     # Check whether --enable-nls or --disable-nls was given.
4807 if test "${enable_nls+set}" = set; then
4808   enableval="$enable_nls"
4809   USE_NLS=$enableval
4810 else
4811   USE_NLS=yes
4812 fi;
4813   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4814 echo "${ECHO_T}$USE_NLS" >&6
4815
4816
4817
4818
4819
4820
4821 # Prepare PATH_SEPARATOR.
4822 # The user is always right.
4823 if test "${PATH_SEPARATOR+set}" != set; then
4824   echo "#! /bin/sh" >conf$$.sh
4825   echo  "exit 0"   >>conf$$.sh
4826   chmod +x conf$$.sh
4827   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4828     PATH_SEPARATOR=';'
4829   else
4830     PATH_SEPARATOR=:
4831   fi
4832   rm -f conf$$.sh
4833 fi
4834
4835 # Find out how to test for executable files. Don't use a zero-byte file,
4836 # as systems may use methods other than mode bits to determine executability.
4837 cat >conf$$.file <<_ASEOF
4838 #! /bin/sh
4839 exit 0
4840 _ASEOF
4841 chmod +x conf$$.file
4842 if test -x conf$$.file >/dev/null 2>&1; then
4843   ac_executable_p="test -x"
4844 else
4845   ac_executable_p="test -f"
4846 fi
4847 rm -f conf$$.file
4848
4849 # Extract the first word of "msgfmt", so it can be a program name with args.
4850 set dummy msgfmt; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MSGFMT+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   case "$MSGFMT" in
4857   [\\/]* | ?:[\\/]*)
4858     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4859     ;;
4860   *)
4861     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4862     for ac_dir in $PATH; do
4863       IFS="$ac_save_IFS"
4864       test -z "$ac_dir" && ac_dir=.
4865       for ac_exec_ext in '' $ac_executable_extensions; do
4866         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4867           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4868           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4869      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4870             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4871             break 2
4872           fi
4873         fi
4874       done
4875     done
4876     IFS="$ac_save_IFS"
4877   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4878     ;;
4879 esac
4880 fi
4881 MSGFMT="$ac_cv_path_MSGFMT"
4882 if test "$MSGFMT" != ":"; then
4883   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4884 echo "${ECHO_T}$MSGFMT" >&6
4885 else
4886   echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4888 fi
4889
4890   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4891 set dummy gmsgfmt; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   case $GMSGFMT in
4898   [\\/]* | ?:[\\/]*)
4899   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4900   ;;
4901   *)
4902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907   for ac_exec_ext in '' $ac_executable_extensions; do
4908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914 done
4915
4916   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4917   ;;
4918 esac
4919 fi
4920 GMSGFMT=$ac_cv_path_GMSGFMT
4921
4922 if test -n "$GMSGFMT"; then
4923   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4924 echo "${ECHO_T}$GMSGFMT" >&6
4925 else
4926   echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930
4931
4932 # Prepare PATH_SEPARATOR.
4933 # The user is always right.
4934 if test "${PATH_SEPARATOR+set}" != set; then
4935   echo "#! /bin/sh" >conf$$.sh
4936   echo  "exit 0"   >>conf$$.sh
4937   chmod +x conf$$.sh
4938   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4939     PATH_SEPARATOR=';'
4940   else
4941     PATH_SEPARATOR=:
4942   fi
4943   rm -f conf$$.sh
4944 fi
4945
4946 # Find out how to test for executable files. Don't use a zero-byte file,
4947 # as systems may use methods other than mode bits to determine executability.
4948 cat >conf$$.file <<_ASEOF
4949 #! /bin/sh
4950 exit 0
4951 _ASEOF
4952 chmod +x conf$$.file
4953 if test -x conf$$.file >/dev/null 2>&1; then
4954   ac_executable_p="test -x"
4955 else
4956   ac_executable_p="test -f"
4957 fi
4958 rm -f conf$$.file
4959
4960 # Extract the first word of "xgettext", so it can be a program name with args.
4961 set dummy xgettext; ac_word=$2
4962 echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   case "$XGETTEXT" in
4968   [\\/]* | ?:[\\/]*)
4969     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4970     ;;
4971   *)
4972     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4973     for ac_dir in $PATH; do
4974       IFS="$ac_save_IFS"
4975       test -z "$ac_dir" && ac_dir=.
4976       for ac_exec_ext in '' $ac_executable_extensions; do
4977         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4978           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4979           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4980      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4981             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4982             break 2
4983           fi
4984         fi
4985       done
4986     done
4987     IFS="$ac_save_IFS"
4988   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4989     ;;
4990 esac
4991 fi
4992 XGETTEXT="$ac_cv_path_XGETTEXT"
4993 if test "$XGETTEXT" != ":"; then
4994   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4995 echo "${ECHO_T}$XGETTEXT" >&6
4996 else
4997   echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
4999 fi
5000
5001     rm -f messages.po
5002
5003
5004 # Prepare PATH_SEPARATOR.
5005 # The user is always right.
5006 if test "${PATH_SEPARATOR+set}" != set; then
5007   echo "#! /bin/sh" >conf$$.sh
5008   echo  "exit 0"   >>conf$$.sh
5009   chmod +x conf$$.sh
5010   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5011     PATH_SEPARATOR=';'
5012   else
5013     PATH_SEPARATOR=:
5014   fi
5015   rm -f conf$$.sh
5016 fi
5017
5018 # Find out how to test for executable files. Don't use a zero-byte file,
5019 # as systems may use methods other than mode bits to determine executability.
5020 cat >conf$$.file <<_ASEOF
5021 #! /bin/sh
5022 exit 0
5023 _ASEOF
5024 chmod +x conf$$.file
5025 if test -x conf$$.file >/dev/null 2>&1; then
5026   ac_executable_p="test -x"
5027 else
5028   ac_executable_p="test -f"
5029 fi
5030 rm -f conf$$.file
5031
5032 # Extract the first word of "msgmerge", so it can be a program name with args.
5033 set dummy msgmerge; ac_word=$2
5034 echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5036 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   case "$MSGMERGE" in
5040   [\\/]* | ?:[\\/]*)
5041     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5042     ;;
5043   *)
5044     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5045     for ac_dir in $PATH; do
5046       IFS="$ac_save_IFS"
5047       test -z "$ac_dir" && ac_dir=.
5048       for ac_exec_ext in '' $ac_executable_extensions; do
5049         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5050           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5051           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5052             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5053             break 2
5054           fi
5055         fi
5056       done
5057     done
5058     IFS="$ac_save_IFS"
5059   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5060     ;;
5061 esac
5062 fi
5063 MSGMERGE="$ac_cv_path_MSGMERGE"
5064 if test "$MSGMERGE" != ":"; then
5065   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5066 echo "${ECHO_T}$MSGMERGE" >&6
5067 else
5068   echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5070 fi
5071
5072
5073       if test "$GMSGFMT" != ":"; then
5074             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5075        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5076       : ;
5077     else
5078       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5079       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5080 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5081       GMSGFMT=":"
5082     fi
5083   fi
5084
5085       if test "$XGETTEXT" != ":"; then
5086             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5087        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5088       : ;
5089     else
5090       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5091 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5092       XGETTEXT=":"
5093     fi
5094         rm -f messages.po
5095   fi
5096
5097             ac_config_commands="$ac_config_commands default-1"
5098
5099
5100
5101       if test "X$prefix" = "XNONE"; then
5102     acl_final_prefix="$ac_default_prefix"
5103   else
5104     acl_final_prefix="$prefix"
5105   fi
5106   if test "X$exec_prefix" = "XNONE"; then
5107     acl_final_exec_prefix='${prefix}'
5108   else
5109     acl_final_exec_prefix="$exec_prefix"
5110   fi
5111   acl_save_prefix="$prefix"
5112   prefix="$acl_final_prefix"
5113   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5114   prefix="$acl_save_prefix"
5115
5116
5117 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5118 if test "${with_gnu_ld+set}" = set; then
5119   withval="$with_gnu_ld"
5120   test "$withval" = no || with_gnu_ld=yes
5121 else
5122   with_gnu_ld=no
5123 fi;
5124 # Prepare PATH_SEPARATOR.
5125 # The user is always right.
5126 if test "${PATH_SEPARATOR+set}" != set; then
5127   echo "#! /bin/sh" >conf$$.sh
5128   echo  "exit 0"   >>conf$$.sh
5129   chmod +x conf$$.sh
5130   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5131     PATH_SEPARATOR=';'
5132   else
5133     PATH_SEPARATOR=:
5134   fi
5135   rm -f conf$$.sh
5136 fi
5137 ac_prog=ld
5138 if test "$GCC" = yes; then
5139   # Check if gcc -print-prog-name=ld gives a path.
5140   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5141 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5142   case $host in
5143   *-*-mingw*)
5144     # gcc leaves a trailing carriage return which upsets mingw
5145     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5146   *)
5147     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5148   esac
5149   case $ac_prog in
5150     # Accept absolute paths.
5151     [\\/]* | [A-Za-z]:[\\/]*)
5152       re_direlt='/[^/][^/]*/\.\./'
5153       # Canonicalize the path of ld
5154       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5155       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5156         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5157       done
5158       test -z "$LD" && LD="$ac_prog"
5159       ;;
5160   "")
5161     # If it fails, then pretend we aren't using GCC.
5162     ac_prog=ld
5163     ;;
5164   *)
5165     # If it is relative, then search for the first ld in PATH.
5166     with_gnu_ld=unknown
5167     ;;
5168   esac
5169 elif test "$with_gnu_ld" = yes; then
5170   echo "$as_me:$LINENO: checking for GNU ld" >&5
5171 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5172 else
5173   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5174 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5175 fi
5176 if test "${acl_cv_path_LD+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179   if test -z "$LD"; then
5180   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5181   for ac_dir in $PATH; do
5182     test -z "$ac_dir" && ac_dir=.
5183     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5184       acl_cv_path_LD="$ac_dir/$ac_prog"
5185       # Check to see if the program is GNU ld.  I'd rather use --version,
5186       # but apparently some GNU ld's only accept -v.
5187       # Break only if it was the GNU/non-GNU ld that we prefer.
5188       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5189       *GNU* | *'with BFD'*)
5190         test "$with_gnu_ld" != no && break ;;
5191       *)
5192         test "$with_gnu_ld" != yes && break ;;
5193       esac
5194     fi
5195   done
5196   IFS="$ac_save_ifs"
5197 else
5198   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5199 fi
5200 fi
5201
5202 LD="$acl_cv_path_LD"
5203 if test -n "$LD"; then
5204   echo "$as_me:$LINENO: result: $LD" >&5
5205 echo "${ECHO_T}$LD" >&6
5206 else
5207   echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5209 fi
5210 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5211 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5212    { (exit 1); exit 1; }; }
5213 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5214 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5215 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5219 case `$LD -v 2>&1 </dev/null` in
5220 *GNU* | *'with BFD'*)
5221   acl_cv_prog_gnu_ld=yes ;;
5222 *)
5223   acl_cv_prog_gnu_ld=no ;;
5224 esac
5225 fi
5226 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5227 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5228 with_gnu_ld=$acl_cv_prog_gnu_ld
5229
5230
5231
5232
5233                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5234 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5235 if test "${acl_cv_rpath+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238
5239     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5240     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5241     . ./conftest.sh
5242     rm -f ./conftest.sh
5243     acl_cv_rpath=done
5244
5245 fi
5246 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5247 echo "${ECHO_T}$acl_cv_rpath" >&6
5248   wl="$acl_cv_wl"
5249   libext="$acl_cv_libext"
5250   shlibext="$acl_cv_shlibext"
5251   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5252   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5253   hardcode_direct="$acl_cv_hardcode_direct"
5254   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5255     # Check whether --enable-rpath or --disable-rpath was given.
5256 if test "${enable_rpath+set}" = set; then
5257   enableval="$enable_rpath"
5258   :
5259 else
5260   enable_rpath=yes
5261 fi;
5262
5263
5264
5265
5266
5267
5268
5269     use_additional=yes
5270
5271   acl_save_prefix="$prefix"
5272   prefix="$acl_final_prefix"
5273   acl_save_exec_prefix="$exec_prefix"
5274   exec_prefix="$acl_final_exec_prefix"
5275
5276     eval additional_includedir=\"$includedir\"
5277     eval additional_libdir=\"$libdir\"
5278
5279   exec_prefix="$acl_save_exec_prefix"
5280   prefix="$acl_save_prefix"
5281
5282
5283 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5284 if test "${with_libiconv_prefix+set}" = set; then
5285   withval="$with_libiconv_prefix"
5286
5287     if test "X$withval" = "Xno"; then
5288       use_additional=no
5289     else
5290       if test "X$withval" = "X"; then
5291
5292   acl_save_prefix="$prefix"
5293   prefix="$acl_final_prefix"
5294   acl_save_exec_prefix="$exec_prefix"
5295   exec_prefix="$acl_final_exec_prefix"
5296
5297           eval additional_includedir=\"$includedir\"
5298           eval additional_libdir=\"$libdir\"
5299
5300   exec_prefix="$acl_save_exec_prefix"
5301   prefix="$acl_save_prefix"
5302
5303       else
5304         additional_includedir="$withval/include"
5305         additional_libdir="$withval/lib"
5306       fi
5307     fi
5308
5309 fi;
5310       LIBICONV=
5311   LTLIBICONV=
5312   INCICONV=
5313   rpathdirs=
5314   ltrpathdirs=
5315   names_already_handled=
5316   names_next_round='iconv '
5317   while test -n "$names_next_round"; do
5318     names_this_round="$names_next_round"
5319     names_next_round=
5320     for name in $names_this_round; do
5321       already_handled=
5322       for n in $names_already_handled; do
5323         if test "$n" = "$name"; then
5324           already_handled=yes
5325           break
5326         fi
5327       done
5328       if test -z "$already_handled"; then
5329         names_already_handled="$names_already_handled $name"
5330                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5331         eval value=\"\$HAVE_LIB$uppername\"
5332         if test -n "$value"; then
5333           if test "$value" = yes; then
5334             eval value=\"\$LIB$uppername\"
5335             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5336             eval value=\"\$LTLIB$uppername\"
5337             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5338           else
5339                                     :
5340           fi
5341         else
5342                               found_dir=
5343           found_la=
5344           found_so=
5345           found_a=
5346           if test $use_additional = yes; then
5347             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5348               found_dir="$additional_libdir"
5349               found_so="$additional_libdir/lib$name.$shlibext"
5350               if test -f "$additional_libdir/lib$name.la"; then
5351                 found_la="$additional_libdir/lib$name.la"
5352               fi
5353             else
5354               if test -f "$additional_libdir/lib$name.$libext"; then
5355                 found_dir="$additional_libdir"
5356                 found_a="$additional_libdir/lib$name.$libext"
5357                 if test -f "$additional_libdir/lib$name.la"; then
5358                   found_la="$additional_libdir/lib$name.la"
5359                 fi
5360               fi
5361             fi
5362           fi
5363           if test "X$found_dir" = "X"; then
5364             for x in $LDFLAGS $LTLIBICONV; do
5365
5366   acl_save_prefix="$prefix"
5367   prefix="$acl_final_prefix"
5368   acl_save_exec_prefix="$exec_prefix"
5369   exec_prefix="$acl_final_exec_prefix"
5370   eval x=\"$x\"
5371   exec_prefix="$acl_save_exec_prefix"
5372   prefix="$acl_save_prefix"
5373
5374               case "$x" in
5375                 -L*)
5376                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5377                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5378                     found_dir="$dir"
5379                     found_so="$dir/lib$name.$shlibext"
5380                     if test -f "$dir/lib$name.la"; then
5381                       found_la="$dir/lib$name.la"
5382                     fi
5383                   else
5384                     if test -f "$dir/lib$name.$libext"; then
5385                       found_dir="$dir"
5386                       found_a="$dir/lib$name.$libext"
5387                       if test -f "$dir/lib$name.la"; then
5388                         found_la="$dir/lib$name.la"
5389                       fi
5390                     fi
5391                   fi
5392                   ;;
5393               esac
5394               if test "X$found_dir" != "X"; then
5395                 break
5396               fi
5397             done
5398           fi
5399           if test "X$found_dir" != "X"; then
5400                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5401             if test "X$found_so" != "X"; then
5402                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5403                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5404               else
5405                                                                                 haveit=
5406                 for x in $ltrpathdirs; do
5407                   if test "X$x" = "X$found_dir"; then
5408                     haveit=yes
5409                     break
5410                   fi
5411                 done
5412                 if test -z "$haveit"; then
5413                   ltrpathdirs="$ltrpathdirs $found_dir"
5414                 fi
5415                                 if test "$hardcode_direct" = yes; then
5416                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5417                 else
5418                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5419                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5420                                                             haveit=
5421                     for x in $rpathdirs; do
5422                       if test "X$x" = "X$found_dir"; then
5423                         haveit=yes
5424                         break
5425                       fi
5426                     done
5427                     if test -z "$haveit"; then
5428                       rpathdirs="$rpathdirs $found_dir"
5429                     fi
5430                   else
5431                                                                                 haveit=
5432                     for x in $LDFLAGS $LIBICONV; do
5433
5434   acl_save_prefix="$prefix"
5435   prefix="$acl_final_prefix"
5436   acl_save_exec_prefix="$exec_prefix"
5437   exec_prefix="$acl_final_exec_prefix"
5438   eval x=\"$x\"
5439   exec_prefix="$acl_save_exec_prefix"
5440   prefix="$acl_save_prefix"
5441
5442                       if test "X$x" = "X-L$found_dir"; then
5443                         haveit=yes
5444                         break
5445                       fi
5446                     done
5447                     if test -z "$haveit"; then
5448                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5449                     fi
5450                     if test "$hardcode_minus_L" != no; then
5451                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5452                     else
5453                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5454                     fi
5455                   fi
5456                 fi
5457               fi
5458             else
5459               if test "X$found_a" != "X"; then
5460                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5461               else
5462                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5463               fi
5464             fi
5465                         additional_includedir=
5466             case "$found_dir" in
5467               */lib | */lib/)
5468                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5469                 additional_includedir="$basedir/include"
5470                 ;;
5471             esac
5472             if test "X$additional_includedir" != "X"; then
5473                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5474                 haveit=
5475                 if test "X$additional_includedir" = "X/usr/local/include"; then
5476                   if test -n "$GCC"; then
5477                     case $host_os in
5478                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5479                     esac
5480                   fi
5481                 fi
5482                 if test -z "$haveit"; then
5483                   for x in $CPPFLAGS $INCICONV; do
5484
5485   acl_save_prefix="$prefix"
5486   prefix="$acl_final_prefix"
5487   acl_save_exec_prefix="$exec_prefix"
5488   exec_prefix="$acl_final_exec_prefix"
5489   eval x=\"$x\"
5490   exec_prefix="$acl_save_exec_prefix"
5491   prefix="$acl_save_prefix"
5492
5493                     if test "X$x" = "X-I$additional_includedir"; then
5494                       haveit=yes
5495                       break
5496                     fi
5497                   done
5498                   if test -z "$haveit"; then
5499                     if test -d "$additional_includedir"; then
5500                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5501                     fi
5502                   fi
5503                 fi
5504               fi
5505             fi
5506                         if test -n "$found_la"; then
5507                                                         save_libdir="$libdir"
5508               case "$found_la" in
5509                 */* | *\\*) . "$found_la" ;;
5510                 *) . "./$found_la" ;;
5511               esac
5512               libdir="$save_libdir"
5513                             for dep in $dependency_libs; do
5514                 case "$dep" in
5515                   -L*)
5516                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5517                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5518                       haveit=
5519                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5520                         if test -n "$GCC"; then
5521                           case $host_os in
5522                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5523                           esac
5524                         fi
5525                       fi
5526                       if test -z "$haveit"; then
5527                         haveit=
5528                         for x in $LDFLAGS $LIBICONV; do
5529
5530   acl_save_prefix="$prefix"
5531   prefix="$acl_final_prefix"
5532   acl_save_exec_prefix="$exec_prefix"
5533   exec_prefix="$acl_final_exec_prefix"
5534   eval x=\"$x\"
5535   exec_prefix="$acl_save_exec_prefix"
5536   prefix="$acl_save_prefix"
5537
5538                           if test "X$x" = "X-L$additional_libdir"; then
5539                             haveit=yes
5540                             break
5541                           fi
5542                         done
5543                         if test -z "$haveit"; then
5544                           if test -d "$additional_libdir"; then
5545                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5546                           fi
5547                         fi
5548                         haveit=
5549                         for x in $LDFLAGS $LTLIBICONV; do
5550
5551   acl_save_prefix="$prefix"
5552   prefix="$acl_final_prefix"
5553   acl_save_exec_prefix="$exec_prefix"
5554   exec_prefix="$acl_final_exec_prefix"
5555   eval x=\"$x\"
5556   exec_prefix="$acl_save_exec_prefix"
5557   prefix="$acl_save_prefix"
5558
5559                           if test "X$x" = "X-L$additional_libdir"; then
5560                             haveit=yes
5561                             break
5562                           fi
5563                         done
5564                         if test -z "$haveit"; then
5565                           if test -d "$additional_libdir"; then
5566                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5567                           fi
5568                         fi
5569                       fi
5570                     fi
5571                     ;;
5572                   -R*)
5573                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5574                     if test "$enable_rpath" != no; then
5575                                                                   haveit=
5576                       for x in $rpathdirs; do
5577                         if test "X$x" = "X$dir"; then
5578                           haveit=yes
5579                           break
5580                         fi
5581                       done
5582                       if test -z "$haveit"; then
5583                         rpathdirs="$rpathdirs $dir"
5584                       fi
5585                                                                   haveit=
5586                       for x in $ltrpathdirs; do
5587                         if test "X$x" = "X$dir"; then
5588                           haveit=yes
5589                           break
5590                         fi
5591                       done
5592                       if test -z "$haveit"; then
5593                         ltrpathdirs="$ltrpathdirs $dir"
5594                       fi
5595                     fi
5596                     ;;
5597                   -l*)
5598                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5599                     ;;
5600                   *.la)
5601                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5602                     ;;
5603                   *)
5604                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5605                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5606                     ;;
5607                 esac
5608               done
5609             fi
5610           else
5611                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5612             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5613           fi
5614         fi
5615       fi
5616     done
5617   done
5618   if test "X$rpathdirs" != "X"; then
5619     if test -n "$hardcode_libdir_separator"; then
5620                         alldirs=
5621       for found_dir in $rpathdirs; do
5622         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5623       done
5624             acl_save_libdir="$libdir"
5625       libdir="$alldirs"
5626       eval flag=\"$hardcode_libdir_flag_spec\"
5627       libdir="$acl_save_libdir"
5628       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5629     else
5630             for found_dir in $rpathdirs; do
5631         acl_save_libdir="$libdir"
5632         libdir="$found_dir"
5633         eval flag=\"$hardcode_libdir_flag_spec\"
5634         libdir="$acl_save_libdir"
5635         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5636       done
5637     fi
5638   fi
5639   if test "X$ltrpathdirs" != "X"; then
5640             for found_dir in $ltrpathdirs; do
5641       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5642     done
5643   fi
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5663 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5664 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   gt_save_CPPFLAGS="$CPPFLAGS"
5668      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5669      gt_save_LIBS="$LIBS"
5670      LIBS="$LIBS -framework CoreFoundation"
5671      cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677 #include <CFPreferences.h>
5678 int
5679 main ()
5680 {
5681 CFPreferencesCopyAppValue(NULL, NULL)
5682   ;
5683   return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext conftest$ac_exeext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688   (eval $ac_link) 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } &&
5695          { ac_try='test -z "$ac_c_werror_flag"
5696                          || test ! -s conftest.err'
5697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698   (eval $ac_try) 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; } &&
5702          { ac_try='test -s conftest$ac_exeext'
5703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704   (eval $ac_try) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; }; then
5708   gt_cv_func_CFPreferencesCopyAppValue=yes
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 gt_cv_func_CFPreferencesCopyAppValue=no
5714 fi
5715 rm -f conftest.err conftest.$ac_objext \
5716       conftest$ac_exeext conftest.$ac_ext
5717      CPPFLAGS="$gt_save_CPPFLAGS"
5718      LIBS="$gt_save_LIBS"
5719 fi
5720 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5721 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5722   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5723
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5726 _ACEOF
5727
5728   fi
5729     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5730 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5731 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   gt_save_CPPFLAGS="$CPPFLAGS"
5735      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5736      gt_save_LIBS="$LIBS"
5737      LIBS="$LIBS -framework CoreFoundation"
5738      cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h.  */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h.  */
5744 #include <CFLocale.h>
5745 int
5746 main ()
5747 {
5748 CFLocaleCopyCurrent();
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext conftest$ac_exeext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5755   (eval $ac_link) 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -z "$ac_c_werror_flag"
5763                          || test ! -s conftest.err'
5764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765   (eval $ac_try) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; } &&
5769          { ac_try='test -s conftest$ac_exeext'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; }; then
5775   gt_cv_func_CFLocaleCopyCurrent=yes
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 gt_cv_func_CFLocaleCopyCurrent=no
5781 fi
5782 rm -f conftest.err conftest.$ac_objext \
5783       conftest$ac_exeext conftest.$ac_ext
5784      CPPFLAGS="$gt_save_CPPFLAGS"
5785      LIBS="$gt_save_LIBS"
5786 fi
5787 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5788 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5789   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5790
5791 cat >>confdefs.h <<\_ACEOF
5792 #define HAVE_CFLOCALECOPYCURRENT 1
5793 _ACEOF
5794
5795   fi
5796   INTL_MACOSX_LIBS=
5797   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5798     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5799   fi
5800
5801
5802
5803
5804   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5805 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5806     # Check whether --enable-nls or --disable-nls was given.
5807 if test "${enable_nls+set}" = set; then
5808   enableval="$enable_nls"
5809   USE_NLS=$enableval
5810 else
5811   USE_NLS=yes
5812 fi;
5813   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5814 echo "${ECHO_T}$USE_NLS" >&6
5815
5816
5817
5818
5819   LIBINTL=
5820   LTLIBINTL=
5821   POSUB=
5822
5823     if test "$USE_NLS" = "yes"; then
5824     gt_use_preinstalled_gnugettext=no
5825
5826
5827
5828
5829
5830
5831         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5832 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5833 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842 #include <libintl.h>
5843 extern int _nl_msg_cat_cntr;
5844 extern int *_nl_domain_bindings;
5845 int
5846 main ()
5847 {
5848 bindtextdomain ("", "");
5849 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5850   ;
5851   return 0;
5852 }
5853 _ACEOF
5854 rm -f conftest.$ac_objext conftest$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856   (eval $ac_link) 2>conftest.er1
5857   ac_status=$?
5858   grep -v '^ *+' conftest.er1 >conftest.err
5859   rm -f conftest.er1
5860   cat conftest.err >&5
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -z "$ac_c_werror_flag"
5864                          || test ! -s conftest.err'
5865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866   (eval $ac_try) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); }; } &&
5870          { ac_try='test -s conftest$ac_exeext'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; }; then
5876   gt_cv_func_gnugettext1_libc=yes
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881 gt_cv_func_gnugettext1_libc=no
5882 fi
5883 rm -f conftest.err conftest.$ac_objext \
5884       conftest$ac_exeext conftest.$ac_ext
5885 fi
5886 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5887 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5888
5889         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5890
5891
5892
5893
5894
5895           am_save_CPPFLAGS="$CPPFLAGS"
5896
5897   for element in $INCICONV; do
5898     haveit=
5899     for x in $CPPFLAGS; do
5900
5901   acl_save_prefix="$prefix"
5902   prefix="$acl_final_prefix"
5903   acl_save_exec_prefix="$exec_prefix"
5904   exec_prefix="$acl_final_exec_prefix"
5905   eval x=\"$x\"
5906   exec_prefix="$acl_save_exec_prefix"
5907   prefix="$acl_save_prefix"
5908
5909       if test "X$x" = "X$element"; then
5910         haveit=yes
5911         break
5912       fi
5913     done
5914     if test -z "$haveit"; then
5915       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5916     fi
5917   done
5918
5919
5920   echo "$as_me:$LINENO: checking for iconv" >&5
5921 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5922 if test "${am_cv_func_iconv+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925
5926     am_cv_func_iconv="no, consider installing GNU libiconv"
5927     am_cv_lib_iconv=no
5928     cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 #include <stdlib.h>
5935 #include <iconv.h>
5936 int
5937 main ()
5938 {
5939 iconv_t cd = iconv_open("","");
5940        iconv(cd,NULL,NULL,NULL,NULL);
5941        iconv_close(cd);
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948   (eval $ac_link) 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } &&
5955          { ac_try='test -z "$ac_c_werror_flag"
5956                          || test ! -s conftest.err'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; } &&
5962          { ac_try='test -s conftest$ac_exeext'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   am_cv_func_iconv=yes
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 fi
5974 rm -f conftest.err conftest.$ac_objext \
5975       conftest$ac_exeext conftest.$ac_ext
5976     if test "$am_cv_func_iconv" != yes; then
5977       am_save_LIBS="$LIBS"
5978       LIBS="$LIBS $LIBICONV"
5979       cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986 #include <iconv.h>
5987 int
5988 main ()
5989 {
5990 iconv_t cd = iconv_open("","");
5991          iconv(cd,NULL,NULL,NULL,NULL);
5992          iconv_close(cd);
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"
6007                          || test ! -s conftest.err'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; } &&
6013          { ac_try='test -s conftest$ac_exeext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   am_cv_lib_iconv=yes
6020         am_cv_func_iconv=yes
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 fi
6026 rm -f conftest.err conftest.$ac_objext \
6027       conftest$ac_exeext conftest.$ac_ext
6028       LIBS="$am_save_LIBS"
6029     fi
6030
6031 fi
6032 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6033 echo "${ECHO_T}$am_cv_func_iconv" >&6
6034   if test "$am_cv_func_iconv" = yes; then
6035
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_ICONV 1
6038 _ACEOF
6039
6040   fi
6041   if test "$am_cv_lib_iconv" = yes; then
6042     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6043 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6044     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6045 echo "${ECHO_T}$LIBICONV" >&6
6046   else
6047             CPPFLAGS="$am_save_CPPFLAGS"
6048     LIBICONV=
6049     LTLIBICONV=
6050   fi
6051
6052
6053
6054
6055
6056
6057     use_additional=yes
6058
6059   acl_save_prefix="$prefix"
6060   prefix="$acl_final_prefix"
6061   acl_save_exec_prefix="$exec_prefix"
6062   exec_prefix="$acl_final_exec_prefix"
6063
6064     eval additional_includedir=\"$includedir\"
6065     eval additional_libdir=\"$libdir\"
6066
6067   exec_prefix="$acl_save_exec_prefix"
6068   prefix="$acl_save_prefix"
6069
6070
6071 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6072 if test "${with_libintl_prefix+set}" = set; then
6073   withval="$with_libintl_prefix"
6074
6075     if test "X$withval" = "Xno"; then
6076       use_additional=no
6077     else
6078       if test "X$withval" = "X"; then
6079
6080   acl_save_prefix="$prefix"
6081   prefix="$acl_final_prefix"
6082   acl_save_exec_prefix="$exec_prefix"
6083   exec_prefix="$acl_final_exec_prefix"
6084
6085           eval additional_includedir=\"$includedir\"
6086           eval additional_libdir=\"$libdir\"
6087
6088   exec_prefix="$acl_save_exec_prefix"
6089   prefix="$acl_save_prefix"
6090
6091       else
6092         additional_includedir="$withval/include"
6093         additional_libdir="$withval/lib"
6094       fi
6095     fi
6096
6097 fi;
6098       LIBINTL=
6099   LTLIBINTL=
6100   INCINTL=
6101   rpathdirs=
6102   ltrpathdirs=
6103   names_already_handled=
6104   names_next_round='intl '
6105   while test -n "$names_next_round"; do
6106     names_this_round="$names_next_round"
6107     names_next_round=
6108     for name in $names_this_round; do
6109       already_handled=
6110       for n in $names_already_handled; do
6111         if test "$n" = "$name"; then
6112           already_handled=yes
6113           break
6114         fi
6115       done
6116       if test -z "$already_handled"; then
6117         names_already_handled="$names_already_handled $name"
6118                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6119         eval value=\"\$HAVE_LIB$uppername\"
6120         if test -n "$value"; then
6121           if test "$value" = yes; then
6122             eval value=\"\$LIB$uppername\"
6123             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6124             eval value=\"\$LTLIB$uppername\"
6125             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6126           else
6127                                     :
6128           fi
6129         else
6130                               found_dir=
6131           found_la=
6132           found_so=
6133           found_a=
6134           if test $use_additional = yes; then
6135             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6136               found_dir="$additional_libdir"
6137               found_so="$additional_libdir/lib$name.$shlibext"
6138               if test -f "$additional_libdir/lib$name.la"; then
6139                 found_la="$additional_libdir/lib$name.la"
6140               fi
6141             else
6142               if test -f "$additional_libdir/lib$name.$libext"; then
6143                 found_dir="$additional_libdir"
6144                 found_a="$additional_libdir/lib$name.$libext"
6145                 if test -f "$additional_libdir/lib$name.la"; then
6146                   found_la="$additional_libdir/lib$name.la"
6147                 fi
6148               fi
6149             fi
6150           fi
6151           if test "X$found_dir" = "X"; then
6152             for x in $LDFLAGS $LTLIBINTL; do
6153
6154   acl_save_prefix="$prefix"
6155   prefix="$acl_final_prefix"
6156   acl_save_exec_prefix="$exec_prefix"
6157   exec_prefix="$acl_final_exec_prefix"
6158   eval x=\"$x\"
6159   exec_prefix="$acl_save_exec_prefix"
6160   prefix="$acl_save_prefix"
6161
6162               case "$x" in
6163                 -L*)
6164                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6165                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6166                     found_dir="$dir"
6167                     found_so="$dir/lib$name.$shlibext"
6168                     if test -f "$dir/lib$name.la"; then
6169                       found_la="$dir/lib$name.la"
6170                     fi
6171                   else
6172                     if test -f "$dir/lib$name.$libext"; then
6173                       found_dir="$dir"
6174                       found_a="$dir/lib$name.$libext"
6175                       if test -f "$dir/lib$name.la"; then
6176                         found_la="$dir/lib$name.la"
6177                       fi
6178                     fi
6179                   fi
6180                   ;;
6181               esac
6182               if test "X$found_dir" != "X"; then
6183                 break
6184               fi
6185             done
6186           fi
6187           if test "X$found_dir" != "X"; then
6188                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6189             if test "X$found_so" != "X"; then
6190                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6191                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6192               else
6193                                                                                 haveit=
6194                 for x in $ltrpathdirs; do
6195                   if test "X$x" = "X$found_dir"; then
6196                     haveit=yes
6197                     break
6198                   fi
6199                 done
6200                 if test -z "$haveit"; then
6201                   ltrpathdirs="$ltrpathdirs $found_dir"
6202                 fi
6203                                 if test "$hardcode_direct" = yes; then
6204                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6205                 else
6206                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6207                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6208                                                             haveit=
6209                     for x in $rpathdirs; do
6210                       if test "X$x" = "X$found_dir"; then
6211                         haveit=yes
6212                         break
6213                       fi
6214                     done
6215                     if test -z "$haveit"; then
6216                       rpathdirs="$rpathdirs $found_dir"
6217                     fi
6218                   else
6219                                                                                 haveit=
6220                     for x in $LDFLAGS $LIBINTL; do
6221
6222   acl_save_prefix="$prefix"
6223   prefix="$acl_final_prefix"
6224   acl_save_exec_prefix="$exec_prefix"
6225   exec_prefix="$acl_final_exec_prefix"
6226   eval x=\"$x\"
6227   exec_prefix="$acl_save_exec_prefix"
6228   prefix="$acl_save_prefix"
6229
6230                       if test "X$x" = "X-L$found_dir"; then
6231                         haveit=yes
6232                         break
6233                       fi
6234                     done
6235                     if test -z "$haveit"; then
6236                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6237                     fi
6238                     if test "$hardcode_minus_L" != no; then
6239                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6240                     else
6241                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6242                     fi
6243                   fi
6244                 fi
6245               fi
6246             else
6247               if test "X$found_a" != "X"; then
6248                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6249               else
6250                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6251               fi
6252             fi
6253                         additional_includedir=
6254             case "$found_dir" in
6255               */lib | */lib/)
6256                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6257                 additional_includedir="$basedir/include"
6258                 ;;
6259             esac
6260             if test "X$additional_includedir" != "X"; then
6261                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6262                 haveit=
6263                 if test "X$additional_includedir" = "X/usr/local/include"; then
6264                   if test -n "$GCC"; then
6265                     case $host_os in
6266                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6267                     esac
6268                   fi
6269                 fi
6270                 if test -z "$haveit"; then
6271                   for x in $CPPFLAGS $INCINTL; do
6272
6273   acl_save_prefix="$prefix"
6274   prefix="$acl_final_prefix"
6275   acl_save_exec_prefix="$exec_prefix"
6276   exec_prefix="$acl_final_exec_prefix"
6277   eval x=\"$x\"
6278   exec_prefix="$acl_save_exec_prefix"
6279   prefix="$acl_save_prefix"
6280
6281                     if test "X$x" = "X-I$additional_includedir"; then
6282                       haveit=yes
6283                       break
6284                     fi
6285                   done
6286                   if test -z "$haveit"; then
6287                     if test -d "$additional_includedir"; then
6288                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6289                     fi
6290                   fi
6291                 fi
6292               fi
6293             fi
6294                         if test -n "$found_la"; then
6295                                                         save_libdir="$libdir"
6296               case "$found_la" in
6297                 */* | *\\*) . "$found_la" ;;
6298                 *) . "./$found_la" ;;
6299               esac
6300               libdir="$save_libdir"
6301                             for dep in $dependency_libs; do
6302                 case "$dep" in
6303                   -L*)
6304                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6305                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6306                       haveit=
6307                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6308                         if test -n "$GCC"; then
6309                           case $host_os in
6310                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6311                           esac
6312                         fi
6313                       fi
6314                       if test -z "$haveit"; then
6315                         haveit=
6316                         for x in $LDFLAGS $LIBINTL; do
6317
6318   acl_save_prefix="$prefix"
6319   prefix="$acl_final_prefix"
6320   acl_save_exec_prefix="$exec_prefix"
6321   exec_prefix="$acl_final_exec_prefix"
6322   eval x=\"$x\"
6323   exec_prefix="$acl_save_exec_prefix"
6324   prefix="$acl_save_prefix"
6325
6326                           if test "X$x" = "X-L$additional_libdir"; then
6327                             haveit=yes
6328                             break
6329                           fi
6330                         done
6331                         if test -z "$haveit"; then
6332                           if test -d "$additional_libdir"; then
6333                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6334                           fi
6335                         fi
6336                         haveit=
6337                         for x in $LDFLAGS $LTLIBINTL; do
6338
6339   acl_save_prefix="$prefix"
6340   prefix="$acl_final_prefix"
6341   acl_save_exec_prefix="$exec_prefix"
6342   exec_prefix="$acl_final_exec_prefix"
6343   eval x=\"$x\"
6344   exec_prefix="$acl_save_exec_prefix"
6345   prefix="$acl_save_prefix"
6346
6347                           if test "X$x" = "X-L$additional_libdir"; then
6348                             haveit=yes
6349                             break
6350                           fi
6351                         done
6352                         if test -z "$haveit"; then
6353                           if test -d "$additional_libdir"; then
6354                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6355                           fi
6356                         fi
6357                       fi
6358                     fi
6359                     ;;
6360                   -R*)
6361                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6362                     if test "$enable_rpath" != no; then
6363                                                                   haveit=
6364                       for x in $rpathdirs; do
6365                         if test "X$x" = "X$dir"; then
6366                           haveit=yes
6367                           break
6368                         fi
6369                       done
6370                       if test -z "$haveit"; then
6371                         rpathdirs="$rpathdirs $dir"
6372                       fi
6373                                                                   haveit=
6374                       for x in $ltrpathdirs; do
6375                         if test "X$x" = "X$dir"; then
6376                           haveit=yes
6377                           break
6378                         fi
6379                       done
6380                       if test -z "$haveit"; then
6381                         ltrpathdirs="$ltrpathdirs $dir"
6382                       fi
6383                     fi
6384                     ;;
6385                   -l*)
6386                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6387                     ;;
6388                   *.la)
6389                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6390                     ;;
6391                   *)
6392                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6393                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6394                     ;;
6395                 esac
6396               done
6397             fi
6398           else
6399                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6400             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6401           fi
6402         fi
6403       fi
6404     done
6405   done
6406   if test "X$rpathdirs" != "X"; then
6407     if test -n "$hardcode_libdir_separator"; then
6408                         alldirs=
6409       for found_dir in $rpathdirs; do
6410         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6411       done
6412             acl_save_libdir="$libdir"
6413       libdir="$alldirs"
6414       eval flag=\"$hardcode_libdir_flag_spec\"
6415       libdir="$acl_save_libdir"
6416       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6417     else
6418             for found_dir in $rpathdirs; do
6419         acl_save_libdir="$libdir"
6420         libdir="$found_dir"
6421         eval flag=\"$hardcode_libdir_flag_spec\"
6422         libdir="$acl_save_libdir"
6423         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6424       done
6425     fi
6426   fi
6427   if test "X$ltrpathdirs" != "X"; then
6428             for found_dir in $ltrpathdirs; do
6429       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6430     done
6431   fi
6432
6433           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6434 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6435 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   gt_save_CPPFLAGS="$CPPFLAGS"
6439             CPPFLAGS="$CPPFLAGS $INCINTL"
6440             gt_save_LIBS="$LIBS"
6441             LIBS="$LIBS $LIBINTL"
6442                         cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448 #include <libintl.h>
6449 extern int _nl_msg_cat_cntr;
6450 extern
6451 #ifdef __cplusplus
6452 "C"
6453 #endif
6454 const char *_nl_expand_alias (const char *);
6455 int
6456 main ()
6457 {
6458 bindtextdomain ("", "");
6459 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6460   ;
6461   return 0;
6462 }
6463 _ACEOF
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6466   (eval $ac_link) 2>conftest.er1
6467   ac_status=$?
6468   grep -v '^ *+' conftest.er1 >conftest.err
6469   rm -f conftest.er1
6470   cat conftest.err >&5
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } &&
6473          { ac_try='test -z "$ac_c_werror_flag"
6474                          || test ! -s conftest.err'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; } &&
6480          { ac_try='test -s conftest$ac_exeext'
6481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482   (eval $ac_try) 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; }; then
6486   gt_cv_func_gnugettext1_libintl=yes
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 gt_cv_func_gnugettext1_libintl=no
6492 fi
6493 rm -f conftest.err conftest.$ac_objext \
6494       conftest$ac_exeext conftest.$ac_ext
6495                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6496               LIBS="$LIBS $LIBICONV"
6497               cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h.  */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h.  */
6503 #include <libintl.h>
6504 extern int _nl_msg_cat_cntr;
6505 extern
6506 #ifdef __cplusplus
6507 "C"
6508 #endif
6509 const char *_nl_expand_alias (const char *);
6510 int
6511 main ()
6512 {
6513 bindtextdomain ("", "");
6514 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521   (eval $ac_link) 2>conftest.er1
6522   ac_status=$?
6523   grep -v '^ *+' conftest.er1 >conftest.err
6524   rm -f conftest.er1
6525   cat conftest.err >&5
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); } &&
6528          { ac_try='test -z "$ac_c_werror_flag"
6529                          || test ! -s conftest.err'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; } &&
6535          { ac_try='test -s conftest$ac_exeext'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; }; then
6541   LIBINTL="$LIBINTL $LIBICONV"
6542                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6543                 gt_cv_func_gnugettext1_libintl=yes
6544
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 fi
6550 rm -f conftest.err conftest.$ac_objext \
6551       conftest$ac_exeext conftest.$ac_ext
6552             fi
6553             CPPFLAGS="$gt_save_CPPFLAGS"
6554             LIBS="$gt_save_LIBS"
6555 fi
6556 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6557 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6558         fi
6559
6560                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6561            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6562                 && test "$PACKAGE" != gettext-runtime \
6563                 && test "$PACKAGE" != gettext-tools; }; then
6564           gt_use_preinstalled_gnugettext=yes
6565         else
6566                     LIBINTL=
6567           LTLIBINTL=
6568           INCINTL=
6569         fi
6570
6571
6572
6573     if test -n "$INTL_MACOSX_LIBS"; then
6574       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6575          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6576                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6577         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6578       fi
6579     fi
6580
6581     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6582        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6583
6584 cat >>confdefs.h <<\_ACEOF
6585 #define ENABLE_NLS 1
6586 _ACEOF
6587
6588     else
6589       USE_NLS=no
6590     fi
6591   fi
6592
6593   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6594 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6595   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6596 echo "${ECHO_T}$USE_NLS" >&6
6597   if test "$USE_NLS" = "yes"; then
6598     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6599 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6600     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6601       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6602         gt_source="external libintl"
6603       else
6604         gt_source="libc"
6605       fi
6606     else
6607       gt_source="included intl directory"
6608     fi
6609     echo "$as_me:$LINENO: result: $gt_source" >&5
6610 echo "${ECHO_T}$gt_source" >&6
6611   fi
6612
6613   if test "$USE_NLS" = "yes"; then
6614
6615     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6616       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6617         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6618 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6619         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6620 echo "${ECHO_T}$LIBINTL" >&6
6621
6622   for element in $INCINTL; do
6623     haveit=
6624     for x in $CPPFLAGS; do
6625
6626   acl_save_prefix="$prefix"
6627   prefix="$acl_final_prefix"
6628   acl_save_exec_prefix="$exec_prefix"
6629   exec_prefix="$acl_final_exec_prefix"
6630   eval x=\"$x\"
6631   exec_prefix="$acl_save_exec_prefix"
6632   prefix="$acl_save_prefix"
6633
6634       if test "X$x" = "X$element"; then
6635         haveit=yes
6636         break
6637       fi
6638     done
6639     if test -z "$haveit"; then
6640       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6641     fi
6642   done
6643
6644       fi
6645
6646
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_GETTEXT 1
6649 _ACEOF
6650
6651
6652 cat >>confdefs.h <<\_ACEOF
6653 #define HAVE_DCGETTEXT 1
6654 _ACEOF
6655
6656     fi
6657
6658         POSUB=po
6659   fi
6660
6661
6662
6663     INTLLIBS="$LIBINTL"
6664
6665
6666
6667
6668
6669
6670 if test x${prefix} = xNONE ; then
6671    if test `eval echo ${datadir}` = NONE/share ; then
6672       datadir=/usr/share
6673    fi
6674 fi
6675
6676 # ------------------------------------------------------------------
6677 #  If the user has not set --prefix, we set our default to nothing.
6678 #  In this case, if the user has not set --sysconfdir, we set it
6679 #  to the package default of /etc/bacula.  If either --prefix or
6680 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6681 # ------------------------------------------------------------------
6682 if test x${prefix} = xNONE ; then
6683     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6684         sysconfdir=/etc/bacula
6685     fi
6686     prefix=
6687 fi
6688 sysconfdir=`eval echo ${sysconfdir}`
6689 datadir=`eval echo ${datadir}`
6690 localedir=`eval echo ${datadir}/locale`
6691 cat >>confdefs.h <<_ACEOF
6692 #define LOCALEDIR "$localedir"
6693 _ACEOF
6694
6695
6696 # -------------------------------------------------------------------------
6697 #  If the user has not set --exec-prefix, we default to ${prefix}
6698 # -------------------------------------------------------------------------
6699 if test x${exec_prefix} = xNONE ; then
6700     exec_prefix=${prefix}
6701 fi
6702
6703 # ------------------------------------------------------------------
6704 # If the user has not set --sbindir, we set our default as /sbin
6705 # ------------------------------------------------------------------
6706 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6707     sbindir=${exec_prefix}/sbin
6708 fi
6709 sbindir=`eval echo ${sbindir}`
6710
6711 # -------------------------------------------------------------------------
6712 #  If the user has not set --mandir, we default to /usr/share/man
6713 # -------------------------------------------------------------------------
6714 if test x$mandir = x'${prefix}/man' ; then
6715    mandir=/usr/share/man
6716 fi
6717
6718
6719 # ------------------------------------------------------------------
6720 # All list of languages for which a translation exist. Each
6721 #  language is separated by a space.
6722 # ------------------------------------------------------------------
6723 ALL_LINGUAS=""
6724
6725 for ac_prog in msgfmt
6726 do
6727   # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6731 if test "${ac_cv_path_MSGFMT+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $MSGFMT in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752
6753   ;;
6754 esac
6755 fi
6756 MSGFMT=$ac_cv_path_MSGFMT
6757
6758 if test -n "$MSGFMT"; then
6759   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6760 echo "${ECHO_T}$MSGFMT" >&6
6761 else
6762   echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6
6764 fi
6765
6766   test -n "$MSGFMT" && break
6767 done
6768 test -n "$MSGFMT" || MSGFMT="no"
6769
6770 if test "$MSGFMT" = "no"
6771 then
6772    echo 'msgfmt program not found, disabling NLS !'
6773    USE_NLS=no
6774    USE_INCLUDED_LIBINTL=no
6775 #else
6776
6777     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6778 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6779 if test "${ac_cv_gnu_library_2+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h.  */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h.  */
6788
6789 #include <features.h>
6790 #ifdef __GNU_LIBRARY__
6791  #if (__GLIBC__ >= 2)
6792   Lucky GNU user
6793  #endif
6794 #endif
6795
6796 _ACEOF
6797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6798   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6799   ac_cv_gnu_library_2=yes
6800 else
6801   ac_cv_gnu_library_2=no
6802 fi
6803 rm -f conftest*
6804
6805
6806
6807 fi
6808 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6809 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6810
6811     GLIBC2="$ac_cv_gnu_library_2"
6812
6813
6814 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6815 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6816 if test "${ac_cv_search_strerror+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   ac_func_search_save_LIBS=$LIBS
6820 ac_cv_search_strerror=no
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827
6828 /* Override any gcc2 internal prototype to avoid an error.  */
6829 #ifdef __cplusplus
6830 extern "C"
6831 #endif
6832 /* We use char because int might match the return type of a gcc2
6833    builtin and then its argument prototype would still apply.  */
6834 char strerror ();
6835 int
6836 main ()
6837 {
6838 strerror ();
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845   (eval $ac_link) 2>conftest.er1
6846   ac_status=$?
6847   grep -v '^ *+' conftest.er1 >conftest.err
6848   rm -f conftest.er1
6849   cat conftest.err >&5
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); } &&
6852          { ac_try='test -z "$ac_c_werror_flag"
6853                          || test ! -s conftest.err'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; } &&
6859          { ac_try='test -s conftest$ac_exeext'
6860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861   (eval $ac_try) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; }; then
6865   ac_cv_search_strerror="none required"
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870 fi
6871 rm -f conftest.err conftest.$ac_objext \
6872       conftest$ac_exeext conftest.$ac_ext
6873 if test "$ac_cv_search_strerror" = no; then
6874   for ac_lib in cposix; do
6875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6876     cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882
6883 /* Override any gcc2 internal prototype to avoid an error.  */
6884 #ifdef __cplusplus
6885 extern "C"
6886 #endif
6887 /* We use char because int might match the return type of a gcc2
6888    builtin and then its argument prototype would still apply.  */
6889 char strerror ();
6890 int
6891 main ()
6892 {
6893 strerror ();
6894   ;
6895   return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900   (eval $ac_link) 2>conftest.er1
6901   ac_status=$?
6902   grep -v '^ *+' conftest.er1 >conftest.err
6903   rm -f conftest.er1
6904   cat conftest.err >&5
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } &&
6907          { ac_try='test -z "$ac_c_werror_flag"
6908                          || test ! -s conftest.err'
6909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910   (eval $ac_try) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; } &&
6914          { ac_try='test -s conftest$ac_exeext'
6915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916   (eval $ac_try) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; }; then
6920   ac_cv_search_strerror="-l$ac_lib"
6921 break
6922 else
6923   echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 fi
6927 rm -f conftest.err conftest.$ac_objext \
6928       conftest$ac_exeext conftest.$ac_ext
6929   done
6930 fi
6931 LIBS=$ac_func_search_save_LIBS
6932 fi
6933 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6934 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6935 if test "$ac_cv_search_strerror" != no; then
6936   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6937
6938 fi
6939
6940 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6942 if test "${ac_cv_header_stdc+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h.  */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h.  */
6951 #include <stdlib.h>
6952 #include <stdarg.h>
6953 #include <string.h>
6954 #include <float.h>
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966   (eval $ac_compile) 2>conftest.er1
6967   ac_status=$?
6968   grep -v '^ *+' conftest.er1 >conftest.err
6969   rm -f conftest.er1
6970   cat conftest.err >&5
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); } &&
6973          { ac_try='test -z "$ac_c_werror_flag"
6974                          || test ! -s conftest.err'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; } &&
6980          { ac_try='test -s conftest.$ac_objext'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986   ac_cv_header_stdc=yes
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991 ac_cv_header_stdc=no
6992 fi
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994
6995 if test $ac_cv_header_stdc = yes; then
6996   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997   cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 #include <string.h>
7004
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007   $EGREP "memchr" >/dev/null 2>&1; then
7008   :
7009 else
7010   ac_cv_header_stdc=no
7011 fi
7012 rm -f conftest*
7013
7014 fi
7015
7016 if test $ac_cv_header_stdc = yes; then
7017   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7018   cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024 #include <stdlib.h>
7025
7026 _ACEOF
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028   $EGREP "free" >/dev/null 2>&1; then
7029   :
7030 else
7031   ac_cv_header_stdc=no
7032 fi
7033 rm -f conftest*
7034
7035 fi
7036
7037 if test $ac_cv_header_stdc = yes; then
7038   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039   if test "$cross_compiling" = yes; then
7040   :
7041 else
7042   cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048 #include <ctype.h>
7049 #if ((' ' & 0x0FF) == 0x020)
7050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7052 #else
7053 # define ISLOWER(c) \
7054                    (('a' <= (c) && (c) <= 'i') \
7055                      || ('j' <= (c) && (c) <= 'r') \
7056                      || ('s' <= (c) && (c) <= 'z'))
7057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7058 #endif
7059
7060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7061 int
7062 main ()
7063 {
7064   int i;
7065   for (i = 0; i < 256; i++)
7066     if (XOR (islower (i), ISLOWER (i))
7067         || toupper (i) != TOUPPER (i))
7068       exit(2);
7069   exit (0);
7070 }
7071 _ACEOF
7072 rm -f conftest$ac_exeext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074   (eval $ac_link) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   :
7084 else
7085   echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ( exit $ac_status )
7090 ac_cv_header_stdc=no
7091 fi
7092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 fi
7095 fi
7096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7098 if test $ac_cv_header_stdc = yes; then
7099
7100 cat >>confdefs.h <<\_ACEOF
7101 #define STDC_HEADERS 1
7102 _ACEOF
7103
7104 fi
7105
7106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7107 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7108 if test "${ac_cv_c_const+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h.  */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h.  */
7117
7118 int
7119 main ()
7120 {
7121 /* FIXME: Include the comments suggested by Paul. */
7122 #ifndef __cplusplus
7123   /* Ultrix mips cc rejects this.  */
7124   typedef int charset[2];
7125   const charset x;
7126   /* SunOS 4.1.1 cc rejects this.  */
7127   char const *const *ccp;
7128   char **p;
7129   /* NEC SVR4.0.2 mips cc rejects this.  */
7130   struct point {int x, y;};
7131   static struct point const zero = {0,0};
7132   /* AIX XL C 1.02.0.0 rejects this.
7133      It does not let you subtract one const X* pointer from another in
7134      an arm of an if-expression whose if-part is not a constant
7135      expression */
7136   const char *g = "string";
7137   ccp = &g + (g ? g-g : 0);
7138   /* HPUX 7.0 cc rejects these. */
7139   ++ccp;
7140   p = (char**) ccp;
7141   ccp = (char const *const *) p;
7142   { /* SCO 3.2v4 cc rejects this.  */
7143     char *t;
7144     char const *s = 0 ? (char *) 0 : (char const *) 0;
7145
7146     *t++ = 0;
7147   }
7148   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7149     int x[] = {25, 17};
7150     const int *foo = &x[0];
7151     ++foo;
7152   }
7153   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7154     typedef const int *iptr;
7155     iptr p = 0;
7156     ++p;
7157   }
7158   { /* AIX XL C 1.02.0.0 rejects this saying
7159        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7160     struct s { int j; const int *ap[3]; };
7161     struct s *b; b->j = 5;
7162   }
7163   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7164     const int foo = 10;
7165   }
7166 #endif
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174   (eval $ac_compile) 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } &&
7181          { ac_try='test -z "$ac_c_werror_flag"
7182                          || test ! -s conftest.err'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; } &&
7188          { ac_try='test -s conftest.$ac_objext'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; }; then
7194   ac_cv_c_const=yes
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199 ac_cv_c_const=no
7200 fi
7201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202 fi
7203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7204 echo "${ECHO_T}$ac_cv_c_const" >&6
7205 if test $ac_cv_c_const = no; then
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define const
7209 _ACEOF
7210
7211 fi
7212
7213
7214   echo "$as_me:$LINENO: checking for signed" >&5
7215 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7216 if test "${bh_cv_c_signed+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 int
7227 main ()
7228 {
7229 signed char x;
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236   (eval $ac_compile) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_c_werror_flag"
7244                          || test ! -s conftest.err'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; } &&
7250          { ac_try='test -s conftest.$ac_objext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256   bh_cv_c_signed=yes
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 bh_cv_c_signed=no
7262 fi
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7266 echo "${ECHO_T}$bh_cv_c_signed" >&6
7267   if test $bh_cv_c_signed = no; then
7268
7269 cat >>confdefs.h <<\_ACEOF
7270 #define signed
7271 _ACEOF
7272
7273   fi
7274
7275 echo "$as_me:$LINENO: checking for inline" >&5
7276 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7277 if test "${ac_cv_c_inline+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280   ac_cv_c_inline=no
7281 for ac_kw in inline __inline__ __inline; do
7282   cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 #ifndef __cplusplus
7289 typedef int foo_t;
7290 static $ac_kw foo_t static_foo () {return 0; }
7291 $ac_kw foo_t foo () {return 0; }
7292 #endif
7293
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297   (eval $ac_compile) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_c_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest.$ac_objext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317   ac_cv_c_inline=$ac_kw; break
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 fi
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7324 done
7325
7326 fi
7327 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7328 echo "${ECHO_T}$ac_cv_c_inline" >&6
7329
7330
7331 case $ac_cv_c_inline in
7332   inline | yes) ;;
7333   *)
7334     case $ac_cv_c_inline in
7335       no) ac_val=;;
7336       *) ac_val=$ac_cv_c_inline;;
7337     esac
7338     cat >>confdefs.h <<_ACEOF
7339 #ifndef __cplusplus
7340 #define inline $ac_val
7341 #endif
7342 _ACEOF
7343     ;;
7344 esac
7345
7346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7357                   inttypes.h stdint.h unistd.h
7358 do
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 $ac_includes_default
7372
7373 #include <$ac_header>
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377   (eval $ac_compile) 2>conftest.er1
7378   ac_status=$?
7379   grep -v '^ *+' conftest.er1 >conftest.err
7380   rm -f conftest.er1
7381   cat conftest.err >&5
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); } &&
7384          { ac_try='test -z "$ac_c_werror_flag"
7385                          || test ! -s conftest.err'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; } &&
7391          { ac_try='test -s conftest.$ac_objext'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; }; then
7397   eval "$as_ac_Header=yes"
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 eval "$as_ac_Header=no"
7403 fi
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409   cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7411 _ACEOF
7412
7413 fi
7414
7415 done
7416
7417
7418 echo "$as_me:$LINENO: checking for off_t" >&5
7419 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_off_t+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 $ac_includes_default
7430 int
7431 main ()
7432 {
7433 if ((off_t *) 0)
7434   return 0;
7435 if (sizeof (off_t))
7436   return 0;
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443   (eval $ac_compile) 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag"
7451                          || test ! -s conftest.err'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; } &&
7457          { ac_try='test -s conftest.$ac_objext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   ac_cv_type_off_t=yes
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 ac_cv_type_off_t=no
7469 fi
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7473 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7474 if test $ac_cv_type_off_t = yes; then
7475   :
7476 else
7477
7478 cat >>confdefs.h <<_ACEOF
7479 #define off_t long
7480 _ACEOF
7481
7482 fi
7483
7484 echo "$as_me:$LINENO: checking for size_t" >&5
7485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7486 if test "${ac_cv_type_size_t+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h.  */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h.  */
7495 $ac_includes_default
7496 int
7497 main ()
7498 {
7499 if ((size_t *) 0)
7500   return 0;
7501 if (sizeof (size_t))
7502   return 0;
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509   (eval $ac_compile) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } &&
7516          { ac_try='test -z "$ac_c_werror_flag"
7517                          || test ! -s conftest.err'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; } &&
7523          { ac_try='test -s conftest.$ac_objext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_cv_type_size_t=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_type_size_t=no
7535 fi
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7537 fi
7538 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7540 if test $ac_cv_type_size_t = yes; then
7541   :
7542 else
7543
7544 cat >>confdefs.h <<_ACEOF
7545 #define size_t unsigned
7546 _ACEOF
7547
7548 fi
7549
7550
7551   echo "$as_me:$LINENO: checking for long long" >&5
7552 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7553 if test "${ac_cv_type_long_long+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h.  */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h.  */
7562 long long ll = 1LL; int i = 63;
7563 int
7564 main ()
7565 {
7566 long long llmax = (long long) -1;
7567      return ll << i | ll >> i | llmax / ll | llmax % ll;
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574   (eval $ac_link) 2>conftest.er1
7575   ac_status=$?
7576   grep -v '^ *+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } &&
7581          { ac_try='test -z "$ac_c_werror_flag"
7582                          || test ! -s conftest.err'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; } &&
7588          { ac_try='test -s conftest$ac_exeext'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; }; then
7594   ac_cv_type_long_long=yes
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_cv_type_long_long=no
7600 fi
7601 rm -f conftest.err conftest.$ac_objext \
7602       conftest$ac_exeext conftest.$ac_ext
7603 fi
7604 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7605 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7606   if test $ac_cv_type_long_long = yes; then
7607
7608 cat >>confdefs.h <<\_ACEOF
7609 #define HAVE_LONG_LONG 1
7610 _ACEOF
7611
7612   fi
7613
7614
7615   echo "$as_me:$LINENO: checking for long double" >&5
7616 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7617 if test "${gt_cv_c_long_double+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   if test "$GCC" = yes; then
7621        gt_cv_c_long_double=yes
7622      else
7623        cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629
7630          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7631          long double foo = 0.0;
7632          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7633          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7634
7635 int
7636 main ()
7637 {
7638
7639   ;
7640   return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645   (eval $ac_compile) 2>conftest.er1
7646   ac_status=$?
7647   grep -v '^ *+' conftest.er1 >conftest.err
7648   rm -f conftest.er1
7649   cat conftest.err >&5
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); } &&
7652          { ac_try='test -z "$ac_c_werror_flag"
7653                          || test ! -s conftest.err'
7654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655   (eval $ac_try) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; } &&
7659          { ac_try='test -s conftest.$ac_objext'
7660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661   (eval $ac_try) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); }; }; then
7665   gt_cv_c_long_double=yes
7666 else
7667   echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 gt_cv_c_long_double=no
7671 fi
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7673      fi
7674 fi
7675 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7676 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7677   if test $gt_cv_c_long_double = yes; then
7678
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_LONG_DOUBLE 1
7681 _ACEOF
7682
7683   fi
7684
7685
7686   echo "$as_me:$LINENO: checking for wchar_t" >&5
7687 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7688 if test "${gt_cv_c_wchar_t+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 #include <stddef.h>
7698        wchar_t foo = (wchar_t)'\0';
7699 int
7700 main ()
7701 {
7702
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709   (eval $ac_compile) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest.$ac_objext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   gt_cv_c_wchar_t=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 gt_cv_c_wchar_t=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7739 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7740   if test $gt_cv_c_wchar_t = yes; then
7741
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_WCHAR_T 1
7744 _ACEOF
7745
7746   fi
7747
7748
7749   echo "$as_me:$LINENO: checking for wint_t" >&5
7750 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7751 if test "${gt_cv_c_wint_t+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760 #include <wchar.h>
7761        wint_t foo = (wchar_t)'\0';
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772   (eval $ac_compile) 2>conftest.er1
7773   ac_status=$?
7774   grep -v '^ *+' conftest.er1 >conftest.err
7775   rm -f conftest.er1
7776   cat conftest.err >&5
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } &&
7779          { ac_try='test -z "$ac_c_werror_flag"
7780                          || test ! -s conftest.err'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; } &&
7786          { ac_try='test -s conftest.$ac_objext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   gt_cv_c_wint_t=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 gt_cv_c_wint_t=no
7798 fi
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 fi
7801 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7802 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7803   if test $gt_cv_c_wint_t = yes; then
7804
7805 cat >>confdefs.h <<\_ACEOF
7806 #define HAVE_WINT_T 1
7807 _ACEOF
7808
7809   fi
7810
7811
7812   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7813 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7814 if test "${gl_cv_header_inttypes_h+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h.  */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h.  */
7823 #include <sys/types.h>
7824 #include <inttypes.h>
7825 int
7826 main ()
7827 {
7828 uintmax_t i = (uintmax_t) -1;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835   (eval $ac_compile) 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -z "$ac_c_werror_flag"
7843                          || test ! -s conftest.err'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest.$ac_objext'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   gl_cv_header_inttypes_h=yes
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 gl_cv_header_inttypes_h=no
7861 fi
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7865 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7866   if test $gl_cv_header_inttypes_h = yes; then
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7870 _ACEOF
7871
7872   fi
7873
7874
7875   echo "$as_me:$LINENO: checking for stdint.h" >&5
7876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7877 if test "${gl_cv_header_stdint_h+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 #include <sys/types.h>
7887 #include <stdint.h>
7888 int
7889 main ()
7890 {
7891 uintmax_t i = (uintmax_t) -1;
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898   (eval $ac_compile) 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag"
7906                          || test ! -s conftest.err'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest.$ac_objext'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   gl_cv_header_stdint_h=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 gl_cv_header_stdint_h=no
7924 fi
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7928 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7929   if test $gl_cv_header_stdint_h = yes; then
7930
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_STDINT_H_WITH_UINTMAX 1
7933 _ACEOF
7934
7935   fi
7936
7937
7938
7939
7940   echo "$as_me:$LINENO: checking for intmax_t" >&5
7941 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7942 if test "${gt_cv_c_intmax_t+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 #include <stddef.h>
7953 #include <stdlib.h>
7954 #if HAVE_STDINT_H_WITH_UINTMAX
7955 #include <stdint.h>
7956 #endif
7957 #if HAVE_INTTYPES_H_WITH_UINTMAX
7958 #include <inttypes.h>
7959 #endif
7960
7961 int
7962 main ()
7963 {
7964 intmax_t x = -1;
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag"
7979                          || test ! -s conftest.err'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest.$ac_objext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   gt_cv_c_intmax_t=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 gt_cv_c_intmax_t=no
7997 fi
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8001 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8002   if test $gt_cv_c_intmax_t = yes; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_INTMAX_T 1
8006 _ACEOF
8007
8008   fi
8009
8010
8011
8012   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8013 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8014 if test "${gt_cv_func_printf_posix+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017
8018       if test "$cross_compiling" = yes; then
8019
8020         cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026
8027 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8028   notposix
8029 #endif
8030
8031 _ACEOF
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033   $EGREP "notposix" >/dev/null 2>&1; then
8034   gt_cv_func_printf_posix="guessing no"
8035 else
8036   gt_cv_func_printf_posix="guessing yes"
8037 fi
8038 rm -f conftest*
8039
8040
8041 else
8042   cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048
8049 #include <stdio.h>
8050 #include <string.h>
8051 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8052    dollar expansion (possibly an autoconf bug).  */
8053 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8054 static char buf[100];
8055 int main ()
8056 {
8057   sprintf (buf, format, 33, 55);
8058   return (strcmp (buf, "55 33") != 0);
8059 }
8060 _ACEOF
8061 rm -f conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063   (eval $ac_link) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; }; then
8072   gt_cv_func_printf_posix=yes
8073 else
8074   echo "$as_me: program exited with status $ac_status" >&5
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ( exit $ac_status )
8079 gt_cv_func_printf_posix=no
8080 fi
8081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8082 fi
8083
8084 fi
8085 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8086 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8087   case $gt_cv_func_printf_posix in
8088     *yes)
8089
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_POSIX_PRINTF 1
8092 _ACEOF
8093
8094       ;;
8095   esac
8096
8097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8098 # for constant arguments.  Useless!
8099 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8100 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8101 if test "${ac_cv_working_alloca_h+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <alloca.h>
8111 int
8112 main ()
8113 {
8114 char *p = (char *) alloca (2 * sizeof (int));
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag"
8129                          || test ! -s conftest.err'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest$ac_exeext'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   ac_cv_working_alloca_h=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 ac_cv_working_alloca_h=no
8147 fi
8148 rm -f conftest.err conftest.$ac_objext \
8149       conftest$ac_exeext conftest.$ac_ext
8150 fi
8151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8153 if test $ac_cv_working_alloca_h = yes; then
8154
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_ALLOCA_H 1
8157 _ACEOF
8158
8159 fi
8160
8161 echo "$as_me:$LINENO: checking for alloca" >&5
8162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8163 if test "${ac_cv_func_alloca_works+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #ifdef __GNUC__
8173 # define alloca __builtin_alloca
8174 #else
8175 # ifdef _MSC_VER
8176 #  include <malloc.h>
8177 #  define alloca _alloca
8178 # else
8179 #  if HAVE_ALLOCA_H
8180 #   include <alloca.h>
8181 #  else
8182 #   ifdef _AIX
8183  #pragma alloca
8184 #   else
8185 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8186 char *alloca ();
8187 #    endif
8188 #   endif
8189 #  endif
8190 # endif
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196 char *p = (char *) alloca (1);
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203   (eval $ac_link) 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag"
8211                          || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_func_alloca_works=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_func_alloca_works=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext \
8231       conftest$ac_exeext conftest.$ac_ext
8232 fi
8233 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8234 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8235
8236 if test $ac_cv_func_alloca_works = yes; then
8237
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_ALLOCA 1
8240 _ACEOF
8241
8242 else
8243   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8244 # that cause trouble.  Some versions do not even contain alloca or
8245 # contain a buggy version.  If you still want to use their alloca,
8246 # use ar to extract alloca.o from them instead of compiling alloca.c.
8247
8248 ALLOCA=alloca.$ac_objext
8249
8250 cat >>confdefs.h <<\_ACEOF
8251 #define C_ALLOCA 1
8252 _ACEOF
8253
8254
8255 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8256 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8257 if test "${ac_cv_os_cray+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 #if defined(CRAY) && ! defined(CRAY2)
8267 webecray
8268 #else
8269 wenotbecray
8270 #endif
8271
8272 _ACEOF
8273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8274   $EGREP "webecray" >/dev/null 2>&1; then
8275   ac_cv_os_cray=yes
8276 else
8277   ac_cv_os_cray=no
8278 fi
8279 rm -f conftest*
8280
8281 fi
8282 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8283 echo "${ECHO_T}$ac_cv_os_cray" >&6
8284 if test $ac_cv_os_cray = yes; then
8285   for ac_func in _getb67 GETB67 getb67; do
8286     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8287 echo "$as_me:$LINENO: checking for $ac_func" >&5
8288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8289 if eval "test \"\${$as_ac_var+set}\" = set"; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8300 #define $ac_func innocuous_$ac_func
8301
8302 /* System header to define __stub macros and hopefully few prototypes,
8303     which can conflict with char $ac_func (); below.
8304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305     <limits.h> exists even on freestanding compilers.  */
8306
8307 #ifdef __STDC__
8308 # include <limits.h>
8309 #else
8310 # include <assert.h>
8311 #endif
8312
8313 #undef $ac_func
8314
8315 /* Override any gcc2 internal prototype to avoid an error.  */
8316 #ifdef __cplusplus
8317 extern "C"
8318 {
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321    builtin and then its argument prototype would still apply.  */
8322 char $ac_func ();
8323 /* The GNU C library defines this for functions which it implements
8324     to always fail with ENOSYS.  Some functions are actually named
8325     something starting with __ and the normal name is an alias.  */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8327 choke me
8328 #else
8329 char (*f) () = $ac_func;
8330 #endif
8331 #ifdef __cplusplus
8332 }
8333 #endif
8334
8335 int
8336 main ()
8337 {
8338 return f != $ac_func;
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345   (eval $ac_link) 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag"
8353                          || test ! -s conftest.err'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest$ac_exeext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   eval "$as_ac_var=yes"
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 eval "$as_ac_var=no"
8371 fi
8372 rm -f conftest.err conftest.$ac_objext \
8373       conftest$ac_exeext conftest.$ac_ext
8374 fi
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8377 if test `eval echo '${'$as_ac_var'}'` = yes; then
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define CRAY_STACKSEG_END $ac_func
8381 _ACEOF
8382
8383     break
8384 fi
8385
8386   done
8387 fi
8388
8389 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8390 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8391 if test "${ac_cv_c_stack_direction+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   if test "$cross_compiling" = yes; then
8395   ac_cv_c_stack_direction=0
8396 else
8397   cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403 int
8404 find_stack_direction ()
8405 {
8406   static char *addr = 0;
8407   auto char dummy;
8408   if (addr == 0)
8409     {
8410       addr = &dummy;
8411       return find_stack_direction ();
8412     }
8413   else
8414     return (&dummy > addr) ? 1 : -1;
8415 }
8416
8417 int
8418 main ()
8419 {
8420   exit (find_stack_direction () < 0);
8421 }
8422 _ACEOF
8423 rm -f conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425   (eval $ac_link) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   ac_cv_c_stack_direction=1
8435 else
8436   echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ( exit $ac_status )
8441 ac_cv_c_stack_direction=-1
8442 fi
8443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8444 fi
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define STACK_DIRECTION $ac_cv_c_stack_direction
8451 _ACEOF
8452
8453
8454 fi
8455
8456
8457
8458 for ac_header in stdlib.h unistd.h
8459 do
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462   echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 fi
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8469 else
8470   # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479 $ac_includes_default
8480 #include <$ac_header>
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_header_compiler=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_header_compiler=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8514
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524 #include <$ac_header>
8525 _ACEOF
8526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } >/dev/null; then
8534   if test -s conftest.err; then
8535     ac_cpp_err=$ac_c_preproc_warn_flag
8536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537   else
8538     ac_cpp_err=
8539   fi
8540 else
8541   ac_cpp_err=yes
8542 fi
8543 if test -z "$ac_cpp_err"; then
8544   ac_header_preproc=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549   ac_header_preproc=no
8550 fi
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8554
8555 # So?  What about this header?
8556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8557   yes:no: )
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8562     ac_header_preproc=yes
8563     ;;
8564   no:yes:* )
8565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8577     (
8578       cat <<\_ASBOX
8579 ## ------------------------------------------ ##
8580 ## Report this to the AC_PACKAGE_NAME lists.  ##
8581 ## ------------------------------------------ ##
8582 _ASBOX
8583     ) |
8584       sed "s/^/$as_me: WARNING:     /" >&2
8585     ;;
8586 esac
8587 echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   eval "$as_ac_Header=\$ac_header_preproc"
8593 fi
8594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8596
8597 fi
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599   cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 _ACEOF
8602
8603 fi
8604
8605 done
8606
8607
8608 for ac_func in getpagesize
8609 do
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_var+set}\" = set"; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8624 #define $ac_func innocuous_$ac_func
8625
8626 /* System header to define __stub macros and hopefully few prototypes,
8627     which can conflict with char $ac_func (); below.
8628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629     <limits.h> exists even on freestanding compilers.  */
8630
8631 #ifdef __STDC__
8632 # include <limits.h>
8633 #else
8634 # include <assert.h>
8635 #endif
8636
8637 #undef $ac_func
8638
8639 /* Override any gcc2 internal prototype to avoid an error.  */
8640 #ifdef __cplusplus
8641 extern "C"
8642 {
8643 #endif
8644 /* We use char because int might match the return type of a gcc2
8645    builtin and then its argument prototype would still apply.  */
8646 char $ac_func ();
8647 /* The GNU C library defines this for functions which it implements
8648     to always fail with ENOSYS.  Some functions are actually named
8649     something starting with __ and the normal name is an alias.  */
8650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8651 choke me
8652 #else
8653 char (*f) () = $ac_func;
8654 #endif
8655 #ifdef __cplusplus
8656 }
8657 #endif
8658
8659 int
8660 main ()
8661 {
8662 return f != $ac_func;
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669   (eval $ac_link) 2>conftest.er1
8670   ac_status=$?
8671   grep -v '^ *+' conftest.er1 >conftest.err
8672   rm -f conftest.er1
8673   cat conftest.err >&5
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } &&
8676          { ac_try='test -z "$ac_c_werror_flag"
8677                          || test ! -s conftest.err'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest$ac_exeext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   eval "$as_ac_var=yes"
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 eval "$as_ac_var=no"
8695 fi
8696 rm -f conftest.err conftest.$ac_objext \
8697       conftest$ac_exeext conftest.$ac_ext
8698 fi
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8701 if test `eval echo '${'$as_ac_var'}'` = yes; then
8702   cat >>confdefs.h <<_ACEOF
8703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8704 _ACEOF
8705
8706 fi
8707 done
8708
8709 echo "$as_me:$LINENO: checking for working mmap" >&5
8710 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8711 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   if test "$cross_compiling" = yes; then
8715   ac_cv_func_mmap_fixed_mapped=no
8716 else
8717   cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 $ac_includes_default
8724 /* malloc might have been renamed as rpl_malloc. */
8725 #undef malloc
8726
8727 /* Thanks to Mike Haertel and Jim Avera for this test.
8728    Here is a matrix of mmap possibilities:
8729         mmap private not fixed
8730         mmap private fixed at somewhere currently unmapped
8731         mmap private fixed at somewhere already mapped
8732         mmap shared not fixed
8733         mmap shared fixed at somewhere currently unmapped
8734         mmap shared fixed at somewhere already mapped
8735    For private mappings, we should verify that changes cannot be read()
8736    back from the file, nor mmap's back from the file at a different
8737    address.  (There have been systems where private was not correctly
8738    implemented like the infamous i386 svr4.0, and systems where the
8739    VM page cache was not coherent with the file system buffer cache
8740    like early versions of FreeBSD and possibly contemporary NetBSD.)
8741    For shared mappings, we should conversely verify that changes get
8742    propagated back to all the places they're supposed to be.
8743
8744    Grep wants private fixed already mapped.
8745    The main things grep needs to know about mmap are:
8746    * does it exist and is it safe to write into the mmap'd area
8747    * how to use it (BSD variants)  */
8748
8749 #include <fcntl.h>
8750 #include <sys/mman.h>
8751
8752 #if !STDC_HEADERS && !HAVE_STDLIB_H
8753 char *malloc ();
8754 #endif
8755
8756 /* This mess was copied from the GNU getpagesize.h.  */
8757 #if !HAVE_GETPAGESIZE
8758 /* Assume that all systems that can run configure have sys/param.h.  */
8759 # if !HAVE_SYS_PARAM_H
8760 #  define HAVE_SYS_PARAM_H 1
8761 # endif
8762
8763 # ifdef _SC_PAGESIZE
8764 #  define getpagesize() sysconf(_SC_PAGESIZE)
8765 # else /* no _SC_PAGESIZE */
8766 #  if HAVE_SYS_PARAM_H
8767 #   include <sys/param.h>
8768 #   ifdef EXEC_PAGESIZE
8769 #    define getpagesize() EXEC_PAGESIZE
8770 #   else /* no EXEC_PAGESIZE */
8771 #    ifdef NBPG
8772 #     define getpagesize() NBPG * CLSIZE
8773 #     ifndef CLSIZE
8774 #      define CLSIZE 1
8775 #     endif /* no CLSIZE */
8776 #    else /* no NBPG */
8777 #     ifdef NBPC
8778 #      define getpagesize() NBPC
8779 #     else /* no NBPC */
8780 #      ifdef PAGESIZE
8781 #       define getpagesize() PAGESIZE
8782 #      endif /* PAGESIZE */
8783 #     endif /* no NBPC */
8784 #    endif /* no NBPG */
8785 #   endif /* no EXEC_PAGESIZE */
8786 #  else /* no HAVE_SYS_PARAM_H */
8787 #   define getpagesize() 8192   /* punt totally */
8788 #  endif /* no HAVE_SYS_PARAM_H */
8789 # endif /* no _SC_PAGESIZE */
8790
8791 #endif /* no HAVE_GETPAGESIZE */
8792
8793 int
8794 main ()
8795 {
8796   char *data, *data2, *data3;
8797   int i, pagesize;
8798   int fd;
8799
8800   pagesize = getpagesize ();
8801
8802   /* First, make a file with some known garbage in it. */
8803   data = (char *) malloc (pagesize);
8804   if (!data)
8805     exit (1);
8806   for (i = 0; i < pagesize; ++i)
8807     *(data + i) = rand ();
8808   umask (0);
8809   fd = creat ("conftest.mmap", 0600);
8810   if (fd < 0)
8811     exit (1);
8812   if (write (fd, data, pagesize) != pagesize)
8813     exit (1);
8814   close (fd);
8815
8816   /* Next, try to mmap the file at a fixed address which already has
8817      something else allocated at it.  If we can, also make sure that
8818      we see the same garbage.  */
8819   fd = open ("conftest.mmap", O_RDWR);
8820   if (fd < 0)
8821     exit (1);
8822   data2 = (char *) malloc (2 * pagesize);
8823   if (!data2)
8824     exit (1);
8825   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8826   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8827                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8828     exit (1);
8829   for (i = 0; i < pagesize; ++i)
8830     if (*(data + i) != *(data2 + i))
8831       exit (1);
8832
8833   /* Finally, make sure that changes to the mapped area do not
8834      percolate back to the file as seen by read().  (This is a bug on
8835      some variants of i386 svr4.0.)  */
8836   for (i = 0; i < pagesize; ++i)
8837     *(data2 + i) = *(data2 + i) + 1;
8838   data3 = (char *) malloc (pagesize);
8839   if (!data3)
8840     exit (1);
8841   if (read (fd, data3, pagesize) != pagesize)
8842     exit (1);
8843   for (i = 0; i < pagesize; ++i)
8844     if (*(data + i) != *(data3 + i))
8845       exit (1);
8846   close (fd);
8847   exit (0);
8848 }
8849 _ACEOF
8850 rm -f conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852   (eval $ac_link) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; }; then
8861   ac_cv_func_mmap_fixed_mapped=yes
8862 else
8863   echo "$as_me: program exited with status $ac_status" >&5
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ( exit $ac_status )
8868 ac_cv_func_mmap_fixed_mapped=no
8869 fi
8870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_MMAP 1
8879 _ACEOF
8880
8881 fi
8882 rm -f conftest.mmap
8883
8884
8885     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8886 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8887 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 #include <features.h>
8898 #ifdef __GNU_LIBRARY__
8899  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8900   Lucky GNU user
8901  #endif
8902 #endif
8903
8904 _ACEOF
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8907   ac_cv_gnu_library_2_1=yes
8908 else
8909   ac_cv_gnu_library_2_1=no
8910 fi
8911 rm -f conftest*
8912
8913
8914
8915 fi
8916 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8917 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8918
8919     GLIBC21="$ac_cv_gnu_library_2_1"
8920
8921
8922
8923
8924   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8925 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8926 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929
8930       if test "$cross_compiling" = yes; then
8931
8932           # Guess based on the CPU.
8933           case "$host_cpu" in
8934             alpha* | i3456786 | m68k | s390*)
8935               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8936             *)
8937               gt_cv_int_divbyzero_sigfpe="guessing no";;
8938           esac
8939
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947
8948 #include <stdlib.h>
8949 #include <signal.h>
8950
8951 static void
8952 #ifdef __cplusplus
8953 sigfpe_handler (int sig)
8954 #else
8955 sigfpe_handler (sig) int sig;
8956 #endif
8957 {
8958   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
8959   exit (sig != SIGFPE);
8960 }
8961
8962 int x = 1;
8963 int y = 0;
8964 int z;
8965 int nan;
8966
8967 int main ()
8968 {
8969   signal (SIGFPE, sigfpe_handler);
8970 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
8971 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8972   signal (SIGTRAP, sigfpe_handler);
8973 #endif
8974 /* Linux/SPARC yields signal SIGILL.  */
8975 #if defined (__sparc__) && defined (__linux__)
8976   signal (SIGILL, sigfpe_handler);
8977 #endif
8978
8979   z = x / y;
8980   nan = y / y;
8981   exit (1);
8982 }
8983
8984 _ACEOF
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   gt_cv_int_divbyzero_sigfpe=yes
8997 else
8998   echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ( exit $ac_status )
9003 gt_cv_int_divbyzero_sigfpe=no
9004 fi
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9006 fi
9007
9008 fi
9009 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9010 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9011   case "$gt_cv_int_divbyzero_sigfpe" in
9012     *yes) value=1;;
9013     *) value=0;;
9014   esac
9015
9016 cat >>confdefs.h <<_ACEOF
9017 #define INTDIV0_RAISES_SIGFPE $value
9018 _ACEOF
9019
9020
9021
9022   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9023 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9024 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 unsigned long long ull = 1ULL; int i = 63;
9034 int
9035 main ()
9036 {
9037 unsigned long long ullmax = (unsigned long long) -1;
9038      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9039   ;
9040   return 0;
9041 }
9042 _ACEOF
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045   (eval $ac_link) 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -z "$ac_c_werror_flag"
9053                          || test ! -s conftest.err'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; } &&
9059          { ac_try='test -s conftest$ac_exeext'
9060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061   (eval $ac_try) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); }; }; then
9065   ac_cv_type_unsigned_long_long=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ac_cv_type_unsigned_long_long=no
9071 fi
9072 rm -f conftest.err conftest.$ac_objext \
9073       conftest$ac_exeext conftest.$ac_ext
9074 fi
9075 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9076 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9077   if test $ac_cv_type_unsigned_long_long = yes; then
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNSIGNED_LONG_LONG 1
9081 _ACEOF
9082
9083   fi
9084
9085
9086
9087
9088   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9089
9090     test $ac_cv_type_unsigned_long_long = yes \
9091       && ac_type='unsigned long long' \
9092       || ac_type='unsigned long'
9093
9094 cat >>confdefs.h <<_ACEOF
9095 #define uintmax_t $ac_type
9096 _ACEOF
9097
9098   else
9099
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_UINTMAX_T 1
9102 _ACEOF
9103
9104   fi
9105
9106
9107   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9108 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9109 if test "${gt_cv_header_inttypes_h+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112
9113     cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <sys/types.h>
9120 #include <inttypes.h>
9121 int
9122 main ()
9123 {
9124
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131   (eval $ac_compile) 2>conftest.er1
9132   ac_status=$?
9133   grep -v '^ *+' conftest.er1 >conftest.err
9134   rm -f conftest.er1
9135   cat conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } &&
9138          { ac_try='test -z "$ac_c_werror_flag"
9139                          || test ! -s conftest.err'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; } &&
9145          { ac_try='test -s conftest.$ac_objext'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; }; then
9151   gt_cv_header_inttypes_h=yes
9152 else
9153   echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 gt_cv_header_inttypes_h=no
9157 fi
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159
9160 fi
9161 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9162 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9163   if test $gt_cv_header_inttypes_h = yes; then
9164
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_INTTYPES_H 1
9167 _ACEOF
9168
9169   fi
9170
9171
9172
9173   if test $gt_cv_header_inttypes_h = yes; then
9174     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9175 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9176 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179
9180         cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186 #include <inttypes.h>
9187 #ifdef PRId32
9188 char *p = PRId32;
9189 #endif
9190
9191 int
9192 main ()
9193 {
9194
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201   (eval $ac_compile) 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -z "$ac_c_werror_flag"
9209                          || test ! -s conftest.err'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; } &&
9215          { ac_try='test -s conftest.$ac_objext'
9216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217   (eval $ac_try) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); }; }; then
9221   gt_cv_inttypes_pri_broken=no
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 gt_cv_inttypes_pri_broken=yes
9227 fi
9228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9229
9230 fi
9231 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9232 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9233   fi
9234   if test "$gt_cv_inttypes_pri_broken" = yes; then
9235
9236 cat >>confdefs.h <<_ACEOF
9237 #define PRI_MACROS_BROKEN 1
9238 _ACEOF
9239
9240   fi
9241
9242
9243
9244 for ac_header in stdint.h
9245 do
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248   echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 fi
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9255 else
9256   # Is the header compilable?
9257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265 $ac_includes_default
9266 #include <$ac_header>
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270   (eval $ac_compile) 2>conftest.er1
9271   ac_status=$?
9272   grep -v '^ *+' conftest.er1 >conftest.err
9273   rm -f conftest.er1
9274   cat conftest.err >&5
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } &&
9277          { ac_try='test -z "$ac_c_werror_flag"
9278                          || test ! -s conftest.err'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; } &&
9284          { ac_try='test -s conftest.$ac_objext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_header_compiler=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_header_compiler=no
9296 fi
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9300
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310 #include <$ac_header>
9311 _ACEOF
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } >/dev/null; then
9320   if test -s conftest.err; then
9321     ac_cpp_err=$ac_c_preproc_warn_flag
9322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323   else
9324     ac_cpp_err=
9325   fi
9326 else
9327   ac_cpp_err=yes
9328 fi
9329 if test -z "$ac_cpp_err"; then
9330   ac_header_preproc=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335   ac_header_preproc=no
9336 fi
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9340
9341 # So?  What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9343   yes:no: )
9344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348     ac_header_preproc=yes
9349     ;;
9350   no:yes:* )
9351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9363     (
9364       cat <<\_ASBOX
9365 ## ------------------------------------------ ##
9366 ## Report this to the AC_PACKAGE_NAME lists.  ##
9367 ## ------------------------------------------ ##
9368 _ASBOX
9369     ) |
9370       sed "s/^/$as_me: WARNING:     /" >&2
9371     ;;
9372 esac
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   eval "$as_ac_Header=\$ac_header_preproc"
9379 fi
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9382
9383 fi
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385   cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 _ACEOF
9388
9389 fi
9390
9391 done
9392
9393     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9394 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9395   result=
9396   cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h.  */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h.  */
9402
9403 #include <limits.h>
9404 #if HAVE_STDINT_H
9405 #include <stdint.h>
9406 #endif
9407 #ifdef SIZE_MAX
9408 Found it
9409 #endif
9410
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413   $EGREP "Found it" >/dev/null 2>&1; then
9414   result=yes
9415 fi
9416 rm -f conftest*
9417
9418   if test -z "$result"; then
9419                     if test "$cross_compiling" = yes; then
9420   # Depending upon the size, compute the lo and hi bounds.
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 #include <stddef.h>
9428 int
9429 main ()
9430 {
9431 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9432 test_array [0] = 0
9433
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440   (eval $ac_compile) 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -z "$ac_c_werror_flag"
9448                          || test ! -s conftest.err'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; } &&
9454          { ac_try='test -s conftest.$ac_objext'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; }; then
9460   ac_lo=0 ac_mid=0
9461   while :; do
9462     cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468 #include <stddef.h>
9469 int
9470 main ()
9471 {
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9473 test_array [0] = 0
9474
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481   (eval $ac_compile) 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -z "$ac_c_werror_flag"
9489                          || test ! -s conftest.err'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; } &&
9495          { ac_try='test -s conftest.$ac_objext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_hi=$ac_mid; break
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_lo=`expr $ac_mid + 1`
9507                     if test $ac_lo -le $ac_mid; then
9508                       ac_lo= ac_hi=
9509                       break
9510                     fi
9511                     ac_mid=`expr 2 '*' $ac_mid + 1`
9512 fi
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9514   done
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h.  */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h.  */
9525 #include <stddef.h>
9526 int
9527 main ()
9528 {
9529 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9530 test_array [0] = 0
9531
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538   (eval $ac_compile) 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -z "$ac_c_werror_flag"
9546                          || test ! -s conftest.err'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; } &&
9552          { ac_try='test -s conftest.$ac_objext'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; }; then
9558   ac_hi=-1 ac_mid=-1
9559   while :; do
9560     cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 #include <stddef.h>
9567 int
9568 main ()
9569 {
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9571 test_array [0] = 0
9572
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579   (eval $ac_compile) 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } &&
9586          { ac_try='test -z "$ac_c_werror_flag"
9587                          || test ! -s conftest.err'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; } &&
9593          { ac_try='test -s conftest.$ac_objext'
9594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595   (eval $ac_try) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; }; then
9599   ac_lo=$ac_mid; break
9600 else
9601   echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_hi=`expr '(' $ac_mid ')' - 1`
9605                        if test $ac_mid -le $ac_hi; then
9606                          ac_lo= ac_hi=
9607                          break
9608                        fi
9609                        ac_mid=`expr 2 '*' $ac_mid`
9610 fi
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612   done
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_lo= ac_hi=
9618 fi
9619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9620 fi
9621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9622 # Binary search between lo and hi bounds.
9623 while test "x$ac_lo" != "x$ac_hi"; do
9624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9625   cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631 #include <stddef.h>
9632 int
9633 main ()
9634 {
9635 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9636 test_array [0] = 0
9637
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644   (eval $ac_compile) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag"
9652                          || test ! -s conftest.err'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest.$ac_objext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_hi=$ac_mid
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_lo=`expr '(' $ac_mid ')' + 1`
9670 fi
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 done
9673 case $ac_lo in
9674 ?*) res_hi=$ac_lo;;
9675 '') result=? ;;
9676 esac
9677 else
9678   if test "$cross_compiling" = yes; then
9679   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9680 See \`config.log' for more details." >&5
9681 echo "$as_me: error: cannot run test program while cross compiling
9682 See \`config.log' for more details." >&2;}
9683    { (exit 1); exit 1; }; }
9684 else
9685   cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691 #include <stddef.h>
9692 long longval () { return ~(size_t)0 / 10; }
9693 unsigned long ulongval () { return ~(size_t)0 / 10; }
9694 #include <stdio.h>
9695 #include <stdlib.h>
9696 int
9697 main ()
9698 {
9699
9700   FILE *f = fopen ("conftest.val", "w");
9701   if (! f)
9702     exit (1);
9703   if ((~(size_t)0 / 10) < 0)
9704     {
9705       long i = longval ();
9706       if (i != (~(size_t)0 / 10))
9707         exit (1);
9708       fprintf (f, "%ld\n", i);
9709     }
9710   else
9711     {
9712       unsigned long i = ulongval ();
9713       if (i != (~(size_t)0 / 10))
9714         exit (1);
9715       fprintf (f, "%lu\n", i);
9716     }
9717   exit (ferror (f) || fclose (f) != 0);
9718
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   res_hi=`cat conftest.val`
9735 else
9736   echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ( exit $ac_status )
9741 result=?
9742 fi
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 fi
9746 rm -f conftest.val
9747     if test "$cross_compiling" = yes; then
9748   # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755 #include <stddef.h>
9756 int
9757 main ()
9758 {
9759 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9760 test_array [0] = 0
9761
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768   (eval $ac_compile) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"
9776                          || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest.$ac_objext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   ac_lo=0 ac_mid=0
9789   while :; do
9790     cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796 #include <stddef.h>
9797 int
9798 main ()
9799 {
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9801 test_array [0] = 0
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest.$ac_objext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_hi=$ac_mid; break
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_lo=`expr $ac_mid + 1`
9835                     if test $ac_lo -le $ac_mid; then
9836                       ac_lo= ac_hi=
9837                       break
9838                     fi
9839                     ac_mid=`expr 2 '*' $ac_mid + 1`
9840 fi
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9842   done
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h.  */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h.  */
9853 #include <stddef.h>
9854 int
9855 main ()
9856 {
9857 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9858 test_array [0] = 0
9859
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866   (eval $ac_compile) 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag"
9874                          || test ! -s conftest.err'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; } &&
9880          { ac_try='test -s conftest.$ac_objext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_hi=-1 ac_mid=-1
9887   while :; do
9888     cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 #include <stddef.h>
9895 int
9896 main ()
9897 {
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9899 test_array [0] = 0
9900
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907   (eval $ac_compile) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_lo=$ac_mid; break
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_hi=`expr '(' $ac_mid ')' - 1`
9933                        if test $ac_mid -le $ac_hi; then
9934                          ac_lo= ac_hi=
9935                          break
9936                        fi
9937                        ac_mid=`expr 2 '*' $ac_mid`
9938 fi
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9940   done
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 ac_lo= ac_hi=
9946 fi
9947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9948 fi
9949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953   cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 #include <stddef.h>
9960 int
9961 main ()
9962 {
9963 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9964 test_array [0] = 0
9965
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972   (eval $ac_compile) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"
9980                          || test ! -s conftest.err'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest.$ac_objext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_hi=$ac_mid
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_lo=`expr '(' $ac_mid ')' + 1`
9998 fi
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 done
10001 case $ac_lo in
10002 ?*) res_lo=$ac_lo;;
10003 '') result=? ;;
10004 esac
10005 else
10006   if test "$cross_compiling" = yes; then
10007   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10008 See \`config.log' for more details." >&5
10009 echo "$as_me: error: cannot run test program while cross compiling
10010 See \`config.log' for more details." >&2;}
10011    { (exit 1); exit 1; }; }
10012 else
10013   cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019 #include <stddef.h>
10020 long longval () { return ~(size_t)0 % 10; }
10021 unsigned long ulongval () { return ~(size_t)0 % 10; }
10022 #include <stdio.h>
10023 #include <stdlib.h>
10024 int
10025 main ()
10026 {
10027
10028   FILE *f = fopen ("conftest.val", "w");
10029   if (! f)
10030     exit (1);
10031   if ((~(size_t)0 % 10) < 0)
10032     {
10033       long i = longval ();
10034       if (i != (~(size_t)0 % 10))
10035         exit (1);
10036       fprintf (f, "%ld\n", i);
10037     }
10038   else
10039     {
10040       unsigned long i = ulongval ();
10041       if (i != (~(size_t)0 % 10))
10042         exit (1);
10043       fprintf (f, "%lu\n", i);
10044     }
10045   exit (ferror (f) || fclose (f) != 0);
10046
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053   (eval $ac_link) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   res_lo=`cat conftest.val`
10063 else
10064   echo "$as_me: program exited with status $ac_status" >&5
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ( exit $ac_status )
10069 result=?
10070 fi
10071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 fi
10074 rm -f conftest.val
10075     if test "$cross_compiling" = yes; then
10076   # Depending upon the size, compute the lo and hi bounds.
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 #include <stddef.h>
10084 int
10085 main ()
10086 {
10087 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10088 test_array [0] = 0
10089
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096   (eval $ac_compile) 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -z "$ac_c_werror_flag"
10104                          || test ! -s conftest.err'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; } &&
10110          { ac_try='test -s conftest.$ac_objext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_lo=0 ac_mid=0
10117   while :; do
10118     cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 #include <stddef.h>
10125 int
10126 main ()
10127 {
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10129 test_array [0] = 0
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_hi=$ac_mid; break
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_lo=`expr $ac_mid + 1`
10163                     if test $ac_lo -le $ac_mid; then
10164                       ac_lo= ac_hi=
10165                       break
10166                     fi
10167                     ac_mid=`expr 2 '*' $ac_mid + 1`
10168 fi
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170   done
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181 #include <stddef.h>
10182 int
10183 main ()
10184 {
10185 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10186 test_array [0] = 0
10187
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194   (eval $ac_compile) 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -z "$ac_c_werror_flag"
10202                          || test ! -s conftest.err'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest.$ac_objext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_hi=-1 ac_mid=-1
10215   while :; do
10216     cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <stddef.h>
10223 int
10224 main ()
10225 {
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10227 test_array [0] = 0
10228
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"
10243                          || test ! -s conftest.err'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest.$ac_objext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_lo=$ac_mid; break
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_hi=`expr '(' $ac_mid ')' - 1`
10261                        if test $ac_mid -le $ac_hi; then
10262                          ac_lo= ac_hi=
10263                          break
10264                        fi
10265                        ac_mid=`expr 2 '*' $ac_mid`
10266 fi
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10268   done
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 ac_lo= ac_hi=
10274 fi
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10276 fi
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 # Binary search between lo and hi bounds.
10279 while test "x$ac_lo" != "x$ac_hi"; do
10280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10281   cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h.  */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h.  */
10287 #include <stddef.h>
10288 int
10289 main ()
10290 {
10291 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10292 test_array [0] = 0
10293
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300   (eval $ac_compile) 2>conftest.er1
10301   ac_status=$?
10302   grep -v '^ *+' conftest.er1 >conftest.err
10303   rm -f conftest.er1
10304   cat conftest.err >&5
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } &&
10307          { ac_try='test -z "$ac_c_werror_flag"
10308                          || test ! -s conftest.err'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; } &&
10314          { ac_try='test -s conftest.$ac_objext'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_hi=$ac_mid
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10326 fi
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10328 done
10329 case $ac_lo in
10330 ?*) fits_in_uint=$ac_lo;;
10331 '') result=? ;;
10332 esac
10333 else
10334   if test "$cross_compiling" = yes; then
10335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10336 See \`config.log' for more details." >&5
10337 echo "$as_me: error: cannot run test program while cross compiling
10338 See \`config.log' for more details." >&2;}
10339    { (exit 1); exit 1; }; }
10340 else
10341   cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347 #include <stddef.h>
10348 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10350 #include <stdio.h>
10351 #include <stdlib.h>
10352 int
10353 main ()
10354 {
10355
10356   FILE *f = fopen ("conftest.val", "w");
10357   if (! f)
10358     exit (1);
10359   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10360     {
10361       long i = longval ();
10362       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10363         exit (1);
10364       fprintf (f, "%ld\n", i);
10365     }
10366   else
10367     {
10368       unsigned long i = ulongval ();
10369       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10370         exit (1);
10371       fprintf (f, "%lu\n", i);
10372     }
10373   exit (ferror (f) || fclose (f) != 0);
10374
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381   (eval $ac_link) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386   (eval $ac_try) 2>&5
10387   ac_status=$?
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); }; }; then
10390   fits_in_uint=`cat conftest.val`
10391 else
10392   echo "$as_me: program exited with status $ac_status" >&5
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 ( exit $ac_status )
10397 result=?
10398 fi
10399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10400 fi
10401 fi
10402 rm -f conftest.val
10403     if test "$fits_in_uint" = 1; then
10404                   cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 #include <stddef.h>
10411         extern size_t foo;
10412         extern unsigned long foo;
10413
10414 int
10415 main ()
10416 {
10417
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424   (eval $ac_compile) 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } &&
10431          { ac_try='test -z "$ac_c_werror_flag"
10432                          || test ! -s conftest.err'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; } &&
10438          { ac_try='test -s conftest.$ac_objext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   fits_in_uint=0
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 fi
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451     fi
10452     if test -z "$result"; then
10453       if test "$fits_in_uint" = 1; then
10454         result="$res_hi$res_lo"U
10455       else
10456         result="$res_hi$res_lo"UL
10457       fi
10458     else
10459             result='~(size_t)0'
10460     fi
10461   fi
10462   echo "$as_me:$LINENO: result: $result" >&5
10463 echo "${ECHO_T}$result" >&6
10464   if test "$result" != yes; then
10465
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZE_MAX $result
10468 _ACEOF
10469
10470   fi
10471
10472
10473
10474
10475
10476 for ac_header in stdint.h
10477 do
10478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10480   echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 fi
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10487 else
10488   # Is the header compilable?
10489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 $ac_includes_default
10498 #include <$ac_header>
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502   (eval $ac_compile) 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag"
10510                          || test ! -s conftest.err'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; } &&
10516          { ac_try='test -s conftest.$ac_objext'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; }; then
10522   ac_header_compiler=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_header_compiler=no
10528 fi
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6
10532
10533 # Is the header present?
10534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 #include <$ac_header>
10543 _ACEOF
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10546   ac_status=$?
10547   grep -v '^ *+' conftest.er1 >conftest.err
10548   rm -f conftest.er1
10549   cat conftest.err >&5
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } >/dev/null; then
10552   if test -s conftest.err; then
10553     ac_cpp_err=$ac_c_preproc_warn_flag
10554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10555   else
10556     ac_cpp_err=
10557   fi
10558 else
10559   ac_cpp_err=yes
10560 fi
10561 if test -z "$ac_cpp_err"; then
10562   ac_header_preproc=yes
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567   ac_header_preproc=no
10568 fi
10569 rm -f conftest.err conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10571 echo "${ECHO_T}$ac_header_preproc" >&6
10572
10573 # So?  What about this header?
10574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10575   yes:no: )
10576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10580     ac_header_preproc=yes
10581     ;;
10582   no:yes:* )
10583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10595     (
10596       cat <<\_ASBOX
10597 ## ------------------------------------------ ##
10598 ## Report this to the AC_PACKAGE_NAME lists.  ##
10599 ## ------------------------------------------ ##
10600 _ASBOX
10601     ) |
10602       sed "s/^/$as_me: WARNING:     /" >&2
10603     ;;
10604 esac
10605 echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   eval "$as_ac_Header=\$ac_header_preproc"
10611 fi
10612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10614
10615 fi
10616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617   cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10619 _ACEOF
10620
10621 fi
10622
10623 done
10624
10625
10626
10627
10628
10629
10630
10631
10632   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10633 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10634 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 $ac_includes_default
10644 int
10645 main ()
10646 {
10647 if ((ptrdiff_t *) 0)
10648   return 0;
10649 if (sizeof (ptrdiff_t))
10650   return 0;
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657   (eval $ac_compile) 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -z "$ac_c_werror_flag"
10665                          || test ! -s conftest.err'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_type_ptrdiff_t=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_cv_type_ptrdiff_t=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10688 if test $ac_cv_type_ptrdiff_t = yes; then
10689   :
10690 else
10691
10692 cat >>confdefs.h <<\_ACEOF
10693 #define ptrdiff_t long
10694 _ACEOF
10695
10696
10697 fi
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10710 stdlib.h string.h unistd.h sys/param.h
10711 do
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714   echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 fi
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10721 else
10722   # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731 $ac_includes_default
10732 #include <$ac_header>
10733 _ACEOF
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736   (eval $ac_compile) 2>conftest.er1
10737   ac_status=$?
10738   grep -v '^ *+' conftest.er1 >conftest.err
10739   rm -f conftest.er1
10740   cat conftest.err >&5
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } &&
10743          { ac_try='test -z "$ac_c_werror_flag"
10744                          || test ! -s conftest.err'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; } &&
10750          { ac_try='test -s conftest.$ac_objext'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; }; then
10756   ac_header_compiler=yes
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761 ac_header_compiler=no
10762 fi
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10766
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <$ac_header>
10777 _ACEOF
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } >/dev/null; then
10786   if test -s conftest.err; then
10787     ac_cpp_err=$ac_c_preproc_warn_flag
10788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789   else
10790     ac_cpp_err=
10791   fi
10792 else
10793   ac_cpp_err=yes
10794 fi
10795 if test -z "$ac_cpp_err"; then
10796   ac_header_preproc=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801   ac_header_preproc=no
10802 fi
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10806
10807 # So?  What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809   yes:no: )
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814     ac_header_preproc=yes
10815     ;;
10816   no:yes:* )
10817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829     (
10830       cat <<\_ASBOX
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists.  ##
10833 ## ------------------------------------------ ##
10834 _ASBOX
10835     ) |
10836       sed "s/^/$as_me: WARNING:     /" >&2
10837     ;;
10838 esac
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   eval "$as_ac_Header=\$ac_header_preproc"
10845 fi
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10848
10849 fi
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851   cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853 _ACEOF
10854
10855 fi
10856
10857 done
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10883 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10884 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10885 __fsetlocking
10886 do
10887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 echo "$as_me:$LINENO: checking for $ac_func" >&5
10889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10890 if eval "test \"\${$as_ac_var+set}\" = set"; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10901 #define $ac_func innocuous_$ac_func
10902
10903 /* System header to define __stub macros and hopefully few prototypes,
10904     which can conflict with char $ac_func (); below.
10905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906     <limits.h> exists even on freestanding compilers.  */
10907
10908 #ifdef __STDC__
10909 # include <limits.h>
10910 #else
10911 # include <assert.h>
10912 #endif
10913
10914 #undef $ac_func
10915
10916 /* Override any gcc2 internal prototype to avoid an error.  */
10917 #ifdef __cplusplus
10918 extern "C"
10919 {
10920 #endif
10921 /* We use char because int might match the return type of a gcc2
10922    builtin and then its argument prototype would still apply.  */
10923 char $ac_func ();
10924 /* The GNU C library defines this for functions which it implements
10925     to always fail with ENOSYS.  Some functions are actually named
10926     something starting with __ and the normal name is an alias.  */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10928 choke me
10929 #else
10930 char (*f) () = $ac_func;
10931 #endif
10932 #ifdef __cplusplus
10933 }
10934 #endif
10935
10936 int
10937 main ()
10938 {
10939 return f != $ac_func;
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946   (eval $ac_link) 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } &&
10953          { ac_try='test -z "$ac_c_werror_flag"
10954                          || test ! -s conftest.err'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest$ac_exeext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   eval "$as_ac_var=yes"
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 eval "$as_ac_var=no"
10972 fi
10973 rm -f conftest.err conftest.$ac_objext \
10974       conftest$ac_exeext conftest.$ac_ext
10975 fi
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979   cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10981 _ACEOF
10982
10983 fi
10984 done
10985
10986
10987
10988   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10989 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10990 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 #include <stdio.h>
11000 int
11001 main ()
11002 {
11003
11004 #ifndef _snprintf
11005   char *p = (char *) _snprintf;
11006 #endif
11007
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014   (eval $ac_compile) 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } &&
11021          { ac_try='test -z "$ac_c_werror_flag"
11022                          || test ! -s conftest.err'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; } &&
11028          { ac_try='test -s conftest.$ac_objext'
11029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030   (eval $ac_try) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; }; then
11034   ac_cv_have_decl__snprintf=yes
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 ac_cv_have_decl__snprintf=no
11040 fi
11041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11044 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11045   if test $ac_cv_have_decl__snprintf = yes; then
11046     gt_value=1
11047   else
11048     gt_value=0
11049   fi
11050
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_DECL__SNPRINTF $gt_value
11053 _ACEOF
11054
11055
11056
11057   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11058 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11059 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 #include <stdio.h>
11069 int
11070 main ()
11071 {
11072
11073 #ifndef _snwprintf
11074   char *p = (char *) _snwprintf;
11075 #endif
11076
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083   (eval $ac_compile) 2>conftest.er1
11084   ac_status=$?
11085   grep -v '^ *+' conftest.er1 >conftest.err
11086   rm -f conftest.er1
11087   cat conftest.err >&5
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } &&
11090          { ac_try='test -z "$ac_c_werror_flag"
11091                          || test ! -s conftest.err'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; } &&
11097          { ac_try='test -s conftest.$ac_objext'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; }; then
11103   ac_cv_have_decl__snwprintf=yes
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ac_cv_have_decl__snwprintf=no
11109 fi
11110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11111 fi
11112 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11113 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11114   if test $ac_cv_have_decl__snwprintf = yes; then
11115     gt_value=1
11116   else
11117     gt_value=0
11118   fi
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_DECL__SNWPRINTF $gt_value
11122 _ACEOF
11123
11124
11125
11126
11127   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11128 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11129 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <stdio.h>
11139 int
11140 main ()
11141 {
11142
11143 #ifndef feof_unlocked
11144   char *p = (char *) feof_unlocked;
11145 #endif
11146
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag"
11161                          || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   ac_cv_have_decl_feof_unlocked=yes
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_cv_have_decl_feof_unlocked=no
11179 fi
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181 fi
11182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11183 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11184   if test $ac_cv_have_decl_feof_unlocked = yes; then
11185     gt_value=1
11186   else
11187     gt_value=0
11188   fi
11189
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11192 _ACEOF
11193
11194
11195
11196   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11197 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11198 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11199   echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201   cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h.  */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h.  */
11207 #include <stdio.h>
11208 int
11209 main ()
11210 {
11211
11212 #ifndef fgets_unlocked
11213   char *p = (char *) fgets_unlocked;
11214 #endif
11215
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222   (eval $ac_compile) 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } &&
11229          { ac_try='test -z "$ac_c_werror_flag"
11230                          || test ! -s conftest.err'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; } &&
11236          { ac_try='test -s conftest.$ac_objext'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; }; then
11242   ac_cv_have_decl_fgets_unlocked=yes
11243 else
11244   echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 ac_cv_have_decl_fgets_unlocked=no
11248 fi
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11250 fi
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11253   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11254     gt_value=1
11255   else
11256     gt_value=0
11257   fi
11258
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11261 _ACEOF
11262
11263
11264
11265   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11266 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h.  */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h.  */
11276 #include <stdio.h>
11277 int
11278 main ()
11279 {
11280
11281 #ifndef getc_unlocked
11282   char *p = (char *) getc_unlocked;
11283 #endif
11284
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291   (eval $ac_compile) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"
11299                          || test ! -s conftest.err'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; } &&
11305          { ac_try='test -s conftest.$ac_objext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   ac_cv_have_decl_getc_unlocked=yes
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 ac_cv_have_decl_getc_unlocked=no
11317 fi
11318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11319 fi
11320 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11321 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11322   if test $ac_cv_have_decl_getc_unlocked = yes; then
11323     gt_value=1
11324   else
11325     gt_value=0
11326   fi
11327
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11330 _ACEOF
11331
11332
11333
11334   case $gt_cv_func_printf_posix in
11335     *yes) HAVE_POSIX_PRINTF=1 ;;
11336     *) HAVE_POSIX_PRINTF=0 ;;
11337   esac
11338
11339   if test "$ac_cv_func_asprintf" = yes; then
11340     HAVE_ASPRINTF=1
11341   else
11342     HAVE_ASPRINTF=0
11343   fi
11344
11345   if test "$ac_cv_func_snprintf" = yes; then
11346     HAVE_SNPRINTF=1
11347   else
11348     HAVE_SNPRINTF=0
11349   fi
11350
11351   if test "$ac_cv_func_wprintf" = yes; then
11352     HAVE_WPRINTF=1
11353   else
11354     HAVE_WPRINTF=0
11355   fi
11356
11357
11358
11359
11360
11361
11362
11363           am_save_CPPFLAGS="$CPPFLAGS"
11364
11365   for element in $INCICONV; do
11366     haveit=
11367     for x in $CPPFLAGS; do
11368
11369   acl_save_prefix="$prefix"
11370   prefix="$acl_final_prefix"
11371   acl_save_exec_prefix="$exec_prefix"
11372   exec_prefix="$acl_final_exec_prefix"
11373   eval x=\"$x\"
11374   exec_prefix="$acl_save_exec_prefix"
11375   prefix="$acl_save_prefix"
11376
11377       if test "X$x" = "X$element"; then
11378         haveit=yes
11379         break
11380       fi
11381     done
11382     if test -z "$haveit"; then
11383       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11384     fi
11385   done
11386
11387
11388   echo "$as_me:$LINENO: checking for iconv" >&5
11389 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11390 if test "${am_cv_func_iconv+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393
11394     am_cv_func_iconv="no, consider installing GNU libiconv"
11395     am_cv_lib_iconv=no
11396     cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 #include <stdlib.h>
11403 #include <iconv.h>
11404 int
11405 main ()
11406 {
11407 iconv_t cd = iconv_open("","");
11408        iconv(cd,NULL,NULL,NULL,NULL);
11409        iconv_close(cd);
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416   (eval $ac_link) 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag"
11424                          || test ! -s conftest.err'
11425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426   (eval $ac_try) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   am_cv_func_iconv=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 fi
11442 rm -f conftest.err conftest.$ac_objext \
11443       conftest$ac_exeext conftest.$ac_ext
11444     if test "$am_cv_func_iconv" != yes; then
11445       am_save_LIBS="$LIBS"
11446       LIBS="$LIBS $LIBICONV"
11447       cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 #include <stdlib.h>
11454 #include <iconv.h>
11455 int
11456 main ()
11457 {
11458 iconv_t cd = iconv_open("","");
11459          iconv(cd,NULL,NULL,NULL,NULL);
11460          iconv_close(cd);
11461   ;
11462   return 0;
11463 }
11464 _ACEOF
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467   (eval $ac_link) 2>conftest.er1
11468   ac_status=$?
11469   grep -v '^ *+' conftest.er1 >conftest.err
11470   rm -f conftest.er1
11471   cat conftest.err >&5
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } &&
11474          { ac_try='test -z "$ac_c_werror_flag"
11475                          || test ! -s conftest.err'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; } &&
11481          { ac_try='test -s conftest$ac_exeext'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; }; then
11487   am_cv_lib_iconv=yes
11488         am_cv_func_iconv=yes
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 fi
11494 rm -f conftest.err conftest.$ac_objext \
11495       conftest$ac_exeext conftest.$ac_ext
11496       LIBS="$am_save_LIBS"
11497     fi
11498
11499 fi
11500 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11501 echo "${ECHO_T}$am_cv_func_iconv" >&6
11502   if test "$am_cv_func_iconv" = yes; then
11503
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_ICONV 1
11506 _ACEOF
11507
11508   fi
11509   if test "$am_cv_lib_iconv" = yes; then
11510     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11511 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11512     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11513 echo "${ECHO_T}$LIBICONV" >&6
11514   else
11515             CPPFLAGS="$am_save_CPPFLAGS"
11516     LIBICONV=
11517     LTLIBICONV=
11518   fi
11519
11520
11521
11522   if test "$am_cv_func_iconv" = yes; then
11523     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11524 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11525     if test "${am_cv_proto_iconv+set}" = set; then
11526   echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528
11529       cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535
11536 #include <stdlib.h>
11537 #include <iconv.h>
11538 extern
11539 #ifdef __cplusplus
11540 "C"
11541 #endif
11542 #if defined(__STDC__) || defined(__cplusplus)
11543 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11544 #else
11545 size_t iconv();
11546 #endif
11547
11548 int
11549 main ()
11550 {
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558   (eval $ac_compile) 2>conftest.er1
11559   ac_status=$?
11560   grep -v '^ *+' conftest.er1 >conftest.err
11561   rm -f conftest.er1
11562   cat conftest.err >&5
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); } &&
11565          { ac_try='test -z "$ac_c_werror_flag"
11566                          || test ! -s conftest.err'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; } &&
11572          { ac_try='test -s conftest.$ac_objext'
11573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574   (eval $ac_try) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); }; }; then
11578   am_cv_proto_iconv_arg1=""
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 am_cv_proto_iconv_arg1="const"
11584 fi
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11587 fi
11588
11589     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11590     echo "$as_me:$LINENO: result: ${ac_t:-
11591          }$am_cv_proto_iconv" >&5
11592 echo "${ECHO_T}${ac_t:-
11593          }$am_cv_proto_iconv" >&6
11594
11595 cat >>confdefs.h <<_ACEOF
11596 #define ICONV_CONST $am_cv_proto_iconv_arg1
11597 _ACEOF
11598
11599   fi
11600
11601
11602   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11603 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11604 if test "${am_cv_langinfo_codeset+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613 #include <langinfo.h>
11614 int
11615 main ()
11616 {
11617 char* cs = nl_langinfo(CODESET);
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624   (eval $ac_link) 2>conftest.er1
11625   ac_status=$?
11626   grep -v '^ *+' conftest.er1 >conftest.err
11627   rm -f conftest.er1
11628   cat conftest.err >&5
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -z "$ac_c_werror_flag"
11632                          || test ! -s conftest.err'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; } &&
11638          { ac_try='test -s conftest$ac_exeext'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   am_cv_langinfo_codeset=yes
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 am_cv_langinfo_codeset=no
11650 fi
11651 rm -f conftest.err conftest.$ac_objext \
11652       conftest$ac_exeext conftest.$ac_ext
11653
11654 fi
11655 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11656 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11657   if test $am_cv_langinfo_codeset = yes; then
11658
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_LANGINFO_CODESET 1
11661 _ACEOF
11662
11663   fi
11664
11665   if test $ac_cv_header_locale_h = yes; then
11666
11667   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11668 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11669 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 #include <locale.h>
11679 int
11680 main ()
11681 {
11682 return LC_MESSAGES
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689   (eval $ac_link) 2>conftest.er1
11690   ac_status=$?
11691   grep -v '^ *+' conftest.er1 >conftest.err
11692   rm -f conftest.er1
11693   cat conftest.err >&5
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -z "$ac_c_werror_flag"
11697                          || test ! -s conftest.err'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; } &&
11703          { ac_try='test -s conftest$ac_exeext'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; }; then
11709   gt_cv_val_LC_MESSAGES=yes
11710 else
11711   echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 gt_cv_val_LC_MESSAGES=no
11715 fi
11716 rm -f conftest.err conftest.$ac_objext \
11717       conftest$ac_exeext conftest.$ac_ext
11718 fi
11719 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11720 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11721   if test $gt_cv_val_LC_MESSAGES = yes; then
11722
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_LC_MESSAGES 1
11725 _ACEOF
11726
11727   fi
11728
11729   fi
11730
11731   if test -n "$INTL_MACOSX_LIBS"; then
11732     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11733   fi
11734
11735                       for ac_prog in bison
11736 do
11737   # Extract the first word of "$ac_prog", so it can be a program name with args.
11738 set dummy $ac_prog; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   if test -n "$INTLBISON"; then
11745   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11746 else
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752   for ac_exec_ext in '' $ac_executable_extensions; do
11753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     ac_cv_prog_INTLBISON="$ac_prog"
11755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759 done
11760
11761 fi
11762 fi
11763 INTLBISON=$ac_cv_prog_INTLBISON
11764 if test -n "$INTLBISON"; then
11765   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11766 echo "${ECHO_T}$INTLBISON" >&6
11767 else
11768   echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11770 fi
11771
11772   test -n "$INTLBISON" && break
11773 done
11774
11775   if test -z "$INTLBISON"; then
11776     ac_verc_fail=yes
11777   else
11778         echo "$as_me:$LINENO: checking version of bison" >&5
11779 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11780     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11781     case $ac_prog_version in
11782       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11783       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11784          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11785       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11786     esac
11787     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11788 echo "${ECHO_T}$ac_prog_version" >&6
11789   fi
11790   if test $ac_verc_fail = yes; then
11791     INTLBISON=:
11792   fi
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11810 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11811 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   gt_save_CPPFLAGS="$CPPFLAGS"
11815      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11816      gt_save_LIBS="$LIBS"
11817      LIBS="$LIBS -framework CoreFoundation"
11818      cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <CFPreferences.h>
11825 int
11826 main ()
11827 {
11828 CFPreferencesCopyAppValue(NULL, NULL)
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835   (eval $ac_link) 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_c_werror_flag"
11843                          || test ! -s conftest.err'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; } &&
11849          { ac_try='test -s conftest$ac_exeext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   gt_cv_func_CFPreferencesCopyAppValue=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 gt_cv_func_CFPreferencesCopyAppValue=no
11861 fi
11862 rm -f conftest.err conftest.$ac_objext \
11863       conftest$ac_exeext conftest.$ac_ext
11864      CPPFLAGS="$gt_save_CPPFLAGS"
11865      LIBS="$gt_save_LIBS"
11866 fi
11867 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11868 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11869   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11870
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11873 _ACEOF
11874
11875   fi
11876     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11877 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11878 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   gt_save_CPPFLAGS="$CPPFLAGS"
11882      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11883      gt_save_LIBS="$LIBS"
11884      LIBS="$LIBS -framework CoreFoundation"
11885      cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 #include <CFLocale.h>
11892 int
11893 main ()
11894 {
11895 CFLocaleCopyCurrent();
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902   (eval $ac_link) 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -z "$ac_c_werror_flag"
11910                          || test ! -s conftest.err'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest$ac_exeext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   gt_cv_func_CFLocaleCopyCurrent=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 gt_cv_func_CFLocaleCopyCurrent=no
11928 fi
11929 rm -f conftest.err conftest.$ac_objext \
11930       conftest$ac_exeext conftest.$ac_ext
11931      CPPFLAGS="$gt_save_CPPFLAGS"
11932      LIBS="$gt_save_LIBS"
11933 fi
11934 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11935 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11936   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11937
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_CFLOCALECOPYCURRENT 1
11940 _ACEOF
11941
11942   fi
11943   INTL_MACOSX_LIBS=
11944   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11945     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11946   fi
11947
11948
11949
11950
11951   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11952 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11953     # Check whether --enable-nls or --disable-nls was given.
11954 if test "${enable_nls+set}" = set; then
11955   enableval="$enable_nls"
11956   USE_NLS=$enableval
11957 else
11958   USE_NLS=yes
11959 fi;
11960   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11961 echo "${ECHO_T}$USE_NLS" >&6
11962
11963
11964
11965
11966     BUILD_INCLUDED_LIBINTL=no
11967     USE_INCLUDED_LIBINTL=no
11968
11969   LIBINTL=
11970   LTLIBINTL=
11971   POSUB=
11972
11973     if test "$USE_NLS" = "yes"; then
11974     gt_use_preinstalled_gnugettext=no
11975
11976       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11977 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11978
11979 # Check whether --with-included-gettext or --without-included-gettext was given.
11980 if test "${with_included_gettext+set}" = set; then
11981   withval="$with_included_gettext"
11982   nls_cv_force_use_gnu_gettext=$withval
11983 else
11984   nls_cv_force_use_gnu_gettext=no
11985 fi;
11986       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11987 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11988
11989       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11990       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11991
11992
11993
11994
11995
11996
11997         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11998 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11999 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 #include <libintl.h>
12009 extern int _nl_msg_cat_cntr;
12010 extern int *_nl_domain_bindings;
12011 int
12012 main ()
12013 {
12014 bindtextdomain ("", "");
12015 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022   (eval $ac_link) 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -z "$ac_c_werror_flag"
12030                          || test ! -s conftest.err'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest$ac_exeext'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   gt_cv_func_gnugettext1_libc=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 gt_cv_func_gnugettext1_libc=no
12048 fi
12049 rm -f conftest.err conftest.$ac_objext \
12050       conftest$ac_exeext conftest.$ac_ext
12051 fi
12052 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12053 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12054
12055         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12056
12057
12058
12059     use_additional=yes
12060
12061   acl_save_prefix="$prefix"
12062   prefix="$acl_final_prefix"
12063   acl_save_exec_prefix="$exec_prefix"
12064   exec_prefix="$acl_final_exec_prefix"
12065
12066     eval additional_includedir=\"$includedir\"
12067     eval additional_libdir=\"$libdir\"
12068
12069   exec_prefix="$acl_save_exec_prefix"
12070   prefix="$acl_save_prefix"
12071
12072
12073 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12074 if test "${with_libintl_prefix+set}" = set; then
12075   withval="$with_libintl_prefix"
12076
12077     if test "X$withval" = "Xno"; then
12078       use_additional=no
12079     else
12080       if test "X$withval" = "X"; then
12081
12082   acl_save_prefix="$prefix"
12083   prefix="$acl_final_prefix"
12084   acl_save_exec_prefix="$exec_prefix"
12085   exec_prefix="$acl_final_exec_prefix"
12086
12087           eval additional_includedir=\"$includedir\"
12088           eval additional_libdir=\"$libdir\"
12089
12090   exec_prefix="$acl_save_exec_prefix"
12091   prefix="$acl_save_prefix"
12092
12093       else
12094         additional_includedir="$withval/include"
12095         additional_libdir="$withval/lib"
12096       fi
12097     fi
12098
12099 fi;
12100       LIBINTL=
12101   LTLIBINTL=
12102   INCINTL=
12103   rpathdirs=
12104   ltrpathdirs=
12105   names_already_handled=
12106   names_next_round='intl '
12107   while test -n "$names_next_round"; do
12108     names_this_round="$names_next_round"
12109     names_next_round=
12110     for name in $names_this_round; do
12111       already_handled=
12112       for n in $names_already_handled; do
12113         if test "$n" = "$name"; then
12114           already_handled=yes
12115           break
12116         fi
12117       done
12118       if test -z "$already_handled"; then
12119         names_already_handled="$names_already_handled $name"
12120                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12121         eval value=\"\$HAVE_LIB$uppername\"
12122         if test -n "$value"; then
12123           if test "$value" = yes; then
12124             eval value=\"\$LIB$uppername\"
12125             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12126             eval value=\"\$LTLIB$uppername\"
12127             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12128           else
12129                                     :
12130           fi
12131         else
12132                               found_dir=
12133           found_la=
12134           found_so=
12135           found_a=
12136           if test $use_additional = yes; then
12137             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12138               found_dir="$additional_libdir"
12139               found_so="$additional_libdir/lib$name.$shlibext"
12140               if test -f "$additional_libdir/lib$name.la"; then
12141                 found_la="$additional_libdir/lib$name.la"
12142               fi
12143             else
12144               if test -f "$additional_libdir/lib$name.$libext"; then
12145                 found_dir="$additional_libdir"
12146                 found_a="$additional_libdir/lib$name.$libext"
12147                 if test -f "$additional_libdir/lib$name.la"; then
12148                   found_la="$additional_libdir/lib$name.la"
12149                 fi
12150               fi
12151             fi
12152           fi
12153           if test "X$found_dir" = "X"; then
12154             for x in $LDFLAGS $LTLIBINTL; do
12155
12156   acl_save_prefix="$prefix"
12157   prefix="$acl_final_prefix"
12158   acl_save_exec_prefix="$exec_prefix"
12159   exec_prefix="$acl_final_exec_prefix"
12160   eval x=\"$x\"
12161   exec_prefix="$acl_save_exec_prefix"
12162   prefix="$acl_save_prefix"
12163
12164               case "$x" in
12165                 -L*)
12166                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12167                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12168                     found_dir="$dir"
12169                     found_so="$dir/lib$name.$shlibext"
12170                     if test -f "$dir/lib$name.la"; then
12171                       found_la="$dir/lib$name.la"
12172                     fi
12173                   else
12174                     if test -f "$dir/lib$name.$libext"; then
12175                       found_dir="$dir"
12176                       found_a="$dir/lib$name.$libext"
12177                       if test -f "$dir/lib$name.la"; then
12178                         found_la="$dir/lib$name.la"
12179                       fi
12180                     fi
12181                   fi
12182                   ;;
12183               esac
12184               if test "X$found_dir" != "X"; then
12185                 break
12186               fi
12187             done
12188           fi
12189           if test "X$found_dir" != "X"; then
12190                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12191             if test "X$found_so" != "X"; then
12192                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12193                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12194               else
12195                                                                                 haveit=
12196                 for x in $ltrpathdirs; do
12197                   if test "X$x" = "X$found_dir"; then
12198                     haveit=yes
12199                     break
12200                   fi
12201                 done
12202                 if test -z "$haveit"; then
12203                   ltrpathdirs="$ltrpathdirs $found_dir"
12204                 fi
12205                                 if test "$hardcode_direct" = yes; then
12206                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12207                 else
12208                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12209                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12210                                                             haveit=
12211                     for x in $rpathdirs; do
12212                       if test "X$x" = "X$found_dir"; then
12213                         haveit=yes
12214                         break
12215                       fi
12216                     done
12217                     if test -z "$haveit"; then
12218                       rpathdirs="$rpathdirs $found_dir"
12219                     fi
12220                   else
12221                                                                                 haveit=
12222                     for x in $LDFLAGS $LIBINTL; do
12223
12224   acl_save_prefix="$prefix"
12225   prefix="$acl_final_prefix"
12226   acl_save_exec_prefix="$exec_prefix"
12227   exec_prefix="$acl_final_exec_prefix"
12228   eval x=\"$x\"
12229   exec_prefix="$acl_save_exec_prefix"
12230   prefix="$acl_save_prefix"
12231
12232                       if test "X$x" = "X-L$found_dir"; then
12233                         haveit=yes
12234                         break
12235                       fi
12236                     done
12237                     if test -z "$haveit"; then
12238                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12239                     fi
12240                     if test "$hardcode_minus_L" != no; then
12241                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12242                     else
12243                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12244                     fi
12245                   fi
12246                 fi
12247               fi
12248             else
12249               if test "X$found_a" != "X"; then
12250                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12251               else
12252                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12253               fi
12254             fi
12255                         additional_includedir=
12256             case "$found_dir" in
12257               */lib | */lib/)
12258                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12259                 additional_includedir="$basedir/include"
12260                 ;;
12261             esac
12262             if test "X$additional_includedir" != "X"; then
12263                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12264                 haveit=
12265                 if test "X$additional_includedir" = "X/usr/local/include"; then
12266                   if test -n "$GCC"; then
12267                     case $host_os in
12268                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12269                     esac
12270                   fi
12271                 fi
12272                 if test -z "$haveit"; then
12273                   for x in $CPPFLAGS $INCINTL; do
12274
12275   acl_save_prefix="$prefix"
12276   prefix="$acl_final_prefix"
12277   acl_save_exec_prefix="$exec_prefix"
12278   exec_prefix="$acl_final_exec_prefix"
12279   eval x=\"$x\"
12280   exec_prefix="$acl_save_exec_prefix"
12281   prefix="$acl_save_prefix"
12282
12283                     if test "X$x" = "X-I$additional_includedir"; then
12284                       haveit=yes
12285                       break
12286                     fi
12287                   done
12288                   if test -z "$haveit"; then
12289                     if test -d "$additional_includedir"; then
12290                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12291                     fi
12292                   fi
12293                 fi
12294               fi
12295             fi
12296                         if test -n "$found_la"; then
12297                                                         save_libdir="$libdir"
12298               case "$found_la" in
12299                 */* | *\\*) . "$found_la" ;;
12300                 *) . "./$found_la" ;;
12301               esac
12302               libdir="$save_libdir"
12303                             for dep in $dependency_libs; do
12304                 case "$dep" in
12305                   -L*)
12306                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12307                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12308                       haveit=
12309                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12310                         if test -n "$GCC"; then
12311                           case $host_os in
12312                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12313                           esac
12314                         fi
12315                       fi
12316                       if test -z "$haveit"; then
12317                         haveit=
12318                         for x in $LDFLAGS $LIBINTL; do
12319
12320   acl_save_prefix="$prefix"
12321   prefix="$acl_final_prefix"
12322   acl_save_exec_prefix="$exec_prefix"
12323   exec_prefix="$acl_final_exec_prefix"
12324   eval x=\"$x\"
12325   exec_prefix="$acl_save_exec_prefix"
12326   prefix="$acl_save_prefix"
12327
12328                           if test "X$x" = "X-L$additional_libdir"; then
12329                             haveit=yes
12330                             break
12331                           fi
12332                         done
12333                         if test -z "$haveit"; then
12334                           if test -d "$additional_libdir"; then
12335                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12336                           fi
12337                         fi
12338                         haveit=
12339                         for x in $LDFLAGS $LTLIBINTL; do
12340
12341   acl_save_prefix="$prefix"
12342   prefix="$acl_final_prefix"
12343   acl_save_exec_prefix="$exec_prefix"
12344   exec_prefix="$acl_final_exec_prefix"
12345   eval x=\"$x\"
12346   exec_prefix="$acl_save_exec_prefix"
12347   prefix="$acl_save_prefix"
12348
12349                           if test "X$x" = "X-L$additional_libdir"; then
12350                             haveit=yes
12351                             break
12352                           fi
12353                         done
12354                         if test -z "$haveit"; then
12355                           if test -d "$additional_libdir"; then
12356                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12357                           fi
12358                         fi
12359                       fi
12360                     fi
12361                     ;;
12362                   -R*)
12363                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12364                     if test "$enable_rpath" != no; then
12365                                                                   haveit=
12366                       for x in $rpathdirs; do
12367                         if test "X$x" = "X$dir"; then
12368                           haveit=yes
12369                           break
12370                         fi
12371                       done
12372                       if test -z "$haveit"; then
12373                         rpathdirs="$rpathdirs $dir"
12374                       fi
12375                                                                   haveit=
12376                       for x in $ltrpathdirs; do
12377                         if test "X$x" = "X$dir"; then
12378                           haveit=yes
12379                           break
12380                         fi
12381                       done
12382                       if test -z "$haveit"; then
12383                         ltrpathdirs="$ltrpathdirs $dir"
12384                       fi
12385                     fi
12386                     ;;
12387                   -l*)
12388                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12389                     ;;
12390                   *.la)
12391                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12392                     ;;
12393                   *)
12394                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12395                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12396                     ;;
12397                 esac
12398               done
12399             fi
12400           else
12401                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12402             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12403           fi
12404         fi
12405       fi
12406     done
12407   done
12408   if test "X$rpathdirs" != "X"; then
12409     if test -n "$hardcode_libdir_separator"; then
12410                         alldirs=
12411       for found_dir in $rpathdirs; do
12412         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12413       done
12414             acl_save_libdir="$libdir"
12415       libdir="$alldirs"
12416       eval flag=\"$hardcode_libdir_flag_spec\"
12417       libdir="$acl_save_libdir"
12418       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12419     else
12420             for found_dir in $rpathdirs; do
12421         acl_save_libdir="$libdir"
12422         libdir="$found_dir"
12423         eval flag=\"$hardcode_libdir_flag_spec\"
12424         libdir="$acl_save_libdir"
12425         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12426       done
12427     fi
12428   fi
12429   if test "X$ltrpathdirs" != "X"; then
12430             for found_dir in $ltrpathdirs; do
12431       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12432     done
12433   fi
12434
12435           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12436 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12437 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   gt_save_CPPFLAGS="$CPPFLAGS"
12441             CPPFLAGS="$CPPFLAGS $INCINTL"
12442             gt_save_LIBS="$LIBS"
12443             LIBS="$LIBS $LIBINTL"
12444                         cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 #include <libintl.h>
12451 extern int _nl_msg_cat_cntr;
12452 extern
12453 #ifdef __cplusplus
12454 "C"
12455 #endif
12456 const char *_nl_expand_alias (const char *);
12457 int
12458 main ()
12459 {
12460 bindtextdomain ("", "");
12461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468   (eval $ac_link) 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } &&
12475          { ac_try='test -z "$ac_c_werror_flag"
12476                          || test ! -s conftest.err'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; } &&
12482          { ac_try='test -s conftest$ac_exeext'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; }; then
12488   gt_cv_func_gnugettext1_libintl=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493 gt_cv_func_gnugettext1_libintl=no
12494 fi
12495 rm -f conftest.err conftest.$ac_objext \
12496       conftest$ac_exeext conftest.$ac_ext
12497                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12498               LIBS="$LIBS $LIBICONV"
12499               cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 #include <libintl.h>
12506 extern int _nl_msg_cat_cntr;
12507 extern
12508 #ifdef __cplusplus
12509 "C"
12510 #endif
12511 const char *_nl_expand_alias (const char *);
12512 int
12513 main ()
12514 {
12515 bindtextdomain ("", "");
12516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag"
12531                          || test ! -s conftest.err'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   LIBINTL="$LIBINTL $LIBICONV"
12544                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12545                 gt_cv_func_gnugettext1_libintl=yes
12546
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554             fi
12555             CPPFLAGS="$gt_save_CPPFLAGS"
12556             LIBS="$gt_save_LIBS"
12557 fi
12558 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12559 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12560         fi
12561
12562                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12563            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12564                 && test "$PACKAGE" != gettext-runtime \
12565                 && test "$PACKAGE" != gettext-tools; }; then
12566           gt_use_preinstalled_gnugettext=yes
12567         else
12568                     LIBINTL=
12569           LTLIBINTL=
12570           INCINTL=
12571         fi
12572
12573
12574         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12575                               nls_cv_use_gnu_gettext=yes
12576         fi
12577       fi
12578
12579       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12580                 BUILD_INCLUDED_LIBINTL=yes
12581         USE_INCLUDED_LIBINTL=yes
12582         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12583         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12584         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12585       fi
12586
12587       CATOBJEXT=
12588       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12589          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12590                 CATOBJEXT=.gmo
12591       fi
12592
12593
12594     if test -n "$INTL_MACOSX_LIBS"; then
12595       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12596          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12597                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12598         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12599       fi
12600     fi
12601
12602     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12603        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12604
12605 cat >>confdefs.h <<\_ACEOF
12606 #define ENABLE_NLS 1
12607 _ACEOF
12608
12609     else
12610       USE_NLS=no
12611     fi
12612   fi
12613
12614   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12616   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12617 echo "${ECHO_T}$USE_NLS" >&6
12618   if test "$USE_NLS" = "yes"; then
12619     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12621     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12622       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12623         gt_source="external libintl"
12624       else
12625         gt_source="libc"
12626       fi
12627     else
12628       gt_source="included intl directory"
12629     fi
12630     echo "$as_me:$LINENO: result: $gt_source" >&5
12631 echo "${ECHO_T}$gt_source" >&6
12632   fi
12633
12634   if test "$USE_NLS" = "yes"; then
12635
12636     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12637       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12638         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12640         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12641 echo "${ECHO_T}$LIBINTL" >&6
12642
12643   for element in $INCINTL; do
12644     haveit=
12645     for x in $CPPFLAGS; do
12646
12647   acl_save_prefix="$prefix"
12648   prefix="$acl_final_prefix"
12649   acl_save_exec_prefix="$exec_prefix"
12650   exec_prefix="$acl_final_exec_prefix"
12651   eval x=\"$x\"
12652   exec_prefix="$acl_save_exec_prefix"
12653   prefix="$acl_save_prefix"
12654
12655       if test "X$x" = "X$element"; then
12656         haveit=yes
12657         break
12658       fi
12659     done
12660     if test -z "$haveit"; then
12661       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12662     fi
12663   done
12664
12665       fi
12666
12667
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_GETTEXT 1
12670 _ACEOF
12671
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_DCGETTEXT 1
12675 _ACEOF
12676
12677     fi
12678
12679         POSUB=po
12680   fi
12681
12682
12683             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12684       BUILD_INCLUDED_LIBINTL=yes
12685     fi
12686
12687
12688
12689
12690
12691         nls_cv_header_intl=
12692     nls_cv_header_libgt=
12693
12694         DATADIRNAME=share
12695
12696
12697         INSTOBJEXT=.mo
12698
12699
12700         GENCAT=gencat
12701
12702
12703         INTLOBJS=
12704     if test "$USE_INCLUDED_LIBINTL" = yes; then
12705       INTLOBJS="\$(GETTOBJS)"
12706     fi
12707
12708
12709         INTL_LIBTOOL_SUFFIX_PREFIX=
12710
12711
12712
12713     INTLLIBS="$LIBINTL"
12714
12715
12716
12717
12718
12719
12720 fi
12721
12722
12723 support_mysql=no
12724 support_sqlite=no
12725 support_sqlite3=no
12726 support_postgresql=no
12727 support_smartalloc=yes
12728 support_readline=yes
12729 support_conio=yes
12730 support_gnome=no
12731 support_wx_console=no
12732 support_tls=no
12733 gnome_version=
12734 wx_version=
12735 support_static_tools=no
12736 support_static_fd=no
12737 support_static_sd=no
12738 support_static_dir=no
12739 support_static_cons=no
12740 support_python=no
12741 build_client_only=no
12742 build_dird=yes
12743 build_stored=yes
12744 cats=
12745 db_name=Internal
12746 DB_NAME=bdb
12747
12748
12749 # -------------------------------------------
12750 # gnome (default off)
12751 # -------------------------------------------
12752 # Check whether --enable-gnome or --disable-gnome was given.
12753 if test "${enable_gnome+set}" = set; then
12754   enableval="$enable_gnome"
12755   if test x$enableval = xyes; then
12756     support_gnome=yes
12757   fi
12758 fi;
12759
12760 GNOME_DIR=
12761 if test x$support_gnome = xyes; then
12762   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12763   pkg=$?
12764   if test $pkg = 0; then
12765      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12766      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12767      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12768      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12769
12770
12771
12772
12773      GNOME_DIR=src/gnome2-console
12774      gnome_version="Version 2.x"
12775   else
12776      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12777 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12778    { (exit 1); exit 1; }; }
12779   fi
12780 fi
12781
12782
12783
12784 # -------------------------------------------
12785 # wx-console (default off)
12786 # -------------------------------------------
12787 # Check whether --enable-wx-console or --disable-wx-console was given.
12788 if test "${enable_wx_console+set}" = set; then
12789   enableval="$enable_wx_console"
12790   if test x$enableval = xyes; then
12791     support_wx_console=yes
12792   fi
12793 fi;
12794
12795 WX_DIR=
12796 if test x$support_wx_console = xyes; then
12797   abc=`$WXCONFIG $WXFLAGS --cppflags`
12798   pkg=$?
12799   if test $pkg = 0; then
12800      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12801      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12802      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12803
12804
12805
12806      WX_DIR=src/wx-console
12807   else
12808      echo " "
12809      echo "wx-config program not found. wx-console disabled."
12810      echo " "
12811      support_wx_console=no
12812   fi
12813 fi
12814
12815
12816
12817 # -------------------------------------------
12818 # tray-monitor (default off)
12819 # -------------------------------------------
12820 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12821 if test "${enable_tray_monitor+set}" = set; then
12822   enableval="$enable_tray_monitor"
12823   if test x$enableval = xyes; then
12824     support_tray_monitor=yes
12825   fi
12826 fi;
12827
12828 TRAY_MONITOR_DIR=
12829 if test x$support_tray_monitor = xyes; then
12830   abc=`$PKGCONFIG --exists gtk+-2.0`
12831   pkg=$?
12832   if test $pkg = 0; then
12833      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12834      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12835
12836
12837      TRAY_MONITOR_DIR=src/tray-monitor
12838      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12839      pkg=$?
12840      if test $pkg = 0; then
12841         cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_GTK_2_4 1
12843 _ACEOF
12844
12845      fi
12846   fi
12847 fi
12848
12849
12850 # -------------------------------------------
12851 # smartalloc (default off)
12852 # -------------------------------------------
12853 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12854 if test "${enable_smartalloc+set}" = set; then
12855   enableval="$enable_smartalloc"
12856   if test x$enableval = xno; then
12857     support_smartalloc=no
12858   fi
12859 fi;
12860
12861 if test x$support_smartalloc = xyes; then
12862    cat >>confdefs.h <<\_ACEOF
12863 #define SMARTALLOC 1
12864 _ACEOF
12865
12866 fi
12867
12868 # -------------------------------------------
12869 # static-tools (default off)
12870 # -------------------------------------------
12871 # Check whether --enable-static-tools or --disable-static-tools was given.
12872 if test "${enable_static_tools+set}" = set; then
12873   enableval="$enable_static_tools"
12874   if test x$enableval = xyes; then
12875      support_static_tools=yes
12876    fi
12877 fi;
12878
12879 TTOOL_LDFLAGS=
12880 if test x$support_static_tools = xyes; then
12881    TTOOL_LDFLAGS="-static"
12882 fi
12883
12884
12885 # -------------------------------------------
12886 # static-fd    (default off)
12887 # -------------------------------------------
12888 # Check whether --enable-static-fd or --disable-static-fd was given.
12889 if test "${enable_static_fd+set}" = set; then
12890   enableval="$enable_static_fd"
12891   if test x$enableval = xyes; then
12892      support_static_fd=yes
12893    fi
12894 fi;
12895
12896 STATIC_FD=
12897 if test x$support_static_fd = xyes; then
12898    STATIC_FD="static-bacula-fd"
12899 fi
12900
12901
12902 # -------------------------------------------
12903 # static-sd    (default off)
12904 # -------------------------------------------
12905 # Check whether --enable-static-sd or --disable-static-sd was given.
12906 if test "${enable_static_sd+set}" = set; then
12907   enableval="$enable_static_sd"
12908   if test x$enableval = xyes; then
12909      support_static_sd=yes
12910    fi
12911 fi;
12912
12913 STATIC_SD=
12914 if test x$support_static_sd = xyes; then
12915    STATIC_SD="static-bacula-sd"
12916 fi
12917
12918
12919 # -------------------------------------------
12920 # static-dir   (default off)
12921 # -------------------------------------------
12922 # Check whether --enable-static-dir or --disable-static-dir was given.
12923 if test "${enable_static_dir+set}" = set; then
12924   enableval="$enable_static_dir"
12925   if test x$enableval = xyes; then
12926      support_static_dir=yes
12927    fi
12928 fi;
12929
12930 STATIC_DIR=
12931 if test x$support_static_dir = xyes; then
12932    STATIC_DIR="static-bacula-dir"
12933 fi
12934
12935
12936 # -------------------------------------------
12937 # static-cons  (default off)
12938 # -------------------------------------------
12939 # Check whether --enable-static-cons or --disable-static-cons was given.
12940 if test "${enable_static_cons+set}" = set; then
12941   enableval="$enable_static_cons"
12942   if test x$enableval = xyes; then
12943      support_static_cons=yes
12944    fi
12945 fi;
12946
12947 STATIC_CONS=
12948 STATIC_GNOME_CONS=
12949 STATIC_WX_CONS=
12950 if test x$support_static_cons = xyes; then
12951    STATIC_CONS="static-bconsole"
12952    STATIC_GNOME_CONS="static-gnome-console"
12953    STATIC_WX_CONS="static-wx-console"
12954 fi
12955
12956
12957
12958
12959 # -------------------------------------------
12960 # client_only  (default off)
12961 # -------------------------------------------
12962 # Check whether --enable-client-only or --disable-client-only was given.
12963 if test "${enable_client_only+set}" = set; then
12964   enableval="$enable_client_only"
12965   if test x$enableval = xyes; then
12966       build_client_only=yes
12967       db_name=None
12968       DB_NAME=none
12969    fi
12970 fi;
12971 if test x$build_client_only = xno; then
12972    ALL_DIRS="subdirs"
12973 else
12974    ALL_DIRS=""
12975 fi
12976
12977
12978 # -------------------------------------------
12979 # director  (default on)
12980 # -------------------------------------------
12981 # Check whether --enable-build-dird or --disable-build-dird was given.
12982 if test "${enable_build_dird+set}" = set; then
12983   enableval="$enable_build_dird"
12984   if test x$enableval = xno; then
12985       build_dird=no
12986    fi
12987 fi;
12988 if test x$build_dird = xyes; then
12989    DIRD_DIR="src/dird"
12990    DIR_TOOLS="DIRTOOLS"
12991 else
12992    DIRD_DIR=""
12993    DIR_TOOLS="NODIRTOOLS"
12994 fi
12995
12996
12997
12998 # -------------------------------------------
12999 # stored  (default on)
13000 # -------------------------------------------
13001 # Check whether --enable-build-stored or --disable-build-stored was given.
13002 if test "${enable_build_stored+set}" = set; then
13003   enableval="$enable_build_stored"
13004   if test x$enableval = xno; then
13005       build_stored=no
13006    fi
13007 fi;
13008 if test x$build_stored = xyes; then
13009    STORED_DIR="src/stored"
13010 else
13011    STORED_DIR=""
13012 fi
13013
13014
13015 # ---------------------------------------------------
13016 # Check for conio (Bacula readline substitute)(
13017 # ---------------------------------------------------
13018 # this allows you to turn it completely off
13019 # Check whether --enable-conio or --disable-conio was given.
13020 if test "${enable_conio+set}" = set; then
13021   enableval="$enable_conio"
13022   if test x$enableval = xno; then
13023     support_conio=no
13024   fi
13025 fi;
13026
13027 got_conio="no"
13028 if test x$support_conio = xyes; then
13029    if test "${ac_cv_header_termcap_h+set}" = set; then
13030   echo "$as_me:$LINENO: checking for termcap.h" >&5
13031 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13032 if test "${ac_cv_header_termcap_h+set}" = set; then
13033   echo $ECHO_N "(cached) $ECHO_C" >&6
13034 fi
13035 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13036 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13037 else
13038   # Is the header compilable?
13039 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13040 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h.  */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h.  */
13047 $ac_includes_default
13048 #include <termcap.h>
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052   (eval $ac_compile) 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } &&
13059          { ac_try='test -z "$ac_c_werror_flag"
13060                          || test ! -s conftest.err'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; } &&
13066          { ac_try='test -s conftest.$ac_objext'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; }; then
13072   ac_header_compiler=yes
13073 else
13074   echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 ac_header_compiler=no
13078 fi
13079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13081 echo "${ECHO_T}$ac_header_compiler" >&6
13082
13083 # Is the header present?
13084 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13085 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092 #include <termcap.h>
13093 _ACEOF
13094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096   ac_status=$?
13097   grep -v '^ *+' conftest.er1 >conftest.err
13098   rm -f conftest.er1
13099   cat conftest.err >&5
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); } >/dev/null; then
13102   if test -s conftest.err; then
13103     ac_cpp_err=$ac_c_preproc_warn_flag
13104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13105   else
13106     ac_cpp_err=
13107   fi
13108 else
13109   ac_cpp_err=yes
13110 fi
13111 if test -z "$ac_cpp_err"; then
13112   ac_header_preproc=yes
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117   ac_header_preproc=no
13118 fi
13119 rm -f conftest.err conftest.$ac_ext
13120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13121 echo "${ECHO_T}$ac_header_preproc" >&6
13122
13123 # So?  What about this header?
13124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125   yes:no: )
13126     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13127 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13128     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13129 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13130     ac_header_preproc=yes
13131     ;;
13132   no:yes:* )
13133     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13134 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13135     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13136 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13137     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13138 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13139     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13140 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13141     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13142 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13143     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13144 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13145     (
13146       cat <<\_ASBOX
13147 ## ------------------------------------------ ##
13148 ## Report this to the AC_PACKAGE_NAME lists.  ##
13149 ## ------------------------------------------ ##
13150 _ASBOX
13151     ) |
13152       sed "s/^/$as_me: WARNING:     /" >&2
13153     ;;
13154 esac
13155 echo "$as_me:$LINENO: checking for termcap.h" >&5
13156 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13157 if test "${ac_cv_header_termcap_h+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   ac_cv_header_termcap_h=$ac_header_preproc
13161 fi
13162 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13163 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13164
13165 fi
13166 if test $ac_cv_header_termcap_h = yes; then
13167    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13168 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13169 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-ltermcap  $LIBS"
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180
13181 /* Override any gcc2 internal prototype to avoid an error.  */
13182 #ifdef __cplusplus
13183 extern "C"
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186    builtin and then its argument prototype would still apply.  */
13187 char tgetent ();
13188 int
13189 main ()
13190 {
13191 tgetent ();
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198   (eval $ac_link) 2>conftest.er1
13199   ac_status=$?
13200   grep -v '^ *+' conftest.er1 >conftest.err
13201   rm -f conftest.er1
13202   cat conftest.err >&5
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); } &&
13205          { ac_try='test -z "$ac_c_werror_flag"
13206                          || test ! -s conftest.err'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; } &&
13212          { ac_try='test -s conftest$ac_exeext'
13213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214   (eval $ac_try) 2>&5
13215   ac_status=$?
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); }; }; then
13218   ac_cv_lib_termcap_tgetent=yes
13219 else
13220   echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223 ac_cv_lib_termcap_tgetent=no
13224 fi
13225 rm -f conftest.err conftest.$ac_objext \
13226       conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13228 fi
13229 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13230 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13231 if test $ac_cv_lib_termcap_tgetent = yes; then
13232    CONS_LIBS="-ltermcap"
13233          CONS_OBJ="conio.o"
13234          CONS_SRC="conio.c"
13235          got_conio="yes"
13236          support_readline=no
13237
13238 cat >>confdefs.h <<\_ACEOF
13239 #define HAVE_CONIO 1
13240 _ACEOF
13241
13242
13243 else
13244    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13245 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13246 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13247   echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249   ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lncurses  $LIBS"
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257
13258 /* Override any gcc2 internal prototype to avoid an error.  */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 /* We use char because int might match the return type of a gcc2
13263    builtin and then its argument prototype would still apply.  */
13264 char tgetent ();
13265 int
13266 main ()
13267 {
13268 tgetent ();
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13275   (eval $ac_link) 2>conftest.er1
13276   ac_status=$?
13277   grep -v '^ *+' conftest.er1 >conftest.err
13278   rm -f conftest.er1
13279   cat conftest.err >&5
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); } &&
13282          { ac_try='test -z "$ac_c_werror_flag"
13283                          || test ! -s conftest.err'
13284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285   (eval $ac_try) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; } &&
13289          { ac_try='test -s conftest$ac_exeext'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; }; then
13295   ac_cv_lib_ncurses_tgetent=yes
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300 ac_cv_lib_ncurses_tgetent=no
13301 fi
13302 rm -f conftest.err conftest.$ac_objext \
13303       conftest$ac_exeext conftest.$ac_ext
13304 LIBS=$ac_check_lib_save_LIBS
13305 fi
13306 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13307 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13308 if test $ac_cv_lib_ncurses_tgetent = yes; then
13309    CONS_LIBS="-lncurses"
13310            CONS_OBJ="conio.o"
13311            CONS_SRC="conio.c"
13312            got_conio="yes"
13313            support_readline=no
13314
13315 cat >>confdefs.h <<\_ACEOF
13316 #define HAVE_CONIO 1
13317 _ACEOF
13318
13319
13320 fi
13321
13322
13323 fi
13324
13325
13326 else
13327
13328
13329 for ac_header in curses.h
13330 do
13331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13333   echo "$as_me:$LINENO: checking for $ac_header" >&5
13334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13336   echo $ECHO_N "(cached) $ECHO_C" >&6
13337 fi
13338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13340 else
13341   # Is the header compilable?
13342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h.  */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h.  */
13350 $ac_includes_default
13351 #include <$ac_header>
13352 _ACEOF
13353 rm -f conftest.$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355   (eval $ac_compile) 2>conftest.er1
13356   ac_status=$?
13357   grep -v '^ *+' conftest.er1 >conftest.err
13358   rm -f conftest.er1
13359   cat conftest.err >&5
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); } &&
13362          { ac_try='test -z "$ac_c_werror_flag"
13363                          || test ! -s conftest.err'
13364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365   (eval $ac_try) 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }; } &&
13369          { ac_try='test -s conftest.$ac_objext'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; }; then
13375   ac_header_compiler=yes
13376 else
13377   echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ac_header_compiler=no
13381 fi
13382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13384 echo "${ECHO_T}$ac_header_compiler" >&6
13385
13386 # Is the header present?
13387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395 #include <$ac_header>
13396 _ACEOF
13397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13399   ac_status=$?
13400   grep -v '^ *+' conftest.er1 >conftest.err
13401   rm -f conftest.er1
13402   cat conftest.err >&5
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } >/dev/null; then
13405   if test -s conftest.err; then
13406     ac_cpp_err=$ac_c_preproc_warn_flag
13407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13408   else
13409     ac_cpp_err=
13410   fi
13411 else
13412   ac_cpp_err=yes
13413 fi
13414 if test -z "$ac_cpp_err"; then
13415   ac_header_preproc=yes
13416 else
13417   echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420   ac_header_preproc=no
13421 fi
13422 rm -f conftest.err conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6
13425
13426 # So?  What about this header?
13427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13428   yes:no: )
13429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13433     ac_header_preproc=yes
13434     ;;
13435   no:yes:* )
13436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13448     (
13449       cat <<\_ASBOX
13450 ## ------------------------------------------ ##
13451 ## Report this to the AC_PACKAGE_NAME lists.  ##
13452 ## ------------------------------------------ ##
13453 _ASBOX
13454     ) |
13455       sed "s/^/$as_me: WARNING:     /" >&2
13456     ;;
13457 esac
13458 echo "$as_me:$LINENO: checking for $ac_header" >&5
13459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   eval "$as_ac_Header=\$ac_header_preproc"
13464 fi
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13467
13468 fi
13469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13470   cat >>confdefs.h <<_ACEOF
13471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13472 _ACEOF
13473
13474 fi
13475
13476 done
13477
13478          echo "$as_me:$LINENO: checking for term.h" >&5
13479 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13480 if test "${ac_cv_header_term_h+set}" = set; then
13481   echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483   cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h.  */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h.  */
13489 #if HAVE_CURSES_H
13490 #include <curses.h>
13491 #endif
13492
13493
13494 #include <term.h>
13495 _ACEOF
13496 rm -f conftest.$ac_objext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13498   (eval $ac_compile) 2>conftest.er1
13499   ac_status=$?
13500   grep -v '^ *+' conftest.er1 >conftest.err
13501   rm -f conftest.er1
13502   cat conftest.err >&5
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } &&
13505          { ac_try='test -z "$ac_c_werror_flag"
13506                          || test ! -s conftest.err'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; } &&
13512          { ac_try='test -s conftest.$ac_objext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_cv_header_term_h=yes
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 ac_cv_header_term_h=no
13524 fi
13525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13526 fi
13527 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13528 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13529 if test $ac_cv_header_term_h = yes; then
13530    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13531 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13532 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   ac_check_lib_save_LIBS=$LIBS
13536 LIBS="-lcurses  $LIBS"
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543
13544 /* Override any gcc2 internal prototype to avoid an error.  */
13545 #ifdef __cplusplus
13546 extern "C"
13547 #endif
13548 /* We use char because int might match the return type of a gcc2
13549    builtin and then its argument prototype would still apply.  */
13550 char tgetent ();
13551 int
13552 main ()
13553 {
13554 tgetent ();
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561   (eval $ac_link) 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } &&
13568          { ac_try='test -z "$ac_c_werror_flag"
13569                          || test ! -s conftest.err'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; } &&
13575          { ac_try='test -s conftest$ac_exeext'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   ac_cv_lib_curses_tgetent=yes
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 ac_cv_lib_curses_tgetent=no
13587 fi
13588 rm -f conftest.err conftest.$ac_objext \
13589       conftest$ac_exeext conftest.$ac_ext
13590 LIBS=$ac_check_lib_save_LIBS
13591 fi
13592 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13593 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13594 if test $ac_cv_lib_curses_tgetent = yes; then
13595    CONS_LIBS="-lcurses"
13596                    CONS_OBJ="conio.o"
13597                    CONS_SRC="conio.c"
13598                    got_conio="yes"
13599                    support_readline=no
13600
13601 cat >>confdefs.h <<\_ACEOF
13602 #define HAVE_CONIO 1
13603 _ACEOF
13604
13605
13606 fi
13607
13608
13609 else
13610    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13611 fi
13612
13613
13614
13615 fi
13616
13617
13618 fi
13619
13620
13621 # ---------------------------------------------------
13622 # Check for readline support/directory (default off)
13623 # ---------------------------------------------------
13624 # this allows you to turn it completely off
13625 # Check whether --enable-readline or --disable-readline was given.
13626 if test "${enable_readline+set}" = set; then
13627   enableval="$enable_readline"
13628   if test x$enableval = xno; then
13629     support_readline=no
13630   fi
13631 fi;
13632
13633 got_readline="no"
13634 READLINE_SRC=
13635 if test x$support_readline = xyes; then
13636
13637 # Check whether --with-readline or --without-readline was given.
13638 if test "${with_readline+set}" = set; then
13639   withval="$with_readline"
13640
13641         case "$with_readline" in
13642         no) : ;;
13643         yes|*)
13644           if test -f ${with_readline}/readline.h; then
13645              CONS_INC="-I${with_readline}"
13646              CONS_LDFLAGS="-L$with_readline"
13647           elif test -f ${with_readline}/include/readline/readline.h; then
13648              CONS_INC="-I${with_readline}/include/readline"
13649              CONS_LDFLAGS="-L${with_readline}/lib"
13650              with_readline="${with_readline}/include/readline"
13651           else
13652              with_readline="/usr/include/readline"
13653           fi
13654           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13656   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13657 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 fi
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13663 else
13664   # Is the header compilable?
13665 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13666 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 $ac_includes_default
13674 #include <${with_readline}/readline.h>
13675 _ACEOF
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678   (eval $ac_compile) 2>conftest.er1
13679   ac_status=$?
13680   grep -v '^ *+' conftest.er1 >conftest.err
13681   rm -f conftest.er1
13682   cat conftest.err >&5
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); } &&
13685          { ac_try='test -z "$ac_c_werror_flag"
13686                          || test ! -s conftest.err'
13687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688   (eval $ac_try) 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); }; } &&
13692          { ac_try='test -s conftest.$ac_objext'
13693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694   (eval $ac_try) 2>&5
13695   ac_status=$?
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); }; }; then
13698   ac_header_compiler=yes
13699 else
13700   echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703 ac_header_compiler=no
13704 fi
13705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13707 echo "${ECHO_T}$ac_header_compiler" >&6
13708
13709 # Is the header present?
13710 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13711 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 #include <${with_readline}/readline.h>
13719 _ACEOF
13720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13722   ac_status=$?
13723   grep -v '^ *+' conftest.er1 >conftest.err
13724   rm -f conftest.er1
13725   cat conftest.err >&5
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); } >/dev/null; then
13728   if test -s conftest.err; then
13729     ac_cpp_err=$ac_c_preproc_warn_flag
13730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13731   else
13732     ac_cpp_err=
13733   fi
13734 else
13735   ac_cpp_err=yes
13736 fi
13737 if test -z "$ac_cpp_err"; then
13738   ac_header_preproc=yes
13739 else
13740   echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743   ac_header_preproc=no
13744 fi
13745 rm -f conftest.err conftest.$ac_ext
13746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13747 echo "${ECHO_T}$ac_header_preproc" >&6
13748
13749 # So?  What about this header?
13750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13751   yes:no: )
13752     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13753 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13754     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13755 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13756     ac_header_preproc=yes
13757     ;;
13758   no:yes:* )
13759     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13760 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13761     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13762 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13763     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13764 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13765     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13766 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13767     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13768 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13769     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13770 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13771     (
13772       cat <<\_ASBOX
13773 ## ------------------------------------------ ##
13774 ## Report this to the AC_PACKAGE_NAME lists.  ##
13775 ## ------------------------------------------ ##
13776 _ASBOX
13777     ) |
13778       sed "s/^/$as_me: WARNING:     /" >&2
13779     ;;
13780 esac
13781 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13782 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13784   echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786   eval "$as_ac_Header=\$ac_header_preproc"
13787 fi
13788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13790
13791 fi
13792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13793    cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_READLINE 1
13795 _ACEOF
13796
13797                CONS_LIBS="-lreadline -lhistory -ltermcap"
13798                got_readline="yes"
13799
13800 else
13801    echo " "
13802                echo "readline.h not found. readline turned off ..."
13803                echo " "
13804
13805
13806 fi
13807
13808
13809           ;;
13810         esac
13811
13812 else
13813
13814        # check for standard readline library
13815        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13816   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13817 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13818 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13822 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13823 else
13824   # Is the header compilable?
13825 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13826 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13827 cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 $ac_includes_default
13834 #include </usr/include/readline/readline.h>
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838   (eval $ac_compile) 2>conftest.er1
13839   ac_status=$?
13840   grep -v '^ *+' conftest.er1 >conftest.err
13841   rm -f conftest.er1
13842   cat conftest.err >&5
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } &&
13845          { ac_try='test -z "$ac_c_werror_flag"
13846                          || test ! -s conftest.err'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; } &&
13852          { ac_try='test -s conftest.$ac_objext'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   ac_header_compiler=yes
13859 else
13860   echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 ac_header_compiler=no
13864 fi
13865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13867 echo "${ECHO_T}$ac_header_compiler" >&6
13868
13869 # Is the header present?
13870 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13871 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878 #include </usr/include/readline/readline.h>
13879 _ACEOF
13880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } >/dev/null; then
13888   if test -s conftest.err; then
13889     ac_cpp_err=$ac_c_preproc_warn_flag
13890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13891   else
13892     ac_cpp_err=
13893   fi
13894 else
13895   ac_cpp_err=yes
13896 fi
13897 if test -z "$ac_cpp_err"; then
13898   ac_header_preproc=yes
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903   ac_header_preproc=no
13904 fi
13905 rm -f conftest.err conftest.$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13907 echo "${ECHO_T}$ac_header_preproc" >&6
13908
13909 # So?  What about this header?
13910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13911   yes:no: )
13912     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13913 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13914     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13915 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13916     ac_header_preproc=yes
13917     ;;
13918   no:yes:* )
13919     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13920 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13921     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
13922 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
13923     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13924 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13925     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13926 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13927     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13928 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13929     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13930 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13931     (
13932       cat <<\_ASBOX
13933 ## ------------------------------------------ ##
13934 ## Report this to the AC_PACKAGE_NAME lists.  ##
13935 ## ------------------------------------------ ##
13936 _ASBOX
13937     ) |
13938       sed "s/^/$as_me: WARNING:     /" >&2
13939     ;;
13940 esac
13941 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13942 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13943 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13944   echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13947 fi
13948 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13949 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13950
13951 fi
13952 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13953    cat >>confdefs.h <<\_ACEOF
13954 #define HAVE_READLINE 1
13955 _ACEOF
13956
13957            got_readline="yes"
13958            CONS_INC="-I/usr/include/readline"
13959            CONS_LIBS="-lreadline -ltermcap"
13960
13961 else
13962
13963            # Did not find standard library, so try Bacula's default
13964             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
13967 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
13968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 fi
13971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13973 else
13974   # Is the header compilable?
13975 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
13976 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 $ac_includes_default
13984 #include <${TOP_DIR}/depkgs/readline/readline.h>
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988   (eval $ac_compile) 2>conftest.er1
13989   ac_status=$?
13990   grep -v '^ *+' conftest.er1 >conftest.err
13991   rm -f conftest.er1
13992   cat conftest.err >&5
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); } &&
13995          { ac_try='test -z "$ac_c_werror_flag"
13996                          || test ! -s conftest.err'
13997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998   (eval $ac_try) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; } &&
14002          { ac_try='test -s conftest.$ac_objext'
14003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004   (eval $ac_try) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; }; then
14008   ac_header_compiler=yes
14009 else
14010   echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14012
14013 ac_header_compiler=no
14014 fi
14015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14017 echo "${ECHO_T}$ac_header_compiler" >&6
14018
14019 # Is the header present?
14020 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14021 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h.  */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h.  */
14028 #include <${TOP_DIR}/depkgs/readline/readline.h>
14029 _ACEOF
14030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } >/dev/null; then
14038   if test -s conftest.err; then
14039     ac_cpp_err=$ac_c_preproc_warn_flag
14040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14041   else
14042     ac_cpp_err=
14043   fi
14044 else
14045   ac_cpp_err=yes
14046 fi
14047 if test -z "$ac_cpp_err"; then
14048   ac_header_preproc=yes
14049 else
14050   echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053   ac_header_preproc=no
14054 fi
14055 rm -f conftest.err conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14057 echo "${ECHO_T}$ac_header_preproc" >&6
14058
14059 # So?  What about this header?
14060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14061   yes:no: )
14062     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14063 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14064     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14065 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14066     ac_header_preproc=yes
14067     ;;
14068   no:yes:* )
14069     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14070 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14071     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14072 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14073     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14074 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14075     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14076 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14077     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14079     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14080 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14081     (
14082       cat <<\_ASBOX
14083 ## ------------------------------------------ ##
14084 ## Report this to the AC_PACKAGE_NAME lists.  ##
14085 ## ------------------------------------------ ##
14086 _ASBOX
14087     ) |
14088       sed "s/^/$as_me: WARNING:     /" >&2
14089     ;;
14090 esac
14091 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14092 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14094   echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096   eval "$as_ac_Header=\$ac_header_preproc"
14097 fi
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100
14101 fi
14102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103    cat >>confdefs.h <<\_ACEOF
14104 #define HAVE_READLINE 1
14105 _ACEOF
14106
14107                  got_readline="yes"
14108                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14109                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14110                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14111                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14112
14113 else
14114    echo " "
14115                 echo "readline.h not found. readline turned off ..."
14116                 echo " "
14117
14118
14119 fi
14120
14121
14122
14123
14124 fi
14125
14126
14127
14128
14129 fi;
14130 fi
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141 # Minimal stuff for readline Makefile configuration
14142 MAKE_SHELL=/bin/sh
14143
14144 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14145 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14146 if test "${ac_cv_header_stat_broken+set}" = set; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155 #include <sys/types.h>
14156 #include <sys/stat.h>
14157
14158 #if defined(S_ISBLK) && defined(S_IFDIR)
14159 # if S_ISBLK (S_IFDIR)
14160 You lose.
14161 # endif
14162 #endif
14163
14164 #if defined(S_ISBLK) && defined(S_IFCHR)
14165 # if S_ISBLK (S_IFCHR)
14166 You lose.
14167 # endif
14168 #endif
14169
14170 #if defined(S_ISLNK) && defined(S_IFREG)
14171 # if S_ISLNK (S_IFREG)
14172 You lose.
14173 # endif
14174 #endif
14175
14176 #if defined(S_ISSOCK) && defined(S_IFREG)
14177 # if S_ISSOCK (S_IFREG)
14178 You lose.
14179 # endif
14180 #endif
14181
14182 _ACEOF
14183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14184   $EGREP "You lose" >/dev/null 2>&1; then
14185   ac_cv_header_stat_broken=yes
14186 else
14187   ac_cv_header_stat_broken=no
14188 fi
14189 rm -f conftest*
14190
14191 fi
14192 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14193 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14194 if test $ac_cv_header_stat_broken = yes; then
14195
14196 cat >>confdefs.h <<\_ACEOF
14197 #define STAT_MACROS_BROKEN 1
14198 _ACEOF
14199
14200 fi
14201
14202
14203
14204
14205
14206
14207 ac_header_dirent=no
14208 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14209   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14210 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14211 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213   echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215   cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h.  */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h.  */
14221 #include <sys/types.h>
14222 #include <$ac_hdr>
14223
14224 int
14225 main ()
14226 {
14227 if ((DIR *) 0)
14228 return 0;
14229   ;
14230   return 0;
14231 }
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235   (eval $ac_compile) 2>conftest.er1
14236   ac_status=$?
14237   grep -v '^ *+' conftest.er1 >conftest.err
14238   rm -f conftest.er1
14239   cat conftest.err >&5
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } &&
14242          { ac_try='test -z "$ac_c_werror_flag"
14243                          || test ! -s conftest.err'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; } &&
14249          { ac_try='test -s conftest.$ac_objext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   eval "$as_ac_Header=yes"
14256 else
14257   echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 eval "$as_ac_Header=no"
14261 fi
14262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14263 fi
14264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14267   cat >>confdefs.h <<_ACEOF
14268 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14269 _ACEOF
14270
14271 ac_header_dirent=$ac_hdr; break
14272 fi
14273
14274 done
14275 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14276 if test $ac_header_dirent = dirent.h; then
14277   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14278 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14279 if test "${ac_cv_search_opendir+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   ac_func_search_save_LIBS=$LIBS
14283 ac_cv_search_opendir=no
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290
14291 /* Override any gcc2 internal prototype to avoid an error.  */
14292 #ifdef __cplusplus
14293 extern "C"
14294 #endif
14295 /* We use char because int might match the return type of a gcc2
14296    builtin and then its argument prototype would still apply.  */
14297 char opendir ();
14298 int
14299 main ()
14300 {
14301 opendir ();
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14308   (eval $ac_link) 2>conftest.er1
14309   ac_status=$?
14310   grep -v '^ *+' conftest.er1 >conftest.err
14311   rm -f conftest.er1
14312   cat conftest.err >&5
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -z "$ac_c_werror_flag"
14316                          || test ! -s conftest.err'
14317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318   (eval $ac_try) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; } &&
14322          { ac_try='test -s conftest$ac_exeext'
14323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324   (eval $ac_try) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; }; then
14328   ac_cv_search_opendir="none required"
14329 else
14330   echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14332
14333 fi
14334 rm -f conftest.err conftest.$ac_objext \
14335       conftest$ac_exeext conftest.$ac_ext
14336 if test "$ac_cv_search_opendir" = no; then
14337   for ac_lib in dir; do
14338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14339     cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345
14346 /* Override any gcc2 internal prototype to avoid an error.  */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 /* We use char because int might match the return type of a gcc2
14351    builtin and then its argument prototype would still apply.  */
14352 char opendir ();
14353 int
14354 main ()
14355 {
14356 opendir ();
14357   ;
14358   return 0;
14359 }
14360 _ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363   (eval $ac_link) 2>conftest.er1
14364   ac_status=$?
14365   grep -v '^ *+' conftest.er1 >conftest.err
14366   rm -f conftest.er1
14367   cat conftest.err >&5
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } &&
14370          { ac_try='test -z "$ac_c_werror_flag"
14371                          || test ! -s conftest.err'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; } &&
14377          { ac_try='test -s conftest$ac_exeext'
14378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379   (eval $ac_try) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_cv_search_opendir="-l$ac_lib"
14384 break
14385 else
14386   echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14388
14389 fi
14390 rm -f conftest.err conftest.$ac_objext \
14391       conftest$ac_exeext conftest.$ac_ext
14392   done
14393 fi
14394 LIBS=$ac_func_search_save_LIBS
14395 fi
14396 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14397 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14398 if test "$ac_cv_search_opendir" != no; then
14399   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14400
14401 fi
14402
14403 else
14404   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14405 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14406 if test "${ac_cv_search_opendir+set}" = set; then
14407   echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409   ac_func_search_save_LIBS=$LIBS
14410 ac_cv_search_opendir=no
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417
14418 /* Override any gcc2 internal prototype to avoid an error.  */
14419 #ifdef __cplusplus
14420 extern "C"
14421 #endif
14422 /* We use char because int might match the return type of a gcc2
14423    builtin and then its argument prototype would still apply.  */
14424 char opendir ();
14425 int
14426 main ()
14427 {
14428 opendir ();
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14435   (eval $ac_link) 2>conftest.er1
14436   ac_status=$?
14437   grep -v '^ *+' conftest.er1 >conftest.err
14438   rm -f conftest.er1
14439   cat conftest.err >&5
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); } &&
14442          { ac_try='test -z "$ac_c_werror_flag"
14443                          || test ! -s conftest.err'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; } &&
14449          { ac_try='test -s conftest$ac_exeext'
14450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451   (eval $ac_try) 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   ac_cv_search_opendir="none required"
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 fi
14461 rm -f conftest.err conftest.$ac_objext \
14462       conftest$ac_exeext conftest.$ac_ext
14463 if test "$ac_cv_search_opendir" = no; then
14464   for ac_lib in x; do
14465     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14466     cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h.  */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h.  */
14472
14473 /* Override any gcc2 internal prototype to avoid an error.  */
14474 #ifdef __cplusplus
14475 extern "C"
14476 #endif
14477 /* We use char because int might match the return type of a gcc2
14478    builtin and then its argument prototype would still apply.  */
14479 char opendir ();
14480 int
14481 main ()
14482 {
14483 opendir ();
14484   ;
14485   return 0;
14486 }
14487 _ACEOF
14488 rm -f conftest.$ac_objext conftest$ac_exeext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490   (eval $ac_link) 2>conftest.er1
14491   ac_status=$?
14492   grep -v '^ *+' conftest.er1 >conftest.err
14493   rm -f conftest.er1
14494   cat conftest.err >&5
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } &&
14497          { ac_try='test -z "$ac_c_werror_flag"
14498                          || test ! -s conftest.err'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; } &&
14504          { ac_try='test -s conftest$ac_exeext'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; }; then
14510   ac_cv_search_opendir="-l$ac_lib"
14511 break
14512 else
14513   echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 fi
14517 rm -f conftest.err conftest.$ac_objext \
14518       conftest$ac_exeext conftest.$ac_ext
14519   done
14520 fi
14521 LIBS=$ac_func_search_save_LIBS
14522 fi
14523 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14524 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14525 if test "$ac_cv_search_opendir" != no; then
14526   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14527
14528 fi
14529
14530 fi
14531
14532
14533
14534
14535
14536
14537
14538
14539 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14540 do
14541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14542 echo "$as_me:$LINENO: checking for $ac_func" >&5
14543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14544 if eval "test \"\${$as_ac_var+set}\" = set"; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547   cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h.  */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h.  */
14553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14555 #define $ac_func innocuous_$ac_func
14556
14557 /* System header to define __stub macros and hopefully few prototypes,
14558     which can conflict with char $ac_func (); below.
14559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14560     <limits.h> exists even on freestanding compilers.  */
14561
14562 #ifdef __STDC__
14563 # include <limits.h>
14564 #else
14565 # include <assert.h>
14566 #endif
14567
14568 #undef $ac_func
14569
14570 /* Override any gcc2 internal prototype to avoid an error.  */
14571 #ifdef __cplusplus
14572 extern "C"
14573 {
14574 #endif
14575 /* We use char because int might match the return type of a gcc2
14576    builtin and then its argument prototype would still apply.  */
14577 char $ac_func ();
14578 /* The GNU C library defines this for functions which it implements
14579     to always fail with ENOSYS.  Some functions are actually named
14580     something starting with __ and the normal name is an alias.  */
14581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14582 choke me
14583 #else
14584 char (*f) () = $ac_func;
14585 #endif
14586 #ifdef __cplusplus
14587 }
14588 #endif
14589
14590 int
14591 main ()
14592 {
14593 return f != $ac_func;
14594   ;
14595   return 0;
14596 }
14597 _ACEOF
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600   (eval $ac_link) 2>conftest.er1
14601   ac_status=$?
14602   grep -v '^ *+' conftest.er1 >conftest.err
14603   rm -f conftest.er1
14604   cat conftest.err >&5
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } &&
14607          { ac_try='test -z "$ac_c_werror_flag"
14608                          || test ! -s conftest.err'
14609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610   (eval $ac_try) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; } &&
14614          { ac_try='test -s conftest$ac_exeext'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620   eval "$as_ac_var=yes"
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 eval "$as_ac_var=no"
14626 fi
14627 rm -f conftest.err conftest.$ac_objext \
14628       conftest$ac_exeext conftest.$ac_ext
14629 fi
14630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14632 if test `eval echo '${'$as_ac_var'}'` = yes; then
14633   cat >>confdefs.h <<_ACEOF
14634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14635 _ACEOF
14636
14637 fi
14638 done
14639
14640
14641
14642 for ac_func in nanosleep nl_langinfo
14643 do
14644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14645 echo "$as_me:$LINENO: checking for $ac_func" >&5
14646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14647 if eval "test \"\${$as_ac_var+set}\" = set"; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h.  */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h.  */
14656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14658 #define $ac_func innocuous_$ac_func
14659
14660 /* System header to define __stub macros and hopefully few prototypes,
14661     which can conflict with char $ac_func (); below.
14662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14663     <limits.h> exists even on freestanding compilers.  */
14664
14665 #ifdef __STDC__
14666 # include <limits.h>
14667 #else
14668 # include <assert.h>
14669 #endif
14670
14671 #undef $ac_func
14672
14673 /* Override any gcc2 internal prototype to avoid an error.  */
14674 #ifdef __cplusplus
14675 extern "C"
14676 {
14677 #endif
14678 /* We use char because int might match the return type of a gcc2
14679    builtin and then its argument prototype would still apply.  */
14680 char $ac_func ();
14681 /* The GNU C library defines this for functions which it implements
14682     to always fail with ENOSYS.  Some functions are actually named
14683     something starting with __ and the normal name is an alias.  */
14684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14685 choke me
14686 #else
14687 char (*f) () = $ac_func;
14688 #endif
14689 #ifdef __cplusplus
14690 }
14691 #endif
14692
14693 int
14694 main ()
14695 {
14696 return f != $ac_func;
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 rm -f conftest.$ac_objext conftest$ac_exeext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14703   (eval $ac_link) 2>conftest.er1
14704   ac_status=$?
14705   grep -v '^ *+' conftest.er1 >conftest.err
14706   rm -f conftest.er1
14707   cat conftest.err >&5
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); } &&
14710          { ac_try='test -z "$ac_c_werror_flag"
14711                          || test ! -s conftest.err'
14712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713   (eval $ac_try) 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; } &&
14717          { ac_try='test -s conftest$ac_exeext'
14718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719   (eval $ac_try) 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; }; then
14723   eval "$as_ac_var=yes"
14724 else
14725   echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 eval "$as_ac_var=no"
14729 fi
14730 rm -f conftest.err conftest.$ac_objext \
14731       conftest$ac_exeext conftest.$ac_ext
14732 fi
14733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14735 if test `eval echo '${'$as_ac_var'}'` = yes; then
14736   cat >>confdefs.h <<_ACEOF
14737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14738 _ACEOF
14739
14740 fi
14741 done
14742
14743
14744 for ac_header in varargs.h
14745 do
14746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14748   echo "$as_me:$LINENO: checking for $ac_header" >&5
14749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751   echo $ECHO_N "(cached) $ECHO_C" >&6
14752 fi
14753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14755 else
14756   # Is the header compilable?
14757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765 $ac_includes_default
14766 #include <$ac_header>
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770   (eval $ac_compile) 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -z "$ac_c_werror_flag"
14778                          || test ! -s conftest.err'
14779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780   (eval $ac_try) 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; } &&
14784          { ac_try='test -s conftest.$ac_objext'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; }; then
14790   ac_header_compiler=yes
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 ac_header_compiler=no
14796 fi
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14799 echo "${ECHO_T}$ac_header_compiler" >&6
14800
14801 # Is the header present?
14802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h.  */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h.  */
14810 #include <$ac_header>
14811 _ACEOF
14812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14814   ac_status=$?
14815   grep -v '^ *+' conftest.er1 >conftest.err
14816   rm -f conftest.er1
14817   cat conftest.err >&5
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); } >/dev/null; then
14820   if test -s conftest.err; then
14821     ac_cpp_err=$ac_c_preproc_warn_flag
14822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14823   else
14824     ac_cpp_err=
14825   fi
14826 else
14827   ac_cpp_err=yes
14828 fi
14829 if test -z "$ac_cpp_err"; then
14830   ac_header_preproc=yes
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835   ac_header_preproc=no
14836 fi
14837 rm -f conftest.err conftest.$ac_ext
14838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14839 echo "${ECHO_T}$ac_header_preproc" >&6
14840
14841 # So?  What about this header?
14842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14843   yes:no: )
14844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14848     ac_header_preproc=yes
14849     ;;
14850   no:yes:* )
14851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14863     (
14864       cat <<\_ASBOX
14865 ## ------------------------------------------ ##
14866 ## Report this to the AC_PACKAGE_NAME lists.  ##
14867 ## ------------------------------------------ ##
14868 _ASBOX
14869     ) |
14870       sed "s/^/$as_me: WARNING:     /" >&2
14871     ;;
14872 esac
14873 echo "$as_me:$LINENO: checking for $ac_header" >&5
14874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878   eval "$as_ac_Header=\$ac_header_preproc"
14879 fi
14880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14882
14883 fi
14884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14885   cat >>confdefs.h <<_ACEOF
14886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14887 _ACEOF
14888
14889 fi
14890
14891 done
14892
14893
14894 # End of readline/conio stuff
14895 # -----------------------------------------------------------------------
14896
14897 # -----------------------------------------------------------------------
14898 #  Check for Python support
14899 #
14900 echo "$as_me:$LINENO: checking for Python support" >&5
14901 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14902
14903 # Check whether --with-python or --without-python was given.
14904 if test "${with_python+set}" = set; then
14905   withval="$with_python"
14906
14907   PYTHON_INCDIR=
14908   PYTHON_LIBS=
14909   if test "$withval" != "no"; then
14910      if test "$withval" = "yes"; then
14911         for python_root in /usr /usr/local; do
14912           if test -f $python_root/include/python2.2/Python.h; then
14913              PYTHON_INCDIR=-I$python_root/include/python2.2
14914              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14915              break
14916           elif test -f $python_root/include/python2.3/Python.h; then
14917              PYTHON_INCDIR=-I$python_root/include/python2.3
14918              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14919              break
14920           elif test -f $python_root/include/python2.4/Python.h; then
14921              PYTHON_INCDIR=-I$python_root/include/python2.4
14922              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14923              break
14924           fi
14925         done
14926         if test x$PYTHON_INCDIR = x; then
14927           if test -f $prefix/include/Python.h; then
14928              PYTHON_INCDIR=-I$prefix/include
14929              PYTHON_LIBS="-L$prefix/lib/config -lpython"
14930           else
14931            echo "$as_me:$LINENO: result: no" >&5
14932 echo "${ECHO_T}no" >&6
14933            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14934 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14935    { (exit 1); exit 1; }; }
14936           fi
14937         fi
14938      else
14939         if test -f $withval/Python.h; then
14940            PYTHON_INCDIR=-I$withval
14941            PYTHON_LIBS="-L$withval/config -lpython"
14942         elif test -f $withval/include/Python.h; then
14943            PYTHON_INCDIR=-I$withval/include
14944            PYTHON_LIBS="-L$withval/lib/config -lpython"
14945         elif test -f $withval/include/python/Python.h; then
14946            PYTHON_INCDIR=-I$withval/include/python
14947            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14948         else
14949            echo "$as_me:$LINENO: result: no" >&5
14950 echo "${ECHO_T}no" >&6
14951            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14952 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14953    { (exit 1); exit 1; }; }
14954         fi
14955      fi
14956      cat >>confdefs.h <<\_ACEOF
14957 #define HAVE_PYTHON 1
14958 _ACEOF
14959
14960      echo "$as_me:$LINENO: result: yes" >&5
14961 echo "${ECHO_T}yes" >&6
14962      support_python=yes
14963      { echo "$as_me:$LINENO: checking for more Python libs" >&5
14964 echo "$as_me: checking for more Python libs" >&6;}
14965      saved_LIBS="$LIBS"; LIBS=
14966      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
14967 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
14968 if test "${ac_cv_search_shm_open+set}" = set; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971   ac_func_search_save_LIBS=$LIBS
14972 ac_cv_search_shm_open=no
14973 cat >conftest.$ac_ext <<_ACEOF
14974 /* confdefs.h.  */
14975 _ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h.  */
14979
14980 /* Override any gcc2 internal prototype to avoid an error.  */
14981 #ifdef __cplusplus
14982 extern "C"
14983 #endif
14984 /* We use char because int might match the return type of a gcc2
14985    builtin and then its argument prototype would still apply.  */
14986 char shm_open ();
14987 int
14988 main ()
14989 {
14990 shm_open ();
14991   ;
14992   return 0;
14993 }
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997   (eval $ac_link) 2>conftest.er1
14998   ac_status=$?
14999   grep -v '^ *+' conftest.er1 >conftest.err
15000   rm -f conftest.er1
15001   cat conftest.err >&5
15002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003   (exit $ac_status); } &&
15004          { ac_try='test -z "$ac_c_werror_flag"
15005                          || test ! -s conftest.err'
15006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007   (eval $ac_try) 2>&5
15008   ac_status=$?
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); }; } &&
15011          { ac_try='test -s conftest$ac_exeext'
15012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013   (eval $ac_try) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; }; then
15017   ac_cv_search_shm_open="none required"
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 fi
15023 rm -f conftest.err conftest.$ac_objext \
15024       conftest$ac_exeext conftest.$ac_ext
15025 if test "$ac_cv_search_shm_open" = no; then
15026   for ac_lib in rt; do
15027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15028     cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034
15035 /* Override any gcc2 internal prototype to avoid an error.  */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 /* We use char because int might match the return type of a gcc2
15040    builtin and then its argument prototype would still apply.  */
15041 char shm_open ();
15042 int
15043 main ()
15044 {
15045 shm_open ();
15046   ;
15047   return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15052   (eval $ac_link) 2>conftest.er1
15053   ac_status=$?
15054   grep -v '^ *+' conftest.er1 >conftest.err
15055   rm -f conftest.er1
15056   cat conftest.err >&5
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } &&
15059          { ac_try='test -z "$ac_c_werror_flag"
15060                          || test ! -s conftest.err'
15061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062   (eval $ac_try) 2>&5
15063   ac_status=$?
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); }; } &&
15066          { ac_try='test -s conftest$ac_exeext'
15067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068   (eval $ac_try) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }; }; then
15072   ac_cv_search_shm_open="-l$ac_lib"
15073 break
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 fi
15079 rm -f conftest.err conftest.$ac_objext \
15080       conftest$ac_exeext conftest.$ac_ext
15081   done
15082 fi
15083 LIBS=$ac_func_search_save_LIBS
15084 fi
15085 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15086 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15087 if test "$ac_cv_search_shm_open" != no; then
15088   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15089
15090 fi
15091
15092
15093 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15094 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15095 if test "${ac_cv_lib_util_openpty+set}" = set; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   ac_check_lib_save_LIBS=$LIBS
15099 LIBS="-lutil  $LIBS"
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106
15107 /* Override any gcc2 internal prototype to avoid an error.  */
15108 #ifdef __cplusplus
15109 extern "C"
15110 #endif
15111 /* We use char because int might match the return type of a gcc2
15112    builtin and then its argument prototype would still apply.  */
15113 char openpty ();
15114 int
15115 main ()
15116 {
15117 openpty ();
15118   ;
15119   return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124   (eval $ac_link) 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } &&
15131          { ac_try='test -z "$ac_c_werror_flag"
15132                          || test ! -s conftest.err'
15133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134   (eval $ac_try) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; } &&
15138          { ac_try='test -s conftest$ac_exeext'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; }; then
15144   ac_cv_lib_util_openpty=yes
15145 else
15146   echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149 ac_cv_lib_util_openpty=no
15150 fi
15151 rm -f conftest.err conftest.$ac_objext \
15152       conftest$ac_exeext conftest.$ac_ext
15153 LIBS=$ac_check_lib_save_LIBS
15154 fi
15155 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15156 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15157 if test $ac_cv_lib_util_openpty = yes; then
15158   cat >>confdefs.h <<_ACEOF
15159 #define HAVE_LIBUTIL 1
15160 _ACEOF
15161
15162   LIBS="-lutil $LIBS"
15163
15164 fi
15165
15166      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15167      LIBS="$saved_LIBS"
15168   else
15169      echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6
15171   fi
15172
15173 else
15174
15175   echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6
15177
15178 fi;
15179
15180
15181
15182
15183 #
15184 # Find where sockets are (especially for Solaris)
15185 # Do this before the TCP Wrappers test since tcp wrappers
15186 # uses the socket library and some linkers are stupid.
15187 #
15188 echo "$as_me:$LINENO: checking for socket" >&5
15189 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15190 if test "${ac_cv_func_socket+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h.  */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h.  */
15199 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15201 #define socket innocuous_socket
15202
15203 /* System header to define __stub macros and hopefully few prototypes,
15204     which can conflict with char socket (); below.
15205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15206     <limits.h> exists even on freestanding compilers.  */
15207
15208 #ifdef __STDC__
15209 # include <limits.h>
15210 #else
15211 # include <assert.h>
15212 #endif
15213
15214 #undef socket
15215
15216 /* Override any gcc2 internal prototype to avoid an error.  */
15217 #ifdef __cplusplus
15218 extern "C"
15219 {
15220 #endif
15221 /* We use char because int might match the return type of a gcc2
15222    builtin and then its argument prototype would still apply.  */
15223 char socket ();
15224 /* The GNU C library defines this for functions which it implements
15225     to always fail with ENOSYS.  Some functions are actually named
15226     something starting with __ and the normal name is an alias.  */
15227 #if defined (__stub_socket) || defined (__stub___socket)
15228 choke me
15229 #else
15230 char (*f) () = socket;
15231 #endif
15232 #ifdef __cplusplus
15233 }
15234 #endif
15235
15236 int
15237 main ()
15238 {
15239 return f != socket;
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246   (eval $ac_link) 2>conftest.er1
15247   ac_status=$?
15248   grep -v '^ *+' conftest.er1 >conftest.err
15249   rm -f conftest.er1
15250   cat conftest.err >&5
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } &&
15253          { ac_try='test -z "$ac_c_werror_flag"
15254                          || test ! -s conftest.err'
15255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256   (eval $ac_try) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); }; } &&
15260          { ac_try='test -s conftest$ac_exeext'
15261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262   (eval $ac_try) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; }; then
15266   ac_cv_func_socket=yes
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_cv_func_socket=no
15272 fi
15273 rm -f conftest.err conftest.$ac_objext \
15274       conftest$ac_exeext conftest.$ac_ext
15275 fi
15276 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15277 echo "${ECHO_T}$ac_cv_func_socket" >&6
15278 if test $ac_cv_func_socket = yes; then
15279   echo "$as_me:$LINENO: result: using libc's socket" >&5
15280 echo "${ECHO_T}using libc's socket" >&6
15281 else
15282
15283 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15284 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15285 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288   ac_check_lib_save_LIBS=$LIBS
15289 LIBS="-lxnet  $LIBS"
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296
15297 /* Override any gcc2 internal prototype to avoid an error.  */
15298 #ifdef __cplusplus
15299 extern "C"
15300 #endif
15301 /* We use char because int might match the return type of a gcc2
15302    builtin and then its argument prototype would still apply.  */
15303 char socket ();
15304 int
15305 main ()
15306 {
15307 socket ();
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314   (eval $ac_link) 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } &&
15321          { ac_try='test -z "$ac_c_werror_flag"
15322                          || test ! -s conftest.err'
15323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324   (eval $ac_try) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; } &&
15328          { ac_try='test -s conftest$ac_exeext'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334   ac_cv_lib_xnet_socket=yes
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 ac_cv_lib_xnet_socket=no
15340 fi
15341 rm -f conftest.err conftest.$ac_objext \
15342       conftest$ac_exeext conftest.$ac_ext
15343 LIBS=$ac_check_lib_save_LIBS
15344 fi
15345 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15346 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15347 if test $ac_cv_lib_xnet_socket = yes; then
15348   cat >>confdefs.h <<_ACEOF
15349 #define HAVE_LIBXNET 1
15350 _ACEOF
15351
15352   LIBS="-lxnet $LIBS"
15353
15354 fi
15355
15356
15357 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15358 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15359 if test "${ac_cv_lib_socket_socket+set}" = set; then
15360   echo $ECHO_N "(cached) $ECHO_C" >&6
15361 else
15362   ac_check_lib_save_LIBS=$LIBS
15363 LIBS="-lsocket  $LIBS"
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h.  */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h.  */
15370
15371 /* Override any gcc2 internal prototype to avoid an error.  */
15372 #ifdef __cplusplus
15373 extern "C"
15374 #endif
15375 /* We use char because int might match the return type of a gcc2
15376    builtin and then its argument prototype would still apply.  */
15377 char socket ();
15378 int
15379 main ()
15380 {
15381 socket ();
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext conftest$ac_exeext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388   (eval $ac_link) 2>conftest.er1
15389   ac_status=$?
15390   grep -v '^ *+' conftest.er1 >conftest.err
15391   rm -f conftest.er1
15392   cat conftest.err >&5
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); } &&
15395          { ac_try='test -z "$ac_c_werror_flag"
15396                          || test ! -s conftest.err'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; } &&
15402          { ac_try='test -s conftest$ac_exeext'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   ac_cv_lib_socket_socket=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413 ac_cv_lib_socket_socket=no
15414 fi
15415 rm -f conftest.err conftest.$ac_objext \
15416       conftest$ac_exeext conftest.$ac_ext
15417 LIBS=$ac_check_lib_save_LIBS
15418 fi
15419 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15420 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15421 if test $ac_cv_lib_socket_socket = yes; then
15422   cat >>confdefs.h <<_ACEOF
15423 #define HAVE_LIBSOCKET 1
15424 _ACEOF
15425
15426   LIBS="-lsocket $LIBS"
15427
15428 fi
15429
15430
15431 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15432 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15433 if test "${ac_cv_lib_inet_socket+set}" = set; then
15434   echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436   ac_check_lib_save_LIBS=$LIBS
15437 LIBS="-linet  $LIBS"
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444
15445 /* Override any gcc2 internal prototype to avoid an error.  */
15446 #ifdef __cplusplus
15447 extern "C"
15448 #endif
15449 /* We use char because int might match the return type of a gcc2
15450    builtin and then its argument prototype would still apply.  */
15451 char socket ();
15452 int
15453 main ()
15454 {
15455 socket ();
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462   (eval $ac_link) 2>conftest.er1
15463   ac_status=$?
15464   grep -v '^ *+' conftest.er1 >conftest.err
15465   rm -f conftest.er1
15466   cat conftest.err >&5
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); } &&
15469          { ac_try='test -z "$ac_c_werror_flag"
15470                          || test ! -s conftest.err'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; } &&
15476          { ac_try='test -s conftest$ac_exeext'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; }; then
15482   ac_cv_lib_inet_socket=yes
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487 ac_cv_lib_inet_socket=no
15488 fi
15489 rm -f conftest.err conftest.$ac_objext \
15490       conftest$ac_exeext conftest.$ac_ext
15491 LIBS=$ac_check_lib_save_LIBS
15492 fi
15493 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15494 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15495 if test $ac_cv_lib_inet_socket = yes; then
15496   cat >>confdefs.h <<_ACEOF
15497 #define HAVE_LIBINET 1
15498 _ACEOF
15499
15500   LIBS="-linet $LIBS"
15501
15502 fi
15503
15504 fi
15505
15506
15507
15508 # -----------------------------------------------------------
15509 # Check whether user wants TCP wrappers support (default off)
15510 # -----------------------------------------------------------
15511 TCPW_MSG="no"
15512 WRAPLIBS=""
15513
15514 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15515 if test "${with_tcp_wrappers+set}" = set; then
15516   withval="$with_tcp_wrappers"
15517
15518     if test "x$withval" != "xno" ; then
15519        saved_LIBS="$LIBS"
15520        LIBS="$saved_LIBS -lwrap"
15521        echo "$as_me:$LINENO: checking for libwrap" >&5
15522 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15523        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15524 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15525 if test "${ac_cv_search_nanosleep+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   ac_func_search_save_LIBS=$LIBS
15529 ac_cv_search_nanosleep=no
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536
15537 /* Override any gcc2 internal prototype to avoid an error.  */
15538 #ifdef __cplusplus
15539 extern "C"
15540 #endif
15541 /* We use char because int might match the return type of a gcc2
15542    builtin and then its argument prototype would still apply.  */
15543 char nanosleep ();
15544 int
15545 main ()
15546 {
15547 nanosleep ();
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554   (eval $ac_link) 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_c_werror_flag"
15562                          || test ! -s conftest.err'
15563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564   (eval $ac_try) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; } &&
15568          { ac_try='test -s conftest$ac_exeext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_cv_search_nanosleep="none required"
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 fi
15580 rm -f conftest.err conftest.$ac_objext \
15581       conftest$ac_exeext conftest.$ac_ext
15582 if test "$ac_cv_search_nanosleep" = no; then
15583   for ac_lib in rt; do
15584     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15585     cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591
15592 /* Override any gcc2 internal prototype to avoid an error.  */
15593 #ifdef __cplusplus
15594 extern "C"
15595 #endif
15596 /* We use char because int might match the return type of a gcc2
15597    builtin and then its argument prototype would still apply.  */
15598 char nanosleep ();
15599 int
15600 main ()
15601 {
15602 nanosleep ();
15603   ;
15604   return 0;
15605 }
15606 _ACEOF
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609   (eval $ac_link) 2>conftest.er1
15610   ac_status=$?
15611   grep -v '^ *+' conftest.er1 >conftest.err
15612   rm -f conftest.er1
15613   cat conftest.err >&5
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } &&
15616          { ac_try='test -z "$ac_c_werror_flag"
15617                          || test ! -s conftest.err'
15618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619   (eval $ac_try) 2>&5
15620   ac_status=$?
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); }; } &&
15623          { ac_try='test -s conftest$ac_exeext'
15624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625   (eval $ac_try) 2>&5
15626   ac_status=$?
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); }; }; then
15629   ac_cv_search_nanosleep="-l$ac_lib"
15630 break
15631 else
15632   echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 fi
15636 rm -f conftest.err conftest.$ac_objext \
15637       conftest$ac_exeext conftest.$ac_ext
15638   done
15639 fi
15640 LIBS=$ac_func_search_save_LIBS
15641 fi
15642 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15643 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15644 if test "$ac_cv_search_nanosleep" != no; then
15645   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15646
15647 fi
15648
15649        cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655  #include <sys/types.h>
15656             #include <tcpd.h>
15657              int deny_severity = 0;
15658              int allow_severity = 0;
15659              struct request_info *req;
15660 int
15661 main ()
15662 {
15663  hosts_access(req);
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670   (eval $ac_link) 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -z "$ac_c_werror_flag"
15678                          || test ! -s conftest.err'
15679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680   (eval $ac_try) 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); }; } &&
15684          { ac_try='test -s conftest$ac_exeext'
15685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686   (eval $ac_try) 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690
15691             echo "$as_me:$LINENO: result: yes" >&5
15692 echo "${ECHO_T}yes" >&6
15693             cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_LIBWRAP 1
15695 _ACEOF
15696
15697             TCPW_MSG="yes"
15698             LIBS="$saved_LIBS"
15699             WRAPLIBS="-lwrap"
15700
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705
15706             LIBS="$saved_LIBS -lwrap -lnsl"
15707             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15708             cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714  #include <sys/types.h>
15715                  #include <tcpd.h>
15716                  int deny_severity = 0;
15717                  int allow_severity = 0;
15718                  struct request_info *req;
15719 int
15720 main ()
15721 {
15722  hosts_access(req);
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729   (eval $ac_link) 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } &&
15736          { ac_try='test -z "$ac_c_werror_flag"
15737                          || test ! -s conftest.err'
15738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739   (eval $ac_try) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; } &&
15743          { ac_try='test -s conftest$ac_exeext'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; }; then
15749
15750                  echo "$as_me:$LINENO: result: yes" >&5
15751 echo "${ECHO_T}yes" >&6
15752                  cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_LIBWRAP 1
15754 _ACEOF
15755
15756                  TCPW_MSG="yes"
15757                  LIBS="$saved_LIBS"
15758                  WRAPLIBS="-lwrap"
15759
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15765 echo "$as_me: error: *** libwrap missing" >&2;}
15766    { (exit 1); exit 1; }; }
15767
15768 fi
15769 rm -f conftest.err conftest.$ac_objext \
15770       conftest$ac_exeext conftest.$ac_ext
15771
15772 fi
15773 rm -f conftest.err conftest.$ac_objext \
15774       conftest$ac_exeext conftest.$ac_ext
15775     fi
15776
15777
15778 fi;
15779
15780 # -----------------------------------------------------------
15781 # Check whether OpenSSL is available
15782 # -----------------------------------------------------------
15783 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15784 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15785
15786 # Check whether --with-openssl or --without-openssl was given.
15787 if test "${with_openssl+set}" = set; then
15788   withval="$with_openssl"
15789   with_openssl_directory=${withval}
15790 fi;
15791
15792 if test "x$with_openssl_directory" != "x"; then
15793         OPENSSL_LIBS="-lssl -lcrypto"
15794         OPENSSL_INC=""
15795
15796         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15797                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15798                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15799         fi
15800
15801         saved_LIBS="$LIBS"
15802         saved_CFLAGS="$CFLAGS"
15803         LIBS="$saved_LIBS $OPENSSL_LIBS"
15804         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15805
15806         cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h.  */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h.  */
15812  #include <openssl/ssl.h>
15813 int
15814 main ()
15815 {
15816  CRYPTO_set_id_callback(NULL);
15817   ;
15818   return 0;
15819 }
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823   (eval $ac_link) 2>conftest.er1
15824   ac_status=$?
15825   grep -v '^ *+' conftest.er1 >conftest.err
15826   rm -f conftest.er1
15827   cat conftest.err >&5
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); } &&
15830          { ac_try='test -z "$ac_c_werror_flag"
15831                          || test ! -s conftest.err'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; } &&
15837          { ac_try='test -s conftest$ac_exeext'
15838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839   (eval $ac_try) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }; }; then
15843    support_tls="yes"
15844 else
15845   echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848  support_tls="no"
15849
15850 fi
15851 rm -f conftest.err conftest.$ac_objext \
15852       conftest$ac_exeext conftest.$ac_ext
15853
15854         LIBS="$saved_LIBS"
15855         CFLAGS="$saved_CFLAGS"
15856
15857         if test "$support_tls" = "yes"; then
15858
15859 cat >>confdefs.h <<\_ACEOF
15860 #define HAVE_OPENSSL 1
15861 _ACEOF
15862
15863
15864 cat >>confdefs.h <<\_ACEOF
15865 #define HAVE_TLS 1
15866 _ACEOF
15867
15868         fi
15869 else
15870         support_tls="no"
15871         OPENSSL_LIBS=""
15872         OPENSSL_INC=""
15873 fi
15874
15875 echo "$as_me:$LINENO: result: $support_tls" >&5
15876 echo "${ECHO_T}$support_tls" >&6
15877
15878
15879
15880
15881 # -----------------------------------------------------------
15882 # Python and OpenSSL are using dlopen
15883 # -----------------------------------------------------------
15884
15885 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15886    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15887 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15888 if test "${ac_cv_search_dlopen+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   ac_func_search_save_LIBS=$LIBS
15892 ac_cv_search_dlopen=no
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899
15900 /* Override any gcc2 internal prototype to avoid an error.  */
15901 #ifdef __cplusplus
15902 extern "C"
15903 #endif
15904 /* We use char because int might match the return type of a gcc2
15905    builtin and then its argument prototype would still apply.  */
15906 char dlopen ();
15907 int
15908 main ()
15909 {
15910 dlopen ();
15911   ;
15912   return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15917   (eval $ac_link) 2>conftest.er1
15918   ac_status=$?
15919   grep -v '^ *+' conftest.er1 >conftest.err
15920   rm -f conftest.er1
15921   cat conftest.err >&5
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); } &&
15924          { ac_try='test -z "$ac_c_werror_flag"
15925                          || test ! -s conftest.err'
15926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927   (eval $ac_try) 2>&5
15928   ac_status=$?
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); }; } &&
15931          { ac_try='test -s conftest$ac_exeext'
15932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933   (eval $ac_try) 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; }; then
15937   ac_cv_search_dlopen="none required"
15938 else
15939   echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 fi
15943 rm -f conftest.err conftest.$ac_objext \
15944       conftest$ac_exeext conftest.$ac_ext
15945 if test "$ac_cv_search_dlopen" = no; then
15946   for ac_lib in dl; do
15947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15948     cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954
15955 /* Override any gcc2 internal prototype to avoid an error.  */
15956 #ifdef __cplusplus
15957 extern "C"
15958 #endif
15959 /* We use char because int might match the return type of a gcc2
15960    builtin and then its argument prototype would still apply.  */
15961 char dlopen ();
15962 int
15963 main ()
15964 {
15965 dlopen ();
15966   ;
15967   return 0;
15968 }
15969 _ACEOF
15970 rm -f conftest.$ac_objext conftest$ac_exeext
15971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15972   (eval $ac_link) 2>conftest.er1
15973   ac_status=$?
15974   grep -v '^ *+' conftest.er1 >conftest.err
15975   rm -f conftest.er1
15976   cat conftest.err >&5
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); } &&
15979          { ac_try='test -z "$ac_c_werror_flag"
15980                          || test ! -s conftest.err'
15981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982   (eval $ac_try) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); }; } &&
15986          { ac_try='test -s conftest$ac_exeext'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; }; then
15992   ac_cv_search_dlopen="-l$ac_lib"
15993 break
15994 else
15995   echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998 fi
15999 rm -f conftest.err conftest.$ac_objext \
16000       conftest$ac_exeext conftest.$ac_ext
16001   done
16002 fi
16003 LIBS=$ac_func_search_save_LIBS
16004 fi
16005 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16006 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16007 if test "$ac_cv_search_dlopen" != no; then
16008   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16009
16010 fi
16011
16012 fi
16013
16014 # ------------------------------------------
16015 # Where to place working dir
16016 # ------------------------------------------
16017 working_dir=`eval echo ${prefix}/var/bacula/working`
16018
16019 # Check whether --with-working-dir or --without-working-dir was given.
16020 if test "${with_working_dir+set}" = set; then
16021   withval="$with_working_dir"
16022
16023        if test "x$withval" != "xno" ; then
16024               working_dir=$withval
16025        fi
16026
16027
16028 fi;
16029
16030
16031
16032
16033 # ------------------------------------------
16034 # Where to place scriptdir (script files)
16035 # ------------------------------------------
16036 scriptdir=`eval echo ${sysconfdir}`
16037
16038 # Check whether --with-scriptdir or --without-scriptdir was given.
16039 if test "${with_scriptdir+set}" = set; then
16040   withval="$with_scriptdir"
16041
16042        if test "x$withval" != "xno" ; then
16043               scriptdir=$withval
16044        fi
16045
16046
16047 fi;
16048
16049
16050
16051
16052 # ------------------------------------------
16053 # Where to send dump email
16054 # ------------------------------------------
16055 dump_email=root@localhost
16056
16057 # Check whether --with-dump-email or --without-dump-email was given.
16058 if test "${with_dump_email+set}" = set; then
16059   withval="$with_dump_email"
16060
16061        if test "x$withval" != "xno" ; then
16062               dump_email=$withval
16063        fi
16064
16065
16066 fi;
16067
16068
16069
16070 # ------------------------------------------
16071 # Where to send job email
16072 # ------------------------------------------
16073 job_email=root@localhost
16074
16075 # Check whether --with-job-email or --without-job-email was given.
16076 if test "${with_job_email+set}" = set; then
16077   withval="$with_job_email"
16078
16079        if test "x$withval" != "xno" ; then
16080               job_email=$withval
16081        fi
16082
16083
16084 fi;
16085
16086
16087
16088 # ------------------------------------------
16089 # Where to find smtp host
16090 # ------------------------------------------
16091 smtp_host=localhost
16092
16093 # Check whether --with-smtp_host or --without-smtp_host was given.
16094 if test "${with_smtp_host+set}" = set; then
16095   withval="$with_smtp_host"
16096
16097        if test "x$withval" != "xno" ; then
16098               smtp_host=$withval
16099        fi
16100
16101
16102 fi;
16103
16104
16105
16106
16107 # ------------------------------------
16108 # Where to place pid files
16109 # ------------------------------------
16110 piddir=/var/run
16111
16112 # Check whether --with-pid-dir or --without-pid-dir was given.
16113 if test "${with_pid_dir+set}" = set; then
16114   withval="$with_pid_dir"
16115
16116         if test "x$withval" != "xno" ; then
16117             piddir=$withval
16118         fi
16119
16120
16121 fi;
16122
16123 cat >>confdefs.h <<_ACEOF
16124 #define _PATH_BACULA_PIDDIR "$piddir"
16125 _ACEOF
16126
16127
16128
16129
16130 # ------------------------------------
16131 # Where to place subsys "lock file"
16132 # ------------------------------------
16133 subsysdir=/var/run/subsys
16134
16135 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16136 if test "${with_subsys_dir+set}" = set; then
16137   withval="$with_subsys_dir"
16138
16139         if test "x$withval" != "xno" ; then
16140             subsysdir=$withval
16141         fi
16142
16143
16144 fi;
16145
16146
16147
16148
16149
16150 # ------------------------------------
16151 # Where to start assigning ports
16152 # ------------------------------------
16153 baseport=9101
16154
16155 # Check whether --with-baseport or --without-baseport was given.
16156 if test "${with_baseport+set}" = set; then
16157   withval="$with_baseport"
16158
16159         if test "x$withval" != "xno" ; then
16160              baseport=$withval
16161         fi
16162
16163
16164 fi;
16165
16166
16167 dir_port=`expr $baseport`
16168 fd_port=`expr $baseport + 1`
16169 sd_port=`expr $fd_port + 1`
16170
16171
16172
16173
16174
16175
16176 # ------------------------------------------
16177 # Generate passwords
16178 # ------------------------------------------
16179 dir_password=
16180
16181 # Check whether --with-dir-password or --without-dir-password was given.
16182 if test "${with_dir_password+set}" = set; then
16183   withval="$with_dir_password"
16184
16185        if test "x$withval" != "xno" ; then
16186            dir_password=$withval
16187        fi
16188
16189
16190 fi;
16191
16192 if test "x$dir_password" = "x" ; then
16193    if test "x$OPENSSL" = "xnone" ; then
16194       key=`autoconf/randpass 33`
16195    else
16196       key=`openssl rand -base64 33`
16197    fi
16198    dir_password=$key
16199 fi
16200
16201 fd_password=
16202
16203 # Check whether --with-fd-password or --without-fd-password was given.
16204 if test "${with_fd_password+set}" = set; then
16205   withval="$with_fd_password"
16206
16207        if test "x$withval" != "xno" ; then
16208            fd_password=$withval
16209        fi
16210
16211
16212 fi;
16213
16214 if test "x$fd_password" = "x" ; then
16215    if test "x$OPENSSL" = "xnone" ; then
16216       key=`autoconf/randpass 37`
16217    else
16218       key=`openssl rand -base64 33`
16219    fi
16220    fd_password=$key
16221 fi
16222
16223 sd_password=
16224
16225 # Check whether --with-sd-password or --without-sd-password was given.
16226 if test "${with_sd_password+set}" = set; then
16227   withval="$with_sd_password"
16228
16229        if test "x$withval" != "xno" ; then
16230            sd_password=$withval
16231        fi
16232
16233
16234 fi;
16235
16236 if test "x$sd_password" = "x" ; then
16237    if test "x$OPENSSL" = "xnone" ; then
16238       key=`autoconf/randpass 41`
16239    else
16240       key=`openssl rand -base64 33`
16241    fi
16242    sd_password=$key
16243 fi
16244
16245 mon_dir_password=
16246
16247 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16248 if test "${with_mon_dir_password+set}" = set; then
16249   withval="$with_mon_dir_password"
16250
16251        if test "x$withval" != "xno" ; then
16252            mon_dir_password=$withval
16253        fi
16254
16255
16256 fi;
16257
16258 if test "x$mon_dir_password" = "x" ; then
16259    if test "x$OPENSSL" = "xnone" ; then
16260       key=`autoconf/randpass 33`
16261    else
16262       key=`openssl rand -base64 33`
16263    fi
16264    mon_dir_password=$key
16265 fi
16266
16267 mon_fd_password=
16268
16269 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16270 if test "${with_mon_fd_password+set}" = set; then
16271   withval="$with_mon_fd_password"
16272
16273        if test "x$withval" != "xno" ; then
16274            mon_fd_password=$withval
16275        fi
16276
16277
16278 fi;
16279
16280 if test "x$mon_fd_password" = "x" ; then
16281    if test "x$OPENSSL" = "xnone" ; then
16282       key=`autoconf/randpass 37`
16283    else
16284       key=`openssl rand -base64 33`
16285    fi
16286    mon_fd_password=$key
16287 fi
16288
16289 mon_sd_password=
16290
16291 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16292 if test "${with_mon_sd_password+set}" = set; then
16293   withval="$with_mon_sd_password"
16294
16295        if test "x$withval" != "xno" ; then
16296            mon_sd_password=$withval
16297        fi
16298
16299
16300 fi;
16301
16302 if test "x$mon_sd_password" = "x" ; then
16303    if test "x$OPENSSL" = "xnone" ; then
16304       key=`autoconf/randpass 41`
16305    else
16306       key=`openssl rand -base64 33`
16307    fi
16308    mon_sd_password=$key
16309 fi
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319 #
16320 # Handle users and groups for each daemon
16321 #
16322 dir_user=
16323
16324 # Check whether --with-dir_user or --without-dir_user was given.
16325 if test "${with_dir_user+set}" = set; then
16326   withval="$with_dir_user"
16327
16328         if test "x$withval" != "x" ; then
16329              dir_user=$withval
16330         fi
16331
16332
16333 fi;
16334
16335 dir_group=
16336
16337 # Check whether --with-dir_group or --without-dir_group was given.
16338 if test "${with_dir_group+set}" = set; then
16339   withval="$with_dir_group"
16340
16341         if test "x$withval" != "x" ; then
16342              dir_group=$withval
16343         fi
16344
16345
16346 fi;
16347
16348 sd_user=
16349
16350 # Check whether --with-sd_user or --without-sd_user was given.
16351 if test "${with_sd_user+set}" = set; then
16352   withval="$with_sd_user"
16353
16354         if test "x$withval" != "x" ; then
16355              sd_user=$withval
16356         fi
16357
16358
16359 fi;
16360
16361 sd_group=
16362
16363 # Check whether --with-sd_group or --without-sd_group was given.
16364 if test "${with_sd_group+set}" = set; then
16365   withval="$with_sd_group"
16366
16367         if test "x$withval" != "x" ; then
16368              sd_group=$withval
16369         fi
16370
16371
16372 fi;
16373
16374 fd_user=
16375
16376 # Check whether --with-fd_user or --without-fd_user was given.
16377 if test "${with_fd_user+set}" = set; then
16378   withval="$with_fd_user"
16379
16380         if test "x$withval" != "x" ; then
16381              fd_user=$withval
16382         fi
16383
16384
16385 fi;
16386
16387 fd_group=
16388
16389 # Check whether --with-fd_group or --without-fd_group was given.
16390 if test "${with_fd_group+set}" = set; then
16391   withval="$with_fd_group"
16392
16393         if test "x$withval" != "x" ; then
16394              fd_group=$withval
16395         fi
16396
16397
16398 fi;
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410 #
16411 # allow setting default executable permissions
16412 #
16413 SBINPERM=0754
16414
16415 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16416 if test "${with_sbin_perm+set}" = set; then
16417   withval="$with_sbin_perm"
16418
16419         if test "x$withval" != "x" ; then
16420             SBINPERM=$withval
16421         fi
16422
16423
16424 fi;
16425
16426
16427
16428 # ------------------------------------------------
16429 # Bacula check for various SQL database engines
16430 # ------------------------------------------------
16431
16432 db_found=no
16433 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16434 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16435
16436 # Check whether --with-postgresql or --without-postgresql was given.
16437 if test "${with_postgresql+set}" = set; then
16438   withval="$with_postgresql"
16439
16440   if test "$withval" != "no"; then
16441       if test "$db_found" = "yes"; then
16442           echo "$as_me:$LINENO: result: error" >&5
16443 echo "${ECHO_T}error" >&6
16444           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16445 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16446    { (exit 1); exit 1; }; };
16447       fi
16448       if test "$withval" = "yes"; then
16449           if test -f /usr/local/include/libpq-fe.h; then
16450               POSTGRESQL_INCDIR=/usr/local/include
16451               POSTGRESQL_LIBDIR=/usr/local/lib
16452               POSTGRESQL_BINDIR=/usr/local/bin
16453           elif test -f /usr/include/libpq-fe.h; then
16454               POSTGRESQL_INCDIR=/usr/include
16455               POSTGRESQL_LIBDIR=/usr/lib
16456               POSTGRESQL_BINDIR=/usr/bin
16457           elif test -f /usr/include/pgsql/libpq-fe.h; then
16458               POSTGRESQL_INCDIR=/usr/include/pgsql
16459               POSTGRESQL_LIBDIR=/usr/lib/pgsql
16460               POSTGRESQL_BINDIR=/usr/bin
16461           elif test -f /usr/include/postgresql/libpq-fe.h; then
16462               POSTGRESQL_INCDIR=/usr/include/postgresql
16463               POSTGRESQL_LIBDIR=/usr/lib/postgresql
16464               POSTGRESQL_BINDIR=/usr/bin
16465           else
16466               echo "$as_me:$LINENO: result: no" >&5
16467 echo "${ECHO_T}no" >&6
16468               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16469 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16470    { (exit 1); exit 1; }; }
16471           fi
16472       elif test -f $withval/include/libpq-fe.h; then
16473           POSTGRESQL_INCDIR=$withval/include
16474           POSTGRESQL_LIBDIR=$withval/lib
16475           POSTGRESQL_BINDIR=$withval/bin
16476       elif test -f $withval/include/postgresql/libpq-fe.h; then
16477           POSTGRESQL_INCDIR=$withval/include/postgresql
16478           POSTGRESQL_LIBDIR=$withval/lib
16479           POSTGRESQL_BINDIR=$withval/bin
16480       else
16481           echo "$as_me:$LINENO: result: no" >&5
16482 echo "${ECHO_T}no" >&6
16483           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16484 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16485    { (exit 1); exit 1; }; }
16486       fi
16487       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16488       echo "$as_me:$LINENO: checking for crypt" >&5
16489 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16490 if test "${ac_cv_func_crypt+set}" = set; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493   cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h.  */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h.  */
16499 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16501 #define crypt innocuous_crypt
16502
16503 /* System header to define __stub macros and hopefully few prototypes,
16504     which can conflict with char crypt (); below.
16505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16506     <limits.h> exists even on freestanding compilers.  */
16507
16508 #ifdef __STDC__
16509 # include <limits.h>
16510 #else
16511 # include <assert.h>
16512 #endif
16513
16514 #undef crypt
16515
16516 /* Override any gcc2 internal prototype to avoid an error.  */
16517 #ifdef __cplusplus
16518 extern "C"
16519 {
16520 #endif
16521 /* We use char because int might match the return type of a gcc2
16522    builtin and then its argument prototype would still apply.  */
16523 char crypt ();
16524 /* The GNU C library defines this for functions which it implements
16525     to always fail with ENOSYS.  Some functions are actually named
16526     something starting with __ and the normal name is an alias.  */
16527 #if defined (__stub_crypt) || defined (__stub___crypt)
16528 choke me
16529 #else
16530 char (*f) () = crypt;
16531 #endif
16532 #ifdef __cplusplus
16533 }
16534 #endif
16535
16536 int
16537 main ()
16538 {
16539 return f != crypt;
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546   (eval $ac_link) 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } &&
16553          { ac_try='test -z "$ac_c_werror_flag"
16554                          || test ! -s conftest.err'
16555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556   (eval $ac_try) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; } &&
16560          { ac_try='test -s conftest$ac_exeext'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_cv_func_crypt=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571 ac_cv_func_crypt=no
16572 fi
16573 rm -f conftest.err conftest.$ac_objext \
16574       conftest$ac_exeext conftest.$ac_ext
16575 fi
16576 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16577 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16578 if test $ac_cv_func_crypt = yes; then
16579   :
16580 else
16581   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16582 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16583 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16584   echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586   ac_check_lib_save_LIBS=$LIBS
16587 LIBS="-lcrypt  $LIBS"
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594
16595 /* Override any gcc2 internal prototype to avoid an error.  */
16596 #ifdef __cplusplus
16597 extern "C"
16598 #endif
16599 /* We use char because int might match the return type of a gcc2
16600    builtin and then its argument prototype would still apply.  */
16601 char crypt ();
16602 int
16603 main ()
16604 {
16605 crypt ();
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16612   (eval $ac_link) 2>conftest.er1
16613   ac_status=$?
16614   grep -v '^ *+' conftest.er1 >conftest.err
16615   rm -f conftest.er1
16616   cat conftest.err >&5
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } &&
16619          { ac_try='test -z "$ac_c_werror_flag"
16620                          || test ! -s conftest.err'
16621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622   (eval $ac_try) 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; } &&
16626          { ac_try='test -s conftest$ac_exeext'
16627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628   (eval $ac_try) 2>&5
16629   ac_status=$?
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); }; }; then
16632   ac_cv_lib_crypt_crypt=yes
16633 else
16634   echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16636
16637 ac_cv_lib_crypt_crypt=no
16638 fi
16639 rm -f conftest.err conftest.$ac_objext \
16640       conftest$ac_exeext conftest.$ac_ext
16641 LIBS=$ac_check_lib_save_LIBS
16642 fi
16643 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16644 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16645 if test $ac_cv_lib_crypt_crypt = yes; then
16646   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
16647 fi
16648
16649 fi
16650
16651       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16652       SQL_LFLAGS=$POSTGRESQL_LFLAGS
16653       SQL_BINDIR=$POSTGRESQL_BINDIR
16654       cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_POSTGRESQL 1
16656 _ACEOF
16657
16658       echo "$as_me:$LINENO: result: yes" >&5
16659 echo "${ECHO_T}yes" >&6
16660       db_found=yes
16661       support_postgresql=yes
16662       db_name=PostgreSQL
16663       DB_NAME=postgresql
16664   else
16665       echo "$as_me:$LINENO: result: no" >&5
16666 echo "${ECHO_T}no" >&6
16667   fi
16668
16669 else
16670
16671   echo "$as_me:$LINENO: result: no" >&5
16672 echo "${ECHO_T}no" >&6
16673
16674 fi;
16675
16676
16677
16678
16679
16680
16681
16682 db_found=no
16683 echo "$as_me:$LINENO: checking for MySQL support" >&5
16684 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16685
16686 # Check whether --with-mysql or --without-mysql was given.
16687 if test "${with_mysql+set}" = set; then
16688   withval="$with_mysql"
16689
16690   if test "$withval" != "no"; then
16691         if test "$withval" = "yes"; then
16692                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16693                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16694                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16695                         MYSQL_BINDIR=/usr/local/mysql/bin
16696                 elif test -f /usr/include/mysql/mysql.h; then
16697                         MYSQL_INCDIR=/usr/include/mysql
16698                         MYSQL_LIBDIR=/usr/lib/mysql
16699                         MYSQL_BINDIR=/usr/bin
16700                 elif test -f /usr/include/mysql.h; then
16701                         MYSQL_INCDIR=/usr/include
16702                         MYSQL_LIBDIR=/usr/lib
16703                         MYSQL_BINDIR=/usr/bin
16704                 elif test -f /usr/local/include/mysql/mysql.h; then
16705                         MYSQL_INCDIR=/usr/local/include/mysql
16706                         MYSQL_LIBDIR=/usr/local/lib/mysql
16707                         MYSQL_BINDIR=/usr/local/bin
16708                 elif test -f /usr/local/include/mysql.h; then
16709                         MYSQL_INCDIR=/usr/local/include
16710                         MYSQL_LIBDIR=/usr/local/lib
16711                         MYSQL_BINDIR=/usr/local/bin
16712                 else
16713                    echo "$as_me:$LINENO: result: no" >&5
16714 echo "${ECHO_T}no" >&6
16715                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16716 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16717    { (exit 1); exit 1; }; }
16718                 fi
16719         else
16720                 if test -f $withval/include/mysql/mysql.h; then
16721                         MYSQL_INCDIR=$withval/include/mysql
16722                         MYSQL_LIBDIR=$withval/lib/mysql
16723                         MYSQL_BINDIR=$withval/bin
16724                 elif test -f $withval/include/mysql.h; then
16725                         MYSQL_INCDIR=$withval/include
16726                         MYSQL_LIBDIR=$withval/lib
16727                         MYSQL_BINDIR=$withval/bin
16728                 else
16729                    echo "$as_me:$LINENO: result: no" >&5
16730 echo "${ECHO_T}no" >&6
16731                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16732 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16733    { (exit 1); exit 1; }; }
16734                 fi
16735         fi
16736     SQL_INCLUDE=-I$MYSQL_INCDIR
16737     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16738        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16739        cat >>confdefs.h <<\_ACEOF
16740 #define HAVE_THREAD_SAFE_MYSQL 1
16741 _ACEOF
16742
16743     else
16744        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16745     fi
16746     SQL_BINDIR=$MYSQL_BINDIR
16747
16748     cat >>confdefs.h <<\_ACEOF
16749 #define HAVE_MYSQL 1
16750 _ACEOF
16751
16752     echo "$as_me:$LINENO: result: yes" >&5
16753 echo "${ECHO_T}yes" >&6
16754     db_found=yes
16755     support_mysql=yes
16756     db_name=MySQL
16757     DB_NAME=mysql
16758
16759   else
16760         echo "$as_me:$LINENO: result: no" >&5
16761 echo "${ECHO_T}no" >&6
16762   fi
16763
16764
16765 fi;
16766
16767
16768 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16769 if test "${with_embedded_mysql+set}" = set; then
16770   withval="$with_embedded_mysql"
16771
16772   if test "$withval" != "no"; then
16773         if test "$withval" = "yes"; then
16774                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16775                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16776                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16777                         MYSQL_BINDIR=/usr/local/mysql/bin
16778                 elif test -f /usr/include/mysql/mysql.h; then
16779                         MYSQL_INCDIR=/usr/include/mysql
16780                         MYSQL_LIBDIR=/usr/lib/mysql
16781                         MYSQL_BINDIR=/usr/bin
16782                 elif test -f /usr/include/mysql.h; then
16783                         MYSQL_INCDIR=/usr/include
16784                         MYSQL_LIBDIR=/usr/lib
16785                         MYSQL_BINDIR=/usr/bin
16786                 elif test -f /usr/local/include/mysql/mysql.h; then
16787                         MYSQL_INCDIR=/usr/local/include/mysql
16788                         MYSQL_LIBDIR=/usr/local/lib/mysql
16789                         MYSQL_BINDIR=/usr/local/bin
16790                 elif test -f /usr/local/include/mysql.h; then
16791                         MYSQL_INCDIR=/usr/local/include
16792                         MYSQL_LIBDIR=/usr/local/lib
16793                         MYSQL_BINDIR=/usr/local/bin
16794                 else
16795                    echo "$as_me:$LINENO: result: no" >&5
16796 echo "${ECHO_T}no" >&6
16797                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16798 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16799    { (exit 1); exit 1; }; }
16800                 fi
16801         else
16802                 if test -f $withval/include/mysql/mysql.h; then
16803                         MYSQL_INCDIR=$withval/include/mysql
16804                         MYSQL_LIBDIR=$withval/lib/mysql
16805                         MYSQL_BINDIR=$withval/bin
16806                 elif test -f $withval/include/mysql.h; then
16807                         MYSQL_INCDIR=$withval/include
16808                         MYSQL_LIBDIR=$withval/lib
16809                         MYSQL_BINDIR=$withval/bin
16810                 else
16811                    echo "$as_me:$LINENO: result: no" >&5
16812 echo "${ECHO_T}no" >&6
16813                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16814 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16815    { (exit 1); exit 1; }; }
16816                 fi
16817         fi
16818     SQL_INCLUDE=-I$MYSQL_INCDIR
16819     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16820     SQL_BINDIR=$MYSQL_BINDIR
16821
16822     cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_MYSQL 1
16824 _ACEOF
16825
16826     cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_EMBEDDED_MYSQL 1
16828 _ACEOF
16829
16830     echo "$as_me:$LINENO: result: yes" >&5
16831 echo "${ECHO_T}yes" >&6
16832     db_found=yes
16833     support_mysql=yes
16834     db_name=MySQL
16835     DB_NAME=mysql
16836
16837   else
16838         echo "$as_me:$LINENO: result: no" >&5
16839 echo "${ECHO_T}no" >&6
16840   fi
16841
16842
16843 fi;
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853 db_found=no
16854 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16855 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16856
16857 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16858 if test "${with_sqlite3+set}" = set; then
16859   withval="$with_sqlite3"
16860
16861   if test "$withval" != "no"; then
16862      if test "$withval" = "yes"; then
16863         if test -f /usr/local/include/sqlite3.h; then
16864            SQLITE_INCDIR=/usr/local/include
16865            SQLITE_LIBDIR=/usr/local/lib
16866            SQLITE_BINDIR=/usr/local/bin
16867         elif test -f /usr/include/sqlite3.h; then
16868            SQLITE_INCDIR=/usr/include
16869            SQLITE_LIBDIR=/usr/lib
16870            SQLITE_BINDIR=/usr/bin
16871         elif test -f $prefix/include/sqlite3.h; then
16872            SQLITE_INCDIR=$prefix/include
16873            SQLITE_LIBDIR=$prefix/lib
16874            SQLITE_BINDIR=$prefix/bin
16875         else
16876            echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6
16878            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16879 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16880    { (exit 1); exit 1; }; }
16881         fi
16882      else
16883         if test -f $withval/sqlite3.h; then
16884            SQLITE_INCDIR=$withval
16885            SQLITE_LIBDIR=$withval
16886            SQLITE_BINDIR=$withval
16887         elif test -f $withval/include/sqlite3.h; then
16888            SQLITE_INCDIR=$withval/include
16889            SQLITE_LIBDIR=$withval/lib
16890            SQLITE_BINDIR=$withval/bin
16891         else
16892            echo "$as_me:$LINENO: result: no" >&5
16893 echo "${ECHO_T}no" >&6
16894            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
16895 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
16896    { (exit 1); exit 1; }; }
16897         fi
16898      fi
16899      SQL_INCLUDE=-I$SQLITE_INCDIR
16900      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
16901      SQL_BINDIR=$SQLITE_BINDIR
16902
16903      cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_SQLITE3 1
16905 _ACEOF
16906
16907      echo "$as_me:$LINENO: result: yes" >&5
16908 echo "${ECHO_T}yes" >&6
16909      db_found=yes
16910      support_sqlite3=yes
16911      db_name=SQLite3
16912      DB_NAME=sqlite3
16913
16914   else
16915      echo "$as_me:$LINENO: result: no" >&5
16916 echo "${ECHO_T}no" >&6
16917   fi
16918
16919 else
16920
16921   echo "$as_me:$LINENO: result: no" >&5
16922 echo "${ECHO_T}no" >&6
16923
16924 fi;
16925
16926
16927
16928
16929
16930
16931
16932 db_found=no
16933 echo "$as_me:$LINENO: checking for SQLite support" >&5
16934 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
16935
16936 # Check whether --with-sqlite or --without-sqlite was given.
16937 if test "${with_sqlite+set}" = set; then
16938   withval="$with_sqlite"
16939
16940   if test "$withval" != "no"; then
16941      if test "$withval" = "yes"; then
16942         if test -f /usr/local/include/sqlite.h; then
16943            SQLITE_INCDIR=/usr/local/include
16944            SQLITE_LIBDIR=/usr/local/lib
16945            SQLITE_BINDIR=/usr/local/bin
16946         elif test -f /usr/include/sqlite.h; then
16947            SQLITE_INCDIR=/usr/include
16948            SQLITE_LIBDIR=/usr/lib
16949            SQLITE_BINDIR=/usr/bin
16950         elif test -f $prefix/include/sqlite.h; then
16951            SQLITE_INCDIR=$prefix/include
16952            SQLITE_LIBDIR=$prefix/lib
16953            SQLITE_BINDIR=$prefix/bin
16954         else
16955            echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6
16957            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
16958 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
16959    { (exit 1); exit 1; }; }
16960         fi
16961      else
16962         if test -f $withval/sqlite.h; then
16963            SQLITE_INCDIR=$withval
16964            SQLITE_LIBDIR=$withval
16965            SQLITE_BINDIR=$withval
16966         elif test -f $withval/include/sqlite.h; then
16967            SQLITE_INCDIR=$withval/include
16968            SQLITE_LIBDIR=$withval/lib
16969            SQLITE_BINDIR=$withval/bin
16970         else
16971            echo "$as_me:$LINENO: result: no" >&5
16972 echo "${ECHO_T}no" >&6
16973            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
16974 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
16975    { (exit 1); exit 1; }; }
16976         fi
16977      fi
16978      SQL_INCLUDE=-I$SQLITE_INCDIR
16979      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
16980      SQL_BINDIR=$SQLITE_BINDIR
16981
16982      cat >>confdefs.h <<\_ACEOF
16983 #define HAVE_SQLITE 1
16984 _ACEOF
16985
16986      echo "$as_me:$LINENO: result: yes" >&5
16987 echo "${ECHO_T}yes" >&6
16988      db_found=yes
16989      support_sqlite=yes
16990      db_name=SQLite
16991      DB_NAME=sqlite
16992
16993   else
16994      echo "$as_me:$LINENO: result: no" >&5
16995 echo "${ECHO_T}no" >&6
16996   fi
16997
16998 else
16999
17000   echo "$as_me:$LINENO: result: no" >&5
17001 echo "${ECHO_T}no" >&6
17002
17003 fi;
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013 cat >>confdefs.h <<\_ACEOF
17014 #define PROTOTYPES 1
17015 _ACEOF
17016
17017
17018 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17019     if test -z "$CCOPTS"; then
17020         CCOPTS='-g -O2 -Wall'
17021     fi
17022     CFLAGS="$CCOPTS"
17023 fi
17024
17025
17026
17027
17028 largefile_support="no"
17029
17030    # Check whether --enable-largefile or --disable-largefile was given.
17031 if test "${enable_largefile+set}" = set; then
17032   enableval="$enable_largefile"
17033
17034 fi;
17035    if test "$enable_largefile" != no; then
17036      if test -n "$ac_tool_prefix"; then
17037   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17038 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17039 echo "$as_me:$LINENO: checking for $ac_word" >&5
17040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17041 if test "${ac_cv_prog_GETCONF+set}" = set; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   if test -n "$GETCONF"; then
17045   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17046 else
17047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17048 for as_dir in $PATH
17049 do
17050   IFS=$as_save_IFS
17051   test -z "$as_dir" && as_dir=.
17052   for ac_exec_ext in '' $ac_executable_extensions; do
17053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17054     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17056     break 2
17057   fi
17058 done
17059 done
17060
17061 fi
17062 fi
17063 GETCONF=$ac_cv_prog_GETCONF
17064 if test -n "$GETCONF"; then
17065   echo "$as_me:$LINENO: result: $GETCONF" >&5
17066 echo "${ECHO_T}$GETCONF" >&6
17067 else
17068   echo "$as_me:$LINENO: result: no" >&5
17069 echo "${ECHO_T}no" >&6
17070 fi
17071
17072 fi
17073 if test -z "$ac_cv_prog_GETCONF"; then
17074   ac_ct_GETCONF=$GETCONF
17075   # Extract the first word of "getconf", so it can be a program name with args.
17076 set dummy getconf; ac_word=$2
17077 echo "$as_me:$LINENO: checking for $ac_word" >&5
17078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17079 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17080   echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082   if test -n "$ac_ct_GETCONF"; then
17083   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17084 else
17085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17086 for as_dir in $PATH
17087 do
17088   IFS=$as_save_IFS
17089   test -z "$as_dir" && as_dir=.
17090   for ac_exec_ext in '' $ac_executable_extensions; do
17091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17092     ac_cv_prog_ac_ct_GETCONF="getconf"
17093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17094     break 2
17095   fi
17096 done
17097 done
17098
17099 fi
17100 fi
17101 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17102 if test -n "$ac_ct_GETCONF"; then
17103   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17104 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17105 else
17106   echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6
17108 fi
17109
17110   GETCONF=$ac_ct_GETCONF
17111 else
17112   GETCONF="$ac_cv_prog_GETCONF"
17113 fi
17114
17115      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17116 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17117 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17121         ac_cv_sys_largefile_CFLAGS=no
17122         case "$host_os" in
17123            # IRIX 6.2 and later require cc -n32.
17124            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17125              if test "$GCC" != yes; then
17126                ac_cv_sys_largefile_CFLAGS=-n32
17127              fi
17128              ac_save_CC="$CC"
17129              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17130              cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136
17137 int
17138 main ()
17139 {
17140
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 rm -f conftest.$ac_objext conftest$ac_exeext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147   (eval $ac_link) 2>conftest.er1
17148   ac_status=$?
17149   grep -v '^ *+' conftest.er1 >conftest.err
17150   rm -f conftest.er1
17151   cat conftest.err >&5
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } &&
17154          { ac_try='test -z "$ac_c_werror_flag"
17155                          || test ! -s conftest.err'
17156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157   (eval $ac_try) 2>&5
17158   ac_status=$?
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); }; } &&
17161          { ac_try='test -s conftest$ac_exeext'
17162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163   (eval $ac_try) 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; }; then
17167   :
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 ac_cv_sys_largefile_CFLAGS=no
17173 fi
17174 rm -f conftest.err conftest.$ac_objext \
17175       conftest$ac_exeext conftest.$ac_ext
17176              CC="$ac_save_CC"
17177            esac
17178       }
17179 fi
17180 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17181 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17182      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17183 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17184 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17188         ac_cv_sys_largefile_LDFLAGS=no
17189
17190       }
17191 fi
17192 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17193 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17194      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17195 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17196 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17197   echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17200         ac_cv_sys_largefile_LIBS=no
17201
17202       }
17203 fi
17204 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17205 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17206
17207      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17208        case "$ac_flag" in
17209        no) ;;
17210        -D_FILE_OFFSET_BITS=*) ;;
17211        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17212        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17213        -D?* | -I?*)
17214          case "$ac_flag" in
17215    no) ;;
17216    ?*)
17217      case "$CPPFLAGS" in
17218      '') CPPFLAGS="$ac_flag" ;;
17219      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17220      esac ;;
17221    esac ;;
17222        *)
17223          case "$ac_flag" in
17224    no) ;;
17225    ?*)
17226      case "$CFLAGS" in
17227      '') CFLAGS="$ac_flag" ;;
17228      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17229      esac ;;
17230    esac ;;
17231        esac
17232      done
17233      case "$ac_cv_sys_largefile_LDFLAGS" in
17234    no) ;;
17235    ?*)
17236      case "$LDFLAGS" in
17237      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17238      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17239      esac ;;
17240    esac
17241      case "$ac_cv_sys_largefile_LIBS" in
17242    no) ;;
17243    ?*)
17244      case "$LIBS" in
17245      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17246      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17247      esac ;;
17248    esac
17249      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17250 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17251 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17252   echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254   ac_cv_sys_file_offset_bits=no
17255       ac_cv_sys_file_offset_bits=64
17256       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17257         case "$ac_flag" in
17258         -D_FILE_OFFSET_BITS)
17259           ac_cv_sys_file_offset_bits=1 ;;
17260         -D_FILE_OFFSET_BITS=*)
17261           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17262         esac
17263       done
17264
17265 fi
17266 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17267 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17268    if test "$ac_cv_sys_file_offset_bits" != no; then
17269
17270 cat >>confdefs.h <<_ACEOF
17271 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17272 _ACEOF
17273
17274    fi
17275      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17276 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17277 if test "${ac_cv_sys_largefile_source+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   ac_cv_sys_largefile_source=no
17281       ac_cv_sys_largefile_source=1
17282       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17283         case "$ac_flag" in
17284         -D_LARGEFILE_SOURCE)
17285           ac_cv_sys_largefile_source=1 ;;
17286         -D_LARGEFILE_SOURCE=*)
17287           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17288         esac
17289       done
17290
17291 fi
17292 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17293 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17294    if test "$ac_cv_sys_largefile_source" != no; then
17295
17296 cat >>confdefs.h <<_ACEOF
17297 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17298 _ACEOF
17299
17300    fi
17301      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17302 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17303 if test "${ac_cv_sys_large_files+set}" = set; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   ac_cv_sys_large_files=no
17307       ac_cv_sys_large_files=1
17308       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17309         case "$ac_flag" in
17310         -D_LARGE_FILES)
17311           ac_cv_sys_large_files=1 ;;
17312         -D_LARGE_FILES=*)
17313           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17314         esac
17315       done
17316
17317 fi
17318 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17319 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17320    if test "$ac_cv_sys_large_files" != no; then
17321
17322 cat >>confdefs.h <<_ACEOF
17323 #define _LARGE_FILES $ac_cv_sys_large_files
17324 _ACEOF
17325
17326    fi
17327    fi
17328
17329
17330
17331 echo "$as_me:$LINENO: checking for X" >&5
17332 echo $ECHO_N "checking for X... $ECHO_C" >&6
17333
17334
17335 # Check whether --with-x or --without-x was given.
17336 if test "${with_x+set}" = set; then
17337   withval="$with_x"
17338
17339 fi;
17340 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17341 if test "x$with_x" = xno; then
17342   # The user explicitly disabled X.
17343   have_x=disabled
17344 else
17345   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17346     # Both variables are already set.
17347     have_x=yes
17348   else
17349     if test "${ac_cv_have_x+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352   # One or both of the vars are not set, and there is no cached value.
17353 ac_x_includes=no ac_x_libraries=no
17354 rm -fr conftest.dir
17355 if mkdir conftest.dir; then
17356   cd conftest.dir
17357   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17358   cat >Imakefile <<'_ACEOF'
17359 acfindx:
17360         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17361 _ACEOF
17362   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17363     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17364     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17365     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17366     for ac_extension in a so sl; do
17367       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17368          test -f $ac_im_libdir/libX11.$ac_extension; then
17369         ac_im_usrlibdir=$ac_im_libdir; break
17370       fi
17371     done
17372     # Screen out bogus values from the imake configuration.  They are
17373     # bogus both because they are the default anyway, and because
17374     # using them would break gcc on systems where it needs fixed includes.
17375     case $ac_im_incroot in
17376         /usr/include) ;;
17377         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17378     esac
17379     case $ac_im_usrlibdir in
17380         /usr/lib | /lib) ;;
17381         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17382     esac
17383   fi
17384   cd ..
17385   rm -fr conftest.dir
17386 fi
17387
17388 # Standard set of common directories for X headers.
17389 # Check X11 before X11Rn because it is often a symlink to the current release.
17390 ac_x_header_dirs='
17391 /usr/X11/include
17392 /usr/X11R6/include
17393 /usr/X11R5/include
17394 /usr/X11R4/include
17395
17396 /usr/include/X11
17397 /usr/include/X11R6
17398 /usr/include/X11R5
17399 /usr/include/X11R4
17400
17401 /usr/local/X11/include
17402 /usr/local/X11R6/include
17403 /usr/local/X11R5/include
17404 /usr/local/X11R4/include
17405
17406 /usr/local/include/X11
17407 /usr/local/include/X11R6
17408 /usr/local/include/X11R5
17409 /usr/local/include/X11R4
17410
17411 /usr/X386/include
17412 /usr/x386/include
17413 /usr/XFree86/include/X11
17414
17415 /usr/include
17416 /usr/local/include
17417 /usr/unsupported/include
17418 /usr/athena/include
17419 /usr/local/x11r5/include
17420 /usr/lpp/Xamples/include
17421
17422 /usr/openwin/include
17423 /usr/openwin/share/include'
17424
17425 if test "$ac_x_includes" = no; then
17426   # Guess where to find include files, by looking for Intrinsic.h.
17427   # First, try using that file with no special directory specified.
17428   cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434 #include <X11/Intrinsic.h>
17435 _ACEOF
17436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17438   ac_status=$?
17439   grep -v '^ *+' conftest.er1 >conftest.err
17440   rm -f conftest.er1
17441   cat conftest.err >&5
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); } >/dev/null; then
17444   if test -s conftest.err; then
17445     ac_cpp_err=$ac_c_preproc_warn_flag
17446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17447   else
17448     ac_cpp_err=
17449   fi
17450 else
17451   ac_cpp_err=yes
17452 fi
17453 if test -z "$ac_cpp_err"; then
17454   # We can compile using X headers with no special include directory.
17455 ac_x_includes=
17456 else
17457   echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460   for ac_dir in $ac_x_header_dirs; do
17461   if test -r "$ac_dir/X11/Intrinsic.h"; then
17462     ac_x_includes=$ac_dir
17463     break
17464   fi
17465 done
17466 fi
17467 rm -f conftest.err conftest.$ac_ext
17468 fi # $ac_x_includes = no
17469
17470 if test "$ac_x_libraries" = no; then
17471   # Check for the libraries.
17472   # See if we find them without any special options.
17473   # Don't add to $LIBS permanently.
17474   ac_save_LIBS=$LIBS
17475   LIBS="-lXt $LIBS"
17476   cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482 #include <X11/Intrinsic.h>
17483 int
17484 main ()
17485 {
17486 XtMalloc (0)
17487   ;
17488   return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493   (eval $ac_link) 2>conftest.er1
17494   ac_status=$?
17495   grep -v '^ *+' conftest.er1 >conftest.err
17496   rm -f conftest.er1
17497   cat conftest.err >&5
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); } &&
17500          { ac_try='test -z "$ac_c_werror_flag"
17501                          || test ! -s conftest.err'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; } &&
17507          { ac_try='test -s conftest$ac_exeext'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; }; then
17513   LIBS=$ac_save_LIBS
17514 # We can link X programs with no special library path.
17515 ac_x_libraries=
17516 else
17517   echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 LIBS=$ac_save_LIBS
17521 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17522 do
17523   # Don't even attempt the hair of trying to link an X program!
17524   for ac_extension in a so sl; do
17525     if test -r $ac_dir/libXt.$ac_extension; then
17526       ac_x_libraries=$ac_dir
17527       break 2
17528     fi
17529   done
17530 done
17531 fi
17532 rm -f conftest.err conftest.$ac_objext \
17533       conftest$ac_exeext conftest.$ac_ext
17534 fi # $ac_x_libraries = no
17535
17536 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17537   # Didn't find X anywhere.  Cache the known absence of X.
17538   ac_cv_have_x="have_x=no"
17539 else
17540   # Record where we found X for the cache.
17541   ac_cv_have_x="have_x=yes \
17542                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17543 fi
17544 fi
17545
17546   fi
17547   eval "$ac_cv_have_x"
17548 fi # $with_x != no
17549
17550 if test "$have_x" != yes; then
17551   echo "$as_me:$LINENO: result: $have_x" >&5
17552 echo "${ECHO_T}$have_x" >&6
17553   no_x=yes
17554 else
17555   # If each of the values was on the command line, it overrides each guess.
17556   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17557   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17558   # Update the cache value to reflect the command line values.
17559   ac_cv_have_x="have_x=yes \
17560                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17561   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17562 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17563 fi
17564
17565 if test "$no_x" = yes; then
17566   # Not all programs may use this symbol, but it does not hurt to define it.
17567
17568 cat >>confdefs.h <<\_ACEOF
17569 #define X_DISPLAY_MISSING 1
17570 _ACEOF
17571
17572   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17573 else
17574   if test -n "$x_includes"; then
17575     X_CFLAGS="$X_CFLAGS -I$x_includes"
17576   fi
17577
17578   # It would also be nice to do this for all -L options, not just this one.
17579   if test -n "$x_libraries"; then
17580     X_LIBS="$X_LIBS -L$x_libraries"
17581     # For Solaris; some versions of Sun CC require a space after -R and
17582     # others require no space.  Words are not sufficient . . . .
17583     case `(uname -sr) 2>/dev/null` in
17584     "SunOS 5"*)
17585       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17586 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17587       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17588       cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594
17595 int
17596 main ()
17597 {
17598
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605   (eval $ac_link) 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } &&
17612          { ac_try='test -z "$ac_c_werror_flag"
17613                          || test ! -s conftest.err'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; } &&
17619          { ac_try='test -s conftest$ac_exeext'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   ac_R_nospace=yes
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630 ac_R_nospace=no
17631 fi
17632 rm -f conftest.err conftest.$ac_objext \
17633       conftest$ac_exeext conftest.$ac_ext
17634       if test $ac_R_nospace = yes; then
17635         echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6
17637         X_LIBS="$X_LIBS -R$x_libraries"
17638       else
17639         LIBS="$ac_xsave_LIBS -R $x_libraries"
17640         cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646
17647 int
17648 main ()
17649 {
17650
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657   (eval $ac_link) 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_c_werror_flag"
17665                          || test ! -s conftest.err'
17666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667   (eval $ac_try) 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; } &&
17671          { ac_try='test -s conftest$ac_exeext'
17672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673   (eval $ac_try) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   ac_R_space=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682 ac_R_space=no
17683 fi
17684 rm -f conftest.err conftest.$ac_objext \
17685       conftest$ac_exeext conftest.$ac_ext
17686         if test $ac_R_space = yes; then
17687           echo "$as_me:$LINENO: result: yes" >&5
17688 echo "${ECHO_T}yes" >&6
17689           X_LIBS="$X_LIBS -R $x_libraries"
17690         else
17691           echo "$as_me:$LINENO: result: neither works" >&5
17692 echo "${ECHO_T}neither works" >&6
17693         fi
17694       fi
17695       LIBS=$ac_xsave_LIBS
17696     esac
17697   fi
17698
17699   # Check for system-dependent libraries X programs must link with.
17700   # Do this before checking for the system-independent R6 libraries
17701   # (-lICE), since we may need -lsocket or whatever for X linking.
17702
17703   if test "$ISC" = yes; then
17704     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17705   else
17706     # Martyn Johnson says this is needed for Ultrix, if the X
17707     # libraries were built with DECnet support.  And Karl Berry says
17708     # the Alpha needs dnet_stub (dnet does not exist).
17709     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17710     cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h.  */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h.  */
17716
17717 /* Override any gcc2 internal prototype to avoid an error.  */
17718 #ifdef __cplusplus
17719 extern "C"
17720 #endif
17721 /* We use char because int might match the return type of a gcc2
17722    builtin and then its argument prototype would still apply.  */
17723 char XOpenDisplay ();
17724 int
17725 main ()
17726 {
17727 XOpenDisplay ();
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734   (eval $ac_link) 2>conftest.er1
17735   ac_status=$?
17736   grep -v '^ *+' conftest.er1 >conftest.err
17737   rm -f conftest.er1
17738   cat conftest.err >&5
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); } &&
17741          { ac_try='test -z "$ac_c_werror_flag"
17742                          || test ! -s conftest.err'
17743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744   (eval $ac_try) 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); }; } &&
17748          { ac_try='test -s conftest$ac_exeext'
17749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750   (eval $ac_try) 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; }; then
17754   :
17755 else
17756   echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17758
17759 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17760 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17761 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   ac_check_lib_save_LIBS=$LIBS
17765 LIBS="-ldnet  $LIBS"
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772
17773 /* Override any gcc2 internal prototype to avoid an error.  */
17774 #ifdef __cplusplus
17775 extern "C"
17776 #endif
17777 /* We use char because int might match the return type of a gcc2
17778    builtin and then its argument prototype would still apply.  */
17779 char dnet_ntoa ();
17780 int
17781 main ()
17782 {
17783 dnet_ntoa ();
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790   (eval $ac_link) 2>conftest.er1
17791   ac_status=$?
17792   grep -v '^ *+' conftest.er1 >conftest.err
17793   rm -f conftest.er1
17794   cat conftest.err >&5
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); } &&
17797          { ac_try='test -z "$ac_c_werror_flag"
17798                          || test ! -s conftest.err'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; } &&
17804          { ac_try='test -s conftest$ac_exeext'
17805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806   (eval $ac_try) 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); }; }; then
17810   ac_cv_lib_dnet_dnet_ntoa=yes
17811 else
17812   echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17814
17815 ac_cv_lib_dnet_dnet_ntoa=no
17816 fi
17817 rm -f conftest.err conftest.$ac_objext \
17818       conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17820 fi
17821 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17822 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17823 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17824   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17825 fi
17826
17827     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17828       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17829 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17830 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833   ac_check_lib_save_LIBS=$LIBS
17834 LIBS="-ldnet_stub  $LIBS"
17835 cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h.  */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h.  */
17841
17842 /* Override any gcc2 internal prototype to avoid an error.  */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 /* We use char because int might match the return type of a gcc2
17847    builtin and then its argument prototype would still apply.  */
17848 char dnet_ntoa ();
17849 int
17850 main ()
17851 {
17852 dnet_ntoa ();
17853   ;
17854   return 0;
17855 }
17856 _ACEOF
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17859   (eval $ac_link) 2>conftest.er1
17860   ac_status=$?
17861   grep -v '^ *+' conftest.er1 >conftest.err
17862   rm -f conftest.er1
17863   cat conftest.err >&5
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } &&
17866          { ac_try='test -z "$ac_c_werror_flag"
17867                          || test ! -s conftest.err'
17868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869   (eval $ac_try) 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; } &&
17873          { ac_try='test -s conftest$ac_exeext'
17874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875   (eval $ac_try) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }; }; then
17879   ac_cv_lib_dnet_stub_dnet_ntoa=yes
17880 else
17881   echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 ac_cv_lib_dnet_stub_dnet_ntoa=no
17885 fi
17886 rm -f conftest.err conftest.$ac_objext \
17887       conftest$ac_exeext conftest.$ac_ext
17888 LIBS=$ac_check_lib_save_LIBS
17889 fi
17890 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17891 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
17892 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
17893   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17894 fi
17895
17896     fi
17897 fi
17898 rm -f conftest.err conftest.$ac_objext \
17899       conftest$ac_exeext conftest.$ac_ext
17900     LIBS="$ac_xsave_LIBS"
17901
17902     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17903     # to get the SysV transport functions.
17904     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17905     # needs -lnsl.
17906     # The nsl library prevents programs from opening the X display
17907     # on Irix 5.2, according to T.E. Dickey.
17908     # The functions gethostbyname, getservbyname, and inet_addr are
17909     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17910     echo "$as_me:$LINENO: checking for gethostbyname" >&5
17911 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
17912 if test "${ac_cv_func_gethostbyname+set}" = set; then
17913   echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915   cat >conftest.$ac_ext <<_ACEOF
17916 /* confdefs.h.  */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h.  */
17921 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
17922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17923 #define gethostbyname innocuous_gethostbyname
17924
17925 /* System header to define __stub macros and hopefully few prototypes,
17926     which can conflict with char gethostbyname (); below.
17927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17928     <limits.h> exists even on freestanding compilers.  */
17929
17930 #ifdef __STDC__
17931 # include <limits.h>
17932 #else
17933 # include <assert.h>
17934 #endif
17935
17936 #undef gethostbyname
17937
17938 /* Override any gcc2 internal prototype to avoid an error.  */
17939 #ifdef __cplusplus
17940 extern "C"
17941 {
17942 #endif
17943 /* We use char because int might match the return type of a gcc2
17944    builtin and then its argument prototype would still apply.  */
17945 char gethostbyname ();
17946 /* The GNU C library defines this for functions which it implements
17947     to always fail with ENOSYS.  Some functions are actually named
17948     something starting with __ and the normal name is an alias.  */
17949 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
17950 choke me
17951 #else
17952 char (*f) () = gethostbyname;
17953 #endif
17954 #ifdef __cplusplus
17955 }
17956 #endif
17957
17958 int
17959 main ()
17960 {
17961 return f != gethostbyname;
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17968   (eval $ac_link) 2>conftest.er1
17969   ac_status=$?
17970   grep -v '^ *+' conftest.er1 >conftest.err
17971   rm -f conftest.er1
17972   cat conftest.err >&5
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); } &&
17975          { ac_try='test -z "$ac_c_werror_flag"
17976                          || test ! -s conftest.err'
17977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978   (eval $ac_try) 2>&5
17979   ac_status=$?
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); }; } &&
17982          { ac_try='test -s conftest$ac_exeext'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; }; then
17988   ac_cv_func_gethostbyname=yes
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 ac_cv_func_gethostbyname=no
17994 fi
17995 rm -f conftest.err conftest.$ac_objext \
17996       conftest$ac_exeext conftest.$ac_ext
17997 fi
17998 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
17999 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18000
18001     if test $ac_cv_func_gethostbyname = no; then
18002       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18003 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18004 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18005   echo $ECHO_N "(cached) $ECHO_C" >&6
18006 else
18007   ac_check_lib_save_LIBS=$LIBS
18008 LIBS="-lnsl  $LIBS"
18009 cat >conftest.$ac_ext <<_ACEOF
18010 /* confdefs.h.  */
18011 _ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h.  */
18015
18016 /* Override any gcc2 internal prototype to avoid an error.  */
18017 #ifdef __cplusplus
18018 extern "C"
18019 #endif
18020 /* We use char because int might match the return type of a gcc2
18021    builtin and then its argument prototype would still apply.  */
18022 char gethostbyname ();
18023 int
18024 main ()
18025 {
18026 gethostbyname ();
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033   (eval $ac_link) 2>conftest.er1
18034   ac_status=$?
18035   grep -v '^ *+' conftest.er1 >conftest.err
18036   rm -f conftest.er1
18037   cat conftest.err >&5
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); } &&
18040          { ac_try='test -z "$ac_c_werror_flag"
18041                          || test ! -s conftest.err'
18042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043   (eval $ac_try) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; } &&
18047          { ac_try='test -s conftest$ac_exeext'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   ac_cv_lib_nsl_gethostbyname=yes
18054 else
18055   echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 ac_cv_lib_nsl_gethostbyname=no
18059 fi
18060 rm -f conftest.err conftest.$ac_objext \
18061       conftest$ac_exeext conftest.$ac_ext
18062 LIBS=$ac_check_lib_save_LIBS
18063 fi
18064 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18065 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18066 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18067   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18068 fi
18069
18070       if test $ac_cv_lib_nsl_gethostbyname = no; then
18071         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18072 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18073 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18074   echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076   ac_check_lib_save_LIBS=$LIBS
18077 LIBS="-lbsd  $LIBS"
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h.  */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h.  */
18084
18085 /* Override any gcc2 internal prototype to avoid an error.  */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 /* We use char because int might match the return type of a gcc2
18090    builtin and then its argument prototype would still apply.  */
18091 char gethostbyname ();
18092 int
18093 main ()
18094 {
18095 gethostbyname ();
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102   (eval $ac_link) 2>conftest.er1
18103   ac_status=$?
18104   grep -v '^ *+' conftest.er1 >conftest.err
18105   rm -f conftest.er1
18106   cat conftest.err >&5
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } &&
18109          { ac_try='test -z "$ac_c_werror_flag"
18110                          || test ! -s conftest.err'
18111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112   (eval $ac_try) 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; } &&
18116          { ac_try='test -s conftest$ac_exeext'
18117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118   (eval $ac_try) 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); }; }; then
18122   ac_cv_lib_bsd_gethostbyname=yes
18123 else
18124   echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_cv_lib_bsd_gethostbyname=no
18128 fi
18129 rm -f conftest.err conftest.$ac_objext \
18130       conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18132 fi
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18134 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18135 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18136   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18137 fi
18138
18139       fi
18140     fi
18141
18142     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18143     # socket/setsockopt and other routines are undefined under SCO ODT
18144     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18145     # on later versions), says Simon Leinen: it contains gethostby*
18146     # variants that don't use the name server (or something).  -lsocket
18147     # must be given before -lnsl if both are needed.  We assume that
18148     # if connect needs -lnsl, so does gethostbyname.
18149     echo "$as_me:$LINENO: checking for connect" >&5
18150 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18151 if test "${ac_cv_func_connect+set}" = set; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18162 #define connect innocuous_connect
18163
18164 /* System header to define __stub macros and hopefully few prototypes,
18165     which can conflict with char connect (); below.
18166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167     <limits.h> exists even on freestanding compilers.  */
18168
18169 #ifdef __STDC__
18170 # include <limits.h>
18171 #else
18172 # include <assert.h>
18173 #endif
18174
18175 #undef connect
18176
18177 /* Override any gcc2 internal prototype to avoid an error.  */
18178 #ifdef __cplusplus
18179 extern "C"
18180 {
18181 #endif
18182 /* We use char because int might match the return type of a gcc2
18183    builtin and then its argument prototype would still apply.  */
18184 char connect ();
18185 /* The GNU C library defines this for functions which it implements
18186     to always fail with ENOSYS.  Some functions are actually named
18187     something starting with __ and the normal name is an alias.  */
18188 #if defined (__stub_connect) || defined (__stub___connect)
18189 choke me
18190 #else
18191 char (*f) () = connect;
18192 #endif
18193 #ifdef __cplusplus
18194 }
18195 #endif
18196
18197 int
18198 main ()
18199 {
18200 return f != connect;
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207   (eval $ac_link) 2>conftest.er1
18208   ac_status=$?
18209   grep -v '^ *+' conftest.er1 >conftest.err
18210   rm -f conftest.er1
18211   cat conftest.err >&5
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); } &&
18214          { ac_try='test -z "$ac_c_werror_flag"
18215                          || test ! -s conftest.err'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; } &&
18221          { ac_try='test -s conftest$ac_exeext'
18222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223   (eval $ac_try) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; }; then
18227   ac_cv_func_connect=yes
18228 else
18229   echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18231
18232 ac_cv_func_connect=no
18233 fi
18234 rm -f conftest.err conftest.$ac_objext \
18235       conftest$ac_exeext conftest.$ac_ext
18236 fi
18237 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18238 echo "${ECHO_T}$ac_cv_func_connect" >&6
18239
18240     if test $ac_cv_func_connect = no; then
18241       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18242 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18243 if test "${ac_cv_lib_socket_connect+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254
18255 /* Override any gcc2 internal prototype to avoid an error.  */
18256 #ifdef __cplusplus
18257 extern "C"
18258 #endif
18259 /* We use char because int might match the return type of a gcc2
18260    builtin and then its argument prototype would still apply.  */
18261 char connect ();
18262 int
18263 main ()
18264 {
18265 connect ();
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272   (eval $ac_link) 2>conftest.er1
18273   ac_status=$?
18274   grep -v '^ *+' conftest.er1 >conftest.err
18275   rm -f conftest.er1
18276   cat conftest.err >&5
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); } &&
18279          { ac_try='test -z "$ac_c_werror_flag"
18280                          || test ! -s conftest.err'
18281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282   (eval $ac_try) 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; } &&
18286          { ac_try='test -s conftest$ac_exeext'
18287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288   (eval $ac_try) 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); }; }; then
18292   ac_cv_lib_socket_connect=yes
18293 else
18294   echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297 ac_cv_lib_socket_connect=no
18298 fi
18299 rm -f conftest.err conftest.$ac_objext \
18300       conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18302 fi
18303 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18304 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18305 if test $ac_cv_lib_socket_connect = yes; then
18306   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18307 fi
18308
18309     fi
18310
18311     # Guillermo Gomez says -lposix is necessary on A/UX.
18312     echo "$as_me:$LINENO: checking for remove" >&5
18313 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18314 if test "${ac_cv_func_remove+set}" = set; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h.  */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h.  */
18323 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18325 #define remove innocuous_remove
18326
18327 /* System header to define __stub macros and hopefully few prototypes,
18328     which can conflict with char remove (); below.
18329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18330     <limits.h> exists even on freestanding compilers.  */
18331
18332 #ifdef __STDC__
18333 # include <limits.h>
18334 #else
18335 # include <assert.h>
18336 #endif
18337
18338 #undef remove
18339
18340 /* Override any gcc2 internal prototype to avoid an error.  */
18341 #ifdef __cplusplus
18342 extern "C"
18343 {
18344 #endif
18345 /* We use char because int might match the return type of a gcc2
18346    builtin and then its argument prototype would still apply.  */
18347 char remove ();
18348 /* The GNU C library defines this for functions which it implements
18349     to always fail with ENOSYS.  Some functions are actually named
18350     something starting with __ and the normal name is an alias.  */
18351 #if defined (__stub_remove) || defined (__stub___remove)
18352 choke me
18353 #else
18354 char (*f) () = remove;
18355 #endif
18356 #ifdef __cplusplus
18357 }
18358 #endif
18359
18360 int
18361 main ()
18362 {
18363 return f != remove;
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370   (eval $ac_link) 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } &&
18377          { ac_try='test -z "$ac_c_werror_flag"
18378                          || test ! -s conftest.err'
18379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380   (eval $ac_try) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_func_remove=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_func_remove=no
18396 fi
18397 rm -f conftest.err conftest.$ac_objext \
18398       conftest$ac_exeext conftest.$ac_ext
18399 fi
18400 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18401 echo "${ECHO_T}$ac_cv_func_remove" >&6
18402
18403     if test $ac_cv_func_remove = no; then
18404       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18405 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18406 if test "${ac_cv_lib_posix_remove+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   ac_check_lib_save_LIBS=$LIBS
18410 LIBS="-lposix  $LIBS"
18411 cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417
18418 /* Override any gcc2 internal prototype to avoid an error.  */
18419 #ifdef __cplusplus
18420 extern "C"
18421 #endif
18422 /* We use char because int might match the return type of a gcc2
18423    builtin and then its argument prototype would still apply.  */
18424 char remove ();
18425 int
18426 main ()
18427 {
18428 remove ();
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435   (eval $ac_link) 2>conftest.er1
18436   ac_status=$?
18437   grep -v '^ *+' conftest.er1 >conftest.err
18438   rm -f conftest.er1
18439   cat conftest.err >&5
18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441   (exit $ac_status); } &&
18442          { ac_try='test -z "$ac_c_werror_flag"
18443                          || test ! -s conftest.err'
18444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445   (eval $ac_try) 2>&5
18446   ac_status=$?
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); }; } &&
18449          { ac_try='test -s conftest$ac_exeext'
18450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451   (eval $ac_try) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }; }; then
18455   ac_cv_lib_posix_remove=yes
18456 else
18457   echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460 ac_cv_lib_posix_remove=no
18461 fi
18462 rm -f conftest.err conftest.$ac_objext \
18463       conftest$ac_exeext conftest.$ac_ext
18464 LIBS=$ac_check_lib_save_LIBS
18465 fi
18466 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18467 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18468 if test $ac_cv_lib_posix_remove = yes; then
18469   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18470 fi
18471
18472     fi
18473
18474     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18475     echo "$as_me:$LINENO: checking for shmat" >&5
18476 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18477 if test "${ac_cv_func_shmat+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480   cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h.  */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h.  */
18486 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18488 #define shmat innocuous_shmat
18489
18490 /* System header to define __stub macros and hopefully few prototypes,
18491     which can conflict with char shmat (); below.
18492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18493     <limits.h> exists even on freestanding compilers.  */
18494
18495 #ifdef __STDC__
18496 # include <limits.h>
18497 #else
18498 # include <assert.h>
18499 #endif
18500
18501 #undef shmat
18502
18503 /* Override any gcc2 internal prototype to avoid an error.  */
18504 #ifdef __cplusplus
18505 extern "C"
18506 {
18507 #endif
18508 /* We use char because int might match the return type of a gcc2
18509    builtin and then its argument prototype would still apply.  */
18510 char shmat ();
18511 /* The GNU C library defines this for functions which it implements
18512     to always fail with ENOSYS.  Some functions are actually named
18513     something starting with __ and the normal name is an alias.  */
18514 #if defined (__stub_shmat) || defined (__stub___shmat)
18515 choke me
18516 #else
18517 char (*f) () = shmat;
18518 #endif
18519 #ifdef __cplusplus
18520 }
18521 #endif
18522
18523 int
18524 main ()
18525 {
18526 return f != shmat;
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533   (eval $ac_link) 2>conftest.er1
18534   ac_status=$?
18535   grep -v '^ *+' conftest.er1 >conftest.err
18536   rm -f conftest.er1
18537   cat conftest.err >&5
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); } &&
18540          { ac_try='test -z "$ac_c_werror_flag"
18541                          || test ! -s conftest.err'
18542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543   (eval $ac_try) 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest$ac_exeext'
18548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549   (eval $ac_try) 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }; }; then
18553   ac_cv_func_shmat=yes
18554 else
18555   echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558 ac_cv_func_shmat=no
18559 fi
18560 rm -f conftest.err conftest.$ac_objext \
18561       conftest$ac_exeext conftest.$ac_ext
18562 fi
18563 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18564 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18565
18566     if test $ac_cv_func_shmat = no; then
18567       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18568 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18569 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lipc  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any gcc2 internal prototype to avoid an error.  */
18582 #ifdef __cplusplus
18583 extern "C"
18584 #endif
18585 /* We use char because int might match the return type of a gcc2
18586    builtin and then its argument prototype would still apply.  */
18587 char shmat ();
18588 int
18589 main ()
18590 {
18591 shmat ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598   (eval $ac_link) 2>conftest.er1
18599   ac_status=$?
18600   grep -v '^ *+' conftest.er1 >conftest.err
18601   rm -f conftest.er1
18602   cat conftest.err >&5
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); } &&
18605          { ac_try='test -z "$ac_c_werror_flag"
18606                          || test ! -s conftest.err'
18607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608   (eval $ac_try) 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; } &&
18612          { ac_try='test -s conftest$ac_exeext'
18613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614   (eval $ac_try) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_cv_lib_ipc_shmat=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_cv_lib_ipc_shmat=no
18624 fi
18625 rm -f conftest.err conftest.$ac_objext \
18626       conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18630 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18631 if test $ac_cv_lib_ipc_shmat = yes; then
18632   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18633 fi
18634
18635     fi
18636   fi
18637
18638   # Check for libraries that X11R6 Xt/Xaw programs need.
18639   ac_save_LDFLAGS=$LDFLAGS
18640   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18641   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18642   # check for ICE first), but we must link in the order -lSM -lICE or
18643   # we get undefined symbols.  So assume we have SM if we have ICE.
18644   # These have to be linked with before -lX11, unlike the other
18645   # libraries we check for below, so use a different variable.
18646   # John Interrante, Karl Berry
18647   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18648 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18649 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18650   echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652   ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660
18661 /* Override any gcc2 internal prototype to avoid an error.  */
18662 #ifdef __cplusplus
18663 extern "C"
18664 #endif
18665 /* We use char because int might match the return type of a gcc2
18666    builtin and then its argument prototype would still apply.  */
18667 char IceConnectionNumber ();
18668 int
18669 main ()
18670 {
18671 IceConnectionNumber ();
18672   ;
18673   return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18678   (eval $ac_link) 2>conftest.er1
18679   ac_status=$?
18680   grep -v '^ *+' conftest.er1 >conftest.err
18681   rm -f conftest.er1
18682   cat conftest.err >&5
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } &&
18685          { ac_try='test -z "$ac_c_werror_flag"
18686                          || test ! -s conftest.err'
18687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688   (eval $ac_try) 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; } &&
18692          { ac_try='test -s conftest$ac_exeext'
18693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694   (eval $ac_try) 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; }; then
18698   ac_cv_lib_ICE_IceConnectionNumber=yes
18699 else
18700   echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 ac_cv_lib_ICE_IceConnectionNumber=no
18704 fi
18705 rm -f conftest.err conftest.$ac_objext \
18706       conftest$ac_exeext conftest.$ac_ext
18707 LIBS=$ac_check_lib_save_LIBS
18708 fi
18709 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18710 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18711 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18712   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18713 fi
18714
18715   LDFLAGS=$ac_save_LDFLAGS
18716
18717 fi
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747 for ac_header in \
18748         assert.h \
18749         fcntl.h \
18750         grp.h \
18751         pwd.h \
18752         libc.h \
18753         limits.h \
18754         stdarg.h \
18755         stdlib.h \
18756         stdint.h \
18757         string.h \
18758         termios.h \
18759         termcap.h \
18760         term.h \
18761         unistd.h \
18762         sys/bitypes.h \
18763         sys/byteorder.h \
18764         sys/ioctl.h \
18765         sys/select.h \
18766         sys/sockio.h \
18767         sys/time.h \
18768         sys/socket.h \
18769         arpa/nameser.h \
18770         resolv.h \
18771         mtio.h \
18772         sys/mtio.h \
18773         sys/tape.h \
18774         regex.h \
18775
18776 do
18777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18779   echo "$as_me:$LINENO: checking for $ac_header" >&5
18780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 fi
18784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18786 else
18787   # Is the header compilable?
18788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h.  */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h.  */
18796 $ac_includes_default
18797 #include <$ac_header>
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801   (eval $ac_compile) 2>conftest.er1
18802   ac_status=$?
18803   grep -v '^ *+' conftest.er1 >conftest.err
18804   rm -f conftest.er1
18805   cat conftest.err >&5
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); } &&
18808          { ac_try='test -z "$ac_c_werror_flag"
18809                          || test ! -s conftest.err'
18810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811   (eval $ac_try) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; } &&
18815          { ac_try='test -s conftest.$ac_objext'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   ac_header_compiler=yes
18822 else
18823   echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ac_header_compiler=no
18827 fi
18828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18830 echo "${ECHO_T}$ac_header_compiler" >&6
18831
18832 # Is the header present?
18833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841 #include <$ac_header>
18842 _ACEOF
18843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } >/dev/null; then
18851   if test -s conftest.err; then
18852     ac_cpp_err=$ac_c_preproc_warn_flag
18853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18854   else
18855     ac_cpp_err=
18856   fi
18857 else
18858   ac_cpp_err=yes
18859 fi
18860 if test -z "$ac_cpp_err"; then
18861   ac_header_preproc=yes
18862 else
18863   echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866   ac_header_preproc=no
18867 fi
18868 rm -f conftest.err conftest.$ac_ext
18869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18870 echo "${ECHO_T}$ac_header_preproc" >&6
18871
18872 # So?  What about this header?
18873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18874   yes:no: )
18875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18879     ac_header_preproc=yes
18880     ;;
18881   no:yes:* )
18882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18894     (
18895       cat <<\_ASBOX
18896 ## ------------------------------------------ ##
18897 ## Report this to the AC_PACKAGE_NAME lists.  ##
18898 ## ------------------------------------------ ##
18899 _ASBOX
18900     ) |
18901       sed "s/^/$as_me: WARNING:     /" >&2
18902     ;;
18903 esac
18904 echo "$as_me:$LINENO: checking for $ac_header" >&5
18905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18907   echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18909   eval "$as_ac_Header=\$ac_header_preproc"
18910 fi
18911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18913
18914 fi
18915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18916   cat >>confdefs.h <<_ACEOF
18917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18918 _ACEOF
18919
18920 fi
18921
18922 done
18923
18924 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18926 if test "${ac_cv_header_stdc+set}" = set; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 #include <stdlib.h>
18936 #include <stdarg.h>
18937 #include <string.h>
18938 #include <float.h>
18939
18940 int
18941 main ()
18942 {
18943
18944   ;
18945   return 0;
18946 }
18947 _ACEOF
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950   (eval $ac_compile) 2>conftest.er1
18951   ac_status=$?
18952   grep -v '^ *+' conftest.er1 >conftest.err
18953   rm -f conftest.er1
18954   cat conftest.err >&5
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } &&
18957          { ac_try='test -z "$ac_c_werror_flag"
18958                          || test ! -s conftest.err'
18959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960   (eval $ac_try) 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); }; } &&
18964          { ac_try='test -s conftest.$ac_objext'
18965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966   (eval $ac_try) 2>&5
18967   ac_status=$?
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); }; }; then
18970   ac_cv_header_stdc=yes
18971 else
18972   echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975 ac_cv_header_stdc=no
18976 fi
18977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18978
18979 if test $ac_cv_header_stdc = yes; then
18980   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18981   cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987 #include <string.h>
18988
18989 _ACEOF
18990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18991   $EGREP "memchr" >/dev/null 2>&1; then
18992   :
18993 else
18994   ac_cv_header_stdc=no
18995 fi
18996 rm -f conftest*
18997
18998 fi
18999
19000 if test $ac_cv_header_stdc = yes; then
19001   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19002   cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h.  */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h.  */
19008 #include <stdlib.h>
19009
19010 _ACEOF
19011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19012   $EGREP "free" >/dev/null 2>&1; then
19013   :
19014 else
19015   ac_cv_header_stdc=no
19016 fi
19017 rm -f conftest*
19018
19019 fi
19020
19021 if test $ac_cv_header_stdc = yes; then
19022   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19023   if test "$cross_compiling" = yes; then
19024   :
19025 else
19026   cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h.  */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h.  */
19032 #include <ctype.h>
19033 #if ((' ' & 0x0FF) == 0x020)
19034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19036 #else
19037 # define ISLOWER(c) \
19038                    (('a' <= (c) && (c) <= 'i') \
19039                      || ('j' <= (c) && (c) <= 'r') \
19040                      || ('s' <= (c) && (c) <= 'z'))
19041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19042 #endif
19043
19044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19045 int
19046 main ()
19047 {
19048   int i;
19049   for (i = 0; i < 256; i++)
19050     if (XOR (islower (i), ISLOWER (i))
19051         || toupper (i) != TOUPPER (i))
19052       exit(2);
19053   exit (0);
19054 }
19055 _ACEOF
19056 rm -f conftest$ac_exeext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058   (eval $ac_link) 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063   (eval $ac_try) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; }; then
19067   :
19068 else
19069   echo "$as_me: program exited with status $ac_status" >&5
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 ( exit $ac_status )
19074 ac_cv_header_stdc=no
19075 fi
19076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19077 fi
19078 fi
19079 fi
19080 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19081 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19082 if test $ac_cv_header_stdc = yes; then
19083
19084 cat >>confdefs.h <<\_ACEOF
19085 #define STDC_HEADERS 1
19086 _ACEOF
19087
19088 fi
19089
19090 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19091 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19092 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h.  */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h.  */
19101 #include <sys/types.h>
19102 int
19103 main ()
19104 {
19105 return makedev(0, 0);
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112   (eval $ac_link) 2>conftest.er1
19113   ac_status=$?
19114   grep -v '^ *+' conftest.er1 >conftest.err
19115   rm -f conftest.er1
19116   cat conftest.err >&5
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } &&
19119          { ac_try='test -z "$ac_c_werror_flag"
19120                          || test ! -s conftest.err'
19121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122   (eval $ac_try) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; } &&
19126          { ac_try='test -s conftest$ac_exeext'
19127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128   (eval $ac_try) 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; }; then
19132   ac_cv_header_sys_types_h_makedev=yes
19133 else
19134   echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 ac_cv_header_sys_types_h_makedev=no
19138 fi
19139 rm -f conftest.err conftest.$ac_objext \
19140       conftest$ac_exeext conftest.$ac_ext
19141
19142 fi
19143 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19144 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19145
19146 if test $ac_cv_header_sys_types_h_makedev = no; then
19147 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19148   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19151   echo $ECHO_N "(cached) $ECHO_C" >&6
19152 fi
19153 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19155 else
19156   # Is the header compilable?
19157 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19158 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 $ac_includes_default
19166 #include <sys/mkdev.h>
19167 _ACEOF
19168 rm -f conftest.$ac_objext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170   (eval $ac_compile) 2>conftest.er1
19171   ac_status=$?
19172   grep -v '^ *+' conftest.er1 >conftest.err
19173   rm -f conftest.er1
19174   cat conftest.err >&5
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); } &&
19177          { ac_try='test -z "$ac_c_werror_flag"
19178                          || test ! -s conftest.err'
19179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180   (eval $ac_try) 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; } &&
19184          { ac_try='test -s conftest.$ac_objext'
19185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186   (eval $ac_try) 2>&5
19187   ac_status=$?
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); }; }; then
19190   ac_header_compiler=yes
19191 else
19192   echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195 ac_header_compiler=no
19196 fi
19197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19199 echo "${ECHO_T}$ac_header_compiler" >&6
19200
19201 # Is the header present?
19202 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19203 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 #include <sys/mkdev.h>
19211 _ACEOF
19212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } >/dev/null; then
19220   if test -s conftest.err; then
19221     ac_cpp_err=$ac_c_preproc_warn_flag
19222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19223   else
19224     ac_cpp_err=
19225   fi
19226 else
19227   ac_cpp_err=yes
19228 fi
19229 if test -z "$ac_cpp_err"; then
19230   ac_header_preproc=yes
19231 else
19232   echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235   ac_header_preproc=no
19236 fi
19237 rm -f conftest.err conftest.$ac_ext
19238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19239 echo "${ECHO_T}$ac_header_preproc" >&6
19240
19241 # So?  What about this header?
19242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19243   yes:no: )
19244     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19245 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19246     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19247 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19248     ac_header_preproc=yes
19249     ;;
19250   no:yes:* )
19251     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19252 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19253     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19254 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19255     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19256 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19257     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19258 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19259     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19260 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19261     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19262 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19263     (
19264       cat <<\_ASBOX
19265 ## ------------------------------------------ ##
19266 ## Report this to the AC_PACKAGE_NAME lists.  ##
19267 ## ------------------------------------------ ##
19268 _ASBOX
19269     ) |
19270       sed "s/^/$as_me: WARNING:     /" >&2
19271     ;;
19272 esac
19273 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19274 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19275 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19276   echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19279 fi
19280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19281 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19282
19283 fi
19284 if test $ac_cv_header_sys_mkdev_h = yes; then
19285
19286 cat >>confdefs.h <<\_ACEOF
19287 #define MAJOR_IN_MKDEV 1
19288 _ACEOF
19289
19290 fi
19291
19292
19293
19294   if test $ac_cv_header_sys_mkdev_h = no; then
19295     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19296   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19297 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19298 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19299   echo $ECHO_N "(cached) $ECHO_C" >&6
19300 fi
19301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19302 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19303 else
19304   # Is the header compilable?
19305 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19306 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313 $ac_includes_default
19314 #include <sys/sysmacros.h>
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19318   (eval $ac_compile) 2>conftest.er1
19319   ac_status=$?
19320   grep -v '^ *+' conftest.er1 >conftest.err
19321   rm -f conftest.er1
19322   cat conftest.err >&5
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); } &&
19325          { ac_try='test -z "$ac_c_werror_flag"
19326                          || test ! -s conftest.err'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; } &&
19332          { ac_try='test -s conftest.$ac_objext'
19333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334   (eval $ac_try) 2>&5
19335   ac_status=$?
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; }; then
19338   ac_header_compiler=yes
19339 else
19340   echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19342
19343 ac_header_compiler=no
19344 fi
19345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19347 echo "${ECHO_T}$ac_header_compiler" >&6
19348
19349 # Is the header present?
19350 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19351 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358 #include <sys/sysmacros.h>
19359 _ACEOF
19360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } >/dev/null; then
19368   if test -s conftest.err; then
19369     ac_cpp_err=$ac_c_preproc_warn_flag
19370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19371   else
19372     ac_cpp_err=
19373   fi
19374 else
19375   ac_cpp_err=yes
19376 fi
19377 if test -z "$ac_cpp_err"; then
19378   ac_header_preproc=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383   ac_header_preproc=no
19384 fi
19385 rm -f conftest.err conftest.$ac_ext
19386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19387 echo "${ECHO_T}$ac_header_preproc" >&6
19388
19389 # So?  What about this header?
19390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19391   yes:no: )
19392     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19393 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19394     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19395 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19396     ac_header_preproc=yes
19397     ;;
19398   no:yes:* )
19399     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19400 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19401     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19402 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19403     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19404 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19405     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19406 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19407     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19408 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19409     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19410 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19411     (
19412       cat <<\_ASBOX
19413 ## ------------------------------------------ ##
19414 ## Report this to the AC_PACKAGE_NAME lists.  ##
19415 ## ------------------------------------------ ##
19416 _ASBOX
19417     ) |
19418       sed "s/^/$as_me: WARNING:     /" >&2
19419     ;;
19420 esac
19421 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19422 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19423 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19424   echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19427 fi
19428 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19429 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19430
19431 fi
19432 if test $ac_cv_header_sys_sysmacros_h = yes; then
19433
19434 cat >>confdefs.h <<\_ACEOF
19435 #define MAJOR_IN_SYSMACROS 1
19436 _ACEOF
19437
19438 fi
19439
19440
19441   fi
19442 fi
19443
19444
19445
19446
19447
19448
19449 ac_header_dirent=no
19450 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19451   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19452 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19453 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 #include <sys/types.h>
19464 #include <$ac_hdr>
19465
19466 int
19467 main ()
19468 {
19469 if ((DIR *) 0)
19470 return 0;
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477   (eval $ac_compile) 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } &&
19484          { ac_try='test -z "$ac_c_werror_flag"
19485                          || test ! -s conftest.err'
19486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487   (eval $ac_try) 2>&5
19488   ac_status=$?
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); }; } &&
19491          { ac_try='test -s conftest.$ac_objext'
19492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493   (eval $ac_try) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; }; then
19497   eval "$as_ac_Header=yes"
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502 eval "$as_ac_Header=no"
19503 fi
19504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19505 fi
19506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19509   cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19511 _ACEOF
19512
19513 ac_header_dirent=$ac_hdr; break
19514 fi
19515
19516 done
19517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19518 if test $ac_header_dirent = dirent.h; then
19519   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19521 if test "${ac_cv_search_opendir+set}" = set; then
19522   echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524   ac_func_search_save_LIBS=$LIBS
19525 ac_cv_search_opendir=no
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h.  */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h.  */
19532
19533 /* Override any gcc2 internal prototype to avoid an error.  */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538    builtin and then its argument prototype would still apply.  */
19539 char opendir ();
19540 int
19541 main ()
19542 {
19543 opendir ();
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550   (eval $ac_link) 2>conftest.er1
19551   ac_status=$?
19552   grep -v '^ *+' conftest.er1 >conftest.err
19553   rm -f conftest.er1
19554   cat conftest.err >&5
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); } &&
19557          { ac_try='test -z "$ac_c_werror_flag"
19558                          || test ! -s conftest.err'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; } &&
19564          { ac_try='test -s conftest$ac_exeext'
19565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566   (eval $ac_try) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; }; then
19570   ac_cv_search_opendir="none required"
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 fi
19576 rm -f conftest.err conftest.$ac_objext \
19577       conftest$ac_exeext conftest.$ac_ext
19578 if test "$ac_cv_search_opendir" = no; then
19579   for ac_lib in dir; do
19580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19581     cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587
19588 /* Override any gcc2 internal prototype to avoid an error.  */
19589 #ifdef __cplusplus
19590 extern "C"
19591 #endif
19592 /* We use char because int might match the return type of a gcc2
19593    builtin and then its argument prototype would still apply.  */
19594 char opendir ();
19595 int
19596 main ()
19597 {
19598 opendir ();
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605   (eval $ac_link) 2>conftest.er1
19606   ac_status=$?
19607   grep -v '^ *+' conftest.er1 >conftest.err
19608   rm -f conftest.er1
19609   cat conftest.err >&5
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } &&
19612          { ac_try='test -z "$ac_c_werror_flag"
19613                          || test ! -s conftest.err'
19614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615   (eval $ac_try) 2>&5
19616   ac_status=$?
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); }; } &&
19619          { ac_try='test -s conftest$ac_exeext'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_cv_search_opendir="-l$ac_lib"
19626 break
19627 else
19628   echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631 fi
19632 rm -f conftest.err conftest.$ac_objext \
19633       conftest$ac_exeext conftest.$ac_ext
19634   done
19635 fi
19636 LIBS=$ac_func_search_save_LIBS
19637 fi
19638 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19639 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19640 if test "$ac_cv_search_opendir" != no; then
19641   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19642
19643 fi
19644
19645 else
19646   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19647 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19648 if test "${ac_cv_search_opendir+set}" = set; then
19649   echo $ECHO_N "(cached) $ECHO_C" >&6
19650 else
19651   ac_func_search_save_LIBS=$LIBS
19652 ac_cv_search_opendir=no
19653 cat >conftest.$ac_ext <<_ACEOF
19654 /* confdefs.h.  */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h.  */
19659
19660 /* Override any gcc2 internal prototype to avoid an error.  */
19661 #ifdef __cplusplus
19662 extern "C"
19663 #endif
19664 /* We use char because int might match the return type of a gcc2
19665    builtin and then its argument prototype would still apply.  */
19666 char opendir ();
19667 int
19668 main ()
19669 {
19670 opendir ();
19671   ;
19672   return 0;
19673 }
19674 _ACEOF
19675 rm -f conftest.$ac_objext conftest$ac_exeext
19676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677   (eval $ac_link) 2>conftest.er1
19678   ac_status=$?
19679   grep -v '^ *+' conftest.er1 >conftest.err
19680   rm -f conftest.er1
19681   cat conftest.err >&5
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); } &&
19684          { ac_try='test -z "$ac_c_werror_flag"
19685                          || test ! -s conftest.err'
19686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687   (eval $ac_try) 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); }; } &&
19691          { ac_try='test -s conftest$ac_exeext'
19692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693   (eval $ac_try) 2>&5
19694   ac_status=$?
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); }; }; then
19697   ac_cv_search_opendir="none required"
19698 else
19699   echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19701
19702 fi
19703 rm -f conftest.err conftest.$ac_objext \
19704       conftest$ac_exeext conftest.$ac_ext
19705 if test "$ac_cv_search_opendir" = no; then
19706   for ac_lib in x; do
19707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19708     cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714
19715 /* Override any gcc2 internal prototype to avoid an error.  */
19716 #ifdef __cplusplus
19717 extern "C"
19718 #endif
19719 /* We use char because int might match the return type of a gcc2
19720    builtin and then its argument prototype would still apply.  */
19721 char opendir ();
19722 int
19723 main ()
19724 {
19725 opendir ();
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732   (eval $ac_link) 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -z "$ac_c_werror_flag"
19740                          || test ! -s conftest.err'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; } &&
19746          { ac_try='test -s conftest$ac_exeext'
19747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748   (eval $ac_try) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); }; }; then
19752   ac_cv_search_opendir="-l$ac_lib"
19753 break
19754 else
19755   echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758 fi
19759 rm -f conftest.err conftest.$ac_objext \
19760       conftest$ac_exeext conftest.$ac_ext
19761   done
19762 fi
19763 LIBS=$ac_func_search_save_LIBS
19764 fi
19765 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19766 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19767 if test "$ac_cv_search_opendir" != no; then
19768   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19769
19770 fi
19771
19772 fi
19773
19774 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19775 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19776 if test "${ac_cv_header_stat_broken+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 #include <sys/types.h>
19786 #include <sys/stat.h>
19787
19788 #if defined(S_ISBLK) && defined(S_IFDIR)
19789 # if S_ISBLK (S_IFDIR)
19790 You lose.
19791 # endif
19792 #endif
19793
19794 #if defined(S_ISBLK) && defined(S_IFCHR)
19795 # if S_ISBLK (S_IFCHR)
19796 You lose.
19797 # endif
19798 #endif
19799
19800 #if defined(S_ISLNK) && defined(S_IFREG)
19801 # if S_ISLNK (S_IFREG)
19802 You lose.
19803 # endif
19804 #endif
19805
19806 #if defined(S_ISSOCK) && defined(S_IFREG)
19807 # if S_ISSOCK (S_IFREG)
19808 You lose.
19809 # endif
19810 #endif
19811
19812 _ACEOF
19813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19814   $EGREP "You lose" >/dev/null 2>&1; then
19815   ac_cv_header_stat_broken=yes
19816 else
19817   ac_cv_header_stat_broken=no
19818 fi
19819 rm -f conftest*
19820
19821 fi
19822 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19823 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19824 if test $ac_cv_header_stat_broken = yes; then
19825
19826 cat >>confdefs.h <<\_ACEOF
19827 #define STAT_MACROS_BROKEN 1
19828 _ACEOF
19829
19830 fi
19831
19832 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19833 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19834 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 #include <sys/types.h>
19844 #include <sys/wait.h>
19845 #ifndef WEXITSTATUS
19846 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19847 #endif
19848 #ifndef WIFEXITED
19849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19850 #endif
19851
19852 int
19853 main ()
19854 {
19855   int s;
19856   wait (&s);
19857   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864   (eval $ac_compile) 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } &&
19871          { ac_try='test -z "$ac_c_werror_flag"
19872                          || test ! -s conftest.err'
19873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874   (eval $ac_try) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   ac_cv_header_sys_wait_h=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_cv_header_sys_wait_h=no
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 fi
19893 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19894 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19895 if test $ac_cv_header_sys_wait_h = yes; then
19896
19897 cat >>confdefs.h <<\_ACEOF
19898 #define HAVE_SYS_WAIT_H 1
19899 _ACEOF
19900
19901 fi
19902
19903 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19904 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19905 if test "${ac_cv_header_time+set}" = set; then
19906   echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908   cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #include <sys/types.h>
19915 #include <sys/time.h>
19916 #include <time.h>
19917
19918 int
19919 main ()
19920 {
19921 if ((struct tm *) 0)
19922 return 0;
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 rm -f conftest.$ac_objext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19929   (eval $ac_compile) 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } &&
19936          { ac_try='test -z "$ac_c_werror_flag"
19937                          || test ! -s conftest.err'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest.$ac_objext'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   ac_cv_header_time=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954 ac_cv_header_time=no
19955 fi
19956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19957 fi
19958 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19959 echo "${ECHO_T}$ac_cv_header_time" >&6
19960 if test $ac_cv_header_time = yes; then
19961
19962 cat >>confdefs.h <<\_ACEOF
19963 #define TIME_WITH_SYS_TIME 1
19964 _ACEOF
19965
19966 fi
19967
19968
19969 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19970 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
19971 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974   cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 $ac_includes_default
19981 int
19982 main ()
19983 {
19984 static struct stat ac_aggr;
19985 if (ac_aggr.st_blksize)
19986 return 0;
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993   (eval $ac_compile) 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -z "$ac_c_werror_flag"
20001                          || test ! -s conftest.err'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; } &&
20007          { ac_try='test -s conftest.$ac_objext'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   ac_cv_member_struct_stat_st_blksize=yes
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024 $ac_includes_default
20025 int
20026 main ()
20027 {
20028 static struct stat ac_aggr;
20029 if (sizeof ac_aggr.st_blksize)
20030 return 0;
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037   (eval $ac_compile) 2>conftest.er1
20038   ac_status=$?
20039   grep -v '^ *+' conftest.er1 >conftest.err
20040   rm -f conftest.er1
20041   cat conftest.err >&5
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); } &&
20044          { ac_try='test -z "$ac_c_werror_flag"
20045                          || test ! -s conftest.err'
20046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047   (eval $ac_try) 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; } &&
20051          { ac_try='test -s conftest.$ac_objext'
20052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053   (eval $ac_try) 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; }; then
20057   ac_cv_member_struct_stat_st_blksize=yes
20058 else
20059   echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_cv_member_struct_stat_st_blksize=no
20063 fi
20064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20065 fi
20066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20067 fi
20068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20069 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20070 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20071
20072 cat >>confdefs.h <<_ACEOF
20073 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20074 _ACEOF
20075
20076
20077 cat >>confdefs.h <<\_ACEOF
20078 #define HAVE_ST_BLKSIZE 1
20079 _ACEOF
20080
20081 fi
20082
20083
20084 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20085 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20086 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20087   echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089   cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h.  */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h.  */
20095 $ac_includes_default
20096 int
20097 main ()
20098 {
20099 static struct stat ac_aggr;
20100 if (ac_aggr.st_blocks)
20101 return 0;
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108   (eval $ac_compile) 2>conftest.er1
20109   ac_status=$?
20110   grep -v '^ *+' conftest.er1 >conftest.err
20111   rm -f conftest.er1
20112   cat conftest.err >&5
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } &&
20115          { ac_try='test -z "$ac_c_werror_flag"
20116                          || test ! -s conftest.err'
20117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118   (eval $ac_try) 2>&5
20119   ac_status=$?
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); }; } &&
20122          { ac_try='test -s conftest.$ac_objext'
20123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124   (eval $ac_try) 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; }; then
20128   ac_cv_member_struct_stat_st_blocks=yes
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h.  */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h.  */
20139 $ac_includes_default
20140 int
20141 main ()
20142 {
20143 static struct stat ac_aggr;
20144 if (sizeof ac_aggr.st_blocks)
20145 return 0;
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152   (eval $ac_compile) 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } &&
20159          { ac_try='test -z "$ac_c_werror_flag"
20160                          || test ! -s conftest.err'
20161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162   (eval $ac_try) 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; } &&
20166          { ac_try='test -s conftest.$ac_objext'
20167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168   (eval $ac_try) 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); }; }; then
20172   ac_cv_member_struct_stat_st_blocks=yes
20173 else
20174   echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 ac_cv_member_struct_stat_st_blocks=no
20178 fi
20179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20180 fi
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 fi
20183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20184 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20185 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20186
20187 cat >>confdefs.h <<_ACEOF
20188 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20189 _ACEOF
20190
20191
20192 cat >>confdefs.h <<\_ACEOF
20193 #define HAVE_ST_BLOCKS 1
20194 _ACEOF
20195
20196 else
20197   case $LIBOBJS in
20198     "fileblocks.$ac_objext"   | \
20199   *" fileblocks.$ac_objext"   | \
20200     "fileblocks.$ac_objext "* | \
20201   *" fileblocks.$ac_objext "* ) ;;
20202   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20203 esac
20204
20205 fi
20206
20207
20208 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20209 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20210 if test "${ac_cv_struct_tm+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213   cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219 #include <sys/types.h>
20220 #include <time.h>
20221
20222 int
20223 main ()
20224 {
20225 struct tm *tp; tp->tm_sec;
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232   (eval $ac_compile) 2>conftest.er1
20233   ac_status=$?
20234   grep -v '^ *+' conftest.er1 >conftest.err
20235   rm -f conftest.er1
20236   cat conftest.err >&5
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); } &&
20239          { ac_try='test -z "$ac_c_werror_flag"
20240                          || test ! -s conftest.err'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; } &&
20246          { ac_try='test -s conftest.$ac_objext'
20247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248   (eval $ac_try) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; }; then
20252   ac_cv_struct_tm=time.h
20253 else
20254   echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 ac_cv_struct_tm=sys/time.h
20258 fi
20259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20260 fi
20261 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20262 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20263 if test $ac_cv_struct_tm = sys/time.h; then
20264
20265 cat >>confdefs.h <<\_ACEOF
20266 #define TM_IN_SYS_TIME 1
20267 _ACEOF
20268
20269 fi
20270
20271 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20272 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20273 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 #include <sys/types.h>
20283 #include <$ac_cv_struct_tm>
20284
20285
20286 int
20287 main ()
20288 {
20289 static struct tm ac_aggr;
20290 if (ac_aggr.tm_zone)
20291 return 0;
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest.$ac_objext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298   (eval $ac_compile) 2>conftest.er1
20299   ac_status=$?
20300   grep -v '^ *+' conftest.er1 >conftest.err
20301   rm -f conftest.er1
20302   cat conftest.err >&5
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); } &&
20305          { ac_try='test -z "$ac_c_werror_flag"
20306                          || test ! -s conftest.err'
20307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308   (eval $ac_try) 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); }; } &&
20312          { ac_try='test -s conftest.$ac_objext'
20313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314   (eval $ac_try) 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; }; then
20318   ac_cv_member_struct_tm_tm_zone=yes
20319 else
20320   echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 #include <sys/types.h>
20330 #include <$ac_cv_struct_tm>
20331
20332
20333 int
20334 main ()
20335 {
20336 static struct tm ac_aggr;
20337 if (sizeof ac_aggr.tm_zone)
20338 return 0;
20339   ;
20340   return 0;
20341 }
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20345   (eval $ac_compile) 2>conftest.er1
20346   ac_status=$?
20347   grep -v '^ *+' conftest.er1 >conftest.err
20348   rm -f conftest.er1
20349   cat conftest.err >&5
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); } &&
20352          { ac_try='test -z "$ac_c_werror_flag"
20353                          || test ! -s conftest.err'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; } &&
20359          { ac_try='test -s conftest.$ac_objext'
20360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361   (eval $ac_try) 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; }; then
20365   ac_cv_member_struct_tm_tm_zone=yes
20366 else
20367   echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20369
20370 ac_cv_member_struct_tm_tm_zone=no
20371 fi
20372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20373 fi
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 fi
20376 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20377 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20378 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20379
20380 cat >>confdefs.h <<_ACEOF
20381 #define HAVE_STRUCT_TM_TM_ZONE 1
20382 _ACEOF
20383
20384
20385 fi
20386
20387 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20388
20389 cat >>confdefs.h <<\_ACEOF
20390 #define HAVE_TM_ZONE 1
20391 _ACEOF
20392
20393 else
20394   echo "$as_me:$LINENO: checking for tzname" >&5
20395 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20396 if test "${ac_cv_var_tzname+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399   cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 #include <time.h>
20406 #ifndef tzname /* For SGI.  */
20407 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20408 #endif
20409
20410 int
20411 main ()
20412 {
20413 atoi(*tzname);
20414   ;
20415   return 0;
20416 }
20417 _ACEOF
20418 rm -f conftest.$ac_objext conftest$ac_exeext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20420   (eval $ac_link) 2>conftest.er1
20421   ac_status=$?
20422   grep -v '^ *+' conftest.er1 >conftest.err
20423   rm -f conftest.er1
20424   cat conftest.err >&5
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); } &&
20427          { ac_try='test -z "$ac_c_werror_flag"
20428                          || test ! -s conftest.err'
20429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430   (eval $ac_try) 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); }; } &&
20434          { ac_try='test -s conftest$ac_exeext'
20435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436   (eval $ac_try) 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; }; then
20440   ac_cv_var_tzname=yes
20441 else
20442   echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20444
20445 ac_cv_var_tzname=no
20446 fi
20447 rm -f conftest.err conftest.$ac_objext \
20448       conftest$ac_exeext conftest.$ac_ext
20449 fi
20450 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20451 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20452   if test $ac_cv_var_tzname = yes; then
20453
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_TZNAME 1
20456 _ACEOF
20457
20458   fi
20459 fi
20460
20461
20462 echo "$as_me:$LINENO: checking for utime.h" >&5
20463 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20464 if test "${ba_cv_header_utime_h+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473
20474 #include <sys/types.h>
20475 #include <utime.h>
20476 int
20477 main ()
20478 {
20479 struct utimbuf foo
20480   ;
20481   return 0;
20482 }
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486   (eval $ac_compile) 2>conftest.er1
20487   ac_status=$?
20488   grep -v '^ *+' conftest.er1 >conftest.err
20489   rm -f conftest.er1
20490   cat conftest.err >&5
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); } &&
20493          { ac_try='test -z "$ac_c_werror_flag"
20494                          || test ! -s conftest.err'
20495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496   (eval $ac_try) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; } &&
20500          { ac_try='test -s conftest.$ac_objext'
20501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502   (eval $ac_try) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; }; then
20506   ba_cv_header_utime_h=yes
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ba_cv_header_utime_h=no
20512 fi
20513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20514 fi
20515 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20516 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20517 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20518 #define HAVE_UTIME_H 1
20519 _ACEOF
20520
20521
20522 echo "$as_me:$LINENO: checking for socklen_t" >&5
20523 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20524 if test "${ba_cv_header_socklen_t+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h.  */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h.  */
20533
20534 #include <sys/types.h>
20535 #include <sys/socket.h>
20536 int
20537 main ()
20538 {
20539 socklen_t x
20540   ;
20541   return 0;
20542 }
20543 _ACEOF
20544 rm -f conftest.$ac_objext
20545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20546   (eval $ac_compile) 2>conftest.er1
20547   ac_status=$?
20548   grep -v '^ *+' conftest.er1 >conftest.err
20549   rm -f conftest.er1
20550   cat conftest.err >&5
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); } &&
20553          { ac_try='test -z "$ac_c_werror_flag"
20554                          || test ! -s conftest.err'
20555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556   (eval $ac_try) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); }; } &&
20560          { ac_try='test -s conftest.$ac_objext'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; }; then
20566   ba_cv_header_socklen_t=yes
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 ba_cv_header_socklen_t=no
20572 fi
20573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20574 fi
20575 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20576 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20577 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20578 #define HAVE_SOCKLEN_T 1
20579 _ACEOF
20580
20581
20582 echo "$as_me:$LINENO: checking for bigendian" >&5
20583 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20584 if test "${ba_cv_bigendian+set}" = set; then
20585   echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587   if test "$cross_compiling" = yes; then
20588   ba_cv_bigendian=no
20589 else
20590   cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h.  */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h.  */
20596 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20597 _ACEOF
20598 rm -f conftest$ac_exeext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20600   (eval $ac_link) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605   (eval $ac_try) 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); }; }; then
20609   ba_cv_bigendian=yes
20610 else
20611   echo "$as_me: program exited with status $ac_status" >&5
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615 ( exit $ac_status )
20616 ba_cv_bigendian=no
20617 fi
20618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20619 fi
20620 fi
20621 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20622 echo "${ECHO_T}$ba_cv_bigendian" >&6
20623 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20624 #define HAVE_BIGENDIAN 1
20625 _ACEOF
20626
20627
20628
20629 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20631 if test "${ac_cv_c_const+set}" = set; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634   cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640
20641 int
20642 main ()
20643 {
20644 /* FIXME: Include the comments suggested by Paul. */
20645 #ifndef __cplusplus
20646   /* Ultrix mips cc rejects this.  */
20647   typedef int charset[2];
20648   const charset x;
20649   /* SunOS 4.1.1 cc rejects this.  */
20650   char const *const *ccp;
20651   char **p;
20652   /* NEC SVR4.0.2 mips cc rejects this.  */
20653   struct point {int x, y;};
20654   static struct point const zero = {0,0};
20655   /* AIX XL C 1.02.0.0 rejects this.
20656      It does not let you subtract one const X* pointer from another in
20657      an arm of an if-expression whose if-part is not a constant
20658      expression */
20659   const char *g = "string";
20660   ccp = &g + (g ? g-g : 0);
20661   /* HPUX 7.0 cc rejects these. */
20662   ++ccp;
20663   p = (char**) ccp;
20664   ccp = (char const *const *) p;
20665   { /* SCO 3.2v4 cc rejects this.  */
20666     char *t;
20667     char const *s = 0 ? (char *) 0 : (char const *) 0;
20668
20669     *t++ = 0;
20670   }
20671   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20672     int x[] = {25, 17};
20673     const int *foo = &x[0];
20674     ++foo;
20675   }
20676   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20677     typedef const int *iptr;
20678     iptr p = 0;
20679     ++p;
20680   }
20681   { /* AIX XL C 1.02.0.0 rejects this saying
20682        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20683     struct s { int j; const int *ap[3]; };
20684     struct s *b; b->j = 5;
20685   }
20686   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20687     const int foo = 10;
20688   }
20689 #endif
20690
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20697   (eval $ac_compile) 2>conftest.er1
20698   ac_status=$?
20699   grep -v '^ *+' conftest.er1 >conftest.err
20700   rm -f conftest.er1
20701   cat conftest.err >&5
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } &&
20704          { ac_try='test -z "$ac_c_werror_flag"
20705                          || test ! -s conftest.err'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; } &&
20711          { ac_try='test -s conftest.$ac_objext'
20712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713   (eval $ac_try) 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; }; then
20717   ac_cv_c_const=yes
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 ac_cv_c_const=no
20723 fi
20724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20725 fi
20726 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20727 echo "${ECHO_T}$ac_cv_c_const" >&6
20728 if test $ac_cv_c_const = no; then
20729
20730 cat >>confdefs.h <<\_ACEOF
20731 #define const
20732 _ACEOF
20733
20734 fi
20735
20736
20737
20738 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20739 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20740 fstype=no
20741 # The order of these tests is important.
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 #include <sys/statvfs.h>
20749 #include <sys/fstyp.h>
20750 _ACEOF
20751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20753   ac_status=$?
20754   grep -v '^ *+' conftest.er1 >conftest.err
20755   rm -f conftest.er1
20756   cat conftest.err >&5
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); } >/dev/null; then
20759   if test -s conftest.err; then
20760     ac_cpp_err=$ac_c_preproc_warn_flag
20761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20762   else
20763     ac_cpp_err=
20764   fi
20765 else
20766   ac_cpp_err=yes
20767 fi
20768 if test -z "$ac_cpp_err"; then
20769   cat >>confdefs.h <<\_ACEOF
20770 #define FSTYPE_STATVFS 1
20771 _ACEOF
20772  fstype=SVR4
20773 else
20774   echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20776
20777
20778 fi
20779 rm -f conftest.err conftest.$ac_ext
20780 if test $fstype = no; then
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787 #include <sys/statfs.h>
20788 #include <sys/fstyp.h>
20789 _ACEOF
20790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20792   ac_status=$?
20793   grep -v '^ *+' conftest.er1 >conftest.err
20794   rm -f conftest.er1
20795   cat conftest.err >&5
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); } >/dev/null; then
20798   if test -s conftest.err; then
20799     ac_cpp_err=$ac_c_preproc_warn_flag
20800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20801   else
20802     ac_cpp_err=
20803   fi
20804 else
20805   ac_cpp_err=yes
20806 fi
20807 if test -z "$ac_cpp_err"; then
20808   cat >>confdefs.h <<\_ACEOF
20809 #define FSTYPE_USG_STATFS 1
20810 _ACEOF
20811  fstype=SVR3
20812 else
20813   echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816
20817 fi
20818 rm -f conftest.err conftest.$ac_ext
20819 fi
20820 if test $fstype = no; then
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827 #include <sys/statfs.h>
20828 #include <sys/vmount.h>
20829 _ACEOF
20830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20832   ac_status=$?
20833   grep -v '^ *+' conftest.er1 >conftest.err
20834   rm -f conftest.er1
20835   cat conftest.err >&5
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } >/dev/null; then
20838   if test -s conftest.err; then
20839     ac_cpp_err=$ac_c_preproc_warn_flag
20840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20841   else
20842     ac_cpp_err=
20843   fi
20844 else
20845   ac_cpp_err=yes
20846 fi
20847 if test -z "$ac_cpp_err"; then
20848   cat >>confdefs.h <<\_ACEOF
20849 #define FSTYPE_AIX_STATFS 1
20850 _ACEOF
20851  fstype=AIX
20852 else
20853   echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856
20857 fi
20858 rm -f conftest.err conftest.$ac_ext
20859 fi
20860 if test $fstype = no; then
20861 cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 #include <mntent.h>
20868 _ACEOF
20869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20871   ac_status=$?
20872   grep -v '^ *+' conftest.er1 >conftest.err
20873   rm -f conftest.er1
20874   cat conftest.err >&5
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } >/dev/null; then
20877   if test -s conftest.err; then
20878     ac_cpp_err=$ac_c_preproc_warn_flag
20879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20880   else
20881     ac_cpp_err=
20882   fi
20883 else
20884   ac_cpp_err=yes
20885 fi
20886 if test -z "$ac_cpp_err"; then
20887   cat >>confdefs.h <<\_ACEOF
20888 #define FSTYPE_MNTENT 1
20889 _ACEOF
20890  fstype=4.3BSD
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895
20896 fi
20897 rm -f conftest.err conftest.$ac_ext
20898 fi
20899 if test $fstype = no; then
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 #include <sys/mount.h>
20907
20908 _ACEOF
20909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20910   $EGREP "f_type;" >/dev/null 2>&1; then
20911   cat >>confdefs.h <<\_ACEOF
20912 #define FSTYPE_STATFS 1
20913 _ACEOF
20914  fstype=4.4BSD/OSF1
20915 fi
20916 rm -f conftest*
20917
20918 fi
20919 if test $fstype = no; then
20920 cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 #include <sys/mount.h>
20927 #include <sys/fs_types.h>
20928 _ACEOF
20929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } >/dev/null; then
20937   if test -s conftest.err; then
20938     ac_cpp_err=$ac_c_preproc_warn_flag
20939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20940   else
20941     ac_cpp_err=
20942   fi
20943 else
20944   ac_cpp_err=yes
20945 fi
20946 if test -z "$ac_cpp_err"; then
20947   cat >>confdefs.h <<\_ACEOF
20948 #define FSTYPE_GETMNT 1
20949 _ACEOF
20950  fstype=Ultrix
20951 else
20952   echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955
20956 fi
20957 rm -f conftest.err conftest.$ac_ext
20958 fi
20959 echo "$as_me:$LINENO: result: $fstype" >&5
20960 echo "${ECHO_T}$fstype" >&6
20961
20962 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
20963   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
20964 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
20965 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 fi
20968 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
20969 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
20970 else
20971   # Is the header compilable?
20972 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
20973 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h.  */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h.  */
20980 $ac_includes_default
20981 #include <sys/statvfs.h>
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20985   (eval $ac_compile) 2>conftest.er1
20986   ac_status=$?
20987   grep -v '^ *+' conftest.er1 >conftest.err
20988   rm -f conftest.er1
20989   cat conftest.err >&5
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); } &&
20992          { ac_try='test -z "$ac_c_werror_flag"
20993                          || test ! -s conftest.err'
20994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995   (eval $ac_try) 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; } &&
20999          { ac_try='test -s conftest.$ac_objext'
21000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001   (eval $ac_try) 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); }; }; then
21005   ac_header_compiler=yes
21006 else
21007   echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ac_header_compiler=no
21011 fi
21012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21014 echo "${ECHO_T}$ac_header_compiler" >&6
21015
21016 # Is the header present?
21017 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21018 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21019 cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025 #include <sys/statvfs.h>
21026 _ACEOF
21027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21029   ac_status=$?
21030   grep -v '^ *+' conftest.er1 >conftest.err
21031   rm -f conftest.er1
21032   cat conftest.err >&5
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); } >/dev/null; then
21035   if test -s conftest.err; then
21036     ac_cpp_err=$ac_c_preproc_warn_flag
21037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21038   else
21039     ac_cpp_err=
21040   fi
21041 else
21042   ac_cpp_err=yes
21043 fi
21044 if test -z "$ac_cpp_err"; then
21045   ac_header_preproc=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050   ac_header_preproc=no
21051 fi
21052 rm -f conftest.err conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21054 echo "${ECHO_T}$ac_header_preproc" >&6
21055
21056 # So?  What about this header?
21057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21058   yes:no: )
21059     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21060 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21061     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21062 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21063     ac_header_preproc=yes
21064     ;;
21065   no:yes:* )
21066     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21067 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21068     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21069 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21070     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21071 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21072     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21073 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21074     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21075 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21076     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21077 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21078     (
21079       cat <<\_ASBOX
21080 ## ------------------------------------------ ##
21081 ## Report this to the AC_PACKAGE_NAME lists.  ##
21082 ## ------------------------------------------ ##
21083 _ASBOX
21084     ) |
21085       sed "s/^/$as_me: WARNING:     /" >&2
21086     ;;
21087 esac
21088 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21089 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21090 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21091   echo $ECHO_N "(cached) $ECHO_C" >&6
21092 else
21093   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21094 fi
21095 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21096 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21097
21098 fi
21099 if test $ac_cv_header_sys_statvfs_h = yes; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_SYS_STATVFS_H 1
21103 _ACEOF
21104
21105 fi
21106
21107
21108
21109 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21110 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21111 if test "${ac_cv_type_signal+set}" = set; then
21112   echo $ECHO_N "(cached) $ECHO_C" >&6
21113 else
21114   cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 #include <sys/types.h>
21121 #include <signal.h>
21122 #ifdef signal
21123 # undef signal
21124 #endif
21125 #ifdef __cplusplus
21126 extern "C" void (*signal (int, void (*)(int)))(int);
21127 #else
21128 void (*signal ()) ();
21129 #endif
21130
21131 int
21132 main ()
21133 {
21134 int i;
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141   (eval $ac_compile) 2>conftest.er1
21142   ac_status=$?
21143   grep -v '^ *+' conftest.er1 >conftest.err
21144   rm -f conftest.er1
21145   cat conftest.err >&5
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } &&
21148          { ac_try='test -z "$ac_c_werror_flag"
21149                          || test ! -s conftest.err'
21150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151   (eval $ac_try) 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); }; } &&
21155          { ac_try='test -s conftest.$ac_objext'
21156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157   (eval $ac_try) 2>&5
21158   ac_status=$?
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); }; }; then
21161   ac_cv_type_signal=void
21162 else
21163   echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166 ac_cv_type_signal=int
21167 fi
21168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21169 fi
21170 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21171 echo "${ECHO_T}$ac_cv_type_signal" >&6
21172
21173 cat >>confdefs.h <<_ACEOF
21174 #define RETSIGTYPE $ac_cv_type_signal
21175 _ACEOF
21176
21177
21178
21179 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21180 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21181 if test "${bash_cv_signal_vintage+set}" = set; then
21182   echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184
21185   cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h.  */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h.  */
21191 #include <signal.h>
21192 int
21193 main ()
21194 {
21195
21196     sigset_t ss;
21197     struct sigaction sa;
21198     sigemptyset(&ss); sigsuspend(&ss);
21199     sigaction(SIGINT, &sa, (struct sigaction *) 0);
21200     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21201
21202   ;
21203   return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext conftest$ac_exeext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21208   (eval $ac_link) 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } &&
21215          { ac_try='test -z "$ac_c_werror_flag"
21216                          || test ! -s conftest.err'
21217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218   (eval $ac_try) 2>&5
21219   ac_status=$?
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); }; } &&
21222          { ac_try='test -s conftest$ac_exeext'
21223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224   (eval $ac_try) 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); }; }; then
21228   bash_cv_signal_vintage=posix
21229 else
21230   echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21232
21233
21234     cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <signal.h>
21241 int
21242 main ()
21243 {
21244
21245         int mask = sigmask(SIGINT);
21246         sigsetmask(mask); sigblock(mask); sigpause(mask);
21247
21248   ;
21249   return 0;
21250 }
21251 _ACEOF
21252 rm -f conftest.$ac_objext conftest$ac_exeext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21254   (eval $ac_link) 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } &&
21261          { ac_try='test -z "$ac_c_werror_flag"
21262                          || test ! -s conftest.err'
21263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264   (eval $ac_try) 2>&5
21265   ac_status=$?
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); }; } &&
21268          { ac_try='test -s conftest$ac_exeext'
21269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270   (eval $ac_try) 2>&5
21271   ac_status=$?
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); }; }; then
21274   bash_cv_signal_vintage=4.2bsd
21275 else
21276   echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21278
21279
21280       cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h.  */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h.  */
21286
21287         #include <signal.h>
21288         RETSIGTYPE foo() { }
21289 int
21290 main ()
21291 {
21292
21293                 int mask = sigmask(SIGINT);
21294                 sigset(SIGINT, foo); sigrelse(SIGINT);
21295                 sighold(SIGINT); sigpause(SIGINT);
21296
21297   ;
21298   return 0;
21299 }
21300 _ACEOF
21301 rm -f conftest.$ac_objext conftest$ac_exeext
21302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21303   (eval $ac_link) 2>conftest.er1
21304   ac_status=$?
21305   grep -v '^ *+' conftest.er1 >conftest.err
21306   rm -f conftest.er1
21307   cat conftest.err >&5
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); } &&
21310          { ac_try='test -z "$ac_c_werror_flag"
21311                          || test ! -s conftest.err'
21312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313   (eval $ac_try) 2>&5
21314   ac_status=$?
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); }; } &&
21317          { ac_try='test -s conftest$ac_exeext'
21318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319   (eval $ac_try) 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); }; }; then
21323   bash_cv_signal_vintage=svr3
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 bash_cv_signal_vintage=v7
21329
21330 fi
21331 rm -f conftest.err conftest.$ac_objext \
21332       conftest$ac_exeext conftest.$ac_ext
21333
21334 fi
21335 rm -f conftest.err conftest.$ac_objext \
21336       conftest$ac_exeext conftest.$ac_ext
21337
21338 fi
21339 rm -f conftest.err conftest.$ac_objext \
21340       conftest$ac_exeext conftest.$ac_ext
21341
21342 fi
21343
21344 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21345 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21346 if test "$bash_cv_signal_vintage" = posix; then
21347 cat >>confdefs.h <<\_ACEOF
21348 #define HAVE_POSIX_SIGNALS 1
21349 _ACEOF
21350
21351 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21352 cat >>confdefs.h <<\_ACEOF
21353 #define HAVE_BSD_SIGNALS 1
21354 _ACEOF
21355
21356 elif test "$bash_cv_signal_vintage" = svr3; then
21357 cat >>confdefs.h <<\_ACEOF
21358 #define HAVE_USG_SIGHOLD 1
21359 _ACEOF
21360
21361 fi
21362
21363 echo "$as_me:$LINENO: checking for mode_t" >&5
21364 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21365 if test "${ac_cv_type_mode_t+set}" = set; then
21366   echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21368   cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374 $ac_includes_default
21375 int
21376 main ()
21377 {
21378 if ((mode_t *) 0)
21379   return 0;
21380 if (sizeof (mode_t))
21381   return 0;
21382   ;
21383   return 0;
21384 }
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21388   (eval $ac_compile) 2>conftest.er1
21389   ac_status=$?
21390   grep -v '^ *+' conftest.er1 >conftest.err
21391   rm -f conftest.er1
21392   cat conftest.err >&5
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } &&
21395          { ac_try='test -z "$ac_c_werror_flag"
21396                          || test ! -s conftest.err'
21397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398   (eval $ac_try) 2>&5
21399   ac_status=$?
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); }; } &&
21402          { ac_try='test -s conftest.$ac_objext'
21403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404   (eval $ac_try) 2>&5
21405   ac_status=$?
21406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407   (exit $ac_status); }; }; then
21408   ac_cv_type_mode_t=yes
21409 else
21410   echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21412
21413 ac_cv_type_mode_t=no
21414 fi
21415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21416 fi
21417 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21418 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21419 if test $ac_cv_type_mode_t = yes; then
21420   :
21421 else
21422
21423 cat >>confdefs.h <<_ACEOF
21424 #define mode_t int
21425 _ACEOF
21426
21427 fi
21428
21429 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21430 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21431 if test "${ac_cv_type_uid_t+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434   cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440 #include <sys/types.h>
21441
21442 _ACEOF
21443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21444   $EGREP "uid_t" >/dev/null 2>&1; then
21445   ac_cv_type_uid_t=yes
21446 else
21447   ac_cv_type_uid_t=no
21448 fi
21449 rm -f conftest*
21450
21451 fi
21452 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21453 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21454 if test $ac_cv_type_uid_t = no; then
21455
21456 cat >>confdefs.h <<\_ACEOF
21457 #define uid_t int
21458 _ACEOF
21459
21460
21461 cat >>confdefs.h <<\_ACEOF
21462 #define gid_t int
21463 _ACEOF
21464
21465 fi
21466
21467 echo "$as_me:$LINENO: checking for size_t" >&5
21468 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21469 if test "${ac_cv_type_size_t+set}" = set; then
21470   echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472   cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478 $ac_includes_default
21479 int
21480 main ()
21481 {
21482 if ((size_t *) 0)
21483   return 0;
21484 if (sizeof (size_t))
21485   return 0;
21486   ;
21487   return 0;
21488 }
21489 _ACEOF
21490 rm -f conftest.$ac_objext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21492   (eval $ac_compile) 2>conftest.er1
21493   ac_status=$?
21494   grep -v '^ *+' conftest.er1 >conftest.err
21495   rm -f conftest.er1
21496   cat conftest.err >&5
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); } &&
21499          { ac_try='test -z "$ac_c_werror_flag"
21500                          || test ! -s conftest.err'
21501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502   (eval $ac_try) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); }; } &&
21506          { ac_try='test -s conftest.$ac_objext'
21507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508   (eval $ac_try) 2>&5
21509   ac_status=$?
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); }; }; then
21512   ac_cv_type_size_t=yes
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517 ac_cv_type_size_t=no
21518 fi
21519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21520 fi
21521 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21522 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21523 if test $ac_cv_type_size_t = yes; then
21524   :
21525 else
21526
21527 cat >>confdefs.h <<_ACEOF
21528 #define size_t unsigned
21529 _ACEOF
21530
21531 fi
21532
21533 echo "$as_me:$LINENO: checking for pid_t" >&5
21534 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21535 if test "${ac_cv_type_pid_t+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 $ac_includes_default
21545 int
21546 main ()
21547 {
21548 if ((pid_t *) 0)
21549   return 0;
21550 if (sizeof (pid_t))
21551   return 0;
21552   ;
21553   return 0;
21554 }
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21558   (eval $ac_compile) 2>conftest.er1
21559   ac_status=$?
21560   grep -v '^ *+' conftest.er1 >conftest.err
21561   rm -f conftest.er1
21562   cat conftest.err >&5
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } &&
21565          { ac_try='test -z "$ac_c_werror_flag"
21566                          || test ! -s conftest.err'
21567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568   (eval $ac_try) 2>&5
21569   ac_status=$?
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); }; } &&
21572          { ac_try='test -s conftest.$ac_objext'
21573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574   (eval $ac_try) 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); }; }; then
21578   ac_cv_type_pid_t=yes
21579 else
21580   echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583 ac_cv_type_pid_t=no
21584 fi
21585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21586 fi
21587 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21588 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21589 if test $ac_cv_type_pid_t = yes; then
21590   :
21591 else
21592
21593 cat >>confdefs.h <<_ACEOF
21594 #define pid_t int
21595 _ACEOF
21596
21597 fi
21598
21599 echo "$as_me:$LINENO: checking for off_t" >&5
21600 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21601 if test "${ac_cv_type_off_t+set}" = set; then
21602   echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604   cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h.  */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h.  */
21610 $ac_includes_default
21611 int
21612 main ()
21613 {
21614 if ((off_t *) 0)
21615   return 0;
21616 if (sizeof (off_t))
21617   return 0;
21618   ;
21619   return 0;
21620 }
21621 _ACEOF
21622 rm -f conftest.$ac_objext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21624   (eval $ac_compile) 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } &&
21631          { ac_try='test -z "$ac_c_werror_flag"
21632                          || test ! -s conftest.err'
21633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634   (eval $ac_try) 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); }; } &&
21638          { ac_try='test -s conftest.$ac_objext'
21639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640   (eval $ac_try) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); }; }; then
21644   ac_cv_type_off_t=yes
21645 else
21646   echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 ac_cv_type_off_t=no
21650 fi
21651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21652 fi
21653 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21654 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21655 if test $ac_cv_type_off_t = yes; then
21656   :
21657 else
21658
21659 cat >>confdefs.h <<_ACEOF
21660 #define off_t long
21661 _ACEOF
21662
21663 fi
21664
21665 echo "$as_me:$LINENO: checking for ino_t" >&5
21666 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21667 if test "${ac_cv_type_ino_t+set}" = set; then
21668   echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670   cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 $ac_includes_default
21677 int
21678 main ()
21679 {
21680 if ((ino_t *) 0)
21681   return 0;
21682 if (sizeof (ino_t))
21683   return 0;
21684   ;
21685   return 0;
21686 }
21687 _ACEOF
21688 rm -f conftest.$ac_objext
21689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21690   (eval $ac_compile) 2>conftest.er1
21691   ac_status=$?
21692   grep -v '^ *+' conftest.er1 >conftest.err
21693   rm -f conftest.er1
21694   cat conftest.err >&5
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } &&
21697          { ac_try='test -z "$ac_c_werror_flag"
21698                          || test ! -s conftest.err'
21699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700   (eval $ac_try) 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); }; } &&
21704          { ac_try='test -s conftest.$ac_objext'
21705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706   (eval $ac_try) 2>&5
21707   ac_status=$?
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); }; }; then
21710   ac_cv_type_ino_t=yes
21711 else
21712   echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715 ac_cv_type_ino_t=no
21716 fi
21717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21718 fi
21719 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21720 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21721 if test $ac_cv_type_ino_t = yes; then
21722   :
21723 else
21724
21725 cat >>confdefs.h <<_ACEOF
21726 #define ino_t unsigned long
21727 _ACEOF
21728
21729 fi
21730
21731 echo "$as_me:$LINENO: checking for dev_t" >&5
21732 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21733 if test "${ac_cv_type_dev_t+set}" = set; then
21734   echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736   cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742 $ac_includes_default
21743 int
21744 main ()
21745 {
21746 if ((dev_t *) 0)
21747   return 0;
21748 if (sizeof (dev_t))
21749   return 0;
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21756   (eval $ac_compile) 2>conftest.er1
21757   ac_status=$?
21758   grep -v '^ *+' conftest.er1 >conftest.err
21759   rm -f conftest.er1
21760   cat conftest.err >&5
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); } &&
21763          { ac_try='test -z "$ac_c_werror_flag"
21764                          || test ! -s conftest.err'
21765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766   (eval $ac_try) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; } &&
21770          { ac_try='test -s conftest.$ac_objext'
21771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772   (eval $ac_try) 2>&5
21773   ac_status=$?
21774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775   (exit $ac_status); }; }; then
21776   ac_cv_type_dev_t=yes
21777 else
21778   echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21780
21781 ac_cv_type_dev_t=no
21782 fi
21783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21784 fi
21785 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21786 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21787 if test $ac_cv_type_dev_t = yes; then
21788   :
21789 else
21790
21791 cat >>confdefs.h <<_ACEOF
21792 #define dev_t unsigned long
21793 _ACEOF
21794
21795 fi
21796
21797 echo "$as_me:$LINENO: checking for daddr_t" >&5
21798 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21799 if test "${ac_cv_type_daddr_t+set}" = set; then
21800   echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21802   cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808 $ac_includes_default
21809 int
21810 main ()
21811 {
21812 if ((daddr_t *) 0)
21813   return 0;
21814 if (sizeof (daddr_t))
21815   return 0;
21816   ;
21817   return 0;
21818 }
21819 _ACEOF
21820 rm -f conftest.$ac_objext
21821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21822   (eval $ac_compile) 2>conftest.er1
21823   ac_status=$?
21824   grep -v '^ *+' conftest.er1 >conftest.err
21825   rm -f conftest.er1
21826   cat conftest.err >&5
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); } &&
21829          { ac_try='test -z "$ac_c_werror_flag"
21830                          || test ! -s conftest.err'
21831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832   (eval $ac_try) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); }; } &&
21836          { ac_try='test -s conftest.$ac_objext'
21837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838   (eval $ac_try) 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); }; }; then
21842   ac_cv_type_daddr_t=yes
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 ac_cv_type_daddr_t=no
21848 fi
21849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21850 fi
21851 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
21852 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
21853 if test $ac_cv_type_daddr_t = yes; then
21854   :
21855 else
21856
21857 cat >>confdefs.h <<_ACEOF
21858 #define daddr_t long
21859 _ACEOF
21860
21861 fi
21862
21863 echo "$as_me:$LINENO: checking for major_t" >&5
21864 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
21865 if test "${ac_cv_type_major_t+set}" = set; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 else
21868   cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h.  */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h.  */
21874 $ac_includes_default
21875 int
21876 main ()
21877 {
21878 if ((major_t *) 0)
21879   return 0;
21880 if (sizeof (major_t))
21881   return 0;
21882   ;
21883   return 0;
21884 }
21885 _ACEOF
21886 rm -f conftest.$ac_objext
21887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21888   (eval $ac_compile) 2>conftest.er1
21889   ac_status=$?
21890   grep -v '^ *+' conftest.er1 >conftest.err
21891   rm -f conftest.er1
21892   cat conftest.err >&5
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); } &&
21895          { ac_try='test -z "$ac_c_werror_flag"
21896                          || test ! -s conftest.err'
21897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898   (eval $ac_try) 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); }; } &&
21902          { ac_try='test -s conftest.$ac_objext'
21903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904   (eval $ac_try) 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; }; then
21908   ac_cv_type_major_t=yes
21909 else
21910   echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21912
21913 ac_cv_type_major_t=no
21914 fi
21915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21916 fi
21917 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
21918 echo "${ECHO_T}$ac_cv_type_major_t" >&6
21919 if test $ac_cv_type_major_t = yes; then
21920   :
21921 else
21922
21923 cat >>confdefs.h <<_ACEOF
21924 #define major_t int
21925 _ACEOF
21926
21927 fi
21928
21929 echo "$as_me:$LINENO: checking for minor_t" >&5
21930 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
21931 if test "${ac_cv_type_minor_t+set}" = set; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934   cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940 $ac_includes_default
21941 int
21942 main ()
21943 {
21944 if ((minor_t *) 0)
21945   return 0;
21946 if (sizeof (minor_t))
21947   return 0;
21948   ;
21949   return 0;
21950 }
21951 _ACEOF
21952 rm -f conftest.$ac_objext
21953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21954   (eval $ac_compile) 2>conftest.er1
21955   ac_status=$?
21956   grep -v '^ *+' conftest.er1 >conftest.err
21957   rm -f conftest.er1
21958   cat conftest.err >&5
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); } &&
21961          { ac_try='test -z "$ac_c_werror_flag"
21962                          || test ! -s conftest.err'
21963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964   (eval $ac_try) 2>&5
21965   ac_status=$?
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); }; } &&
21968          { ac_try='test -s conftest.$ac_objext'
21969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970   (eval $ac_try) 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); }; }; then
21974   ac_cv_type_minor_t=yes
21975 else
21976   echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979 ac_cv_type_minor_t=no
21980 fi
21981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21982 fi
21983 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
21984 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
21985 if test $ac_cv_type_minor_t = yes; then
21986   :
21987 else
21988
21989 cat >>confdefs.h <<_ACEOF
21990 #define minor_t int
21991 _ACEOF
21992
21993 fi
21994
21995 echo "$as_me:$LINENO: checking for ssize_t" >&5
21996 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21997 if test "${ac_cv_type_ssize_t+set}" = set; then
21998   echo $ECHO_N "(cached) $ECHO_C" >&6
21999 else
22000   cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h.  */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h.  */
22006 $ac_includes_default
22007 int
22008 main ()
22009 {
22010 if ((ssize_t *) 0)
22011   return 0;
22012 if (sizeof (ssize_t))
22013   return 0;
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22020   (eval $ac_compile) 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } &&
22027          { ac_try='test -z "$ac_c_werror_flag"
22028                          || test ! -s conftest.err'
22029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030   (eval $ac_try) 2>&5
22031   ac_status=$?
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); }; } &&
22034          { ac_try='test -s conftest.$ac_objext'
22035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036   (eval $ac_try) 2>&5
22037   ac_status=$?
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); }; }; then
22040   ac_cv_type_ssize_t=yes
22041 else
22042   echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22044
22045 ac_cv_type_ssize_t=no
22046 fi
22047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22048 fi
22049 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22050 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22051 if test $ac_cv_type_ssize_t = yes; then
22052   :
22053 else
22054
22055 cat >>confdefs.h <<_ACEOF
22056 #define ssize_t int
22057 _ACEOF
22058
22059 fi
22060
22061 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22062 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22063 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22064   echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066   cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 $ac_includes_default
22073 int
22074 main ()
22075 {
22076 static struct stat ac_aggr;
22077 if (ac_aggr.st_blocks)
22078 return 0;
22079   ;
22080   return 0;
22081 }
22082 _ACEOF
22083 rm -f conftest.$ac_objext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085   (eval $ac_compile) 2>conftest.er1
22086   ac_status=$?
22087   grep -v '^ *+' conftest.er1 >conftest.err
22088   rm -f conftest.er1
22089   cat conftest.err >&5
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } &&
22092          { ac_try='test -z "$ac_c_werror_flag"
22093                          || test ! -s conftest.err'
22094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095   (eval $ac_try) 2>&5
22096   ac_status=$?
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); }; } &&
22099          { ac_try='test -s conftest.$ac_objext'
22100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101   (eval $ac_try) 2>&5
22102   ac_status=$?
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); }; }; then
22105   ac_cv_member_struct_stat_st_blocks=yes
22106 else
22107   echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h.  */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h.  */
22116 $ac_includes_default
22117 int
22118 main ()
22119 {
22120 static struct stat ac_aggr;
22121 if (sizeof ac_aggr.st_blocks)
22122 return 0;
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22129   (eval $ac_compile) 2>conftest.er1
22130   ac_status=$?
22131   grep -v '^ *+' conftest.er1 >conftest.err
22132   rm -f conftest.er1
22133   cat conftest.err >&5
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } &&
22136          { ac_try='test -z "$ac_c_werror_flag"
22137                          || test ! -s conftest.err'
22138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139   (eval $ac_try) 2>&5
22140   ac_status=$?
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); }; } &&
22143          { ac_try='test -s conftest.$ac_objext'
22144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145   (eval $ac_try) 2>&5
22146   ac_status=$?
22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148   (exit $ac_status); }; }; then
22149   ac_cv_member_struct_stat_st_blocks=yes
22150 else
22151   echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 ac_cv_member_struct_stat_st_blocks=no
22155 fi
22156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22157 fi
22158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22159 fi
22160 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22161 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22162 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22163
22164 cat >>confdefs.h <<_ACEOF
22165 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22166 _ACEOF
22167
22168
22169 cat >>confdefs.h <<\_ACEOF
22170 #define HAVE_ST_BLOCKS 1
22171 _ACEOF
22172
22173 else
22174   case $LIBOBJS in
22175     "fileblocks.$ac_objext"   | \
22176   *" fileblocks.$ac_objext"   | \
22177     "fileblocks.$ac_objext "* | \
22178   *" fileblocks.$ac_objext "* ) ;;
22179   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22180 esac
22181
22182 fi
22183
22184
22185
22186 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22187 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22188 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22189   echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191   cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197 $ac_includes_default
22198 int
22199 main ()
22200 {
22201 static struct stat ac_aggr;
22202 if (ac_aggr.st_rdev)
22203 return 0;
22204   ;
22205   return 0;
22206 }
22207 _ACEOF
22208 rm -f conftest.$ac_objext
22209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22210   (eval $ac_compile) 2>conftest.er1
22211   ac_status=$?
22212   grep -v '^ *+' conftest.er1 >conftest.err
22213   rm -f conftest.er1
22214   cat conftest.err >&5
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } &&
22217          { ac_try='test -z "$ac_c_werror_flag"
22218                          || test ! -s conftest.err'
22219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220   (eval $ac_try) 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); }; } &&
22224          { ac_try='test -s conftest.$ac_objext'
22225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226   (eval $ac_try) 2>&5
22227   ac_status=$?
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); }; }; then
22230   ac_cv_member_struct_stat_st_rdev=yes
22231 else
22232   echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 $ac_includes_default
22242 int
22243 main ()
22244 {
22245 static struct stat ac_aggr;
22246 if (sizeof ac_aggr.st_rdev)
22247 return 0;
22248   ;
22249   return 0;
22250 }
22251 _ACEOF
22252 rm -f conftest.$ac_objext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254   (eval $ac_compile) 2>conftest.er1
22255   ac_status=$?
22256   grep -v '^ *+' conftest.er1 >conftest.err
22257   rm -f conftest.er1
22258   cat conftest.err >&5
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } &&
22261          { ac_try='test -z "$ac_c_werror_flag"
22262                          || test ! -s conftest.err'
22263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264   (eval $ac_try) 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; } &&
22268          { ac_try='test -s conftest.$ac_objext'
22269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270   (eval $ac_try) 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); }; }; then
22274   ac_cv_member_struct_stat_st_rdev=yes
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 ac_cv_member_struct_stat_st_rdev=no
22280 fi
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282 fi
22283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22284 fi
22285 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22286 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22287 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22288
22289 cat >>confdefs.h <<_ACEOF
22290 #define HAVE_STRUCT_STAT_ST_RDEV 1
22291 _ACEOF
22292
22293
22294 cat >>confdefs.h <<\_ACEOF
22295 #define HAVE_ST_RDEV 1
22296 _ACEOF
22297
22298 fi
22299
22300
22301 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22302 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22303 if test "${ac_cv_struct_tm+set}" = set; then
22304   echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306   cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h.  */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h.  */
22312 #include <sys/types.h>
22313 #include <time.h>
22314
22315 int
22316 main ()
22317 {
22318 struct tm *tp; tp->tm_sec;
22319   ;
22320   return 0;
22321 }
22322 _ACEOF
22323 rm -f conftest.$ac_objext
22324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22325   (eval $ac_compile) 2>conftest.er1
22326   ac_status=$?
22327   grep -v '^ *+' conftest.er1 >conftest.err
22328   rm -f conftest.er1
22329   cat conftest.err >&5
22330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); } &&
22332          { ac_try='test -z "$ac_c_werror_flag"
22333                          || test ! -s conftest.err'
22334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335   (eval $ac_try) 2>&5
22336   ac_status=$?
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); }; } &&
22339          { ac_try='test -s conftest.$ac_objext'
22340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22341   (eval $ac_try) 2>&5
22342   ac_status=$?
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); }; }; then
22345   ac_cv_struct_tm=time.h
22346 else
22347   echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22349
22350 ac_cv_struct_tm=sys/time.h
22351 fi
22352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22353 fi
22354 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22355 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22356 if test $ac_cv_struct_tm = sys/time.h; then
22357
22358 cat >>confdefs.h <<\_ACEOF
22359 #define TM_IN_SYS_TIME 1
22360 _ACEOF
22361
22362 fi
22363
22364 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22365 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22366 if test "${ac_cv_c_const+set}" = set; then
22367   echo $ECHO_N "(cached) $ECHO_C" >&6
22368 else
22369   cat >conftest.$ac_ext <<_ACEOF
22370 /* confdefs.h.  */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h.  */
22375
22376 int
22377 main ()
22378 {
22379 /* FIXME: Include the comments suggested by Paul. */
22380 #ifndef __cplusplus
22381   /* Ultrix mips cc rejects this.  */
22382   typedef int charset[2];
22383   const charset x;
22384   /* SunOS 4.1.1 cc rejects this.  */
22385   char const *const *ccp;
22386   char **p;
22387   /* NEC SVR4.0.2 mips cc rejects this.  */
22388   struct point {int x, y;};
22389   static struct point const zero = {0,0};
22390   /* AIX XL C 1.02.0.0 rejects this.
22391      It does not let you subtract one const X* pointer from another in
22392      an arm of an if-expression whose if-part is not a constant
22393      expression */
22394   const char *g = "string";
22395   ccp = &g + (g ? g-g : 0);
22396   /* HPUX 7.0 cc rejects these. */
22397   ++ccp;
22398   p = (char**) ccp;
22399   ccp = (char const *const *) p;
22400   { /* SCO 3.2v4 cc rejects this.  */
22401     char *t;
22402     char const *s = 0 ? (char *) 0 : (char const *) 0;
22403
22404     *t++ = 0;
22405   }
22406   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22407     int x[] = {25, 17};
22408     const int *foo = &x[0];
22409     ++foo;
22410   }
22411   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22412     typedef const int *iptr;
22413     iptr p = 0;
22414     ++p;
22415   }
22416   { /* AIX XL C 1.02.0.0 rejects this saying
22417        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22418     struct s { int j; const int *ap[3]; };
22419     struct s *b; b->j = 5;
22420   }
22421   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22422     const int foo = 10;
22423   }
22424 #endif
22425
22426   ;
22427   return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22432   (eval $ac_compile) 2>conftest.er1
22433   ac_status=$?
22434   grep -v '^ *+' conftest.er1 >conftest.err
22435   rm -f conftest.er1
22436   cat conftest.err >&5
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); } &&
22439          { ac_try='test -z "$ac_c_werror_flag"
22440                          || test ! -s conftest.err'
22441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442   (eval $ac_try) 2>&5
22443   ac_status=$?
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); }; } &&
22446          { ac_try='test -s conftest.$ac_objext'
22447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448   (eval $ac_try) 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; }; then
22452   ac_cv_c_const=yes
22453 else
22454   echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457 ac_cv_c_const=no
22458 fi
22459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22460 fi
22461 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22462 echo "${ECHO_T}$ac_cv_c_const" >&6
22463 if test $ac_cv_c_const = no; then
22464
22465 cat >>confdefs.h <<\_ACEOF
22466 #define const
22467 _ACEOF
22468
22469 fi
22470
22471
22472
22473 echo "$as_me:$LINENO: checking for char" >&5
22474 echo $ECHO_N "checking for char... $ECHO_C" >&6
22475 if test "${ac_cv_type_char+set}" = set; then
22476   echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478   cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h.  */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h.  */
22484 $ac_includes_default
22485 int
22486 main ()
22487 {
22488 if ((char *) 0)
22489   return 0;
22490 if (sizeof (char))
22491   return 0;
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22498   (eval $ac_compile) 2>conftest.er1
22499   ac_status=$?
22500   grep -v '^ *+' conftest.er1 >conftest.err
22501   rm -f conftest.er1
22502   cat conftest.err >&5
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); } &&
22505          { ac_try='test -z "$ac_c_werror_flag"
22506                          || test ! -s conftest.err'
22507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508   (eval $ac_try) 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; } &&
22512          { ac_try='test -s conftest.$ac_objext'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   ac_cv_type_char=yes
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523 ac_cv_type_char=no
22524 fi
22525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22526 fi
22527 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22528 echo "${ECHO_T}$ac_cv_type_char" >&6
22529
22530 echo "$as_me:$LINENO: checking size of char" >&5
22531 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22532 if test "${ac_cv_sizeof_char+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   if test "$ac_cv_type_char" = yes; then
22536   # The cast to unsigned long works around a bug in the HP C Compiler
22537   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22538   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22539   # This bug is HP SR number 8606223364.
22540   if test "$cross_compiling" = yes; then
22541   # Depending upon the size, compute the lo and hi bounds.
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 $ac_includes_default
22549 int
22550 main ()
22551 {
22552 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22553 test_array [0] = 0
22554
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext
22560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22561   (eval $ac_compile) 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } &&
22568          { ac_try='test -z "$ac_c_werror_flag"
22569                          || test ! -s conftest.err'
22570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571   (eval $ac_try) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); }; } &&
22575          { ac_try='test -s conftest.$ac_objext'
22576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577   (eval $ac_try) 2>&5
22578   ac_status=$?
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); }; }; then
22581   ac_lo=0 ac_mid=0
22582   while :; do
22583     cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 $ac_includes_default
22590 int
22591 main ()
22592 {
22593 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22594 test_array [0] = 0
22595
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602   (eval $ac_compile) 2>conftest.er1
22603   ac_status=$?
22604   grep -v '^ *+' conftest.er1 >conftest.err
22605   rm -f conftest.er1
22606   cat conftest.err >&5
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } &&
22609          { ac_try='test -z "$ac_c_werror_flag"
22610                          || test ! -s conftest.err'
22611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612   (eval $ac_try) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); }; } &&
22616          { ac_try='test -s conftest.$ac_objext'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; }; then
22622   ac_hi=$ac_mid; break
22623 else
22624   echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 ac_lo=`expr $ac_mid + 1`
22628                     if test $ac_lo -le $ac_mid; then
22629                       ac_lo= ac_hi=
22630                       break
22631                     fi
22632                     ac_mid=`expr 2 '*' $ac_mid + 1`
22633 fi
22634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22635   done
22636 else
22637   echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 $ac_includes_default
22647 int
22648 main ()
22649 {
22650 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22651 test_array [0] = 0
22652
22653   ;
22654   return 0;
22655 }
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659   (eval $ac_compile) 2>conftest.er1
22660   ac_status=$?
22661   grep -v '^ *+' conftest.er1 >conftest.err
22662   rm -f conftest.er1
22663   cat conftest.err >&5
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } &&
22666          { ac_try='test -z "$ac_c_werror_flag"
22667                          || test ! -s conftest.err'
22668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669   (eval $ac_try) 2>&5
22670   ac_status=$?
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); }; } &&
22673          { ac_try='test -s conftest.$ac_objext'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; }; then
22679   ac_hi=-1 ac_mid=-1
22680   while :; do
22681     cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 $ac_includes_default
22688 int
22689 main ()
22690 {
22691 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22692 test_array [0] = 0
22693
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700   (eval $ac_compile) 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } &&
22707          { ac_try='test -z "$ac_c_werror_flag"
22708                          || test ! -s conftest.err'
22709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710   (eval $ac_try) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest.$ac_objext'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   ac_lo=$ac_mid; break
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725 ac_hi=`expr '(' $ac_mid ')' - 1`
22726                        if test $ac_mid -le $ac_hi; then
22727                          ac_lo= ac_hi=
22728                          break
22729                        fi
22730                        ac_mid=`expr 2 '*' $ac_mid`
22731 fi
22732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22733   done
22734 else
22735   echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22737
22738 ac_lo= ac_hi=
22739 fi
22740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22741 fi
22742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22743 # Binary search between lo and hi bounds.
22744 while test "x$ac_lo" != "x$ac_hi"; do
22745   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22746   cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h.  */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h.  */
22752 $ac_includes_default
22753 int
22754 main ()
22755 {
22756 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22757 test_array [0] = 0
22758
22759   ;
22760   return 0;
22761 }
22762 _ACEOF
22763 rm -f conftest.$ac_objext
22764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22765   (eval $ac_compile) 2>conftest.er1
22766   ac_status=$?
22767   grep -v '^ *+' conftest.er1 >conftest.err
22768   rm -f conftest.er1
22769   cat conftest.err >&5
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); } &&
22772          { ac_try='test -z "$ac_c_werror_flag"
22773                          || test ! -s conftest.err'
22774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775   (eval $ac_try) 2>&5
22776   ac_status=$?
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); }; } &&
22779          { ac_try='test -s conftest.$ac_objext'
22780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781   (eval $ac_try) 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); }; }; then
22785   ac_hi=$ac_mid
22786 else
22787   echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22789
22790 ac_lo=`expr '(' $ac_mid ')' + 1`
22791 fi
22792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22793 done
22794 case $ac_lo in
22795 ?*) ac_cv_sizeof_char=$ac_lo;;
22796 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22797 See \`config.log' for more details." >&5
22798 echo "$as_me: error: cannot compute sizeof (char), 77
22799 See \`config.log' for more details." >&2;}
22800    { (exit 1); exit 1; }; } ;;
22801 esac
22802 else
22803   if test "$cross_compiling" = yes; then
22804   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22805 See \`config.log' for more details." >&5
22806 echo "$as_me: error: cannot run test program while cross compiling
22807 See \`config.log' for more details." >&2;}
22808    { (exit 1); exit 1; }; }
22809 else
22810   cat >conftest.$ac_ext <<_ACEOF
22811 /* confdefs.h.  */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h.  */
22816 $ac_includes_default
22817 long longval () { return (long) (sizeof (char)); }
22818 unsigned long ulongval () { return (long) (sizeof (char)); }
22819 #include <stdio.h>
22820 #include <stdlib.h>
22821 int
22822 main ()
22823 {
22824
22825   FILE *f = fopen ("conftest.val", "w");
22826   if (! f)
22827     exit (1);
22828   if (((long) (sizeof (char))) < 0)
22829     {
22830       long i = longval ();
22831       if (i != ((long) (sizeof (char))))
22832         exit (1);
22833       fprintf (f, "%ld\n", i);
22834     }
22835   else
22836     {
22837       unsigned long i = ulongval ();
22838       if (i != ((long) (sizeof (char))))
22839         exit (1);
22840       fprintf (f, "%lu\n", i);
22841     }
22842   exit (ferror (f) || fclose (f) != 0);
22843
22844   ;
22845   return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest$ac_exeext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850   (eval $ac_link) 2>&5
22851   ac_status=$?
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855   (eval $ac_try) 2>&5
22856   ac_status=$?
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); }; }; then
22859   ac_cv_sizeof_char=`cat conftest.val`
22860 else
22861   echo "$as_me: program exited with status $ac_status" >&5
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22864
22865 ( exit $ac_status )
22866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22867 See \`config.log' for more details." >&5
22868 echo "$as_me: error: cannot compute sizeof (char), 77
22869 See \`config.log' for more details." >&2;}
22870    { (exit 1); exit 1; }; }
22871 fi
22872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22873 fi
22874 fi
22875 rm -f conftest.val
22876 else
22877   ac_cv_sizeof_char=0
22878 fi
22879 fi
22880 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22881 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
22882 cat >>confdefs.h <<_ACEOF
22883 #define SIZEOF_CHAR $ac_cv_sizeof_char
22884 _ACEOF
22885
22886
22887 echo "$as_me:$LINENO: checking for short int" >&5
22888 echo $ECHO_N "checking for short int... $ECHO_C" >&6
22889 if test "${ac_cv_type_short_int+set}" = set; then
22890   echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892   cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h.  */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h.  */
22898 $ac_includes_default
22899 int
22900 main ()
22901 {
22902 if ((short int *) 0)
22903   return 0;
22904 if (sizeof (short int))
22905   return 0;
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22912   (eval $ac_compile) 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } &&
22919          { ac_try='test -z "$ac_c_werror_flag"
22920                          || test ! -s conftest.err'
22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922   (eval $ac_try) 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; } &&
22926          { ac_try='test -s conftest.$ac_objext'
22927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928   (eval $ac_try) 2>&5
22929   ac_status=$?
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); }; }; then
22932   ac_cv_type_short_int=yes
22933 else
22934   echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937 ac_cv_type_short_int=no
22938 fi
22939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22940 fi
22941 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
22942 echo "${ECHO_T}$ac_cv_type_short_int" >&6
22943
22944 echo "$as_me:$LINENO: checking size of short int" >&5
22945 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
22946 if test "${ac_cv_sizeof_short_int+set}" = set; then
22947   echo $ECHO_N "(cached) $ECHO_C" >&6
22948 else
22949   if test "$ac_cv_type_short_int" = yes; then
22950   # The cast to unsigned long works around a bug in the HP C Compiler
22951   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22952   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22953   # This bug is HP SR number 8606223364.
22954   if test "$cross_compiling" = yes; then
22955   # Depending upon the size, compute the lo and hi bounds.
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h.  */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h.  */
22962 $ac_includes_default
22963 int
22964 main ()
22965 {
22966 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
22967 test_array [0] = 0
22968
22969   ;
22970   return 0;
22971 }
22972 _ACEOF
22973 rm -f conftest.$ac_objext
22974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22975   (eval $ac_compile) 2>conftest.er1
22976   ac_status=$?
22977   grep -v '^ *+' conftest.er1 >conftest.err
22978   rm -f conftest.er1
22979   cat conftest.err >&5
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); } &&
22982          { ac_try='test -z "$ac_c_werror_flag"
22983                          || test ! -s conftest.err'
22984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985   (eval $ac_try) 2>&5
22986   ac_status=$?
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); }; } &&
22989          { ac_try='test -s conftest.$ac_objext'
22990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991   (eval $ac_try) 2>&5
22992   ac_status=$?
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); }; }; then
22995   ac_lo=0 ac_mid=0
22996   while :; do
22997     cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003 $ac_includes_default
23004 int
23005 main ()
23006 {
23007 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23008 test_array [0] = 0
23009
23010   ;
23011   return 0;
23012 }
23013 _ACEOF
23014 rm -f conftest.$ac_objext
23015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016   (eval $ac_compile) 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } &&
23023          { ac_try='test -z "$ac_c_werror_flag"
23024                          || test ! -s conftest.err'
23025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026   (eval $ac_try) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; } &&
23030          { ac_try='test -s conftest.$ac_objext'
23031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032   (eval $ac_try) 2>&5
23033   ac_status=$?
23034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035   (exit $ac_status); }; }; then
23036   ac_hi=$ac_mid; break
23037 else
23038   echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ac_lo=`expr $ac_mid + 1`
23042                     if test $ac_lo -le $ac_mid; then
23043                       ac_lo= ac_hi=
23044                       break
23045                     fi
23046                     ac_mid=`expr 2 '*' $ac_mid + 1`
23047 fi
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049   done
23050 else
23051   echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054 cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h.  */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h.  */
23060 $ac_includes_default
23061 int
23062 main ()
23063 {
23064 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23065 test_array [0] = 0
23066
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073   (eval $ac_compile) 2>conftest.er1
23074   ac_status=$?
23075   grep -v '^ *+' conftest.er1 >conftest.err
23076   rm -f conftest.er1
23077   cat conftest.err >&5
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } &&
23080          { ac_try='test -z "$ac_c_werror_flag"
23081                          || test ! -s conftest.err'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; } &&
23087          { ac_try='test -s conftest.$ac_objext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   ac_hi=-1 ac_mid=-1
23094   while :; do
23095     cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101 $ac_includes_default
23102 int
23103 main ()
23104 {
23105 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23106 test_array [0] = 0
23107
23108   ;
23109   return 0;
23110 }
23111 _ACEOF
23112 rm -f conftest.$ac_objext
23113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23114   (eval $ac_compile) 2>conftest.er1
23115   ac_status=$?
23116   grep -v '^ *+' conftest.er1 >conftest.err
23117   rm -f conftest.er1
23118   cat conftest.err >&5
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); } &&
23121          { ac_try='test -z "$ac_c_werror_flag"
23122                          || test ! -s conftest.err'
23123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124   (eval $ac_try) 2>&5
23125   ac_status=$?
23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127   (exit $ac_status); }; } &&
23128          { ac_try='test -s conftest.$ac_objext'
23129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130   (eval $ac_try) 2>&5
23131   ac_status=$?
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); }; }; then
23134   ac_lo=$ac_mid; break
23135 else
23136   echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139 ac_hi=`expr '(' $ac_mid ')' - 1`
23140                        if test $ac_mid -le $ac_hi; then
23141                          ac_lo= ac_hi=
23142                          break
23143                        fi
23144                        ac_mid=`expr 2 '*' $ac_mid`
23145 fi
23146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23147   done
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_lo= ac_hi=
23153 fi
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23155 fi
23156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23157 # Binary search between lo and hi bounds.
23158 while test "x$ac_lo" != "x$ac_hi"; do
23159   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23160   cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h.  */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h.  */
23166 $ac_includes_default
23167 int
23168 main ()
23169 {
23170 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23171 test_array [0] = 0
23172
23173   ;
23174   return 0;
23175 }
23176 _ACEOF
23177 rm -f conftest.$ac_objext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179   (eval $ac_compile) 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } &&
23186          { ac_try='test -z "$ac_c_werror_flag"
23187                          || test ! -s conftest.err'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; } &&
23193          { ac_try='test -s conftest.$ac_objext'
23194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195   (eval $ac_try) 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; }; then
23199   ac_hi=$ac_mid
23200 else
23201   echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 ac_lo=`expr '(' $ac_mid ')' + 1`
23205 fi
23206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23207 done
23208 case $ac_lo in
23209 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23210 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23211 See \`config.log' for more details." >&5
23212 echo "$as_me: error: cannot compute sizeof (short int), 77
23213 See \`config.log' for more details." >&2;}
23214    { (exit 1); exit 1; }; } ;;
23215 esac
23216 else
23217   if test "$cross_compiling" = yes; then
23218   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23219 See \`config.log' for more details." >&5
23220 echo "$as_me: error: cannot run test program while cross compiling
23221 See \`config.log' for more details." >&2;}
23222    { (exit 1); exit 1; }; }
23223 else
23224   cat >conftest.$ac_ext <<_ACEOF
23225 /* confdefs.h.  */
23226 _ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h.  */
23230 $ac_includes_default
23231 long longval () { return (long) (sizeof (short int)); }
23232 unsigned long ulongval () { return (long) (sizeof (short int)); }
23233 #include <stdio.h>
23234 #include <stdlib.h>
23235 int
23236 main ()
23237 {
23238
23239   FILE *f = fopen ("conftest.val", "w");
23240   if (! f)
23241     exit (1);
23242   if (((long) (sizeof (short int))) < 0)
23243     {
23244       long i = longval ();
23245       if (i != ((long) (sizeof (short int))))
23246         exit (1);
23247       fprintf (f, "%ld\n", i);
23248     }
23249   else
23250     {
23251       unsigned long i = ulongval ();
23252       if (i != ((long) (sizeof (short int))))
23253         exit (1);
23254       fprintf (f, "%lu\n", i);
23255     }
23256   exit (ferror (f) || fclose (f) != 0);
23257
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264   (eval $ac_link) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269   (eval $ac_try) 2>&5
23270   ac_status=$?
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); }; }; then
23273   ac_cv_sizeof_short_int=`cat conftest.val`
23274 else
23275   echo "$as_me: program exited with status $ac_status" >&5
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279 ( exit $ac_status )
23280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23281 See \`config.log' for more details." >&5
23282 echo "$as_me: error: cannot compute sizeof (short int), 77
23283 See \`config.log' for more details." >&2;}
23284    { (exit 1); exit 1; }; }
23285 fi
23286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23287 fi
23288 fi
23289 rm -f conftest.val
23290 else
23291   ac_cv_sizeof_short_int=0
23292 fi
23293 fi
23294 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23295 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23296 cat >>confdefs.h <<_ACEOF
23297 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23298 _ACEOF
23299
23300
23301 echo "$as_me:$LINENO: checking for int" >&5
23302 echo $ECHO_N "checking for int... $ECHO_C" >&6
23303 if test "${ac_cv_type_int+set}" = set; then
23304   echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23306   cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312 $ac_includes_default
23313 int
23314 main ()
23315 {
23316 if ((int *) 0)
23317   return 0;
23318 if (sizeof (int))
23319   return 0;
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23326   (eval $ac_compile) 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } &&
23333          { ac_try='test -z "$ac_c_werror_flag"
23334                          || test ! -s conftest.err'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; } &&
23340          { ac_try='test -s conftest.$ac_objext'
23341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342   (eval $ac_try) 2>&5
23343   ac_status=$?
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); }; }; then
23346   ac_cv_type_int=yes
23347 else
23348   echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351 ac_cv_type_int=no
23352 fi
23353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23354 fi
23355 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23356 echo "${ECHO_T}$ac_cv_type_int" >&6
23357
23358 echo "$as_me:$LINENO: checking size of int" >&5
23359 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23360 if test "${ac_cv_sizeof_int+set}" = set; then
23361   echo $ECHO_N "(cached) $ECHO_C" >&6
23362 else
23363   if test "$ac_cv_type_int" = yes; then
23364   # The cast to unsigned long works around a bug in the HP C Compiler
23365   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23366   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23367   # This bug is HP SR number 8606223364.
23368   if test "$cross_compiling" = yes; then
23369   # Depending upon the size, compute the lo and hi bounds.
23370 cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 $ac_includes_default
23377 int
23378 main ()
23379 {
23380 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23381 test_array [0] = 0
23382
23383   ;
23384   return 0;
23385 }
23386 _ACEOF
23387 rm -f conftest.$ac_objext
23388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23389   (eval $ac_compile) 2>conftest.er1
23390   ac_status=$?
23391   grep -v '^ *+' conftest.er1 >conftest.err
23392   rm -f conftest.er1
23393   cat conftest.err >&5
23394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395   (exit $ac_status); } &&
23396          { ac_try='test -z "$ac_c_werror_flag"
23397                          || test ! -s conftest.err'
23398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399   (eval $ac_try) 2>&5
23400   ac_status=$?
23401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402   (exit $ac_status); }; } &&
23403          { ac_try='test -s conftest.$ac_objext'
23404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405   (eval $ac_try) 2>&5
23406   ac_status=$?
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); }; }; then
23409   ac_lo=0 ac_mid=0
23410   while :; do
23411     cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417 $ac_includes_default
23418 int
23419 main ()
23420 {
23421 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23422 test_array [0] = 0
23423
23424   ;
23425   return 0;
23426 }
23427 _ACEOF
23428 rm -f conftest.$ac_objext
23429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23430   (eval $ac_compile) 2>conftest.er1
23431   ac_status=$?
23432   grep -v '^ *+' conftest.er1 >conftest.err
23433   rm -f conftest.er1
23434   cat conftest.err >&5
23435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436   (exit $ac_status); } &&
23437          { ac_try='test -z "$ac_c_werror_flag"
23438                          || test ! -s conftest.err'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; } &&
23444          { ac_try='test -s conftest.$ac_objext'
23445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446   (eval $ac_try) 2>&5
23447   ac_status=$?
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); }; }; then
23450   ac_hi=$ac_mid; break
23451 else
23452   echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455 ac_lo=`expr $ac_mid + 1`
23456                     if test $ac_lo -le $ac_mid; then
23457                       ac_lo= ac_hi=
23458                       break
23459                     fi
23460                     ac_mid=`expr 2 '*' $ac_mid + 1`
23461 fi
23462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23463   done
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474 $ac_includes_default
23475 int
23476 main ()
23477 {
23478 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23479 test_array [0] = 0
23480
23481   ;
23482   return 0;
23483 }
23484 _ACEOF
23485 rm -f conftest.$ac_objext
23486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23487   (eval $ac_compile) 2>conftest.er1
23488   ac_status=$?
23489   grep -v '^ *+' conftest.er1 >conftest.err
23490   rm -f conftest.er1
23491   cat conftest.err >&5
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); } &&
23494          { ac_try='test -z "$ac_c_werror_flag"
23495                          || test ! -s conftest.err'
23496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497   (eval $ac_try) 2>&5
23498   ac_status=$?
23499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); }; } &&
23501          { ac_try='test -s conftest.$ac_objext'
23502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503   (eval $ac_try) 2>&5
23504   ac_status=$?
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); }; }; then
23507   ac_hi=-1 ac_mid=-1
23508   while :; do
23509     cat >conftest.$ac_ext <<_ACEOF
23510 /* confdefs.h.  */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h.  */
23515 $ac_includes_default
23516 int
23517 main ()
23518 {
23519 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23520 test_array [0] = 0
23521
23522   ;
23523   return 0;
23524 }
23525 _ACEOF
23526 rm -f conftest.$ac_objext
23527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23528   (eval $ac_compile) 2>conftest.er1
23529   ac_status=$?
23530   grep -v '^ *+' conftest.er1 >conftest.err
23531   rm -f conftest.er1
23532   cat conftest.err >&5
23533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534   (exit $ac_status); } &&
23535          { ac_try='test -z "$ac_c_werror_flag"
23536                          || test ! -s conftest.err'
23537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538   (eval $ac_try) 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); }; } &&
23542          { ac_try='test -s conftest.$ac_objext'
23543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544   (eval $ac_try) 2>&5
23545   ac_status=$?
23546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); }; }; then
23548   ac_lo=$ac_mid; break
23549 else
23550   echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23552
23553 ac_hi=`expr '(' $ac_mid ')' - 1`
23554                        if test $ac_mid -le $ac_hi; then
23555                          ac_lo= ac_hi=
23556                          break
23557                        fi
23558                        ac_mid=`expr 2 '*' $ac_mid`
23559 fi
23560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23561   done
23562 else
23563   echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23565
23566 ac_lo= ac_hi=
23567 fi
23568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23569 fi
23570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23571 # Binary search between lo and hi bounds.
23572 while test "x$ac_lo" != "x$ac_hi"; do
23573   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23574   cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 $ac_includes_default
23581 int
23582 main ()
23583 {
23584 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23585 test_array [0] = 0
23586
23587   ;
23588   return 0;
23589 }
23590 _ACEOF
23591 rm -f conftest.$ac_objext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23593   (eval $ac_compile) 2>conftest.er1
23594   ac_status=$?
23595   grep -v '^ *+' conftest.er1 >conftest.err
23596   rm -f conftest.er1
23597   cat conftest.err >&5
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } &&
23600          { ac_try='test -z "$ac_c_werror_flag"
23601                          || test ! -s conftest.err'
23602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603   (eval $ac_try) 2>&5
23604   ac_status=$?
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); }; } &&
23607          { ac_try='test -s conftest.$ac_objext'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; }; then
23613   ac_hi=$ac_mid
23614 else
23615   echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23617
23618 ac_lo=`expr '(' $ac_mid ')' + 1`
23619 fi
23620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23621 done
23622 case $ac_lo in
23623 ?*) ac_cv_sizeof_int=$ac_lo;;
23624 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23625 See \`config.log' for more details." >&5
23626 echo "$as_me: error: cannot compute sizeof (int), 77
23627 See \`config.log' for more details." >&2;}
23628    { (exit 1); exit 1; }; } ;;
23629 esac
23630 else
23631   if test "$cross_compiling" = yes; then
23632   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23633 See \`config.log' for more details." >&5
23634 echo "$as_me: error: cannot run test program while cross compiling
23635 See \`config.log' for more details." >&2;}
23636    { (exit 1); exit 1; }; }
23637 else
23638   cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644 $ac_includes_default
23645 long longval () { return (long) (sizeof (int)); }
23646 unsigned long ulongval () { return (long) (sizeof (int)); }
23647 #include <stdio.h>
23648 #include <stdlib.h>
23649 int
23650 main ()
23651 {
23652
23653   FILE *f = fopen ("conftest.val", "w");
23654   if (! f)
23655     exit (1);
23656   if (((long) (sizeof (int))) < 0)
23657     {
23658       long i = longval ();
23659       if (i != ((long) (sizeof (int))))
23660         exit (1);
23661       fprintf (f, "%ld\n", i);
23662     }
23663   else
23664     {
23665       unsigned long i = ulongval ();
23666       if (i != ((long) (sizeof (int))))
23667         exit (1);
23668       fprintf (f, "%lu\n", i);
23669     }
23670   exit (ferror (f) || fclose (f) != 0);
23671
23672   ;
23673   return 0;
23674 }
23675 _ACEOF
23676 rm -f conftest$ac_exeext
23677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23678   (eval $ac_link) 2>&5
23679   ac_status=$?
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683   (eval $ac_try) 2>&5
23684   ac_status=$?
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); }; }; then
23687   ac_cv_sizeof_int=`cat conftest.val`
23688 else
23689   echo "$as_me: program exited with status $ac_status" >&5
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23692
23693 ( exit $ac_status )
23694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23695 See \`config.log' for more details." >&5
23696 echo "$as_me: error: cannot compute sizeof (int), 77
23697 See \`config.log' for more details." >&2;}
23698    { (exit 1); exit 1; }; }
23699 fi
23700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23701 fi
23702 fi
23703 rm -f conftest.val
23704 else
23705   ac_cv_sizeof_int=0
23706 fi
23707 fi
23708 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23709 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23710 cat >>confdefs.h <<_ACEOF
23711 #define SIZEOF_INT $ac_cv_sizeof_int
23712 _ACEOF
23713
23714
23715 echo "$as_me:$LINENO: checking for long int" >&5
23716 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23717 if test "${ac_cv_type_long_int+set}" = set; then
23718   echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720   cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726 $ac_includes_default
23727 int
23728 main ()
23729 {
23730 if ((long int *) 0)
23731   return 0;
23732 if (sizeof (long int))
23733   return 0;
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext
23739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23740   (eval $ac_compile) 2>conftest.er1
23741   ac_status=$?
23742   grep -v '^ *+' conftest.er1 >conftest.err
23743   rm -f conftest.er1
23744   cat conftest.err >&5
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } &&
23747          { ac_try='test -z "$ac_c_werror_flag"
23748                          || test ! -s conftest.err'
23749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750   (eval $ac_try) 2>&5
23751   ac_status=$?
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); }; } &&
23754          { ac_try='test -s conftest.$ac_objext'
23755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756   (eval $ac_try) 2>&5
23757   ac_status=$?
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); }; }; then
23760   ac_cv_type_long_int=yes
23761 else
23762   echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765 ac_cv_type_long_int=no
23766 fi
23767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23768 fi
23769 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23770 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23771
23772 echo "$as_me:$LINENO: checking size of long int" >&5
23773 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23774 if test "${ac_cv_sizeof_long_int+set}" = set; then
23775   echo $ECHO_N "(cached) $ECHO_C" >&6
23776 else
23777   if test "$ac_cv_type_long_int" = yes; then
23778   # The cast to unsigned long works around a bug in the HP C Compiler
23779   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23780   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23781   # This bug is HP SR number 8606223364.
23782   if test "$cross_compiling" = yes; then
23783   # Depending upon the size, compute the lo and hi bounds.
23784 cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23790 $ac_includes_default
23791 int
23792 main ()
23793 {
23794 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23795 test_array [0] = 0
23796
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23803   (eval $ac_compile) 2>conftest.er1
23804   ac_status=$?
23805   grep -v '^ *+' conftest.er1 >conftest.err
23806   rm -f conftest.er1
23807   cat conftest.err >&5
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); } &&
23810          { ac_try='test -z "$ac_c_werror_flag"
23811                          || test ! -s conftest.err'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; } &&
23817          { ac_try='test -s conftest.$ac_objext'
23818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819   (eval $ac_try) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); }; }; then
23823   ac_lo=0 ac_mid=0
23824   while :; do
23825     cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h.  */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h.  */
23831 $ac_includes_default
23832 int
23833 main ()
23834 {
23835 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23836 test_array [0] = 0
23837
23838   ;
23839   return 0;
23840 }
23841 _ACEOF
23842 rm -f conftest.$ac_objext
23843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23844   (eval $ac_compile) 2>conftest.er1
23845   ac_status=$?
23846   grep -v '^ *+' conftest.er1 >conftest.err
23847   rm -f conftest.er1
23848   cat conftest.err >&5
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } &&
23851          { ac_try='test -z "$ac_c_werror_flag"
23852                          || test ! -s conftest.err'
23853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854   (eval $ac_try) 2>&5
23855   ac_status=$?
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); }; } &&
23858          { ac_try='test -s conftest.$ac_objext'
23859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860   (eval $ac_try) 2>&5
23861   ac_status=$?
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); }; }; then
23864   ac_hi=$ac_mid; break
23865 else
23866   echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869 ac_lo=`expr $ac_mid + 1`
23870                     if test $ac_lo -le $ac_mid; then
23871                       ac_lo= ac_hi=
23872                       break
23873                     fi
23874                     ac_mid=`expr 2 '*' $ac_mid + 1`
23875 fi
23876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23877   done
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h.  */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h.  */
23888 $ac_includes_default
23889 int
23890 main ()
23891 {
23892 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
23893 test_array [0] = 0
23894
23895   ;
23896   return 0;
23897 }
23898 _ACEOF
23899 rm -f conftest.$ac_objext
23900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23901   (eval $ac_compile) 2>conftest.er1
23902   ac_status=$?
23903   grep -v '^ *+' conftest.er1 >conftest.err
23904   rm -f conftest.er1
23905   cat conftest.err >&5
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); } &&
23908          { ac_try='test -z "$ac_c_werror_flag"
23909                          || test ! -s conftest.err'
23910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); }; } &&
23915          { ac_try='test -s conftest.$ac_objext'
23916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917   (eval $ac_try) 2>&5
23918   ac_status=$?
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); }; }; then
23921   ac_hi=-1 ac_mid=-1
23922   while :; do
23923     cat >conftest.$ac_ext <<_ACEOF
23924 /* confdefs.h.  */
23925 _ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h.  */
23929 $ac_includes_default
23930 int
23931 main ()
23932 {
23933 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
23934 test_array [0] = 0
23935
23936   ;
23937   return 0;
23938 }
23939 _ACEOF
23940 rm -f conftest.$ac_objext
23941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23942   (eval $ac_compile) 2>conftest.er1
23943   ac_status=$?
23944   grep -v '^ *+' conftest.er1 >conftest.err
23945   rm -f conftest.er1
23946   cat conftest.err >&5
23947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948   (exit $ac_status); } &&
23949          { ac_try='test -z "$ac_c_werror_flag"
23950                          || test ! -s conftest.err'
23951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23952   (eval $ac_try) 2>&5
23953   ac_status=$?
23954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); }; } &&
23956          { ac_try='test -s conftest.$ac_objext'
23957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958   (eval $ac_try) 2>&5
23959   ac_status=$?
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); }; }; then
23962   ac_lo=$ac_mid; break
23963 else
23964   echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23966
23967 ac_hi=`expr '(' $ac_mid ')' - 1`
23968                        if test $ac_mid -le $ac_hi; then
23969                          ac_lo= ac_hi=
23970                          break
23971                        fi
23972                        ac_mid=`expr 2 '*' $ac_mid`
23973 fi
23974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23975   done
23976 else
23977   echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23979
23980 ac_lo= ac_hi=
23981 fi
23982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23983 fi
23984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23985 # Binary search between lo and hi bounds.
23986 while test "x$ac_lo" != "x$ac_hi"; do
23987   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23988   cat >conftest.$ac_ext <<_ACEOF
23989 /* confdefs.h.  */
23990 _ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h.  */
23994 $ac_includes_default
23995 int
23996 main ()
23997 {
23998 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23999 test_array [0] = 0
24000
24001   ;
24002   return 0;
24003 }
24004 _ACEOF
24005 rm -f conftest.$ac_objext
24006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24007   (eval $ac_compile) 2>conftest.er1
24008   ac_status=$?
24009   grep -v '^ *+' conftest.er1 >conftest.err
24010   rm -f conftest.er1
24011   cat conftest.err >&5
24012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013   (exit $ac_status); } &&
24014          { ac_try='test -z "$ac_c_werror_flag"
24015                          || test ! -s conftest.err'
24016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017   (eval $ac_try) 2>&5
24018   ac_status=$?
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); }; } &&
24021          { ac_try='test -s conftest.$ac_objext'
24022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023   (eval $ac_try) 2>&5
24024   ac_status=$?
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); }; }; then
24027   ac_hi=$ac_mid
24028 else
24029   echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24031
24032 ac_lo=`expr '(' $ac_mid ')' + 1`
24033 fi
24034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24035 done
24036 case $ac_lo in
24037 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24038 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24039 See \`config.log' for more details." >&5
24040 echo "$as_me: error: cannot compute sizeof (long int), 77
24041 See \`config.log' for more details." >&2;}
24042    { (exit 1); exit 1; }; } ;;
24043 esac
24044 else
24045   if test "$cross_compiling" = yes; then
24046   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24047 See \`config.log' for more details." >&5
24048 echo "$as_me: error: cannot run test program while cross compiling
24049 See \`config.log' for more details." >&2;}
24050    { (exit 1); exit 1; }; }
24051 else
24052   cat >conftest.$ac_ext <<_ACEOF
24053 /* confdefs.h.  */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h.  */
24058 $ac_includes_default
24059 long longval () { return (long) (sizeof (long int)); }
24060 unsigned long ulongval () { return (long) (sizeof (long int)); }
24061 #include <stdio.h>
24062 #include <stdlib.h>
24063 int
24064 main ()
24065 {
24066
24067   FILE *f = fopen ("conftest.val", "w");
24068   if (! f)
24069     exit (1);
24070   if (((long) (sizeof (long int))) < 0)
24071     {
24072       long i = longval ();
24073       if (i != ((long) (sizeof (long int))))
24074         exit (1);
24075       fprintf (f, "%ld\n", i);
24076     }
24077   else
24078     {
24079       unsigned long i = ulongval ();
24080       if (i != ((long) (sizeof (long int))))
24081         exit (1);
24082       fprintf (f, "%lu\n", i);
24083     }
24084   exit (ferror (f) || fclose (f) != 0);
24085
24086   ;
24087   return 0;
24088 }
24089 _ACEOF
24090 rm -f conftest$ac_exeext
24091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24092   (eval $ac_link) 2>&5
24093   ac_status=$?
24094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097   (eval $ac_try) 2>&5
24098   ac_status=$?
24099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100   (exit $ac_status); }; }; then
24101   ac_cv_sizeof_long_int=`cat conftest.val`
24102 else
24103   echo "$as_me: program exited with status $ac_status" >&5
24104 echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24106
24107 ( exit $ac_status )
24108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24109 See \`config.log' for more details." >&5
24110 echo "$as_me: error: cannot compute sizeof (long int), 77
24111 See \`config.log' for more details." >&2;}
24112    { (exit 1); exit 1; }; }
24113 fi
24114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24115 fi
24116 fi
24117 rm -f conftest.val
24118 else
24119   ac_cv_sizeof_long_int=0
24120 fi
24121 fi
24122 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24123 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24124 cat >>confdefs.h <<_ACEOF
24125 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24126 _ACEOF
24127
24128
24129 echo "$as_me:$LINENO: checking for long long int" >&5
24130 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24131 if test "${ac_cv_type_long_long_int+set}" = set; then
24132   echo $ECHO_N "(cached) $ECHO_C" >&6
24133 else
24134   cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24140 $ac_includes_default
24141 int
24142 main ()
24143 {
24144 if ((long long int *) 0)
24145   return 0;
24146 if (sizeof (long long int))
24147   return 0;
24148   ;
24149   return 0;
24150 }
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24154   (eval $ac_compile) 2>conftest.er1
24155   ac_status=$?
24156   grep -v '^ *+' conftest.er1 >conftest.err
24157   rm -f conftest.er1
24158   cat conftest.err >&5
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); } &&
24161          { ac_try='test -z "$ac_c_werror_flag"
24162                          || test ! -s conftest.err'
24163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164   (eval $ac_try) 2>&5
24165   ac_status=$?
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); }; } &&
24168          { ac_try='test -s conftest.$ac_objext'
24169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170   (eval $ac_try) 2>&5
24171   ac_status=$?
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); }; }; then
24174   ac_cv_type_long_long_int=yes
24175 else
24176   echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24178
24179 ac_cv_type_long_long_int=no
24180 fi
24181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24182 fi
24183 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24184 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24185
24186 echo "$as_me:$LINENO: checking size of long long int" >&5
24187 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24188 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24189   echo $ECHO_N "(cached) $ECHO_C" >&6
24190 else
24191   if test "$ac_cv_type_long_long_int" = yes; then
24192   # The cast to unsigned long works around a bug in the HP C Compiler
24193   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24194   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24195   # This bug is HP SR number 8606223364.
24196   if test "$cross_compiling" = yes; then
24197   # Depending upon the size, compute the lo and hi bounds.
24198 cat >conftest.$ac_ext <<_ACEOF
24199 /* confdefs.h.  */
24200 _ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h.  */
24204 $ac_includes_default
24205 int
24206 main ()
24207 {
24208 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24209 test_array [0] = 0
24210
24211   ;
24212   return 0;
24213 }
24214 _ACEOF
24215 rm -f conftest.$ac_objext
24216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24217   (eval $ac_compile) 2>conftest.er1
24218   ac_status=$?
24219   grep -v '^ *+' conftest.er1 >conftest.err
24220   rm -f conftest.er1
24221   cat conftest.err >&5
24222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223   (exit $ac_status); } &&
24224          { ac_try='test -z "$ac_c_werror_flag"
24225                          || test ! -s conftest.err'
24226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24227   (eval $ac_try) 2>&5
24228   ac_status=$?
24229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230   (exit $ac_status); }; } &&
24231          { ac_try='test -s conftest.$ac_objext'
24232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24233   (eval $ac_try) 2>&5
24234   ac_status=$?
24235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236   (exit $ac_status); }; }; then
24237   ac_lo=0 ac_mid=0
24238   while :; do
24239     cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245 $ac_includes_default
24246 int
24247 main ()
24248 {
24249 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24250 test_array [0] = 0
24251
24252   ;
24253   return 0;
24254 }
24255 _ACEOF
24256 rm -f conftest.$ac_objext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258   (eval $ac_compile) 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } &&
24265          { ac_try='test -z "$ac_c_werror_flag"
24266                          || test ! -s conftest.err'
24267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); }; } &&
24272          { ac_try='test -s conftest.$ac_objext'
24273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274   (eval $ac_try) 2>&5
24275   ac_status=$?
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); }; }; then
24278   ac_hi=$ac_mid; break
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283 ac_lo=`expr $ac_mid + 1`
24284                     if test $ac_lo -le $ac_mid; then
24285                       ac_lo= ac_hi=
24286                       break
24287                     fi
24288                     ac_mid=`expr 2 '*' $ac_mid + 1`
24289 fi
24290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24291   done
24292 else
24293   echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296 cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h.  */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h.  */
24302 $ac_includes_default
24303 int
24304 main ()
24305 {
24306 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24307 test_array [0] = 0
24308
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 rm -f conftest.$ac_objext
24314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24315   (eval $ac_compile) 2>conftest.er1
24316   ac_status=$?
24317   grep -v '^ *+' conftest.er1 >conftest.err
24318   rm -f conftest.er1
24319   cat conftest.err >&5
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); } &&
24322          { ac_try='test -z "$ac_c_werror_flag"
24323                          || test ! -s conftest.err'
24324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325   (eval $ac_try) 2>&5
24326   ac_status=$?
24327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328   (exit $ac_status); }; } &&
24329          { ac_try='test -s conftest.$ac_objext'
24330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331   (eval $ac_try) 2>&5
24332   ac_status=$?
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); }; }; then
24335   ac_hi=-1 ac_mid=-1
24336   while :; do
24337     cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h.  */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h.  */
24343 $ac_includes_default
24344 int
24345 main ()
24346 {
24347 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24348 test_array [0] = 0
24349
24350   ;
24351   return 0;
24352 }
24353 _ACEOF
24354 rm -f conftest.$ac_objext
24355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24356   (eval $ac_compile) 2>conftest.er1
24357   ac_status=$?
24358   grep -v '^ *+' conftest.er1 >conftest.err
24359   rm -f conftest.er1
24360   cat conftest.err >&5
24361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362   (exit $ac_status); } &&
24363          { ac_try='test -z "$ac_c_werror_flag"
24364                          || test ! -s conftest.err'
24365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366   (eval $ac_try) 2>&5
24367   ac_status=$?
24368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369   (exit $ac_status); }; } &&
24370          { ac_try='test -s conftest.$ac_objext'
24371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372   (eval $ac_try) 2>&5
24373   ac_status=$?
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); }; }; then
24376   ac_lo=$ac_mid; break
24377 else
24378   echo "$as_me: failed program was:" >&5
24379 sed 's/^/| /' conftest.$ac_ext >&5
24380
24381 ac_hi=`expr '(' $ac_mid ')' - 1`
24382                        if test $ac_mid -le $ac_hi; then
24383                          ac_lo= ac_hi=
24384                          break
24385                        fi
24386                        ac_mid=`expr 2 '*' $ac_mid`
24387 fi
24388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24389   done
24390 else
24391   echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24393
24394 ac_lo= ac_hi=
24395 fi
24396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24397 fi
24398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24399 # Binary search between lo and hi bounds.
24400 while test "x$ac_lo" != "x$ac_hi"; do
24401   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24402   cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h.  */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h.  */
24408 $ac_includes_default
24409 int
24410 main ()
24411 {
24412 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24413 test_array [0] = 0
24414
24415   ;
24416   return 0;
24417 }
24418 _ACEOF
24419 rm -f conftest.$ac_objext
24420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24421   (eval $ac_compile) 2>conftest.er1
24422   ac_status=$?
24423   grep -v '^ *+' conftest.er1 >conftest.err
24424   rm -f conftest.er1
24425   cat conftest.err >&5
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); } &&
24428          { ac_try='test -z "$ac_c_werror_flag"
24429                          || test ! -s conftest.err'
24430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431   (eval $ac_try) 2>&5
24432   ac_status=$?
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); }; } &&
24435          { ac_try='test -s conftest.$ac_objext'
24436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437   (eval $ac_try) 2>&5
24438   ac_status=$?
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); }; }; then
24441   ac_hi=$ac_mid
24442 else
24443   echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24445
24446 ac_lo=`expr '(' $ac_mid ')' + 1`
24447 fi
24448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24449 done
24450 case $ac_lo in
24451 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24452 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24453 See \`config.log' for more details." >&5
24454 echo "$as_me: error: cannot compute sizeof (long long int), 77
24455 See \`config.log' for more details." >&2;}
24456    { (exit 1); exit 1; }; } ;;
24457 esac
24458 else
24459   if test "$cross_compiling" = yes; then
24460   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24461 See \`config.log' for more details." >&5
24462 echo "$as_me: error: cannot run test program while cross compiling
24463 See \`config.log' for more details." >&2;}
24464    { (exit 1); exit 1; }; }
24465 else
24466   cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h.  */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h.  */
24472 $ac_includes_default
24473 long longval () { return (long) (sizeof (long long int)); }
24474 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24475 #include <stdio.h>
24476 #include <stdlib.h>
24477 int
24478 main ()
24479 {
24480
24481   FILE *f = fopen ("conftest.val", "w");
24482   if (! f)
24483     exit (1);
24484   if (((long) (sizeof (long long int))) < 0)
24485     {
24486       long i = longval ();
24487       if (i != ((long) (sizeof (long long int))))
24488         exit (1);
24489       fprintf (f, "%ld\n", i);
24490     }
24491   else
24492     {
24493       unsigned long i = ulongval ();
24494       if (i != ((long) (sizeof (long long int))))
24495         exit (1);
24496       fprintf (f, "%lu\n", i);
24497     }
24498   exit (ferror (f) || fclose (f) != 0);
24499
24500   ;
24501   return 0;
24502 }
24503 _ACEOF
24504 rm -f conftest$ac_exeext
24505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24506   (eval $ac_link) 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24511   (eval $ac_try) 2>&5
24512   ac_status=$?
24513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514   (exit $ac_status); }; }; then
24515   ac_cv_sizeof_long_long_int=`cat conftest.val`
24516 else
24517   echo "$as_me: program exited with status $ac_status" >&5
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521 ( exit $ac_status )
24522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24523 See \`config.log' for more details." >&5
24524 echo "$as_me: error: cannot compute sizeof (long long int), 77
24525 See \`config.log' for more details." >&2;}
24526    { (exit 1); exit 1; }; }
24527 fi
24528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24529 fi
24530 fi
24531 rm -f conftest.val
24532 else
24533   ac_cv_sizeof_long_long_int=0
24534 fi
24535 fi
24536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24537 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24538 cat >>confdefs.h <<_ACEOF
24539 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24540 _ACEOF
24541
24542
24543 echo "$as_me:$LINENO: checking for int *" >&5
24544 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24545 if test "${ac_cv_type_int_p+set}" = set; then
24546   echo $ECHO_N "(cached) $ECHO_C" >&6
24547 else
24548   cat >conftest.$ac_ext <<_ACEOF
24549 /* confdefs.h.  */
24550 _ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h.  */
24554 $ac_includes_default
24555 int
24556 main ()
24557 {
24558 if ((int * *) 0)
24559   return 0;
24560 if (sizeof (int *))
24561   return 0;
24562   ;
24563   return 0;
24564 }
24565 _ACEOF
24566 rm -f conftest.$ac_objext
24567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24568   (eval $ac_compile) 2>conftest.er1
24569   ac_status=$?
24570   grep -v '^ *+' conftest.er1 >conftest.err
24571   rm -f conftest.er1
24572   cat conftest.err >&5
24573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574   (exit $ac_status); } &&
24575          { ac_try='test -z "$ac_c_werror_flag"
24576                          || test ! -s conftest.err'
24577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578   (eval $ac_try) 2>&5
24579   ac_status=$?
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); }; } &&
24582          { ac_try='test -s conftest.$ac_objext'
24583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24584   (eval $ac_try) 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); }; }; then
24588   ac_cv_type_int_p=yes
24589 else
24590   echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593 ac_cv_type_int_p=no
24594 fi
24595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24596 fi
24597 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24598 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24599
24600 echo "$as_me:$LINENO: checking size of int *" >&5
24601 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24602 if test "${ac_cv_sizeof_int_p+set}" = set; then
24603   echo $ECHO_N "(cached) $ECHO_C" >&6
24604 else
24605   if test "$ac_cv_type_int_p" = yes; then
24606   # The cast to unsigned long works around a bug in the HP C Compiler
24607   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24608   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24609   # This bug is HP SR number 8606223364.
24610   if test "$cross_compiling" = yes; then
24611   # Depending upon the size, compute the lo and hi bounds.
24612 cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618 $ac_includes_default
24619 int
24620 main ()
24621 {
24622 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24623 test_array [0] = 0
24624
24625   ;
24626   return 0;
24627 }
24628 _ACEOF
24629 rm -f conftest.$ac_objext
24630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24631   (eval $ac_compile) 2>conftest.er1
24632   ac_status=$?
24633   grep -v '^ *+' conftest.er1 >conftest.err
24634   rm -f conftest.er1
24635   cat conftest.err >&5
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); } &&
24638          { ac_try='test -z "$ac_c_werror_flag"
24639                          || test ! -s conftest.err'
24640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641   (eval $ac_try) 2>&5
24642   ac_status=$?
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); }; } &&
24645          { ac_try='test -s conftest.$ac_objext'
24646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647   (eval $ac_try) 2>&5
24648   ac_status=$?
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); }; }; then
24651   ac_lo=0 ac_mid=0
24652   while :; do
24653     cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659 $ac_includes_default
24660 int
24661 main ()
24662 {
24663 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24664 test_array [0] = 0
24665
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest.$ac_objext
24671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24672   (eval $ac_compile) 2>conftest.er1
24673   ac_status=$?
24674   grep -v '^ *+' conftest.er1 >conftest.err
24675   rm -f conftest.er1
24676   cat conftest.err >&5
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); } &&
24679          { ac_try='test -z "$ac_c_werror_flag"
24680                          || test ! -s conftest.err'
24681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682   (eval $ac_try) 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; } &&
24686          { ac_try='test -s conftest.$ac_objext'
24687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688   (eval $ac_try) 2>&5
24689   ac_status=$?
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); }; }; then
24692   ac_hi=$ac_mid; break
24693 else
24694   echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24696
24697 ac_lo=`expr $ac_mid + 1`
24698                     if test $ac_lo -le $ac_mid; then
24699                       ac_lo= ac_hi=
24700                       break
24701                     fi
24702                     ac_mid=`expr 2 '*' $ac_mid + 1`
24703 fi
24704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24705   done
24706 else
24707   echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h.  */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h.  */
24716 $ac_includes_default
24717 int
24718 main ()
24719 {
24720 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24721 test_array [0] = 0
24722
24723   ;
24724   return 0;
24725 }
24726 _ACEOF
24727 rm -f conftest.$ac_objext
24728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24729   (eval $ac_compile) 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } &&
24736          { ac_try='test -z "$ac_c_werror_flag"
24737                          || test ! -s conftest.err'
24738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739   (eval $ac_try) 2>&5
24740   ac_status=$?
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; } &&
24743          { ac_try='test -s conftest.$ac_objext'
24744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745   (eval $ac_try) 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; }; then
24749   ac_hi=-1 ac_mid=-1
24750   while :; do
24751     cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 $ac_includes_default
24758 int
24759 main ()
24760 {
24761 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24762 test_array [0] = 0
24763
24764   ;
24765   return 0;
24766 }
24767 _ACEOF
24768 rm -f conftest.$ac_objext
24769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24770   (eval $ac_compile) 2>conftest.er1
24771   ac_status=$?
24772   grep -v '^ *+' conftest.er1 >conftest.err
24773   rm -f conftest.er1
24774   cat conftest.err >&5
24775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); } &&
24777          { ac_try='test -z "$ac_c_werror_flag"
24778                          || test ! -s conftest.err'
24779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780   (eval $ac_try) 2>&5
24781   ac_status=$?
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); }; } &&
24784          { ac_try='test -s conftest.$ac_objext'
24785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786   (eval $ac_try) 2>&5
24787   ac_status=$?
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); }; }; then
24790   ac_lo=$ac_mid; break
24791 else
24792   echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795 ac_hi=`expr '(' $ac_mid ')' - 1`
24796                        if test $ac_mid -le $ac_hi; then
24797                          ac_lo= ac_hi=
24798                          break
24799                        fi
24800                        ac_mid=`expr 2 '*' $ac_mid`
24801 fi
24802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24803   done
24804 else
24805   echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24807
24808 ac_lo= ac_hi=
24809 fi
24810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24811 fi
24812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24813 # Binary search between lo and hi bounds.
24814 while test "x$ac_lo" != "x$ac_hi"; do
24815   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24816   cat >conftest.$ac_ext <<_ACEOF
24817 /* confdefs.h.  */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h.  */
24822 $ac_includes_default
24823 int
24824 main ()
24825 {
24826 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24827 test_array [0] = 0
24828
24829   ;
24830   return 0;
24831 }
24832 _ACEOF
24833 rm -f conftest.$ac_objext
24834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24835   (eval $ac_compile) 2>conftest.er1
24836   ac_status=$?
24837   grep -v '^ *+' conftest.er1 >conftest.err
24838   rm -f conftest.er1
24839   cat conftest.err >&5
24840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841   (exit $ac_status); } &&
24842          { ac_try='test -z "$ac_c_werror_flag"
24843                          || test ! -s conftest.err'
24844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845   (eval $ac_try) 2>&5
24846   ac_status=$?
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); }; } &&
24849          { ac_try='test -s conftest.$ac_objext'
24850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851   (eval $ac_try) 2>&5
24852   ac_status=$?
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); }; }; then
24855   ac_hi=$ac_mid
24856 else
24857   echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24859
24860 ac_lo=`expr '(' $ac_mid ')' + 1`
24861 fi
24862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24863 done
24864 case $ac_lo in
24865 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24866 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24867 See \`config.log' for more details." >&5
24868 echo "$as_me: error: cannot compute sizeof (int *), 77
24869 See \`config.log' for more details." >&2;}
24870    { (exit 1); exit 1; }; } ;;
24871 esac
24872 else
24873   if test "$cross_compiling" = yes; then
24874   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24875 See \`config.log' for more details." >&5
24876 echo "$as_me: error: cannot run test program while cross compiling
24877 See \`config.log' for more details." >&2;}
24878    { (exit 1); exit 1; }; }
24879 else
24880   cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h.  */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h.  */
24886 $ac_includes_default
24887 long longval () { return (long) (sizeof (int *)); }
24888 unsigned long ulongval () { return (long) (sizeof (int *)); }
24889 #include <stdio.h>
24890 #include <stdlib.h>
24891 int
24892 main ()
24893 {
24894
24895   FILE *f = fopen ("conftest.val", "w");
24896   if (! f)
24897     exit (1);
24898   if (((long) (sizeof (int *))) < 0)
24899     {
24900       long i = longval ();
24901       if (i != ((long) (sizeof (int *))))
24902         exit (1);
24903       fprintf (f, "%ld\n", i);
24904     }
24905   else
24906     {
24907       unsigned long i = ulongval ();
24908       if (i != ((long) (sizeof (int *))))
24909         exit (1);
24910       fprintf (f, "%lu\n", i);
24911     }
24912   exit (ferror (f) || fclose (f) != 0);
24913
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920   (eval $ac_link) 2>&5
24921   ac_status=$?
24922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925   (eval $ac_try) 2>&5
24926   ac_status=$?
24927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928   (exit $ac_status); }; }; then
24929   ac_cv_sizeof_int_p=`cat conftest.val`
24930 else
24931   echo "$as_me: program exited with status $ac_status" >&5
24932 echo "$as_me: failed program was:" >&5
24933 sed 's/^/| /' conftest.$ac_ext >&5
24934
24935 ( exit $ac_status )
24936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24937 See \`config.log' for more details." >&5
24938 echo "$as_me: error: cannot compute sizeof (int *), 77
24939 See \`config.log' for more details." >&2;}
24940    { (exit 1); exit 1; }; }
24941 fi
24942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24943 fi
24944 fi
24945 rm -f conftest.val
24946 else
24947   ac_cv_sizeof_int_p=0
24948 fi
24949 fi
24950 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
24951 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
24952 cat >>confdefs.h <<_ACEOF
24953 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
24954 _ACEOF
24955
24956
24957
24958 # Check for sys/types.h types
24959 echo "$as_me:$LINENO: checking for u_int type" >&5
24960 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
24961 if test "${ac_cv_have_u_int+set}" = set; then
24962   echo $ECHO_N "(cached) $ECHO_C" >&6
24963 else
24964
24965     cat >conftest.$ac_ext <<_ACEOF
24966 /* confdefs.h.  */
24967 _ACEOF
24968 cat confdefs.h >>conftest.$ac_ext
24969 cat >>conftest.$ac_ext <<_ACEOF
24970 /* end confdefs.h.  */
24971  #include <sys/types.h>
24972 int
24973 main ()
24974 {
24975  u_int a; a = 1;
24976   ;
24977   return 0;
24978 }
24979 _ACEOF
24980 rm -f conftest.$ac_objext
24981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24982   (eval $ac_compile) 2>conftest.er1
24983   ac_status=$?
24984   grep -v '^ *+' conftest.er1 >conftest.err
24985   rm -f conftest.er1
24986   cat conftest.err >&5
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); } &&
24989          { ac_try='test -z "$ac_c_werror_flag"
24990                          || test ! -s conftest.err'
24991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992   (eval $ac_try) 2>&5
24993   ac_status=$?
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); }; } &&
24996          { ac_try='test -s conftest.$ac_objext'
24997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998   (eval $ac_try) 2>&5
24999   ac_status=$?
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); }; }; then
25002    ac_cv_have_u_int="yes"
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007  ac_cv_have_u_int="no"
25008
25009 fi
25010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25011
25012 fi
25013 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25014 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25015 if test "x$ac_cv_have_u_int" = "xyes" ; then
25016    cat >>confdefs.h <<\_ACEOF
25017 #define HAVE_U_INT 1
25018 _ACEOF
25019
25020    have_u_int=1
25021 fi
25022
25023 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25024 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25025 if test "${ac_cv_have_intmax_t+set}" = set; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028
25029    cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h.  */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h.  */
25035  #include <sys/types.h>
25036 int
25037 main ()
25038 {
25039  intmax_t a; a = 1;
25040   ;
25041   return 0;
25042 }
25043 _ACEOF
25044 rm -f conftest.$ac_objext
25045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25046   (eval $ac_compile) 2>conftest.er1
25047   ac_status=$?
25048   grep -v '^ *+' conftest.er1 >conftest.err
25049   rm -f conftest.er1
25050   cat conftest.err >&5
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); } &&
25053          { ac_try='test -z "$ac_c_werror_flag"
25054                          || test ! -s conftest.err'
25055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25056   (eval $ac_try) 2>&5
25057   ac_status=$?
25058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059   (exit $ac_status); }; } &&
25060          { ac_try='test -s conftest.$ac_objext'
25061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062   (eval $ac_try) 2>&5
25063   ac_status=$?
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); }; }; then
25066    ac_cv_have_intmax_t="yes"
25067 else
25068   echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25070
25071
25072          cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h.  */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h.  */
25078  #include <stdint.h>
25079 int
25080 main ()
25081 {
25082  intmax_t a; a = 1;
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 rm -f conftest.$ac_objext
25088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25089   (eval $ac_compile) 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } &&
25096          { ac_try='test -z "$ac_c_werror_flag"
25097                          || test ! -s conftest.err'
25098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099   (eval $ac_try) 2>&5
25100   ac_status=$?
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); }; } &&
25103          { ac_try='test -s conftest.$ac_objext'
25104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105   (eval $ac_try) 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; }; then
25109    ac_cv_have_intmax_t="yes"
25110 else
25111   echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25113
25114  ac_cv_have_intmax_t="no"
25115
25116 fi
25117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25118
25119
25120 fi
25121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25122
25123
25124 fi
25125 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25126 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25127 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25128    cat >>confdefs.h <<\_ACEOF
25129 #define HAVE_INTMAX_T 1
25130 _ACEOF
25131
25132    have_intmax_t=1
25133 fi
25134
25135
25136 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25137 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25138 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25139   echo $ECHO_N "(cached) $ECHO_C" >&6
25140 else
25141
25142    cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148  #include <sys/types.h>
25149 int
25150 main ()
25151 {
25152  u_intmax_t a; a = 1;
25153   ;
25154   return 0;
25155 }
25156 _ACEOF
25157 rm -f conftest.$ac_objext
25158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25159   (eval $ac_compile) 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } &&
25166          { ac_try='test -z "$ac_c_werror_flag"
25167                          || test ! -s conftest.err'
25168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169   (eval $ac_try) 2>&5
25170   ac_status=$?
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); }; } &&
25173          { ac_try='test -s conftest.$ac_objext'
25174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175   (eval $ac_try) 2>&5
25176   ac_status=$?
25177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); }; }; then
25179    ac_cv_have_u_intmax_t="yes"
25180 else
25181   echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.$ac_ext >&5
25183
25184
25185          cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191  #include <stdint.h>
25192 int
25193 main ()
25194 {
25195  u_intmax_t a; a = 1;
25196   ;
25197   return 0;
25198 }
25199 _ACEOF
25200 rm -f conftest.$ac_objext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25202   (eval $ac_compile) 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } &&
25209          { ac_try='test -z "$ac_c_werror_flag"
25210                          || test ! -s conftest.err'
25211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212   (eval $ac_try) 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); }; } &&
25216          { ac_try='test -s conftest.$ac_objext'
25217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218   (eval $ac_try) 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); }; }; then
25222    ac_cv_have_u_intmax_t="yes"
25223 else
25224   echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25226
25227  ac_cv_have_u_intmax_t="no"
25228
25229 fi
25230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25231
25232
25233 fi
25234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25235
25236 fi
25237 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25238 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25239 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25240    cat >>confdefs.h <<\_ACEOF
25241 #define HAVE_U_INTMAX_T 1
25242 _ACEOF
25243
25244    have_u_intmax_t=1
25245 fi
25246
25247
25248 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25249 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25250 if test "${ac_cv_have_intxx_t+set}" = set; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253
25254    cat >conftest.$ac_ext <<_ACEOF
25255 /* confdefs.h.  */
25256 _ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h.  */
25260  #include <sys/types.h>
25261 int
25262 main ()
25263 {
25264  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25265   ;
25266   return 0;
25267 }
25268 _ACEOF
25269 rm -f conftest.$ac_objext
25270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25271   (eval $ac_compile) 2>conftest.er1
25272   ac_status=$?
25273   grep -v '^ *+' conftest.er1 >conftest.err
25274   rm -f conftest.er1
25275   cat conftest.err >&5
25276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277   (exit $ac_status); } &&
25278          { ac_try='test -z "$ac_c_werror_flag"
25279                          || test ! -s conftest.err'
25280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281   (eval $ac_try) 2>&5
25282   ac_status=$?
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); }; } &&
25285          { ac_try='test -s conftest.$ac_objext'
25286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287   (eval $ac_try) 2>&5
25288   ac_status=$?
25289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); }; }; then
25291    ac_cv_have_intxx_t="yes"
25292 else
25293   echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25295
25296  ac_cv_have_intxx_t="no"
25297
25298 fi
25299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25300
25301 fi
25302 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25303 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25304 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25305    cat >>confdefs.h <<\_ACEOF
25306 #define HAVE_INTXX_T 1
25307 _ACEOF
25308
25309    have_intxx_t=1
25310 fi
25311
25312 echo "$as_me:$LINENO: checking for int64_t type" >&5
25313 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25314 if test "${ac_cv_have_int64_t+set}" = set; then
25315   echo $ECHO_N "(cached) $ECHO_C" >&6
25316 else
25317
25318    cat >conftest.$ac_ext <<_ACEOF
25319 /* confdefs.h.  */
25320 _ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h.  */
25324  #include <sys/types.h>
25325 int
25326 main ()
25327 {
25328  int64_t a; a = 1;
25329   ;
25330   return 0;
25331 }
25332 _ACEOF
25333 rm -f conftest.$ac_objext
25334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25335   (eval $ac_compile) 2>conftest.er1
25336   ac_status=$?
25337   grep -v '^ *+' conftest.er1 >conftest.err
25338   rm -f conftest.er1
25339   cat conftest.err >&5
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); } &&
25342          { ac_try='test -z "$ac_c_werror_flag"
25343                          || test ! -s conftest.err'
25344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345   (eval $ac_try) 2>&5
25346   ac_status=$?
25347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348   (exit $ac_status); }; } &&
25349          { ac_try='test -s conftest.$ac_objext'
25350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351   (eval $ac_try) 2>&5
25352   ac_status=$?
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); }; }; then
25355    ac_cv_have_int64_t="yes"
25356 else
25357   echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360  ac_cv_have_int64_t="no"
25361
25362 fi
25363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25364
25365 fi
25366 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25367 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25368 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25369    cat >>confdefs.h <<\_ACEOF
25370 #define HAVE_INT64_T 1
25371 _ACEOF
25372
25373    have_int64_t=1
25374 fi
25375
25376 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25377 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25378 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25379   echo $ECHO_N "(cached) $ECHO_C" >&6
25380 else
25381
25382    cat >conftest.$ac_ext <<_ACEOF
25383 /* confdefs.h.  */
25384 _ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h.  */
25388  #include <sys/types.h>
25389 int
25390 main ()
25391 {
25392  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 rm -f conftest.$ac_objext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25399   (eval $ac_compile) 2>conftest.er1
25400   ac_status=$?
25401   grep -v '^ *+' conftest.er1 >conftest.err
25402   rm -f conftest.er1
25403   cat conftest.err >&5
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); } &&
25406          { ac_try='test -z "$ac_c_werror_flag"
25407                          || test ! -s conftest.err'
25408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409   (eval $ac_try) 2>&5
25410   ac_status=$?
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); }; } &&
25413          { ac_try='test -s conftest.$ac_objext'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; }; then
25419    ac_cv_have_u_intxx_t="yes"
25420 else
25421   echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25423
25424  ac_cv_have_u_intxx_t="no"
25425
25426 fi
25427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25428
25429 fi
25430 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25431 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25432 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25433    cat >>confdefs.h <<\_ACEOF
25434 #define HAVE_U_INTXX_T 1
25435 _ACEOF
25436
25437    have_u_intxx_t=1
25438 fi
25439
25440 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25441 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25442 if test "${ac_cv_have_u_int64_t+set}" = set; then
25443   echo $ECHO_N "(cached) $ECHO_C" >&6
25444 else
25445
25446    cat >conftest.$ac_ext <<_ACEOF
25447 /* confdefs.h.  */
25448 _ACEOF
25449 cat confdefs.h >>conftest.$ac_ext
25450 cat >>conftest.$ac_ext <<_ACEOF
25451 /* end confdefs.h.  */
25452  #include <sys/types.h>
25453 int
25454 main ()
25455 {
25456  u_int64_t a; a = 1;
25457   ;
25458   return 0;
25459 }
25460 _ACEOF
25461 rm -f conftest.$ac_objext
25462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25463   (eval $ac_compile) 2>conftest.er1
25464   ac_status=$?
25465   grep -v '^ *+' conftest.er1 >conftest.err
25466   rm -f conftest.er1
25467   cat conftest.err >&5
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); } &&
25470          { ac_try='test -z "$ac_c_werror_flag"
25471                          || test ! -s conftest.err'
25472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473   (eval $ac_try) 2>&5
25474   ac_status=$?
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); }; } &&
25477          { ac_try='test -s conftest.$ac_objext'
25478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479   (eval $ac_try) 2>&5
25480   ac_status=$?
25481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482   (exit $ac_status); }; }; then
25483    ac_cv_have_u_int64_t="yes"
25484 else
25485   echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25487
25488  ac_cv_have_u_int64_t="no"
25489
25490 fi
25491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25492
25493 fi
25494 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25495 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25496 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25497    cat >>confdefs.h <<\_ACEOF
25498 #define HAVE_U_INT64_T 1
25499 _ACEOF
25500
25501    have_u_int64_t=1
25502 fi
25503
25504 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25505            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25506 then
25507    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25508 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25509    cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515  #include <sys/bitypes.h>
25516 int
25517 main ()
25518 {
25519  int8_t a; int16_t b; int32_t c;
25520         u_int8_t e; u_int16_t f; u_int32_t g;
25521         a = b = c = e = f = g = 1;
25522   ;
25523   return 0;
25524 }
25525 _ACEOF
25526 rm -f conftest.$ac_objext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25528   (eval $ac_compile) 2>conftest.er1
25529   ac_status=$?
25530   grep -v '^ *+' conftest.er1 >conftest.err
25531   rm -f conftest.er1
25532   cat conftest.err >&5
25533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534   (exit $ac_status); } &&
25535          { ac_try='test -z "$ac_c_werror_flag"
25536                          || test ! -s conftest.err'
25537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538   (eval $ac_try) 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); }; } &&
25542          { ac_try='test -s conftest.$ac_objext'
25543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544   (eval $ac_try) 2>&5
25545   ac_status=$?
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); }; }; then
25548    cat >>confdefs.h <<\_ACEOF
25549 #define HAVE_U_INTXX_T 1
25550 _ACEOF
25551
25552         cat >>confdefs.h <<\_ACEOF
25553 #define HAVE_INTXX_T 1
25554 _ACEOF
25555
25556         cat >>confdefs.h <<\_ACEOF
25557 #define HAVE_SYS_BITYPES_H 1
25558 _ACEOF
25559
25560         echo "$as_me:$LINENO: result: yes" >&5
25561 echo "${ECHO_T}yes" >&6
25562 else
25563   echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25565
25566  echo "$as_me:$LINENO: result: no" >&5
25567 echo "${ECHO_T}no" >&6
25568
25569 fi
25570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25571 fi
25572
25573 if test -z "$have_u_intxx_t" ; then
25574    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25575 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25576 if test "${ac_cv_have_uintxx_t+set}" = set; then
25577   echo $ECHO_N "(cached) $ECHO_C" >&6
25578 else
25579
25580       cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h.  */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h.  */
25586  #include <sys/types.h>
25587 int
25588 main ()
25589 {
25590  uint8_t a; uint16_t b;
25591            uint32_t c; a = b = c = 1;
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest.$ac_objext
25597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25598   (eval $ac_compile) 2>conftest.er1
25599   ac_status=$?
25600   grep -v '^ *+' conftest.er1 >conftest.err
25601   rm -f conftest.er1
25602   cat conftest.err >&5
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); } &&
25605          { ac_try='test -z "$ac_c_werror_flag"
25606                          || test ! -s conftest.err'
25607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608   (eval $ac_try) 2>&5
25609   ac_status=$?
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); }; } &&
25612          { ac_try='test -s conftest.$ac_objext'
25613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614   (eval $ac_try) 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); }; }; then
25618    ac_cv_have_uintxx_t="yes"
25619 else
25620   echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25622
25623  ac_cv_have_uintxx_t="no"
25624
25625 fi
25626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25627
25628 fi
25629 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25630 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25631    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25632       cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_UINTXX_T 1
25634 _ACEOF
25635
25636    fi
25637 fi
25638
25639 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25640           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25641 then
25642    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25643 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25644    cat >conftest.$ac_ext <<_ACEOF
25645 /* confdefs.h.  */
25646 _ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h.  */
25650  #include <sys/bitypes.h>
25651 int
25652 main ()
25653 {
25654  int64_t a; u_int64_t b;
25655        a = b = 1;
25656   ;
25657   return 0;
25658 }
25659 _ACEOF
25660 rm -f conftest.$ac_objext
25661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25662   (eval $ac_compile) 2>conftest.er1
25663   ac_status=$?
25664   grep -v '^ *+' conftest.er1 >conftest.err
25665   rm -f conftest.er1
25666   cat conftest.err >&5
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); } &&
25669          { ac_try='test -z "$ac_c_werror_flag"
25670                          || test ! -s conftest.err'
25671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672   (eval $ac_try) 2>&5
25673   ac_status=$?
25674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675   (exit $ac_status); }; } &&
25676          { ac_try='test -s conftest.$ac_objext'
25677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25678   (eval $ac_try) 2>&5
25679   ac_status=$?
25680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681   (exit $ac_status); }; }; then
25682    cat >>confdefs.h <<\_ACEOF
25683 #define HAVE_U_INT64_T 1
25684 _ACEOF
25685
25686        cat >>confdefs.h <<\_ACEOF
25687 #define HAVE_INT64_T 1
25688 _ACEOF
25689
25690        echo "$as_me:$LINENO: result: yes" >&5
25691 echo "${ECHO_T}yes" >&6
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696  echo "$as_me:$LINENO: result: no" >&5
25697 echo "${ECHO_T}no" >&6
25698
25699 fi
25700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25701 fi
25702
25703 if (test -z "$have_uintxx_t" && \
25704           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25705 then
25706    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25707 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25708    cat >conftest.$ac_ext <<_ACEOF
25709 /* confdefs.h.  */
25710 _ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h.  */
25714  #include <sys/bitypes.h>
25715 int
25716 main ()
25717 {
25718  uint8_t a; uint16_t b;
25719           uint32_t c; a = b = c = 1;
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 rm -f conftest.$ac_objext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726   (eval $ac_compile) 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } &&
25733          { ac_try='test -z "$ac_c_werror_flag"
25734                          || test ! -s conftest.err'
25735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736   (eval $ac_try) 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); }; } &&
25740          { ac_try='test -s conftest.$ac_objext'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; }; then
25746    cat >>confdefs.h <<\_ACEOF
25747 #define HAVE_UINTXX_T 1
25748 _ACEOF
25749
25750        echo "$as_me:$LINENO: result: yes" >&5
25751 echo "${ECHO_T}yes" >&6
25752 else
25753   echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756  echo "$as_me:$LINENO: result: no" >&5
25757 echo "${ECHO_T}no" >&6
25758
25759 fi
25760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25761
25762 fi
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780 for ac_func in \
25781         fork \
25782         getcwd \
25783         gethostname \
25784         getpid \
25785         gettimeofday \
25786         setpgid \
25787         setpgrp \
25788         setsid \
25789         signal \
25790         strerror \
25791         strncmp \
25792         strncpy \
25793         vfprintf \
25794
25795 do
25796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25797 echo "$as_me:$LINENO: checking for $ac_func" >&5
25798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25799 if eval "test \"\${$as_ac_var+set}\" = set"; then
25800   echo $ECHO_N "(cached) $ECHO_C" >&6
25801 else
25802   cat >conftest.$ac_ext <<_ACEOF
25803 /* confdefs.h.  */
25804 _ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h.  */
25808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25810 #define $ac_func innocuous_$ac_func
25811
25812 /* System header to define __stub macros and hopefully few prototypes,
25813     which can conflict with char $ac_func (); below.
25814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25815     <limits.h> exists even on freestanding compilers.  */
25816
25817 #ifdef __STDC__
25818 # include <limits.h>
25819 #else
25820 # include <assert.h>
25821 #endif
25822
25823 #undef $ac_func
25824
25825 /* Override any gcc2 internal prototype to avoid an error.  */
25826 #ifdef __cplusplus
25827 extern "C"
25828 {
25829 #endif
25830 /* We use char because int might match the return type of a gcc2
25831    builtin and then its argument prototype would still apply.  */
25832 char $ac_func ();
25833 /* The GNU C library defines this for functions which it implements
25834     to always fail with ENOSYS.  Some functions are actually named
25835     something starting with __ and the normal name is an alias.  */
25836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25837 choke me
25838 #else
25839 char (*f) () = $ac_func;
25840 #endif
25841 #ifdef __cplusplus
25842 }
25843 #endif
25844
25845 int
25846 main ()
25847 {
25848 return f != $ac_func;
25849   ;
25850   return 0;
25851 }
25852 _ACEOF
25853 rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25855   (eval $ac_link) 2>conftest.er1
25856   ac_status=$?
25857   grep -v '^ *+' conftest.er1 >conftest.err
25858   rm -f conftest.er1
25859   cat conftest.err >&5
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); } &&
25862          { ac_try='test -z "$ac_c_werror_flag"
25863                          || test ! -s conftest.err'
25864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865   (eval $ac_try) 2>&5
25866   ac_status=$?
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); }; } &&
25869          { ac_try='test -s conftest$ac_exeext'
25870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871   (eval $ac_try) 2>&5
25872   ac_status=$?
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); }; }; then
25875   eval "$as_ac_var=yes"
25876 else
25877   echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25879
25880 eval "$as_ac_var=no"
25881 fi
25882 rm -f conftest.err conftest.$ac_objext \
25883       conftest$ac_exeext conftest.$ac_ext
25884 fi
25885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25887 if test `eval echo '${'$as_ac_var'}'` = yes; then
25888   cat >>confdefs.h <<_ACEOF
25889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25890 _ACEOF
25891
25892 else
25893   echo 'configure: cannot find needed function.'; exit 1
25894
25895 fi
25896 done
25897
25898
25899
25900 for ac_func in fchdir
25901 do
25902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25903 echo "$as_me:$LINENO: checking for $ac_func" >&5
25904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25905 if eval "test \"\${$as_ac_var+set}\" = set"; then
25906   echo $ECHO_N "(cached) $ECHO_C" >&6
25907 else
25908   cat >conftest.$ac_ext <<_ACEOF
25909 /* confdefs.h.  */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h.  */
25914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25916 #define $ac_func innocuous_$ac_func
25917
25918 /* System header to define __stub macros and hopefully few prototypes,
25919     which can conflict with char $ac_func (); below.
25920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25921     <limits.h> exists even on freestanding compilers.  */
25922
25923 #ifdef __STDC__
25924 # include <limits.h>
25925 #else
25926 # include <assert.h>
25927 #endif
25928
25929 #undef $ac_func
25930
25931 /* Override any gcc2 internal prototype to avoid an error.  */
25932 #ifdef __cplusplus
25933 extern "C"
25934 {
25935 #endif
25936 /* We use char because int might match the return type of a gcc2
25937    builtin and then its argument prototype would still apply.  */
25938 char $ac_func ();
25939 /* The GNU C library defines this for functions which it implements
25940     to always fail with ENOSYS.  Some functions are actually named
25941     something starting with __ and the normal name is an alias.  */
25942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25943 choke me
25944 #else
25945 char (*f) () = $ac_func;
25946 #endif
25947 #ifdef __cplusplus
25948 }
25949 #endif
25950
25951 int
25952 main ()
25953 {
25954 return f != $ac_func;
25955   ;
25956   return 0;
25957 }
25958 _ACEOF
25959 rm -f conftest.$ac_objext conftest$ac_exeext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25961   (eval $ac_link) 2>conftest.er1
25962   ac_status=$?
25963   grep -v '^ *+' conftest.er1 >conftest.err
25964   rm -f conftest.er1
25965   cat conftest.err >&5
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); } &&
25968          { ac_try='test -z "$ac_c_werror_flag"
25969                          || test ! -s conftest.err'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; } &&
25975          { ac_try='test -s conftest$ac_exeext'
25976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977   (eval $ac_try) 2>&5
25978   ac_status=$?
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); }; }; then
25981   eval "$as_ac_var=yes"
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986 eval "$as_ac_var=no"
25987 fi
25988 rm -f conftest.err conftest.$ac_objext \
25989       conftest$ac_exeext conftest.$ac_ext
25990 fi
25991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25993 if test `eval echo '${'$as_ac_var'}'` = yes; then
25994   cat >>confdefs.h <<_ACEOF
25995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25996 _ACEOF
25997  cat >>confdefs.h <<\_ACEOF
25998 #define HAVE_FCHDIR 1
25999 _ACEOF
26000
26001 fi
26002 done
26003
26004
26005 for ac_func in strtoll
26006 do
26007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26010 if eval "test \"\${$as_ac_var+set}\" = set"; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013   cat >conftest.$ac_ext <<_ACEOF
26014 /* confdefs.h.  */
26015 _ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h.  */
26019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26021 #define $ac_func innocuous_$ac_func
26022
26023 /* System header to define __stub macros and hopefully few prototypes,
26024     which can conflict with char $ac_func (); below.
26025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26026     <limits.h> exists even on freestanding compilers.  */
26027
26028 #ifdef __STDC__
26029 # include <limits.h>
26030 #else
26031 # include <assert.h>
26032 #endif
26033
26034 #undef $ac_func
26035
26036 /* Override any gcc2 internal prototype to avoid an error.  */
26037 #ifdef __cplusplus
26038 extern "C"
26039 {
26040 #endif
26041 /* We use char because int might match the return type of a gcc2
26042    builtin and then its argument prototype would still apply.  */
26043 char $ac_func ();
26044 /* The GNU C library defines this for functions which it implements
26045     to always fail with ENOSYS.  Some functions are actually named
26046     something starting with __ and the normal name is an alias.  */
26047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26048 choke me
26049 #else
26050 char (*f) () = $ac_func;
26051 #endif
26052 #ifdef __cplusplus
26053 }
26054 #endif
26055
26056 int
26057 main ()
26058 {
26059 return f != $ac_func;
26060   ;
26061   return 0;
26062 }
26063 _ACEOF
26064 rm -f conftest.$ac_objext conftest$ac_exeext
26065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26066   (eval $ac_link) 2>conftest.er1
26067   ac_status=$?
26068   grep -v '^ *+' conftest.er1 >conftest.err
26069   rm -f conftest.er1
26070   cat conftest.err >&5
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); } &&
26073          { ac_try='test -z "$ac_c_werror_flag"
26074                          || test ! -s conftest.err'
26075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076   (eval $ac_try) 2>&5
26077   ac_status=$?
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); }; } &&
26080          { ac_try='test -s conftest$ac_exeext'
26081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082   (eval $ac_try) 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; }; then
26086   eval "$as_ac_var=yes"
26087 else
26088   echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26090
26091 eval "$as_ac_var=no"
26092 fi
26093 rm -f conftest.err conftest.$ac_objext \
26094       conftest$ac_exeext conftest.$ac_ext
26095 fi
26096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26098 if test `eval echo '${'$as_ac_var'}'` = yes; then
26099   cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26101 _ACEOF
26102  cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_STRTOLL 1
26104 _ACEOF
26105
26106 fi
26107 done
26108
26109
26110
26111 for ac_func in chflags
26112 do
26113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26114 echo "$as_me:$LINENO: checking for $ac_func" >&5
26115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26116 if eval "test \"\${$as_ac_var+set}\" = set"; then
26117   echo $ECHO_N "(cached) $ECHO_C" >&6
26118 else
26119   cat >conftest.$ac_ext <<_ACEOF
26120 /* confdefs.h.  */
26121 _ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h.  */
26125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26127 #define $ac_func innocuous_$ac_func
26128
26129 /* System header to define __stub macros and hopefully few prototypes,
26130     which can conflict with char $ac_func (); below.
26131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26132     <limits.h> exists even on freestanding compilers.  */
26133
26134 #ifdef __STDC__
26135 # include <limits.h>
26136 #else
26137 # include <assert.h>
26138 #endif
26139
26140 #undef $ac_func
26141
26142 /* Override any gcc2 internal prototype to avoid an error.  */
26143 #ifdef __cplusplus
26144 extern "C"
26145 {
26146 #endif
26147 /* We use char because int might match the return type of a gcc2
26148    builtin and then its argument prototype would still apply.  */
26149 char $ac_func ();
26150 /* The GNU C library defines this for functions which it implements
26151     to always fail with ENOSYS.  Some functions are actually named
26152     something starting with __ and the normal name is an alias.  */
26153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26154 choke me
26155 #else
26156 char (*f) () = $ac_func;
26157 #endif
26158 #ifdef __cplusplus
26159 }
26160 #endif
26161
26162 int
26163 main ()
26164 {
26165 return f != $ac_func;
26166   ;
26167   return 0;
26168 }
26169 _ACEOF
26170 rm -f conftest.$ac_objext conftest$ac_exeext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26172   (eval $ac_link) 2>conftest.er1
26173   ac_status=$?
26174   grep -v '^ *+' conftest.er1 >conftest.err
26175   rm -f conftest.er1
26176   cat conftest.err >&5
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); } &&
26179          { ac_try='test -z "$ac_c_werror_flag"
26180                          || test ! -s conftest.err'
26181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182   (eval $ac_try) 2>&5
26183   ac_status=$?
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); }; } &&
26186          { ac_try='test -s conftest$ac_exeext'
26187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188   (eval $ac_try) 2>&5
26189   ac_status=$?
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); }; }; then
26192   eval "$as_ac_var=yes"
26193 else
26194   echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197 eval "$as_ac_var=no"
26198 fi
26199 rm -f conftest.err conftest.$ac_objext \
26200       conftest$ac_exeext conftest.$ac_ext
26201 fi
26202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26204 if test `eval echo '${'$as_ac_var'}'` = yes; then
26205   cat >>confdefs.h <<_ACEOF
26206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26207 _ACEOF
26208
26209 fi
26210 done
26211
26212
26213
26214
26215
26216
26217 for ac_func in snprintf vsnprintf gethostid fseeko
26218 do
26219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26220 echo "$as_me:$LINENO: checking for $ac_func" >&5
26221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26222 if eval "test \"\${$as_ac_var+set}\" = set"; then
26223   echo $ECHO_N "(cached) $ECHO_C" >&6
26224 else
26225   cat >conftest.$ac_ext <<_ACEOF
26226 /* confdefs.h.  */
26227 _ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h.  */
26231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26233 #define $ac_func innocuous_$ac_func
26234
26235 /* System header to define __stub macros and hopefully few prototypes,
26236     which can conflict with char $ac_func (); below.
26237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26238     <limits.h> exists even on freestanding compilers.  */
26239
26240 #ifdef __STDC__
26241 # include <limits.h>
26242 #else
26243 # include <assert.h>
26244 #endif
26245
26246 #undef $ac_func
26247
26248 /* Override any gcc2 internal prototype to avoid an error.  */
26249 #ifdef __cplusplus
26250 extern "C"
26251 {
26252 #endif
26253 /* We use char because int might match the return type of a gcc2
26254    builtin and then its argument prototype would still apply.  */
26255 char $ac_func ();
26256 /* The GNU C library defines this for functions which it implements
26257     to always fail with ENOSYS.  Some functions are actually named
26258     something starting with __ and the normal name is an alias.  */
26259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26260 choke me
26261 #else
26262 char (*f) () = $ac_func;
26263 #endif
26264 #ifdef __cplusplus
26265 }
26266 #endif
26267
26268 int
26269 main ()
26270 {
26271 return f != $ac_func;
26272   ;
26273   return 0;
26274 }
26275 _ACEOF
26276 rm -f conftest.$ac_objext conftest$ac_exeext
26277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26278   (eval $ac_link) 2>conftest.er1
26279   ac_status=$?
26280   grep -v '^ *+' conftest.er1 >conftest.err
26281   rm -f conftest.er1
26282   cat conftest.err >&5
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); } &&
26285          { ac_try='test -z "$ac_c_werror_flag"
26286                          || test ! -s conftest.err'
26287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26288   (eval $ac_try) 2>&5
26289   ac_status=$?
26290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291   (exit $ac_status); }; } &&
26292          { ac_try='test -s conftest$ac_exeext'
26293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294   (eval $ac_try) 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); }; }; then
26298   eval "$as_ac_var=yes"
26299 else
26300   echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303 eval "$as_ac_var=no"
26304 fi
26305 rm -f conftest.err conftest.$ac_objext \
26306       conftest$ac_exeext conftest.$ac_ext
26307 fi
26308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26310 if test `eval echo '${'$as_ac_var'}'` = yes; then
26311   cat >>confdefs.h <<_ACEOF
26312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26313 _ACEOF
26314
26315 fi
26316 done
26317
26318
26319
26320
26321
26322
26323 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26324 do
26325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26326 echo "$as_me:$LINENO: checking for $ac_func" >&5
26327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26328 if eval "test \"\${$as_ac_var+set}\" = set"; then
26329   echo $ECHO_N "(cached) $ECHO_C" >&6
26330 else
26331   cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h.  */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h.  */
26337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26339 #define $ac_func innocuous_$ac_func
26340
26341 /* System header to define __stub macros and hopefully few prototypes,
26342     which can conflict with char $ac_func (); below.
26343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26344     <limits.h> exists even on freestanding compilers.  */
26345
26346 #ifdef __STDC__
26347 # include <limits.h>
26348 #else
26349 # include <assert.h>
26350 #endif
26351
26352 #undef $ac_func
26353
26354 /* Override any gcc2 internal prototype to avoid an error.  */
26355 #ifdef __cplusplus
26356 extern "C"
26357 {
26358 #endif
26359 /* We use char because int might match the return type of a gcc2
26360    builtin and then its argument prototype would still apply.  */
26361 char $ac_func ();
26362 /* The GNU C library defines this for functions which it implements
26363     to always fail with ENOSYS.  Some functions are actually named
26364     something starting with __ and the normal name is an alias.  */
26365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26366 choke me
26367 #else
26368 char (*f) () = $ac_func;
26369 #endif
26370 #ifdef __cplusplus
26371 }
26372 #endif
26373
26374 int
26375 main ()
26376 {
26377 return f != $ac_func;
26378   ;
26379   return 0;
26380 }
26381 _ACEOF
26382 rm -f conftest.$ac_objext conftest$ac_exeext
26383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26384   (eval $ac_link) 2>conftest.er1
26385   ac_status=$?
26386   grep -v '^ *+' conftest.er1 >conftest.err
26387   rm -f conftest.er1
26388   cat conftest.err >&5
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); } &&
26391          { ac_try='test -z "$ac_c_werror_flag"
26392                          || test ! -s conftest.err'
26393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394   (eval $ac_try) 2>&5
26395   ac_status=$?
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); }; } &&
26398          { ac_try='test -s conftest$ac_exeext'
26399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400   (eval $ac_try) 2>&5
26401   ac_status=$?
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); }; }; then
26404   eval "$as_ac_var=yes"
26405 else
26406   echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409 eval "$as_ac_var=no"
26410 fi
26411 rm -f conftest.err conftest.$ac_objext \
26412       conftest$ac_exeext conftest.$ac_ext
26413 fi
26414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26416 if test `eval echo '${'$as_ac_var'}'` = yes; then
26417   cat >>confdefs.h <<_ACEOF
26418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26419 _ACEOF
26420
26421 fi
26422 done
26423
26424
26425 # If resolver functions are not in libc check for -lnsl or -lresolv.
26426 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26427 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26428 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26429   echo $ECHO_N "(cached) $ECHO_C" >&6
26430 else
26431   cat >conftest.$ac_ext <<_ACEOF
26432 /* confdefs.h.  */
26433 _ACEOF
26434 cat confdefs.h >>conftest.$ac_ext
26435 cat >>conftest.$ac_ext <<_ACEOF
26436 /* end confdefs.h.  */
26437 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26439 #define gethostbyname_r innocuous_gethostbyname_r
26440
26441 /* System header to define __stub macros and hopefully few prototypes,
26442     which can conflict with char gethostbyname_r (); below.
26443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26444     <limits.h> exists even on freestanding compilers.  */
26445
26446 #ifdef __STDC__
26447 # include <limits.h>
26448 #else
26449 # include <assert.h>
26450 #endif
26451
26452 #undef gethostbyname_r
26453
26454 /* Override any gcc2 internal prototype to avoid an error.  */
26455 #ifdef __cplusplus
26456 extern "C"
26457 {
26458 #endif
26459 /* We use char because int might match the return type of a gcc2
26460    builtin and then its argument prototype would still apply.  */
26461 char gethostbyname_r ();
26462 /* The GNU C library defines this for functions which it implements
26463     to always fail with ENOSYS.  Some functions are actually named
26464     something starting with __ and the normal name is an alias.  */
26465 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26466 choke me
26467 #else
26468 char (*f) () = gethostbyname_r;
26469 #endif
26470 #ifdef __cplusplus
26471 }
26472 #endif
26473
26474 int
26475 main ()
26476 {
26477 return f != gethostbyname_r;
26478   ;
26479   return 0;
26480 }
26481 _ACEOF
26482 rm -f conftest.$ac_objext conftest$ac_exeext
26483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26484   (eval $ac_link) 2>conftest.er1
26485   ac_status=$?
26486   grep -v '^ *+' conftest.er1 >conftest.err
26487   rm -f conftest.er1
26488   cat conftest.err >&5
26489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490   (exit $ac_status); } &&
26491          { ac_try='test -z "$ac_c_werror_flag"
26492                          || test ! -s conftest.err'
26493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494   (eval $ac_try) 2>&5
26495   ac_status=$?
26496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497   (exit $ac_status); }; } &&
26498          { ac_try='test -s conftest$ac_exeext'
26499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500   (eval $ac_try) 2>&5
26501   ac_status=$?
26502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503   (exit $ac_status); }; }; then
26504   ac_cv_func_gethostbyname_r=yes
26505 else
26506   echo "$as_me: failed program was:" >&5
26507 sed 's/^/| /' conftest.$ac_ext >&5
26508
26509 ac_cv_func_gethostbyname_r=no
26510 fi
26511 rm -f conftest.err conftest.$ac_objext \
26512       conftest$ac_exeext conftest.$ac_ext
26513 fi
26514 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26515 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26516 if test $ac_cv_func_gethostbyname_r = yes; then
26517   echo "$as_me:$LINENO: result: using libc's resolver" >&5
26518 echo "${ECHO_T}using libc's resolver" >&6
26519 else
26520
26521 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26522 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26523 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26524   echo $ECHO_N "(cached) $ECHO_C" >&6
26525 else
26526   ac_check_lib_save_LIBS=$LIBS
26527 LIBS="-lnsl  $LIBS"
26528 cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h.  */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h.  */
26534
26535 /* Override any gcc2 internal prototype to avoid an error.  */
26536 #ifdef __cplusplus
26537 extern "C"
26538 #endif
26539 /* We use char because int might match the return type of a gcc2
26540    builtin and then its argument prototype would still apply.  */
26541 char gethostbyname_r ();
26542 int
26543 main ()
26544 {
26545 gethostbyname_r ();
26546   ;
26547   return 0;
26548 }
26549 _ACEOF
26550 rm -f conftest.$ac_objext conftest$ac_exeext
26551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26552   (eval $ac_link) 2>conftest.er1
26553   ac_status=$?
26554   grep -v '^ *+' conftest.er1 >conftest.err
26555   rm -f conftest.er1
26556   cat conftest.err >&5
26557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558   (exit $ac_status); } &&
26559          { ac_try='test -z "$ac_c_werror_flag"
26560                          || test ! -s conftest.err'
26561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26562   (eval $ac_try) 2>&5
26563   ac_status=$?
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); }; } &&
26566          { ac_try='test -s conftest$ac_exeext'
26567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568   (eval $ac_try) 2>&5
26569   ac_status=$?
26570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); }; }; then
26572   ac_cv_lib_nsl_gethostbyname_r=yes
26573 else
26574   echo "$as_me: failed program was:" >&5
26575 sed 's/^/| /' conftest.$ac_ext >&5
26576
26577 ac_cv_lib_nsl_gethostbyname_r=no
26578 fi
26579 rm -f conftest.err conftest.$ac_objext \
26580       conftest$ac_exeext conftest.$ac_ext
26581 LIBS=$ac_check_lib_save_LIBS
26582 fi
26583 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26584 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26585 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26586   cat >>confdefs.h <<_ACEOF
26587 #define HAVE_LIBNSL 1
26588 _ACEOF
26589
26590   LIBS="-lnsl $LIBS"
26591
26592 fi
26593
26594
26595 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26596 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26597 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26598   echo $ECHO_N "(cached) $ECHO_C" >&6
26599 else
26600   ac_check_lib_save_LIBS=$LIBS
26601 LIBS="-lresolv  $LIBS"
26602 cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608
26609 /* Override any gcc2 internal prototype to avoid an error.  */
26610 #ifdef __cplusplus
26611 extern "C"
26612 #endif
26613 /* We use char because int might match the return type of a gcc2
26614    builtin and then its argument prototype would still apply.  */
26615 char gethostbyname_r ();
26616 int
26617 main ()
26618 {
26619 gethostbyname_r ();
26620   ;
26621   return 0;
26622 }
26623 _ACEOF
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26626   (eval $ac_link) 2>conftest.er1
26627   ac_status=$?
26628   grep -v '^ *+' conftest.er1 >conftest.err
26629   rm -f conftest.er1
26630   cat conftest.err >&5
26631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632   (exit $ac_status); } &&
26633          { ac_try='test -z "$ac_c_werror_flag"
26634                          || test ! -s conftest.err'
26635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636   (eval $ac_try) 2>&5
26637   ac_status=$?
26638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639   (exit $ac_status); }; } &&
26640          { ac_try='test -s conftest$ac_exeext'
26641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642   (eval $ac_try) 2>&5
26643   ac_status=$?
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); }; }; then
26646   ac_cv_lib_resolv_gethostbyname_r=yes
26647 else
26648   echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26650
26651 ac_cv_lib_resolv_gethostbyname_r=no
26652 fi
26653 rm -f conftest.err conftest.$ac_objext \
26654       conftest$ac_exeext conftest.$ac_ext
26655 LIBS=$ac_check_lib_save_LIBS
26656 fi
26657 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26658 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26659 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26660   cat >>confdefs.h <<_ACEOF
26661 #define HAVE_LIBRESOLV 1
26662 _ACEOF
26663
26664   LIBS="-lresolv $LIBS"
26665
26666 fi
26667
26668 fi
26669
26670
26671
26672
26673
26674 for ac_func in inet_pton
26675 do
26676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26677 echo "$as_me:$LINENO: checking for $ac_func" >&5
26678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26679 if eval "test \"\${$as_ac_var+set}\" = set"; then
26680   echo $ECHO_N "(cached) $ECHO_C" >&6
26681 else
26682   cat >conftest.$ac_ext <<_ACEOF
26683 /* confdefs.h.  */
26684 _ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h.  */
26688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26690 #define $ac_func innocuous_$ac_func
26691
26692 /* System header to define __stub macros and hopefully few prototypes,
26693     which can conflict with char $ac_func (); below.
26694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26695     <limits.h> exists even on freestanding compilers.  */
26696
26697 #ifdef __STDC__
26698 # include <limits.h>
26699 #else
26700 # include <assert.h>
26701 #endif
26702
26703 #undef $ac_func
26704
26705 /* Override any gcc2 internal prototype to avoid an error.  */
26706 #ifdef __cplusplus
26707 extern "C"
26708 {
26709 #endif
26710 /* We use char because int might match the return type of a gcc2
26711    builtin and then its argument prototype would still apply.  */
26712 char $ac_func ();
26713 /* The GNU C library defines this for functions which it implements
26714     to always fail with ENOSYS.  Some functions are actually named
26715     something starting with __ and the normal name is an alias.  */
26716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26717 choke me
26718 #else
26719 char (*f) () = $ac_func;
26720 #endif
26721 #ifdef __cplusplus
26722 }
26723 #endif
26724
26725 int
26726 main ()
26727 {
26728 return f != $ac_func;
26729   ;
26730   return 0;
26731 }
26732 _ACEOF
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26735   (eval $ac_link) 2>conftest.er1
26736   ac_status=$?
26737   grep -v '^ *+' conftest.er1 >conftest.err
26738   rm -f conftest.er1
26739   cat conftest.err >&5
26740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741   (exit $ac_status); } &&
26742          { ac_try='test -z "$ac_c_werror_flag"
26743                          || test ! -s conftest.err'
26744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745   (eval $ac_try) 2>&5
26746   ac_status=$?
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); }; } &&
26749          { ac_try='test -s conftest$ac_exeext'
26750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751   (eval $ac_try) 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); }; }; then
26755   eval "$as_ac_var=yes"
26756 else
26757   echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26759
26760 eval "$as_ac_var=no"
26761 fi
26762 rm -f conftest.err conftest.$ac_objext \
26763       conftest$ac_exeext conftest.$ac_ext
26764 fi
26765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26767 if test `eval echo '${'$as_ac_var'}'` = yes; then
26768   cat >>confdefs.h <<_ACEOF
26769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26770 _ACEOF
26771  cat >>confdefs.h <<\_ACEOF
26772 #define HAVE_INET_PTON 1
26773 _ACEOF
26774
26775 fi
26776 done
26777
26778
26779 for ac_func in inet_ntop
26780 do
26781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26782 echo "$as_me:$LINENO: checking for $ac_func" >&5
26783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26784 if eval "test \"\${$as_ac_var+set}\" = set"; then
26785   echo $ECHO_N "(cached) $ECHO_C" >&6
26786 else
26787   cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26795 #define $ac_func innocuous_$ac_func
26796
26797 /* System header to define __stub macros and hopefully few prototypes,
26798     which can conflict with char $ac_func (); below.
26799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26800     <limits.h> exists even on freestanding compilers.  */
26801
26802 #ifdef __STDC__
26803 # include <limits.h>
26804 #else
26805 # include <assert.h>
26806 #endif
26807
26808 #undef $ac_func
26809
26810 /* Override any gcc2 internal prototype to avoid an error.  */
26811 #ifdef __cplusplus
26812 extern "C"
26813 {
26814 #endif
26815 /* We use char because int might match the return type of a gcc2
26816    builtin and then its argument prototype would still apply.  */
26817 char $ac_func ();
26818 /* The GNU C library defines this for functions which it implements
26819     to always fail with ENOSYS.  Some functions are actually named
26820     something starting with __ and the normal name is an alias.  */
26821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26822 choke me
26823 #else
26824 char (*f) () = $ac_func;
26825 #endif
26826 #ifdef __cplusplus
26827 }
26828 #endif
26829
26830 int
26831 main ()
26832 {
26833 return f != $ac_func;
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 rm -f conftest.$ac_objext conftest$ac_exeext
26839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26840   (eval $ac_link) 2>conftest.er1
26841   ac_status=$?
26842   grep -v '^ *+' conftest.er1 >conftest.err
26843   rm -f conftest.er1
26844   cat conftest.err >&5
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } &&
26847          { ac_try='test -z "$ac_c_werror_flag"
26848                          || test ! -s conftest.err'
26849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850   (eval $ac_try) 2>&5
26851   ac_status=$?
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); }; } &&
26854          { ac_try='test -s conftest$ac_exeext'
26855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856   (eval $ac_try) 2>&5
26857   ac_status=$?
26858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); }; }; then
26860   eval "$as_ac_var=yes"
26861 else
26862   echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26864
26865 eval "$as_ac_var=no"
26866 fi
26867 rm -f conftest.err conftest.$ac_objext \
26868       conftest$ac_exeext conftest.$ac_ext
26869 fi
26870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26872 if test `eval echo '${'$as_ac_var'}'` = yes; then
26873   cat >>confdefs.h <<_ACEOF
26874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26875 _ACEOF
26876  cat >>confdefs.h <<\_ACEOF
26877 #define HAVE_INET_NTOP 1
26878 _ACEOF
26879
26880 fi
26881 done
26882
26883
26884 for ac_func in gethostbyname2
26885 do
26886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26887 echo "$as_me:$LINENO: checking for $ac_func" >&5
26888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26889 if eval "test \"\${$as_ac_var+set}\" = set"; then
26890   echo $ECHO_N "(cached) $ECHO_C" >&6
26891 else
26892   cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h.  */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h.  */
26898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26900 #define $ac_func innocuous_$ac_func
26901
26902 /* System header to define __stub macros and hopefully few prototypes,
26903     which can conflict with char $ac_func (); below.
26904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26905     <limits.h> exists even on freestanding compilers.  */
26906
26907 #ifdef __STDC__
26908 # include <limits.h>
26909 #else
26910 # include <assert.h>
26911 #endif
26912
26913 #undef $ac_func
26914
26915 /* Override any gcc2 internal prototype to avoid an error.  */
26916 #ifdef __cplusplus
26917 extern "C"
26918 {
26919 #endif
26920 /* We use char because int might match the return type of a gcc2
26921    builtin and then its argument prototype would still apply.  */
26922 char $ac_func ();
26923 /* The GNU C library defines this for functions which it implements
26924     to always fail with ENOSYS.  Some functions are actually named
26925     something starting with __ and the normal name is an alias.  */
26926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26927 choke me
26928 #else
26929 char (*f) () = $ac_func;
26930 #endif
26931 #ifdef __cplusplus
26932 }
26933 #endif
26934
26935 int
26936 main ()
26937 {
26938 return f != $ac_func;
26939   ;
26940   return 0;
26941 }
26942 _ACEOF
26943 rm -f conftest.$ac_objext conftest$ac_exeext
26944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26945   (eval $ac_link) 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } &&
26952          { ac_try='test -z "$ac_c_werror_flag"
26953                          || test ! -s conftest.err'
26954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955   (eval $ac_try) 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; } &&
26959          { ac_try='test -s conftest$ac_exeext'
26960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961   (eval $ac_try) 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; }; then
26965   eval "$as_ac_var=yes"
26966 else
26967   echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970 eval "$as_ac_var=no"
26971 fi
26972 rm -f conftest.err conftest.$ac_objext \
26973       conftest$ac_exeext conftest.$ac_ext
26974 fi
26975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26977 if test `eval echo '${'$as_ac_var'}'` = yes; then
26978   cat >>confdefs.h <<_ACEOF
26979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26980 _ACEOF
26981  cat >>confdefs.h <<\_ACEOF
26982 #define HAVE_GETHOSTBYNAME2 1
26983 _ACEOF
26984
26985 fi
26986 done
26987
26988
26989 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
26990 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
26991 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
26992   echo $ECHO_N "(cached) $ECHO_C" >&6
26993 else
26994   cat >conftest.$ac_ext <<_ACEOF
26995 /* confdefs.h.  */
26996 _ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h.  */
27000 #include <sys/socket.h>
27001 int
27002 main ()
27003 {
27004 struct sockaddr s; s.sa_len;
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 rm -f conftest.$ac_objext
27010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27011   (eval $ac_compile) 2>conftest.er1
27012   ac_status=$?
27013   grep -v '^ *+' conftest.er1 >conftest.err
27014   rm -f conftest.er1
27015   cat conftest.err >&5
27016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017   (exit $ac_status); } &&
27018          { ac_try='test -z "$ac_c_werror_flag"
27019                          || test ! -s conftest.err'
27020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021   (eval $ac_try) 2>&5
27022   ac_status=$?
27023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); }; } &&
27025          { ac_try='test -s conftest.$ac_objext'
27026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027   (eval $ac_try) 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); }; }; then
27031   ac_cv_struct_sockaddr_sa_len=yes
27032 else
27033   echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27035
27036 ac_cv_struct_sockaddr_sa_len=no
27037 fi
27038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27039 fi
27040 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27041 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27042
27043  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27044
27045 cat >>confdefs.h <<\_ACEOF
27046 #define HAVE_SA_LEN 1
27047 _ACEOF
27048
27049  fi
27050
27051
27052 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27053 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27054 if test "${ac_cv_ipv6_support+set}" = set; then
27055   echo $ECHO_N "(cached) $ECHO_C" >&6
27056 else
27057   cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h.  */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h.  */
27063  #include <sys/types.h>
27064 #include <sys/socket.h>
27065 #include <netinet/in.h>
27066 int
27067 main ()
27068 {
27069 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27070  0;
27071   ;
27072   return 0;
27073 }
27074 _ACEOF
27075 rm -f conftest.$ac_objext conftest$ac_exeext
27076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27077   (eval $ac_link) 2>conftest.er1
27078   ac_status=$?
27079   grep -v '^ *+' conftest.er1 >conftest.err
27080   rm -f conftest.er1
27081   cat conftest.err >&5
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); } &&
27084          { ac_try='test -z "$ac_c_werror_flag"
27085                          || test ! -s conftest.err'
27086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087   (eval $ac_try) 2>&5
27088   ac_status=$?
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); }; } &&
27091          { ac_try='test -s conftest$ac_exeext'
27092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093   (eval $ac_try) 2>&5
27094   ac_status=$?
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); }; }; then
27097   ac_cv_ipv6_support=yes
27098 else
27099   echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27101
27102 ac_cv_ipv6_support=no
27103 fi
27104 rm -f conftest.err conftest.$ac_objext \
27105       conftest$ac_exeext conftest.$ac_ext
27106 fi
27107 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27108 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27109
27110 if test "$ac_cv_ipv6_support" = yes; then
27111
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_IPV6 1
27114 _ACEOF
27115
27116 fi
27117
27118
27119
27120
27121 for ac_func in strftime
27122 do
27123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27124 echo "$as_me:$LINENO: checking for $ac_func" >&5
27125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27126 if eval "test \"\${$as_ac_var+set}\" = set"; then
27127   echo $ECHO_N "(cached) $ECHO_C" >&6
27128 else
27129   cat >conftest.$ac_ext <<_ACEOF
27130 /* confdefs.h.  */
27131 _ACEOF
27132 cat confdefs.h >>conftest.$ac_ext
27133 cat >>conftest.$ac_ext <<_ACEOF
27134 /* end confdefs.h.  */
27135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27137 #define $ac_func innocuous_$ac_func
27138
27139 /* System header to define __stub macros and hopefully few prototypes,
27140     which can conflict with char $ac_func (); below.
27141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27142     <limits.h> exists even on freestanding compilers.  */
27143
27144 #ifdef __STDC__
27145 # include <limits.h>
27146 #else
27147 # include <assert.h>
27148 #endif
27149
27150 #undef $ac_func
27151
27152 /* Override any gcc2 internal prototype to avoid an error.  */
27153 #ifdef __cplusplus
27154 extern "C"
27155 {
27156 #endif
27157 /* We use char because int might match the return type of a gcc2
27158    builtin and then its argument prototype would still apply.  */
27159 char $ac_func ();
27160 /* The GNU C library defines this for functions which it implements
27161     to always fail with ENOSYS.  Some functions are actually named
27162     something starting with __ and the normal name is an alias.  */
27163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27164 choke me
27165 #else
27166 char (*f) () = $ac_func;
27167 #endif
27168 #ifdef __cplusplus
27169 }
27170 #endif
27171
27172 int
27173 main ()
27174 {
27175 return f != $ac_func;
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext conftest$ac_exeext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27182   (eval $ac_link) 2>conftest.er1
27183   ac_status=$?
27184   grep -v '^ *+' conftest.er1 >conftest.err
27185   rm -f conftest.er1
27186   cat conftest.err >&5
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); } &&
27189          { ac_try='test -z "$ac_c_werror_flag"
27190                          || test ! -s conftest.err'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; } &&
27196          { ac_try='test -s conftest$ac_exeext'
27197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198   (eval $ac_try) 2>&5
27199   ac_status=$?
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); }; }; then
27202   eval "$as_ac_var=yes"
27203 else
27204   echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27206
27207 eval "$as_ac_var=no"
27208 fi
27209 rm -f conftest.err conftest.$ac_objext \
27210       conftest$ac_exeext conftest.$ac_ext
27211 fi
27212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27214 if test `eval echo '${'$as_ac_var'}'` = yes; then
27215   cat >>confdefs.h <<_ACEOF
27216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27217 _ACEOF
27218
27219 else
27220   # strftime is in -lintl on SCO UNIX.
27221 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27222 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27223 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27224   echo $ECHO_N "(cached) $ECHO_C" >&6
27225 else
27226   ac_check_lib_save_LIBS=$LIBS
27227 LIBS="-lintl  $LIBS"
27228 cat >conftest.$ac_ext <<_ACEOF
27229 /* confdefs.h.  */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h.  */
27234
27235 /* Override any gcc2 internal prototype to avoid an error.  */
27236 #ifdef __cplusplus
27237 extern "C"
27238 #endif
27239 /* We use char because int might match the return type of a gcc2
27240    builtin and then its argument prototype would still apply.  */
27241 char strftime ();
27242 int
27243 main ()
27244 {
27245 strftime ();
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27252   (eval $ac_link) 2>conftest.er1
27253   ac_status=$?
27254   grep -v '^ *+' conftest.er1 >conftest.err
27255   rm -f conftest.er1
27256   cat conftest.err >&5
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); } &&
27259          { ac_try='test -z "$ac_c_werror_flag"
27260                          || test ! -s conftest.err'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; } &&
27266          { ac_try='test -s conftest$ac_exeext'
27267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268   (eval $ac_try) 2>&5
27269   ac_status=$?
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); }; }; then
27272   ac_cv_lib_intl_strftime=yes
27273 else
27274   echo "$as_me: failed program was:" >&5
27275 sed 's/^/| /' conftest.$ac_ext >&5
27276
27277 ac_cv_lib_intl_strftime=no
27278 fi
27279 rm -f conftest.err conftest.$ac_objext \
27280       conftest$ac_exeext conftest.$ac_ext
27281 LIBS=$ac_check_lib_save_LIBS
27282 fi
27283 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27284 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27285 if test $ac_cv_lib_intl_strftime = yes; then
27286   cat >>confdefs.h <<\_ACEOF
27287 #define HAVE_STRFTIME 1
27288 _ACEOF
27289
27290 LIBS="-lintl $LIBS"
27291 fi
27292
27293 fi
27294 done
27295
27296
27297 for ac_func in vprintf
27298 do
27299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27300 echo "$as_me:$LINENO: checking for $ac_func" >&5
27301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27302 if eval "test \"\${$as_ac_var+set}\" = set"; then
27303   echo $ECHO_N "(cached) $ECHO_C" >&6
27304 else
27305   cat >conftest.$ac_ext <<_ACEOF
27306 /* confdefs.h.  */
27307 _ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h.  */
27311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27313 #define $ac_func innocuous_$ac_func
27314
27315 /* System header to define __stub macros and hopefully few prototypes,
27316     which can conflict with char $ac_func (); below.
27317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27318     <limits.h> exists even on freestanding compilers.  */
27319
27320 #ifdef __STDC__
27321 # include <limits.h>
27322 #else
27323 # include <assert.h>
27324 #endif
27325
27326 #undef $ac_func
27327
27328 /* Override any gcc2 internal prototype to avoid an error.  */
27329 #ifdef __cplusplus
27330 extern "C"
27331 {
27332 #endif
27333 /* We use char because int might match the return type of a gcc2
27334    builtin and then its argument prototype would still apply.  */
27335 char $ac_func ();
27336 /* The GNU C library defines this for functions which it implements
27337     to always fail with ENOSYS.  Some functions are actually named
27338     something starting with __ and the normal name is an alias.  */
27339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27340 choke me
27341 #else
27342 char (*f) () = $ac_func;
27343 #endif
27344 #ifdef __cplusplus
27345 }
27346 #endif
27347
27348 int
27349 main ()
27350 {
27351 return f != $ac_func;
27352   ;
27353   return 0;
27354 }
27355 _ACEOF
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27358   (eval $ac_link) 2>conftest.er1
27359   ac_status=$?
27360   grep -v '^ *+' conftest.er1 >conftest.err
27361   rm -f conftest.er1
27362   cat conftest.err >&5
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); } &&
27365          { ac_try='test -z "$ac_c_werror_flag"
27366                          || test ! -s conftest.err'
27367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368   (eval $ac_try) 2>&5
27369   ac_status=$?
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); }; } &&
27372          { ac_try='test -s conftest$ac_exeext'
27373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374   (eval $ac_try) 2>&5
27375   ac_status=$?
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); }; }; then
27378   eval "$as_ac_var=yes"
27379 else
27380   echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27382
27383 eval "$as_ac_var=no"
27384 fi
27385 rm -f conftest.err conftest.$ac_objext \
27386       conftest$ac_exeext conftest.$ac_ext
27387 fi
27388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27390 if test `eval echo '${'$as_ac_var'}'` = yes; then
27391   cat >>confdefs.h <<_ACEOF
27392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27393 _ACEOF
27394
27395 echo "$as_me:$LINENO: checking for _doprnt" >&5
27396 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27397 if test "${ac_cv_func__doprnt+set}" = set; then
27398   echo $ECHO_N "(cached) $ECHO_C" >&6
27399 else
27400   cat >conftest.$ac_ext <<_ACEOF
27401 /* confdefs.h.  */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h.  */
27406 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27408 #define _doprnt innocuous__doprnt
27409
27410 /* System header to define __stub macros and hopefully few prototypes,
27411     which can conflict with char _doprnt (); below.
27412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27413     <limits.h> exists even on freestanding compilers.  */
27414
27415 #ifdef __STDC__
27416 # include <limits.h>
27417 #else
27418 # include <assert.h>
27419 #endif
27420
27421 #undef _doprnt
27422
27423 /* Override any gcc2 internal prototype to avoid an error.  */
27424 #ifdef __cplusplus
27425 extern "C"
27426 {
27427 #endif
27428 /* We use char because int might match the return type of a gcc2
27429    builtin and then its argument prototype would still apply.  */
27430 char _doprnt ();
27431 /* The GNU C library defines this for functions which it implements
27432     to always fail with ENOSYS.  Some functions are actually named
27433     something starting with __ and the normal name is an alias.  */
27434 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27435 choke me
27436 #else
27437 char (*f) () = _doprnt;
27438 #endif
27439 #ifdef __cplusplus
27440 }
27441 #endif
27442
27443 int
27444 main ()
27445 {
27446 return f != _doprnt;
27447   ;
27448   return 0;
27449 }
27450 _ACEOF
27451 rm -f conftest.$ac_objext conftest$ac_exeext
27452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27453   (eval $ac_link) 2>conftest.er1
27454   ac_status=$?
27455   grep -v '^ *+' conftest.er1 >conftest.err
27456   rm -f conftest.er1
27457   cat conftest.err >&5
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); } &&
27460          { ac_try='test -z "$ac_c_werror_flag"
27461                          || test ! -s conftest.err'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; } &&
27467          { ac_try='test -s conftest$ac_exeext'
27468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469   (eval $ac_try) 2>&5
27470   ac_status=$?
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; }; then
27473   ac_cv_func__doprnt=yes
27474 else
27475   echo "$as_me: failed program was:" >&5
27476 sed 's/^/| /' conftest.$ac_ext >&5
27477
27478 ac_cv_func__doprnt=no
27479 fi
27480 rm -f conftest.err conftest.$ac_objext \
27481       conftest$ac_exeext conftest.$ac_ext
27482 fi
27483 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27484 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27485 if test $ac_cv_func__doprnt = yes; then
27486
27487 cat >>confdefs.h <<\_ACEOF
27488 #define HAVE_DOPRNT 1
27489 _ACEOF
27490
27491 fi
27492
27493 fi
27494 done
27495
27496
27497 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27498 # for constant arguments.  Useless!
27499 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27500 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27501 if test "${ac_cv_working_alloca_h+set}" = set; then
27502   echo $ECHO_N "(cached) $ECHO_C" >&6
27503 else
27504   cat >conftest.$ac_ext <<_ACEOF
27505 /* confdefs.h.  */
27506 _ACEOF
27507 cat confdefs.h >>conftest.$ac_ext
27508 cat >>conftest.$ac_ext <<_ACEOF
27509 /* end confdefs.h.  */
27510 #include <alloca.h>
27511 int
27512 main ()
27513 {
27514 char *p = (char *) alloca (2 * sizeof (int));
27515   ;
27516   return 0;
27517 }
27518 _ACEOF
27519 rm -f conftest.$ac_objext conftest$ac_exeext
27520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27521   (eval $ac_link) 2>conftest.er1
27522   ac_status=$?
27523   grep -v '^ *+' conftest.er1 >conftest.err
27524   rm -f conftest.er1
27525   cat conftest.err >&5
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); } &&
27528          { ac_try='test -z "$ac_c_werror_flag"
27529                          || test ! -s conftest.err'
27530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531   (eval $ac_try) 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; } &&
27535          { ac_try='test -s conftest$ac_exeext'
27536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537   (eval $ac_try) 2>&5
27538   ac_status=$?
27539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540   (exit $ac_status); }; }; then
27541   ac_cv_working_alloca_h=yes
27542 else
27543   echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27545
27546 ac_cv_working_alloca_h=no
27547 fi
27548 rm -f conftest.err conftest.$ac_objext \
27549       conftest$ac_exeext conftest.$ac_ext
27550 fi
27551 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27552 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27553 if test $ac_cv_working_alloca_h = yes; then
27554
27555 cat >>confdefs.h <<\_ACEOF
27556 #define HAVE_ALLOCA_H 1
27557 _ACEOF
27558
27559 fi
27560
27561 echo "$as_me:$LINENO: checking for alloca" >&5
27562 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27563 if test "${ac_cv_func_alloca_works+set}" = set; then
27564   echo $ECHO_N "(cached) $ECHO_C" >&6
27565 else
27566   cat >conftest.$ac_ext <<_ACEOF
27567 /* confdefs.h.  */
27568 _ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h.  */
27572 #ifdef __GNUC__
27573 # define alloca __builtin_alloca
27574 #else
27575 # ifdef _MSC_VER
27576 #  include <malloc.h>
27577 #  define alloca _alloca
27578 # else
27579 #  if HAVE_ALLOCA_H
27580 #   include <alloca.h>
27581 #  else
27582 #   ifdef _AIX
27583  #pragma alloca
27584 #   else
27585 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27586 char *alloca ();
27587 #    endif
27588 #   endif
27589 #  endif
27590 # endif
27591 #endif
27592
27593 int
27594 main ()
27595 {
27596 char *p = (char *) alloca (1);
27597   ;
27598   return 0;
27599 }
27600 _ACEOF
27601 rm -f conftest.$ac_objext conftest$ac_exeext
27602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27603   (eval $ac_link) 2>conftest.er1
27604   ac_status=$?
27605   grep -v '^ *+' conftest.er1 >conftest.err
27606   rm -f conftest.er1
27607   cat conftest.err >&5
27608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609   (exit $ac_status); } &&
27610          { ac_try='test -z "$ac_c_werror_flag"
27611                          || test ! -s conftest.err'
27612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27613   (eval $ac_try) 2>&5
27614   ac_status=$?
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); }; } &&
27617          { ac_try='test -s conftest$ac_exeext'
27618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619   (eval $ac_try) 2>&5
27620   ac_status=$?
27621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622   (exit $ac_status); }; }; then
27623   ac_cv_func_alloca_works=yes
27624 else
27625   echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27627
27628 ac_cv_func_alloca_works=no
27629 fi
27630 rm -f conftest.err conftest.$ac_objext \
27631       conftest$ac_exeext conftest.$ac_ext
27632 fi
27633 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27634 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27635
27636 if test $ac_cv_func_alloca_works = yes; then
27637
27638 cat >>confdefs.h <<\_ACEOF
27639 #define HAVE_ALLOCA 1
27640 _ACEOF
27641
27642 else
27643   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27644 # that cause trouble.  Some versions do not even contain alloca or
27645 # contain a buggy version.  If you still want to use their alloca,
27646 # use ar to extract alloca.o from them instead of compiling alloca.c.
27647
27648 ALLOCA=alloca.$ac_objext
27649
27650 cat >>confdefs.h <<\_ACEOF
27651 #define C_ALLOCA 1
27652 _ACEOF
27653
27654
27655 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27656 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27657 if test "${ac_cv_os_cray+set}" = set; then
27658   echo $ECHO_N "(cached) $ECHO_C" >&6
27659 else
27660   cat >conftest.$ac_ext <<_ACEOF
27661 /* confdefs.h.  */
27662 _ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h.  */
27666 #if defined(CRAY) && ! defined(CRAY2)
27667 webecray
27668 #else
27669 wenotbecray
27670 #endif
27671
27672 _ACEOF
27673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27674   $EGREP "webecray" >/dev/null 2>&1; then
27675   ac_cv_os_cray=yes
27676 else
27677   ac_cv_os_cray=no
27678 fi
27679 rm -f conftest*
27680
27681 fi
27682 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27683 echo "${ECHO_T}$ac_cv_os_cray" >&6
27684 if test $ac_cv_os_cray = yes; then
27685   for ac_func in _getb67 GETB67 getb67; do
27686     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27687 echo "$as_me:$LINENO: checking for $ac_func" >&5
27688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27689 if eval "test \"\${$as_ac_var+set}\" = set"; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27700 #define $ac_func innocuous_$ac_func
27701
27702 /* System header to define __stub macros and hopefully few prototypes,
27703     which can conflict with char $ac_func (); below.
27704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27705     <limits.h> exists even on freestanding compilers.  */
27706
27707 #ifdef __STDC__
27708 # include <limits.h>
27709 #else
27710 # include <assert.h>
27711 #endif
27712
27713 #undef $ac_func
27714
27715 /* Override any gcc2 internal prototype to avoid an error.  */
27716 #ifdef __cplusplus
27717 extern "C"
27718 {
27719 #endif
27720 /* We use char because int might match the return type of a gcc2
27721    builtin and then its argument prototype would still apply.  */
27722 char $ac_func ();
27723 /* The GNU C library defines this for functions which it implements
27724     to always fail with ENOSYS.  Some functions are actually named
27725     something starting with __ and the normal name is an alias.  */
27726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27727 choke me
27728 #else
27729 char (*f) () = $ac_func;
27730 #endif
27731 #ifdef __cplusplus
27732 }
27733 #endif
27734
27735 int
27736 main ()
27737 {
27738 return f != $ac_func;
27739   ;
27740   return 0;
27741 }
27742 _ACEOF
27743 rm -f conftest.$ac_objext conftest$ac_exeext
27744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27745   (eval $ac_link) 2>conftest.er1
27746   ac_status=$?
27747   grep -v '^ *+' conftest.er1 >conftest.err
27748   rm -f conftest.er1
27749   cat conftest.err >&5
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); } &&
27752          { ac_try='test -z "$ac_c_werror_flag"
27753                          || test ! -s conftest.err'
27754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755   (eval $ac_try) 2>&5
27756   ac_status=$?
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); }; } &&
27759          { ac_try='test -s conftest$ac_exeext'
27760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27761   (eval $ac_try) 2>&5
27762   ac_status=$?
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); }; }; then
27765   eval "$as_ac_var=yes"
27766 else
27767   echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27769
27770 eval "$as_ac_var=no"
27771 fi
27772 rm -f conftest.err conftest.$ac_objext \
27773       conftest$ac_exeext conftest.$ac_ext
27774 fi
27775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27777 if test `eval echo '${'$as_ac_var'}'` = yes; then
27778
27779 cat >>confdefs.h <<_ACEOF
27780 #define CRAY_STACKSEG_END $ac_func
27781 _ACEOF
27782
27783     break
27784 fi
27785
27786   done
27787 fi
27788
27789 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27790 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27791 if test "${ac_cv_c_stack_direction+set}" = set; then
27792   echo $ECHO_N "(cached) $ECHO_C" >&6
27793 else
27794   if test "$cross_compiling" = yes; then
27795   ac_cv_c_stack_direction=0
27796 else
27797   cat >conftest.$ac_ext <<_ACEOF
27798 /* confdefs.h.  */
27799 _ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h.  */
27803 int
27804 find_stack_direction ()
27805 {
27806   static char *addr = 0;
27807   auto char dummy;
27808   if (addr == 0)
27809     {
27810       addr = &dummy;
27811       return find_stack_direction ();
27812     }
27813   else
27814     return (&dummy > addr) ? 1 : -1;
27815 }
27816
27817 int
27818 main ()
27819 {
27820   exit (find_stack_direction () < 0);
27821 }
27822 _ACEOF
27823 rm -f conftest$ac_exeext
27824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27825   (eval $ac_link) 2>&5
27826   ac_status=$?
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27830   (eval $ac_try) 2>&5
27831   ac_status=$?
27832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833   (exit $ac_status); }; }; then
27834   ac_cv_c_stack_direction=1
27835 else
27836   echo "$as_me: program exited with status $ac_status" >&5
27837 echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.$ac_ext >&5
27839
27840 ( exit $ac_status )
27841 ac_cv_c_stack_direction=-1
27842 fi
27843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27844 fi
27845 fi
27846 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27847 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27848
27849 cat >>confdefs.h <<_ACEOF
27850 #define STACK_DIRECTION $ac_cv_c_stack_direction
27851 _ACEOF
27852
27853
27854 fi
27855
27856 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
27857 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
27858 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
27859 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
27860   echo $ECHO_N "(cached) $ECHO_C" >&6
27861 else
27862   ac_check_lib_save_LIBS=$LIBS
27863 LIBS="-lsun  $LIBS"
27864 cat >conftest.$ac_ext <<_ACEOF
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870
27871 /* Override any gcc2 internal prototype to avoid an error.  */
27872 #ifdef __cplusplus
27873 extern "C"
27874 #endif
27875 /* We use char because int might match the return type of a gcc2
27876    builtin and then its argument prototype would still apply.  */
27877 char getmntent ();
27878 int
27879 main ()
27880 {
27881 getmntent ();
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 rm -f conftest.$ac_objext conftest$ac_exeext
27887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27888   (eval $ac_link) 2>conftest.er1
27889   ac_status=$?
27890   grep -v '^ *+' conftest.er1 >conftest.err
27891   rm -f conftest.er1
27892   cat conftest.err >&5
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); } &&
27895          { ac_try='test -z "$ac_c_werror_flag"
27896                          || test ! -s conftest.err'
27897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898   (eval $ac_try) 2>&5
27899   ac_status=$?
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); }; } &&
27902          { ac_try='test -s conftest$ac_exeext'
27903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904   (eval $ac_try) 2>&5
27905   ac_status=$?
27906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907   (exit $ac_status); }; }; then
27908   ac_cv_lib_sun_getmntent=yes
27909 else
27910   echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27912
27913 ac_cv_lib_sun_getmntent=no
27914 fi
27915 rm -f conftest.err conftest.$ac_objext \
27916       conftest$ac_exeext conftest.$ac_ext
27917 LIBS=$ac_check_lib_save_LIBS
27918 fi
27919 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
27920 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
27921 if test $ac_cv_lib_sun_getmntent = yes; then
27922   LIBS="-lsun $LIBS"
27923 else
27924   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
27925 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
27926 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
27927   echo $ECHO_N "(cached) $ECHO_C" >&6
27928 else
27929   ac_check_lib_save_LIBS=$LIBS
27930 LIBS="-lseq  $LIBS"
27931 cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937
27938 /* Override any gcc2 internal prototype to avoid an error.  */
27939 #ifdef __cplusplus
27940 extern "C"
27941 #endif
27942 /* We use char because int might match the return type of a gcc2
27943    builtin and then its argument prototype would still apply.  */
27944 char getmntent ();
27945 int
27946 main ()
27947 {
27948 getmntent ();
27949   ;
27950   return 0;
27951 }
27952 _ACEOF
27953 rm -f conftest.$ac_objext conftest$ac_exeext
27954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27955   (eval $ac_link) 2>conftest.er1
27956   ac_status=$?
27957   grep -v '^ *+' conftest.er1 >conftest.err
27958   rm -f conftest.er1
27959   cat conftest.err >&5
27960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961   (exit $ac_status); } &&
27962          { ac_try='test -z "$ac_c_werror_flag"
27963                          || test ! -s conftest.err'
27964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965   (eval $ac_try) 2>&5
27966   ac_status=$?
27967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968   (exit $ac_status); }; } &&
27969          { ac_try='test -s conftest$ac_exeext'
27970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971   (eval $ac_try) 2>&5
27972   ac_status=$?
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); }; }; then
27975   ac_cv_lib_seq_getmntent=yes
27976 else
27977   echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27979
27980 ac_cv_lib_seq_getmntent=no
27981 fi
27982 rm -f conftest.err conftest.$ac_objext \
27983       conftest$ac_exeext conftest.$ac_ext
27984 LIBS=$ac_check_lib_save_LIBS
27985 fi
27986 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
27987 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
27988 if test $ac_cv_lib_seq_getmntent = yes; then
27989   LIBS="-lseq $LIBS"
27990 else
27991   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
27992 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
27993 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
27994   echo $ECHO_N "(cached) $ECHO_C" >&6
27995 else
27996   ac_check_lib_save_LIBS=$LIBS
27997 LIBS="-lgen  $LIBS"
27998 cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004
28005 /* Override any gcc2 internal prototype to avoid an error.  */
28006 #ifdef __cplusplus
28007 extern "C"
28008 #endif
28009 /* We use char because int might match the return type of a gcc2
28010    builtin and then its argument prototype would still apply.  */
28011 char getmntent ();
28012 int
28013 main ()
28014 {
28015 getmntent ();
28016   ;
28017   return 0;
28018 }
28019 _ACEOF
28020 rm -f conftest.$ac_objext conftest$ac_exeext
28021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28022   (eval $ac_link) 2>conftest.er1
28023   ac_status=$?
28024   grep -v '^ *+' conftest.er1 >conftest.err
28025   rm -f conftest.er1
28026   cat conftest.err >&5
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); } &&
28029          { ac_try='test -z "$ac_c_werror_flag"
28030                          || test ! -s conftest.err'
28031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032   (eval $ac_try) 2>&5
28033   ac_status=$?
28034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); }; } &&
28036          { ac_try='test -s conftest$ac_exeext'
28037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038   (eval $ac_try) 2>&5
28039   ac_status=$?
28040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041   (exit $ac_status); }; }; then
28042   ac_cv_lib_gen_getmntent=yes
28043 else
28044   echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28046
28047 ac_cv_lib_gen_getmntent=no
28048 fi
28049 rm -f conftest.err conftest.$ac_objext \
28050       conftest$ac_exeext conftest.$ac_ext
28051 LIBS=$ac_check_lib_save_LIBS
28052 fi
28053 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28054 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28055 if test $ac_cv_lib_gen_getmntent = yes; then
28056   LIBS="-lgen $LIBS"
28057 fi
28058
28059 fi
28060
28061 fi
28062
28063
28064 for ac_func in getmntent
28065 do
28066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28067 echo "$as_me:$LINENO: checking for $ac_func" >&5
28068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28069 if eval "test \"\${$as_ac_var+set}\" = set"; then
28070   echo $ECHO_N "(cached) $ECHO_C" >&6
28071 else
28072   cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h.  */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h.  */
28078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28080 #define $ac_func innocuous_$ac_func
28081
28082 /* System header to define __stub macros and hopefully few prototypes,
28083     which can conflict with char $ac_func (); below.
28084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28085     <limits.h> exists even on freestanding compilers.  */
28086
28087 #ifdef __STDC__
28088 # include <limits.h>
28089 #else
28090 # include <assert.h>
28091 #endif
28092
28093 #undef $ac_func
28094
28095 /* Override any gcc2 internal prototype to avoid an error.  */
28096 #ifdef __cplusplus
28097 extern "C"
28098 {
28099 #endif
28100 /* We use char because int might match the return type of a gcc2
28101    builtin and then its argument prototype would still apply.  */
28102 char $ac_func ();
28103 /* The GNU C library defines this for functions which it implements
28104     to always fail with ENOSYS.  Some functions are actually named
28105     something starting with __ and the normal name is an alias.  */
28106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28107 choke me
28108 #else
28109 char (*f) () = $ac_func;
28110 #endif
28111 #ifdef __cplusplus
28112 }
28113 #endif
28114
28115 int
28116 main ()
28117 {
28118 return f != $ac_func;
28119   ;
28120   return 0;
28121 }
28122 _ACEOF
28123 rm -f conftest.$ac_objext conftest$ac_exeext
28124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28125   (eval $ac_link) 2>conftest.er1
28126   ac_status=$?
28127   grep -v '^ *+' conftest.er1 >conftest.err
28128   rm -f conftest.er1
28129   cat conftest.err >&5
28130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131   (exit $ac_status); } &&
28132          { ac_try='test -z "$ac_c_werror_flag"
28133                          || test ! -s conftest.err'
28134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28135   (eval $ac_try) 2>&5
28136   ac_status=$?
28137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138   (exit $ac_status); }; } &&
28139          { ac_try='test -s conftest$ac_exeext'
28140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141   (eval $ac_try) 2>&5
28142   ac_status=$?
28143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144   (exit $ac_status); }; }; then
28145   eval "$as_ac_var=yes"
28146 else
28147   echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28149
28150 eval "$as_ac_var=no"
28151 fi
28152 rm -f conftest.err conftest.$ac_objext \
28153       conftest$ac_exeext conftest.$ac_ext
28154 fi
28155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28157 if test `eval echo '${'$as_ac_var'}'` = yes; then
28158   cat >>confdefs.h <<_ACEOF
28159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28160 _ACEOF
28161
28162 fi
28163 done
28164
28165
28166 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28167 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28168 if test "${ac_cv_func_closedir_void+set}" = set; then
28169   echo $ECHO_N "(cached) $ECHO_C" >&6
28170 else
28171   if test "$cross_compiling" = yes; then
28172   ac_cv_func_closedir_void=yes
28173 else
28174   cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28180 $ac_includes_default
28181 #include <$ac_header_dirent>
28182 #ifndef __cplusplus
28183 int closedir ();
28184 #endif
28185
28186 int
28187 main ()
28188 {
28189 exit (closedir (opendir (".")) != 0);
28190   ;
28191   return 0;
28192 }
28193 _ACEOF
28194 rm -f conftest$ac_exeext
28195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28196   (eval $ac_link) 2>&5
28197   ac_status=$?
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28201   (eval $ac_try) 2>&5
28202   ac_status=$?
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); }; }; then
28205   ac_cv_func_closedir_void=no
28206 else
28207   echo "$as_me: program exited with status $ac_status" >&5
28208 echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28210
28211 ( exit $ac_status )
28212 ac_cv_func_closedir_void=yes
28213 fi
28214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28215 fi
28216 fi
28217 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28218 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28219 if test $ac_cv_func_closedir_void = yes; then
28220
28221 cat >>confdefs.h <<\_ACEOF
28222 #define CLOSEDIR_VOID 1
28223 _ACEOF
28224
28225 fi
28226
28227 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28228 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28229 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28230   echo $ECHO_N "(cached) $ECHO_C" >&6
28231 else
28232   if test "$cross_compiling" = yes; then
28233   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28234 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28235    { (exit 1); exit 1; }; }
28236 else
28237   cat >conftest.$ac_ext <<_ACEOF
28238 /* confdefs.h.  */
28239 _ACEOF
28240 cat confdefs.h >>conftest.$ac_ext
28241 cat >>conftest.$ac_ext <<_ACEOF
28242 /* end confdefs.h.  */
28243 #if HAVE_UNISTD_H
28244 # include <unistd.h>
28245 #endif
28246
28247 int
28248 main ()
28249 {
28250 /* If this system has a BSD-style setpgrp which takes arguments,
28251   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28252   exit successfully. */
28253   exit (setpgrp (1,1) == -1 ? 0 : 1);
28254   ;
28255   return 0;
28256 }
28257 _ACEOF
28258 rm -f conftest$ac_exeext
28259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260   (eval $ac_link) 2>&5
28261   ac_status=$?
28262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265   (eval $ac_try) 2>&5
28266   ac_status=$?
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); }; }; then
28269   ac_cv_func_setpgrp_void=no
28270 else
28271   echo "$as_me: program exited with status $ac_status" >&5
28272 echo "$as_me: failed program was:" >&5
28273 sed 's/^/| /' conftest.$ac_ext >&5
28274
28275 ( exit $ac_status )
28276 ac_cv_func_setpgrp_void=yes
28277 fi
28278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28279 fi
28280 fi
28281 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28282 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28283 if test $ac_cv_func_setpgrp_void = yes; then
28284
28285 cat >>confdefs.h <<\_ACEOF
28286 #define SETPGRP_VOID 1
28287 _ACEOF
28288
28289 fi
28290                       # AC_FUNC_FNMATCH    dnl use local version
28291
28292
28293 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
28294 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
28295 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
28296   echo $ECHO_N "(cached) $ECHO_C" >&6
28297 else
28298   ac_check_lib_save_LIBS=$LIBS
28299 LIBS="-lxpg4  $LIBS"
28300 cat >conftest.$ac_ext <<_ACEOF
28301 /* confdefs.h.  */
28302 _ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h.  */
28306
28307 /* Override any gcc2 internal prototype to avoid an error.  */
28308 #ifdef __cplusplus
28309 extern "C"
28310 #endif
28311 /* We use char because int might match the return type of a gcc2
28312    builtin and then its argument prototype would still apply.  */
28313 char setlocale ();
28314 int
28315 main ()
28316 {
28317 setlocale ();
28318   ;
28319   return 0;
28320 }
28321 _ACEOF
28322 rm -f conftest.$ac_objext conftest$ac_exeext
28323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28324   (eval $ac_link) 2>conftest.er1
28325   ac_status=$?
28326   grep -v '^ *+' conftest.er1 >conftest.err
28327   rm -f conftest.er1
28328   cat conftest.err >&5
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); } &&
28331          { ac_try='test -z "$ac_c_werror_flag"
28332                          || test ! -s conftest.err'
28333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334   (eval $ac_try) 2>&5
28335   ac_status=$?
28336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337   (exit $ac_status); }; } &&
28338          { ac_try='test -s conftest$ac_exeext'
28339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340   (eval $ac_try) 2>&5
28341   ac_status=$?
28342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343   (exit $ac_status); }; }; then
28344   ac_cv_lib_xpg4_setlocale=yes
28345 else
28346   echo "$as_me: failed program was:" >&5
28347 sed 's/^/| /' conftest.$ac_ext >&5
28348
28349 ac_cv_lib_xpg4_setlocale=no
28350 fi
28351 rm -f conftest.err conftest.$ac_objext \
28352       conftest$ac_exeext conftest.$ac_ext
28353 LIBS=$ac_check_lib_save_LIBS
28354 fi
28355 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
28356 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
28357 if test $ac_cv_lib_xpg4_setlocale = yes; then
28358   LIBS="$LIBS -lxpg4"
28359 fi
28360
28361 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28362 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28363 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28364   echo $ECHO_N "(cached) $ECHO_C" >&6
28365 else
28366   ac_check_lib_save_LIBS=$LIBS
28367 LIBS="-lintl  $LIBS"
28368 cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374
28375 /* Override any gcc2 internal prototype to avoid an error.  */
28376 #ifdef __cplusplus
28377 extern "C"
28378 #endif
28379 /* We use char because int might match the return type of a gcc2
28380    builtin and then its argument prototype would still apply.  */
28381 char gettext ();
28382 int
28383 main ()
28384 {
28385 gettext ();
28386   ;
28387   return 0;
28388 }
28389 _ACEOF
28390 rm -f conftest.$ac_objext conftest$ac_exeext
28391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28392   (eval $ac_link) 2>conftest.er1
28393   ac_status=$?
28394   grep -v '^ *+' conftest.er1 >conftest.err
28395   rm -f conftest.er1
28396   cat conftest.err >&5
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); } &&
28399          { ac_try='test -z "$ac_c_werror_flag"
28400                          || test ! -s conftest.err'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; } &&
28406          { ac_try='test -s conftest$ac_exeext'
28407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408   (eval $ac_try) 2>&5
28409   ac_status=$?
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); }; }; then
28412   ac_cv_lib_intl_gettext=yes
28413 else
28414   echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28416
28417 ac_cv_lib_intl_gettext=no
28418 fi
28419 rm -f conftest.err conftest.$ac_objext \
28420       conftest$ac_exeext conftest.$ac_ext
28421 LIBS=$ac_check_lib_save_LIBS
28422 fi
28423 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28424 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28425 if test $ac_cv_lib_intl_gettext = yes; then
28426   LIBS="$LIBS -lintl"
28427 fi
28428
28429
28430
28431
28432 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28433 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28434 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28435   echo $ECHO_N "(cached) $ECHO_C" >&6
28436 else
28437   ac_check_lib_save_LIBS=$LIBS
28438 LIBS="-lsun  $LIBS"
28439 cat >conftest.$ac_ext <<_ACEOF
28440 /* confdefs.h.  */
28441 _ACEOF
28442 cat confdefs.h >>conftest.$ac_ext
28443 cat >>conftest.$ac_ext <<_ACEOF
28444 /* end confdefs.h.  */
28445
28446 /* Override any gcc2 internal prototype to avoid an error.  */
28447 #ifdef __cplusplus
28448 extern "C"
28449 #endif
28450 /* We use char because int might match the return type of a gcc2
28451    builtin and then its argument prototype would still apply.  */
28452 char getpwnam ();
28453 int
28454 main ()
28455 {
28456 getpwnam ();
28457   ;
28458   return 0;
28459 }
28460 _ACEOF
28461 rm -f conftest.$ac_objext conftest$ac_exeext
28462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28463   (eval $ac_link) 2>conftest.er1
28464   ac_status=$?
28465   grep -v '^ *+' conftest.er1 >conftest.err
28466   rm -f conftest.er1
28467   cat conftest.err >&5
28468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469   (exit $ac_status); } &&
28470          { ac_try='test -z "$ac_c_werror_flag"
28471                          || test ! -s conftest.err'
28472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473   (eval $ac_try) 2>&5
28474   ac_status=$?
28475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476   (exit $ac_status); }; } &&
28477          { ac_try='test -s conftest$ac_exeext'
28478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479   (eval $ac_try) 2>&5
28480   ac_status=$?
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); }; }; then
28483   ac_cv_lib_sun_getpwnam=yes
28484 else
28485   echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488 ac_cv_lib_sun_getpwnam=no
28489 fi
28490 rm -f conftest.err conftest.$ac_objext \
28491       conftest$ac_exeext conftest.$ac_ext
28492 LIBS=$ac_check_lib_save_LIBS
28493 fi
28494 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28495 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28496 if test $ac_cv_lib_sun_getpwnam = yes; then
28497   cat >>confdefs.h <<_ACEOF
28498 #define HAVE_LIBSUN 1
28499 _ACEOF
28500
28501   LIBS="-lsun $LIBS"
28502
28503 fi
28504
28505
28506
28507 for ac_header in zlib.h
28508 do
28509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28511   echo "$as_me:$LINENO: checking for $ac_header" >&5
28512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28514   echo $ECHO_N "(cached) $ECHO_C" >&6
28515 fi
28516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28518 else
28519   # Is the header compilable?
28520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28522 cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h.  */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h.  */
28528 $ac_includes_default
28529 #include <$ac_header>
28530 _ACEOF
28531 rm -f conftest.$ac_objext
28532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28533   (eval $ac_compile) 2>conftest.er1
28534   ac_status=$?
28535   grep -v '^ *+' conftest.er1 >conftest.err
28536   rm -f conftest.er1
28537   cat conftest.err >&5
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); } &&
28540          { ac_try='test -z "$ac_c_werror_flag"
28541                          || test ! -s conftest.err'
28542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543   (eval $ac_try) 2>&5
28544   ac_status=$?
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); }; } &&
28547          { ac_try='test -s conftest.$ac_objext'
28548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28549   (eval $ac_try) 2>&5
28550   ac_status=$?
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); }; }; then
28553   ac_header_compiler=yes
28554 else
28555   echo "$as_me: failed program was:" >&5
28556 sed 's/^/| /' conftest.$ac_ext >&5
28557
28558 ac_header_compiler=no
28559 fi
28560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28562 echo "${ECHO_T}$ac_header_compiler" >&6
28563
28564 # Is the header present?
28565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28567 cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573 #include <$ac_header>
28574 _ACEOF
28575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28577   ac_status=$?
28578   grep -v '^ *+' conftest.er1 >conftest.err
28579   rm -f conftest.er1
28580   cat conftest.err >&5
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); } >/dev/null; then
28583   if test -s conftest.err; then
28584     ac_cpp_err=$ac_c_preproc_warn_flag
28585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28586   else
28587     ac_cpp_err=
28588   fi
28589 else
28590   ac_cpp_err=yes
28591 fi
28592 if test -z "$ac_cpp_err"; then
28593   ac_header_preproc=yes
28594 else
28595   echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28597
28598   ac_header_preproc=no
28599 fi
28600 rm -f conftest.err conftest.$ac_ext
28601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28602 echo "${ECHO_T}$ac_header_preproc" >&6
28603
28604 # So?  What about this header?
28605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28606   yes:no: )
28607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28611     ac_header_preproc=yes
28612     ;;
28613   no:yes:* )
28614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28626     (
28627       cat <<\_ASBOX
28628 ## ------------------------------------------ ##
28629 ## Report this to the AC_PACKAGE_NAME lists.  ##
28630 ## ------------------------------------------ ##
28631 _ASBOX
28632     ) |
28633       sed "s/^/$as_me: WARNING:     /" >&2
28634     ;;
28635 esac
28636 echo "$as_me:$LINENO: checking for $ac_header" >&5
28637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28639   echo $ECHO_N "(cached) $ECHO_C" >&6
28640 else
28641   eval "$as_ac_Header=\$ac_header_preproc"
28642 fi
28643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28645
28646 fi
28647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28648   cat >>confdefs.h <<_ACEOF
28649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28650 _ACEOF
28651
28652 fi
28653
28654 done
28655
28656 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28657 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28658 if test "${ac_cv_lib_z_deflate+set}" = set; then
28659   echo $ECHO_N "(cached) $ECHO_C" >&6
28660 else
28661   ac_check_lib_save_LIBS=$LIBS
28662 LIBS="-lz  $LIBS"
28663 cat >conftest.$ac_ext <<_ACEOF
28664 /* confdefs.h.  */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h.  */
28669
28670 /* Override any gcc2 internal prototype to avoid an error.  */
28671 #ifdef __cplusplus
28672 extern "C"
28673 #endif
28674 /* We use char because int might match the return type of a gcc2
28675    builtin and then its argument prototype would still apply.  */
28676 char deflate ();
28677 int
28678 main ()
28679 {
28680 deflate ();
28681   ;
28682   return 0;
28683 }
28684 _ACEOF
28685 rm -f conftest.$ac_objext conftest$ac_exeext
28686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28687   (eval $ac_link) 2>conftest.er1
28688   ac_status=$?
28689   grep -v '^ *+' conftest.er1 >conftest.err
28690   rm -f conftest.er1
28691   cat conftest.err >&5
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); } &&
28694          { ac_try='test -z "$ac_c_werror_flag"
28695                          || test ! -s conftest.err'
28696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697   (eval $ac_try) 2>&5
28698   ac_status=$?
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); }; } &&
28701          { ac_try='test -s conftest$ac_exeext'
28702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28703   (eval $ac_try) 2>&5
28704   ac_status=$?
28705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706   (exit $ac_status); }; }; then
28707   ac_cv_lib_z_deflate=yes
28708 else
28709   echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28711
28712 ac_cv_lib_z_deflate=no
28713 fi
28714 rm -f conftest.err conftest.$ac_objext \
28715       conftest$ac_exeext conftest.$ac_ext
28716 LIBS=$ac_check_lib_save_LIBS
28717 fi
28718 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28719 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28720 if test $ac_cv_lib_z_deflate = yes; then
28721   FDLIBS="-lz"
28722 fi
28723
28724 have_zlib=no
28725 if test x$FDLIBS = x-lz; then
28726   cat >>confdefs.h <<\_ACEOF
28727 #define HAVE_LIBZ 1
28728 _ACEOF
28729
28730   have_zlib=yes
28731 fi
28732
28733 have_acl=no
28734 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28735   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28736 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28737 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28738   echo $ECHO_N "(cached) $ECHO_C" >&6
28739 fi
28740 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28741 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28742 else
28743   # Is the header compilable?
28744 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28745 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28746 cat >conftest.$ac_ext <<_ACEOF
28747 /* confdefs.h.  */
28748 _ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h.  */
28752 $ac_includes_default
28753 #include <sys/acl.h>
28754 _ACEOF
28755 rm -f conftest.$ac_objext
28756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28757   (eval $ac_compile) 2>conftest.er1
28758   ac_status=$?
28759   grep -v '^ *+' conftest.er1 >conftest.err
28760   rm -f conftest.er1
28761   cat conftest.err >&5
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); } &&
28764          { ac_try='test -z "$ac_c_werror_flag"
28765                          || test ! -s conftest.err'
28766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767   (eval $ac_try) 2>&5
28768   ac_status=$?
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); }; } &&
28771          { ac_try='test -s conftest.$ac_objext'
28772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773   (eval $ac_try) 2>&5
28774   ac_status=$?
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); }; }; then
28777   ac_header_compiler=yes
28778 else
28779   echo "$as_me: failed program was:" >&5
28780 sed 's/^/| /' conftest.$ac_ext >&5
28781
28782 ac_header_compiler=no
28783 fi
28784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28786 echo "${ECHO_T}$ac_header_compiler" >&6
28787
28788 # Is the header present?
28789 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28790 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28791 cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797 #include <sys/acl.h>
28798 _ACEOF
28799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28801   ac_status=$?
28802   grep -v '^ *+' conftest.er1 >conftest.err
28803   rm -f conftest.er1
28804   cat conftest.err >&5
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); } >/dev/null; then
28807   if test -s conftest.err; then
28808     ac_cpp_err=$ac_c_preproc_warn_flag
28809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28810   else
28811     ac_cpp_err=
28812   fi
28813 else
28814   ac_cpp_err=yes
28815 fi
28816 if test -z "$ac_cpp_err"; then
28817   ac_header_preproc=yes
28818 else
28819   echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28821
28822   ac_header_preproc=no
28823 fi
28824 rm -f conftest.err conftest.$ac_ext
28825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28826 echo "${ECHO_T}$ac_header_preproc" >&6
28827
28828 # So?  What about this header?
28829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28830   yes:no: )
28831     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28832 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28833     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28834 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28835     ac_header_preproc=yes
28836     ;;
28837   no:yes:* )
28838     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28839 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28840     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
28841 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
28842     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28843 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28844     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
28845 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28846     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28847 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28848     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28849 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28850     (
28851       cat <<\_ASBOX
28852 ## ------------------------------------------ ##
28853 ## Report this to the AC_PACKAGE_NAME lists.  ##
28854 ## ------------------------------------------ ##
28855 _ASBOX
28856     ) |
28857       sed "s/^/$as_me: WARNING:     /" >&2
28858     ;;
28859 esac
28860 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28861 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28862 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28863   echo $ECHO_N "(cached) $ECHO_C" >&6
28864 else
28865   ac_cv_header_sys_acl_h=$ac_header_preproc
28866 fi
28867 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28868 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28869
28870 fi
28871
28872
28873 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28874 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28875 if test "${ac_cv_func_acl_get_file+set}" = set; then
28876   echo $ECHO_N "(cached) $ECHO_C" >&6
28877 else
28878   cat >conftest.$ac_ext <<_ACEOF
28879 /* confdefs.h.  */
28880 _ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h.  */
28884 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28886 #define acl_get_file innocuous_acl_get_file
28887
28888 /* System header to define __stub macros and hopefully few prototypes,
28889     which can conflict with char acl_get_file (); below.
28890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28891     <limits.h> exists even on freestanding compilers.  */
28892
28893 #ifdef __STDC__
28894 # include <limits.h>
28895 #else
28896 # include <assert.h>
28897 #endif
28898
28899 #undef acl_get_file
28900
28901 /* Override any gcc2 internal prototype to avoid an error.  */
28902 #ifdef __cplusplus
28903 extern "C"
28904 {
28905 #endif
28906 /* We use char because int might match the return type of a gcc2
28907    builtin and then its argument prototype would still apply.  */
28908 char acl_get_file ();
28909 /* The GNU C library defines this for functions which it implements
28910     to always fail with ENOSYS.  Some functions are actually named
28911     something starting with __ and the normal name is an alias.  */
28912 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
28913 choke me
28914 #else
28915 char (*f) () = acl_get_file;
28916 #endif
28917 #ifdef __cplusplus
28918 }
28919 #endif
28920
28921 int
28922 main ()
28923 {
28924 return f != acl_get_file;
28925   ;
28926   return 0;
28927 }
28928 _ACEOF
28929 rm -f conftest.$ac_objext conftest$ac_exeext
28930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28931   (eval $ac_link) 2>conftest.er1
28932   ac_status=$?
28933   grep -v '^ *+' conftest.er1 >conftest.err
28934   rm -f conftest.er1
28935   cat conftest.err >&5
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); } &&
28938          { ac_try='test -z "$ac_c_werror_flag"
28939                          || test ! -s conftest.err'
28940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941   (eval $ac_try) 2>&5
28942   ac_status=$?
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); }; } &&
28945          { ac_try='test -s conftest$ac_exeext'
28946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947   (eval $ac_try) 2>&5
28948   ac_status=$?
28949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950   (exit $ac_status); }; }; then
28951   ac_cv_func_acl_get_file=yes
28952 else
28953   echo "$as_me: failed program was:" >&5
28954 sed 's/^/| /' conftest.$ac_ext >&5
28955
28956 ac_cv_func_acl_get_file=no
28957 fi
28958 rm -f conftest.err conftest.$ac_objext \
28959       conftest$ac_exeext conftest.$ac_ext
28960 fi
28961 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
28962 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
28963 if test $ac_cv_func_acl_get_file = yes; then
28964   have_acl=yes
28965 else
28966   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
28967 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
28968 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
28969   echo $ECHO_N "(cached) $ECHO_C" >&6
28970 else
28971   ac_check_lib_save_LIBS=$LIBS
28972 LIBS="-lacl  $LIBS"
28973 cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979
28980 /* Override any gcc2 internal prototype to avoid an error.  */
28981 #ifdef __cplusplus
28982 extern "C"
28983 #endif
28984 /* We use char because int might match the return type of a gcc2
28985    builtin and then its argument prototype would still apply.  */
28986 char acl_get_file ();
28987 int
28988 main ()
28989 {
28990 acl_get_file ();
28991   ;
28992   return 0;
28993 }
28994 _ACEOF
28995 rm -f conftest.$ac_objext conftest$ac_exeext
28996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28997   (eval $ac_link) 2>conftest.er1
28998   ac_status=$?
28999   grep -v '^ *+' conftest.er1 >conftest.err
29000   rm -f conftest.er1
29001   cat conftest.err >&5
29002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); } &&
29004          { ac_try='test -z "$ac_c_werror_flag"
29005                          || test ! -s conftest.err'
29006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29007   (eval $ac_try) 2>&5
29008   ac_status=$?
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); }; } &&
29011          { ac_try='test -s conftest$ac_exeext'
29012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29013   (eval $ac_try) 2>&5
29014   ac_status=$?
29015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016   (exit $ac_status); }; }; then
29017   ac_cv_lib_acl_acl_get_file=yes
29018 else
29019   echo "$as_me: failed program was:" >&5
29020 sed 's/^/| /' conftest.$ac_ext >&5
29021
29022 ac_cv_lib_acl_acl_get_file=no
29023 fi
29024 rm -f conftest.err conftest.$ac_objext \
29025       conftest$ac_exeext conftest.$ac_ext
29026 LIBS=$ac_check_lib_save_LIBS
29027 fi
29028 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29029 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29030 if test $ac_cv_lib_acl_acl_get_file = yes; then
29031   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29032 fi
29033
29034
29035 fi
29036
29037 if test $have_acl = yes; then
29038    cat >>confdefs.h <<\_ACEOF
29039 #define HAVE_ACL 1
29040 _ACEOF
29041
29042 fi
29043
29044 PTHREAD_LIB=""
29045 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29046 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29047 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29048   echo $ECHO_N "(cached) $ECHO_C" >&6
29049 else
29050   ac_check_lib_save_LIBS=$LIBS
29051 LIBS="-lpthread  $LIBS"
29052 cat >conftest.$ac_ext <<_ACEOF
29053 /* confdefs.h.  */
29054 _ACEOF
29055 cat confdefs.h >>conftest.$ac_ext
29056 cat >>conftest.$ac_ext <<_ACEOF
29057 /* end confdefs.h.  */
29058
29059 /* Override any gcc2 internal prototype to avoid an error.  */
29060 #ifdef __cplusplus
29061 extern "C"
29062 #endif
29063 /* We use char because int might match the return type of a gcc2
29064    builtin and then its argument prototype would still apply.  */
29065 char pthread_create ();
29066 int
29067 main ()
29068 {
29069 pthread_create ();
29070   ;
29071   return 0;
29072 }
29073 _ACEOF
29074 rm -f conftest.$ac_objext conftest$ac_exeext
29075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29076   (eval $ac_link) 2>conftest.er1
29077   ac_status=$?
29078   grep -v '^ *+' conftest.er1 >conftest.err
29079   rm -f conftest.er1
29080   cat conftest.err >&5
29081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082   (exit $ac_status); } &&
29083          { ac_try='test -z "$ac_c_werror_flag"
29084                          || test ! -s conftest.err'
29085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29086   (eval $ac_try) 2>&5
29087   ac_status=$?
29088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089   (exit $ac_status); }; } &&
29090          { ac_try='test -s conftest$ac_exeext'
29091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29092   (eval $ac_try) 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); }; }; then
29096   ac_cv_lib_pthread_pthread_create=yes
29097 else
29098   echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29100
29101 ac_cv_lib_pthread_pthread_create=no
29102 fi
29103 rm -f conftest.err conftest.$ac_objext \
29104       conftest$ac_exeext conftest.$ac_ext
29105 LIBS=$ac_check_lib_save_LIBS
29106 fi
29107 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29108 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29109 if test $ac_cv_lib_pthread_pthread_create = yes; then
29110   PTHREAD_LIB="-lpthread"
29111 else
29112   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29113 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29114 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   ac_check_lib_save_LIBS=$LIBS
29118 LIBS="-lpthreads  $LIBS"
29119 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125
29126 /* Override any gcc2 internal prototype to avoid an error.  */
29127 #ifdef __cplusplus
29128 extern "C"
29129 #endif
29130 /* We use char because int might match the return type of a gcc2
29131    builtin and then its argument prototype would still apply.  */
29132 char pthread_create ();
29133 int
29134 main ()
29135 {
29136 pthread_create ();
29137   ;
29138   return 0;
29139 }
29140 _ACEOF
29141 rm -f conftest.$ac_objext conftest$ac_exeext
29142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29143   (eval $ac_link) 2>conftest.er1
29144   ac_status=$?
29145   grep -v '^ *+' conftest.er1 >conftest.err
29146   rm -f conftest.er1
29147   cat conftest.err >&5
29148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149   (exit $ac_status); } &&
29150          { ac_try='test -z "$ac_c_werror_flag"
29151                          || test ! -s conftest.err'
29152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153   (eval $ac_try) 2>&5
29154   ac_status=$?
29155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156   (exit $ac_status); }; } &&
29157          { ac_try='test -s conftest$ac_exeext'
29158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159   (eval $ac_try) 2>&5
29160   ac_status=$?
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); }; }; then
29163   ac_cv_lib_pthreads_pthread_create=yes
29164 else
29165   echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29167
29168 ac_cv_lib_pthreads_pthread_create=no
29169 fi
29170 rm -f conftest.err conftest.$ac_objext \
29171       conftest$ac_exeext conftest.$ac_ext
29172 LIBS=$ac_check_lib_save_LIBS
29173 fi
29174 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29175 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29176 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29177   PTHREAD_LIB="-lpthreads"
29178 else
29179   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29180 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29181 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29182   echo $ECHO_N "(cached) $ECHO_C" >&6
29183 else
29184   ac_check_lib_save_LIBS=$LIBS
29185 LIBS="-lc_r  $LIBS"
29186 cat >conftest.$ac_ext <<_ACEOF
29187 /* confdefs.h.  */
29188 _ACEOF
29189 cat confdefs.h >>conftest.$ac_ext
29190 cat >>conftest.$ac_ext <<_ACEOF
29191 /* end confdefs.h.  */
29192
29193 /* Override any gcc2 internal prototype to avoid an error.  */
29194 #ifdef __cplusplus
29195 extern "C"
29196 #endif
29197 /* We use char because int might match the return type of a gcc2
29198    builtin and then its argument prototype would still apply.  */
29199 char pthread_create ();
29200 int
29201 main ()
29202 {
29203 pthread_create ();
29204   ;
29205   return 0;
29206 }
29207 _ACEOF
29208 rm -f conftest.$ac_objext conftest$ac_exeext
29209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29210   (eval $ac_link) 2>conftest.er1
29211   ac_status=$?
29212   grep -v '^ *+' conftest.er1 >conftest.err
29213   rm -f conftest.er1
29214   cat conftest.err >&5
29215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216   (exit $ac_status); } &&
29217          { ac_try='test -z "$ac_c_werror_flag"
29218                          || test ! -s conftest.err'
29219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220   (eval $ac_try) 2>&5
29221   ac_status=$?
29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223   (exit $ac_status); }; } &&
29224          { ac_try='test -s conftest$ac_exeext'
29225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226   (eval $ac_try) 2>&5
29227   ac_status=$?
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); }; }; then
29230   ac_cv_lib_c_r_pthread_create=yes
29231 else
29232   echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29234
29235 ac_cv_lib_c_r_pthread_create=no
29236 fi
29237 rm -f conftest.err conftest.$ac_objext \
29238       conftest$ac_exeext conftest.$ac_ext
29239 LIBS=$ac_check_lib_save_LIBS
29240 fi
29241 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29242 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29243 if test $ac_cv_lib_c_r_pthread_create = yes; then
29244   PTHREAD_LIB="-lc_r"
29245 else
29246   echo "$as_me:$LINENO: checking for pthread_create" >&5
29247 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29248 if test "${ac_cv_func_pthread_create+set}" = set; then
29249   echo $ECHO_N "(cached) $ECHO_C" >&6
29250 else
29251   cat >conftest.$ac_ext <<_ACEOF
29252 /* confdefs.h.  */
29253 _ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h.  */
29257 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29259 #define pthread_create innocuous_pthread_create
29260
29261 /* System header to define __stub macros and hopefully few prototypes,
29262     which can conflict with char pthread_create (); below.
29263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29264     <limits.h> exists even on freestanding compilers.  */
29265
29266 #ifdef __STDC__
29267 # include <limits.h>
29268 #else
29269 # include <assert.h>
29270 #endif
29271
29272 #undef pthread_create
29273
29274 /* Override any gcc2 internal prototype to avoid an error.  */
29275 #ifdef __cplusplus
29276 extern "C"
29277 {
29278 #endif
29279 /* We use char because int might match the return type of a gcc2
29280    builtin and then its argument prototype would still apply.  */
29281 char pthread_create ();
29282 /* The GNU C library defines this for functions which it implements
29283     to always fail with ENOSYS.  Some functions are actually named
29284     something starting with __ and the normal name is an alias.  */
29285 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29286 choke me
29287 #else
29288 char (*f) () = pthread_create;
29289 #endif
29290 #ifdef __cplusplus
29291 }
29292 #endif
29293
29294 int
29295 main ()
29296 {
29297 return f != pthread_create;
29298   ;
29299   return 0;
29300 }
29301 _ACEOF
29302 rm -f conftest.$ac_objext conftest$ac_exeext
29303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29304   (eval $ac_link) 2>conftest.er1
29305   ac_status=$?
29306   grep -v '^ *+' conftest.er1 >conftest.err
29307   rm -f conftest.er1
29308   cat conftest.err >&5
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } &&
29311          { ac_try='test -z "$ac_c_werror_flag"
29312                          || test ! -s conftest.err'
29313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314   (eval $ac_try) 2>&5
29315   ac_status=$?
29316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317   (exit $ac_status); }; } &&
29318          { ac_try='test -s conftest$ac_exeext'
29319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320   (eval $ac_try) 2>&5
29321   ac_status=$?
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); }; }; then
29324   ac_cv_func_pthread_create=yes
29325 else
29326   echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29328
29329 ac_cv_func_pthread_create=no
29330 fi
29331 rm -f conftest.err conftest.$ac_objext \
29332       conftest$ac_exeext conftest.$ac_ext
29333 fi
29334 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29335 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29336
29337
29338 fi
29339
29340
29341 fi
29342
29343
29344 fi
29345
29346
29347
29348 cat >>confdefs.h <<\_ACEOF
29349 #define FDLIBS 1
29350 _ACEOF
29351
29352
29353
29354 CFLAGS=${CFLAGS--O}
29355 LDFLAGS=${LDFLAGS--O}
29356 DB_LIBS="${SQL_LFLAGS}"
29357
29358 CPPFLAGS="$CPPFLAGS"
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375 OBJLIST=
29376
29377
29378 lld="lld"
29379 llu="llu"
29380
29381 WCFLAGS=
29382 WLDFLAGS=
29383
29384 #
29385 # Finally we set appropriate distribution specific
29386 #  variables and defaults
29387 #
29388 # PFILES are platform specific files
29389 PFILES="platforms/Makefile"
29390 PSCMD="ps -e"
29391 WIN32=
29392 MACOSX=
29393 hostname=`uname -n | cut -d '.' -f 1`
29394 case "$DISTNAME" in
29395 aix)
29396         DISTVER=`uname -r`
29397         PSCMD="ps -e -o pid,comm"
29398         PFILES="${PFILES} \
29399            platforms/aix/Makefile"
29400         TAPEDRIVE="/dev/rmt0.1"
29401   ;;
29402 alpha)
29403         DISTVER=`uname -r`
29404         PTHREAD_LIB="-lpthread -lexc"
29405         if test "${CC}" = "gcc" ; then
29406            lld="lld"
29407            llu="llu"
29408         else
29409            lld="ld"
29410            llu="lu"
29411         fi
29412         TAPEDRIVE="/dev/nrmt0"
29413   ;;
29414 bsdi)
29415         DISTVER=`uname -a |awk '{print $3}'`
29416         TAPEDRIVE="/dev/nrmt0"
29417         PTHREAD_LIB="-pthread"
29418         CFLAGS="${CFLAGS} -pthread"
29419         PSCMD="ps -ax -o pid,command"
29420         lld="qd"
29421         llu="qu"
29422         PFILES="${PFILES} \
29423             platforms/bsdi/Makefile \
29424             platforms/bsdi/bacula-fd \
29425             platforms/bsdi/bacula-sd \
29426             platforms/bsdi/bacula-dir"
29427         largefile_support="yes"
29428   ;;
29429 cygwin)
29430         DISTVER=`uname -a |awk '{print $3}'`
29431         TAPEDRIVE="/dev/nrst0"
29432         WIN32=win32
29433         WCFLAGS="-mwindows"
29434         WLDFLAGS="-mwindows"
29435   ;;
29436 darwin)
29437         DISTVER=`uname -r`
29438         TAPEDRIVE="/dev/nst0"
29439         PSCMD="ps -e -o pid,command"
29440         MACOSX=macosx
29441         PFILES="${PFILES} \
29442            platforms/darwin/Makefile"
29443   ;;
29444 debian)
29445         DISTVER=`cat /etc/debian_version`
29446         TAPEDRIVE="/dev/nrst0"
29447         PSCMD="ps -e -o pid,command"
29448   ;;
29449 freebsd)
29450         DISTVER=`uname -a |awk '{print $3}'`
29451         VER=`echo $DISTVER | cut -c 1`
29452         if test x$VER = x4 ; then
29453            PTHREAD_LIB="-pthread"
29454            CFLAGS="${CFLAGS} -pthread"
29455         fi
29456         lld="qd"
29457         llu="qu"
29458         TAPEDRIVE="/dev/nrsa0"
29459         PSCMD="ps -ax -o pid,command"
29460         PFILES="${PFILES} \
29461             platforms/freebsd/Makefile \
29462             platforms/freebsd/bacula-fd \
29463             platforms/freebsd/bacula-sd \
29464             platforms/freebsd/bacula-dir"
29465         largefile_support="yes"
29466   ;;
29467 hpux)
29468         PSCMD="UNIX95=1 ps -e -o pid,comm"
29469         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29470         DISTVER=`uname -r`
29471         TAPEDRIVE="/dev/rmt/0hnb"
29472         PTHREAD_LIB="-lpthread"
29473         cat >>confdefs.h <<\_ACEOF
29474 #define _INCLUDE_LONGLONG 1
29475 _ACEOF
29476
29477   ;;
29478 irix)
29479         DISTVER=`uname -r`
29480         TAPEDRIVE="/dev/rmt/0cbn"
29481         PSCMD="ps -e -o pid,comm"
29482         PFILES="${PFILES} \
29483             platforms/irix/Makefile \
29484             platforms/irix/bacula-fd \
29485             platforms/irix/bacula-sd \
29486             platforms/irix/bacula-dir"
29487   ;;
29488 netbsd)
29489         DISTVER=`uname -a |awk '{print $3}'`
29490         lld="qd"
29491         llu="qu"
29492         TAPEDRIVE="/dev/nrst0"
29493         PSCMD="ps -ax -o pid,command"
29494         PTHREAD_LIB="-pthread"
29495         CFLAGS="${CFLAGS} -pthread"
29496   ;;
29497 openbsd)
29498         DISTVER=`uname -a |awk '{print $3}'`
29499         lld="qd"
29500         llu="qu"
29501         TAPEDRIVE="/dev/nrst0"
29502         PSCMD="ps -ax -o pid,command"
29503         PTHREAD_LIB="-pthread"
29504         CFLAGS="${CFLAGS} -pthread"
29505         PFILES="${PFILES} \
29506             platforms/openbsd/Makefile \
29507             platforms/openbsd/bacula-fd \
29508             platforms/openbsd/bacula-sd \
29509             platforms/openbsd/bacula-dir"
29510   ;;
29511 redhat)
29512         if test -f /etc/whitebox-release ; then
29513            f=/etc/whitebox-release
29514         else
29515            f=/etc/redhat-release
29516         fi
29517         if test `cat $f | grep release |\
29518                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29519            DISTVER="Enterprise "`cat $f | grep release |\
29520                     cut -f 6 -d ' '`
29521         else
29522             DISTVER=`cat /etc/redhat-release | grep release |\
29523                      cut -f 5 -d ' '`
29524         fi
29525         TAPEDRIVE="/dev/nst0"
29526         PSCMD="ps -e -o pid,command"
29527         PFILES="${PFILES} \
29528             platforms/redhat/Makefile \
29529             platforms/redhat/bacula-fd \
29530             platforms/redhat/bacula-sd \
29531             platforms/redhat/bacula-dir \
29532             platforms/redhat/bacula.spec \
29533             "
29534         hostname=`hostname -s`
29535   ;;
29536 mandrake)
29537         DISTVER=`cat /etc/mandrake-release | grep release |\
29538            cut -f 5 -d ' '`
29539         TAPEDRIVE="/dev/nst0"
29540         PSCMD="ps -e -o pid,command"
29541         PFILES="${PFILES} \
29542             platforms/mandrake/Makefile \
29543             platforms/mandrake/bacula-fd \
29544             platforms/mandrake/bacula-sd \
29545             platforms/mandrake/bacula-dir \
29546             platforms/mandrake/bacula.spec \
29547             "
29548   ;;
29549 gentoo)
29550         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29551         TAPEDRIVE="/dev/nst0"
29552         PSCMD="ps -e -o pid,command"
29553         PFILES="${PFILES} \
29554             platforms/gentoo/Makefile \
29555          platforms/gentoo/bacula-init \
29556             platforms/gentoo/bacula-fd \
29557             platforms/gentoo/bacula-sd \
29558             platforms/gentoo/bacula-dir"
29559   ;;
29560 slackware)
29561         DISTVER=`cat /etc/slackware-version`
29562         TAPEDRIVE="/dev/nst0"
29563         PSCMD="ps -e -o pid,command"
29564         PFILES="${PFILES} \
29565             platforms/slackware/Makefile \
29566             platforms/slackware/rc.bacula-fd \
29567             platforms/slackware/rc.bacula-sd \
29568             platforms/slackware/rc.bacula-dir\
29569             platforms/slackware/functions.bacula"
29570   ;;
29571 solaris)
29572         DISTVER=`uname -r`
29573         TAPEDRIVE="/dev/rmt/0cbn"
29574         PSCMD="ps -e -o pid,comm"
29575         PFILES="${PFILES} \
29576             platforms/solaris/Makefile \
29577             platforms/solaris/bacula-fd \
29578             platforms/solaris/bacula-sd \
29579             platforms/solaris/bacula-dir"
29580         if test x$DISTVER = x5.6 ; then
29581             cat >>confdefs.h <<\_ACEOF
29582 #define HAVE_OLD_SOCKOPT 1
29583 _ACEOF
29584
29585         fi
29586         LIBS="$LIBS -lresolv"
29587   ;;
29588 suse)
29589         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29590             cut -f 3 -d ' '`
29591         TAPEDRIVE="/dev/nst0"
29592         PSCMD="ps -e -o pid,command"
29593         PFILES="${PFILES} \
29594             platforms/suse/Makefile \
29595             platforms/suse/bacula-fd \
29596             platforms/suse/bacula-sd \
29597             platforms/suse/bacula-dir \
29598             platforms/suse/bacula \
29599             platforms/suse/bacula.spec"
29600   ;;
29601 suse5)
29602         DISTNAME=suse
29603         DISTVER=5.x
29604         TAPEDRIVE="/dev/nst0"
29605         PSCMD="ps -e -o pid,command"
29606         PFILES="${PFILES} \
29607             platforms/suse/Makefile \
29608             platforms/suse/bacula-fd \
29609             platforms/suse/bacula-sd \
29610             platforms/suse/bacula-dir"
29611   ;;
29612 unknown)
29613         DISTVER=unknown
29614         TAPEDRIVE="/dev/nst0"
29615   ;;
29616 *)
29617   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29618   ;;
29619 esac
29620
29621
29622
29623 LIBS="$PTHREAD_LIB $LIBS"
29624
29625 cat >>confdefs.h <<_ACEOF
29626 #define lld "$lld"
29627 _ACEOF
29628
29629 cat >>confdefs.h <<_ACEOF
29630 #define llu "$llu"
29631 _ACEOF
29632
29633
29634
29635
29636
29637
29638
29639
29640 MCOMMON=./autoconf/Make.common
29641
29642
29643 if test "x${subsysdir}" = "x${sbindir}" ; then
29644    echo " "
29645    echo " "
29646    echo "You have set both --sbindir and --with-subsys-dir"
29647    echo "  equal to: ${subsysdir} "
29648    echo "This is not permitted. Please reconfigure."
29649    echo " "
29650    echo "Aborting configuration ..."
29651    echo " "
29652    echo " "
29653    exit 1
29654 fi
29655
29656                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/dvd-handler scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
29657           ac_config_commands="$ac_config_commands default"
29658 cat >confcache <<\_ACEOF
29659 # This file is a shell script that caches the results of configure
29660 # tests run on this system so they can be shared between configure
29661 # scripts and configure runs, see configure's option --config-cache.
29662 # It is not useful on other systems.  If it contains results you don't
29663 # want to keep, you may remove or edit it.
29664 #
29665 # config.status only pays attention to the cache file if you give it
29666 # the --recheck option to rerun configure.
29667 #
29668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29670 # following values.
29671
29672 _ACEOF
29673
29674 # The following way of writing the cache mishandles newlines in values,
29675 # but we know of no workaround that is simple, portable, and efficient.
29676 # So, don't put newlines in cache variables' values.
29677 # Ultrix sh set writes to stderr and can't be redirected directly,
29678 # and sets the high bit in the cache file unless we assign to the vars.
29679 {
29680   (set) 2>&1 |
29681     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29682     *ac_space=\ *)
29683       # `set' does not quote correctly, so add quotes (double-quote
29684       # substitution turns \\\\ into \\, and sed turns \\ into \).
29685       sed -n \
29686         "s/'/'\\\\''/g;
29687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29688       ;;
29689     *)
29690       # `set' quotes correctly as required by POSIX, so do not add quotes.
29691       sed -n \
29692         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29693       ;;
29694     esac;
29695 } |
29696   sed '
29697      t clear
29698      : clear
29699      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29700      t end
29701      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29702      : end' >>confcache
29703 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29704   if test -w $cache_file; then
29705     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29706     cat confcache >$cache_file
29707   else
29708     echo "not updating unwritable cache $cache_file"
29709   fi
29710 fi
29711 rm -f confcache
29712
29713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29714 # Let make expand exec_prefix.
29715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29716
29717 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29718 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29719 # trailing colons and then remove the whole line if VPATH becomes empty
29720 # (actually we leave an empty line to preserve line numbers).
29721 if test "x$srcdir" = x.; then
29722   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29723 s/:*\$(srcdir):*/:/;
29724 s/:*\${srcdir}:*/:/;
29725 s/:*@srcdir@:*/:/;
29726 s/^\([^=]*=[     ]*\):*/\1/;
29727 s/:*$//;
29728 s/^[^=]*=[       ]*$//;
29729 }'
29730 fi
29731
29732 DEFS=-DHAVE_CONFIG_H
29733
29734 ac_libobjs=
29735 ac_ltlibobjs=
29736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29737   # 1. Remove the extension, and $U if already installed.
29738   ac_i=`echo "$ac_i" |
29739          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29740   # 2. Add them.
29741   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29742   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29743 done
29744 LIBOBJS=$ac_libobjs
29745
29746 LTLIBOBJS=$ac_ltlibobjs
29747
29748
29749
29750 : ${CONFIG_STATUS=./config.status}
29751 ac_clean_files_save=$ac_clean_files
29752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29755 cat >$CONFIG_STATUS <<_ACEOF
29756 #! $SHELL
29757 # Generated by $as_me.
29758 # Run this file to recreate the current configuration.
29759 # Compiler output produced by configure, useful for debugging
29760 # configure, is in config.log if it exists.
29761
29762 debug=false
29763 ac_cs_recheck=false
29764 ac_cs_silent=false
29765 SHELL=\${CONFIG_SHELL-$SHELL}
29766 _ACEOF
29767
29768 cat >>$CONFIG_STATUS <<\_ACEOF
29769 ## --------------------- ##
29770 ## M4sh Initialization.  ##
29771 ## --------------------- ##
29772
29773 # Be Bourne compatible
29774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29775   emulate sh
29776   NULLCMD=:
29777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29778   # is contrary to our usage.  Disable this feature.
29779   alias -g '${1+"$@"}'='"$@"'
29780 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29781   set -o posix
29782 fi
29783 DUALCASE=1; export DUALCASE # for MKS sh
29784
29785 # Support unset when possible.
29786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29787   as_unset=unset
29788 else
29789   as_unset=false
29790 fi
29791
29792
29793 # Work around bugs in pre-3.0 UWIN ksh.
29794 $as_unset ENV MAIL MAILPATH
29795 PS1='$ '
29796 PS2='> '
29797 PS4='+ '
29798
29799 # NLS nuisances.
29800 for as_var in \
29801   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29802   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29803   LC_TELEPHONE LC_TIME
29804 do
29805   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29806     eval $as_var=C; export $as_var
29807   else
29808     $as_unset $as_var
29809   fi
29810 done
29811
29812 # Required to use basename.
29813 if expr a : '\(a\)' >/dev/null 2>&1; then
29814   as_expr=expr
29815 else
29816   as_expr=false
29817 fi
29818
29819 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29820   as_basename=basename
29821 else
29822   as_basename=false
29823 fi
29824
29825
29826 # Name of the executable.
29827 as_me=`$as_basename "$0" ||
29828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29829          X"$0" : 'X\(//\)$' \| \
29830          X"$0" : 'X\(/\)$' \| \
29831          .     : '\(.\)' 2>/dev/null ||
29832 echo X/"$0" |
29833     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29834           /^X\/\(\/\/\)$/{ s//\1/; q; }
29835           /^X\/\(\/\).*/{ s//\1/; q; }
29836           s/.*/./; q'`
29837
29838
29839 # PATH needs CR, and LINENO needs CR and PATH.
29840 # Avoid depending upon Character Ranges.
29841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29844 as_cr_digits='0123456789'
29845 as_cr_alnum=$as_cr_Letters$as_cr_digits
29846
29847 # The user is always right.
29848 if test "${PATH_SEPARATOR+set}" != set; then
29849   echo "#! /bin/sh" >conf$$.sh
29850   echo  "exit 0"   >>conf$$.sh
29851   chmod +x conf$$.sh
29852   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29853     PATH_SEPARATOR=';'
29854   else
29855     PATH_SEPARATOR=:
29856   fi
29857   rm -f conf$$.sh
29858 fi
29859
29860
29861   as_lineno_1=$LINENO
29862   as_lineno_2=$LINENO
29863   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29864   test "x$as_lineno_1" != "x$as_lineno_2" &&
29865   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29866   # Find who we are.  Look in the path if we contain no path at all
29867   # relative or not.
29868   case $0 in
29869     *[\\/]* ) as_myself=$0 ;;
29870     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29871 for as_dir in $PATH
29872 do
29873   IFS=$as_save_IFS
29874   test -z "$as_dir" && as_dir=.
29875   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29876 done
29877
29878        ;;
29879   esac
29880   # We did not find ourselves, most probably we were run as `sh COMMAND'
29881   # in which case we are not to be found in the path.
29882   if test "x$as_myself" = x; then
29883     as_myself=$0
29884   fi
29885   if test ! -f "$as_myself"; then
29886     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29888    { (exit 1); exit 1; }; }
29889   fi
29890   case $CONFIG_SHELL in
29891   '')
29892     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29893 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29894 do
29895   IFS=$as_save_IFS
29896   test -z "$as_dir" && as_dir=.
29897   for as_base in sh bash ksh sh5; do
29898          case $as_dir in
29899          /*)
29900            if ("$as_dir/$as_base" -c '
29901   as_lineno_1=$LINENO
29902   as_lineno_2=$LINENO
29903   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29904   test "x$as_lineno_1" != "x$as_lineno_2" &&
29905   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29906              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29907              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29908              CONFIG_SHELL=$as_dir/$as_base
29909              export CONFIG_SHELL
29910              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29911            fi;;
29912          esac
29913        done
29914 done
29915 ;;
29916   esac
29917
29918   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29919   # uniformly replaced by the line number.  The first 'sed' inserts a
29920   # line-number line before each line; the second 'sed' does the real
29921   # work.  The second script uses 'N' to pair each line-number line
29922   # with the numbered line, and appends trailing '-' during
29923   # substitution so that $LINENO is not a special case at line end.
29924   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29925   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29926   sed '=' <$as_myself |
29927     sed '
29928       N
29929       s,$,-,
29930       : loop
29931       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29932       t loop
29933       s,-$,,
29934       s,^['$as_cr_digits']*\n,,
29935     ' >$as_me.lineno &&
29936   chmod +x $as_me.lineno ||
29937     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29939    { (exit 1); exit 1; }; }
29940
29941   # Don't try to exec as it changes $[0], causing all sort of problems
29942   # (the dirname of $[0] is not the place where we might find the
29943   # original and so on.  Autoconf is especially sensible to this).
29944   . ./$as_me.lineno
29945   # Exit status is that of the last command.
29946   exit
29947 }
29948
29949
29950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29951   *c*,-n*) ECHO_N= ECHO_C='
29952 ' ECHO_T='      ' ;;
29953   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29954   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29955 esac
29956
29957 if expr a : '\(a\)' >/dev/null 2>&1; then
29958   as_expr=expr
29959 else
29960   as_expr=false
29961 fi
29962
29963 rm -f conf$$ conf$$.exe conf$$.file
29964 echo >conf$$.file
29965 if ln -s conf$$.file conf$$ 2>/dev/null; then
29966   # We could just check for DJGPP; but this test a) works b) is more generic
29967   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29968   if test -f conf$$.exe; then
29969     # Don't use ln at all; we don't have any links
29970     as_ln_s='cp -p'
29971   else
29972     as_ln_s='ln -s'
29973   fi
29974 elif ln conf$$.file conf$$ 2>/dev/null; then
29975   as_ln_s=ln
29976 else
29977   as_ln_s='cp -p'
29978 fi
29979 rm -f conf$$ conf$$.exe conf$$.file
29980
29981 if mkdir -p . 2>/dev/null; then
29982   as_mkdir_p=:
29983 else
29984   test -d ./-p && rmdir ./-p
29985   as_mkdir_p=false
29986 fi
29987
29988 as_executable_p="test -f"
29989
29990 # Sed expression to map a string onto a valid CPP name.
29991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29992
29993 # Sed expression to map a string onto a valid variable name.
29994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29995
29996
29997 # IFS
29998 # We need space, tab and new line, in precisely that order.
29999 as_nl='
30000 '
30001 IFS="   $as_nl"
30002
30003 # CDPATH.
30004 $as_unset CDPATH
30005
30006 exec 6>&1
30007
30008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30009 # report actual input values of CONFIG_FILES etc. instead of their
30010 # values after options handling.  Logging --version etc. is OK.
30011 exec 5>>config.log
30012 {
30013   echo
30014   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30015 ## Running $as_me. ##
30016 _ASBOX
30017 } >&5
30018 cat >&5 <<_CSEOF
30019
30020 This file was extended by $as_me, which was
30021 generated by GNU Autoconf 2.59.  Invocation command line was
30022
30023   CONFIG_FILES    = $CONFIG_FILES
30024   CONFIG_HEADERS  = $CONFIG_HEADERS
30025   CONFIG_LINKS    = $CONFIG_LINKS
30026   CONFIG_COMMANDS = $CONFIG_COMMANDS
30027   $ $0 $@
30028
30029 _CSEOF
30030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30031 echo >&5
30032 _ACEOF
30033
30034 # Files that config.status was made for.
30035 if test -n "$ac_config_files"; then
30036   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30037 fi
30038
30039 if test -n "$ac_config_headers"; then
30040   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30041 fi
30042
30043 if test -n "$ac_config_links"; then
30044   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30045 fi
30046
30047 if test -n "$ac_config_commands"; then
30048   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30049 fi
30050
30051 cat >>$CONFIG_STATUS <<\_ACEOF
30052
30053 ac_cs_usage="\
30054 \`$as_me' instantiates files from templates according to the
30055 current configuration.
30056
30057 Usage: $0 [OPTIONS] [FILE]...
30058
30059   -h, --help       print this help, then exit
30060   -V, --version    print version number, then exit
30061   -q, --quiet      do not print progress messages
30062   -d, --debug      don't remove temporary files
30063       --recheck    update $as_me by reconfiguring in the same conditions
30064   --file=FILE[:TEMPLATE]
30065                    instantiate the configuration file FILE
30066   --header=FILE[:TEMPLATE]
30067                    instantiate the configuration header FILE
30068
30069 Configuration files:
30070 $config_files
30071
30072 Configuration headers:
30073 $config_headers
30074
30075 Configuration commands:
30076 $config_commands
30077
30078 Report bugs to <bug-autoconf@gnu.org>."
30079 _ACEOF
30080
30081 cat >>$CONFIG_STATUS <<_ACEOF
30082 ac_cs_version="\\
30083 config.status
30084 configured by $0, generated by GNU Autoconf 2.59,
30085   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30086
30087 Copyright (C) 2003 Free Software Foundation, Inc.
30088 This config.status script is free software; the Free Software Foundation
30089 gives unlimited permission to copy, distribute and modify it."
30090 srcdir=$srcdir
30091 INSTALL="$INSTALL"
30092 _ACEOF
30093
30094 cat >>$CONFIG_STATUS <<\_ACEOF
30095 # If no file are specified by the user, then we need to provide default
30096 # value.  By we need to know if files were specified by the user.
30097 ac_need_defaults=:
30098 while test $# != 0
30099 do
30100   case $1 in
30101   --*=*)
30102     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30103     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30104     ac_shift=:
30105     ;;
30106   -*)
30107     ac_option=$1
30108     ac_optarg=$2
30109     ac_shift=shift
30110     ;;
30111   *) # This is not an option, so the user has probably given explicit
30112      # arguments.
30113      ac_option=$1
30114      ac_need_defaults=false;;
30115   esac
30116
30117   case $ac_option in
30118   # Handling of the options.
30119 _ACEOF
30120 cat >>$CONFIG_STATUS <<\_ACEOF
30121   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30122     ac_cs_recheck=: ;;
30123   --version | --vers* | -V )
30124     echo "$ac_cs_version"; exit 0 ;;
30125   --he | --h)
30126     # Conflict between --help and --header
30127     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30128 Try \`$0 --help' for more information." >&5
30129 echo "$as_me: error: ambiguous option: $1
30130 Try \`$0 --help' for more information." >&2;}
30131    { (exit 1); exit 1; }; };;
30132   --help | --hel | -h )
30133     echo "$ac_cs_usage"; exit 0 ;;
30134   --debug | --d* | -d )
30135     debug=: ;;
30136   --file | --fil | --fi | --f )
30137     $ac_shift
30138     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30139     ac_need_defaults=false;;
30140   --header | --heade | --head | --hea )
30141     $ac_shift
30142     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30143     ac_need_defaults=false;;
30144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30145   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30146     ac_cs_silent=: ;;
30147
30148   # This is an error.
30149   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30150 Try \`$0 --help' for more information." >&5
30151 echo "$as_me: error: unrecognized option: $1
30152 Try \`$0 --help' for more information." >&2;}
30153    { (exit 1); exit 1; }; } ;;
30154
30155   *) ac_config_targets="$ac_config_targets $1" ;;
30156
30157   esac
30158   shift
30159 done
30160
30161 ac_configure_extra_args=
30162
30163 if $ac_cs_silent; then
30164   exec 6>/dev/null
30165   ac_configure_extra_args="$ac_configure_extra_args --silent"
30166 fi
30167
30168 _ACEOF
30169 cat >>$CONFIG_STATUS <<_ACEOF
30170 if \$ac_cs_recheck; then
30171   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30172   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30173 fi
30174
30175 _ACEOF
30176
30177 cat >>$CONFIG_STATUS <<_ACEOF
30178 #
30179 # INIT-COMMANDS section.
30180 #
30181
30182 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30183     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30184     # from automake.
30185     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30186     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30187     LINGUAS="${LINGUAS-%UNSET%}"
30188
30189
30190 _ACEOF
30191
30192
30193
30194 cat >>$CONFIG_STATUS <<\_ACEOF
30195 for ac_config_target in $ac_config_targets
30196 do
30197   case "$ac_config_target" in
30198   # Handling of arguments.
30199   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30200   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30201   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30202   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30203   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30204   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30205   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30206   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30207   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30208   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30209   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30210   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30211   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30212   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30213   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30214   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30215   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30216   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30217   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30218   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30219   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30220   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
30221   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
30222   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30223   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30224   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30225   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30226   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30227   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30228   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30229   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30230   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30231   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30232   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30233   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30234   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30235   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30236   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30237   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30238   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30239   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30240   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30241   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30242   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30243   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30244   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30245   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30246   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30247   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30248   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30249   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30250   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30251   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30252   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30253   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30254   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30255   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30256   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30257   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30258   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30259   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30260   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30261   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30262   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30263   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30264   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30265   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30266   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30267   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30268   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30269   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30270   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30271   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30272   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30273   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30274   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30275   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30276   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30277   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30278   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30279   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30280   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30281   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30282   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30283   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30284   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30285   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30286   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30287   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30288   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30289   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30290   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30291   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30292   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30293   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30294   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30295   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30296   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30297   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30298   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30300    { (exit 1); exit 1; }; };;
30301   esac
30302 done
30303
30304 # If the user did not use the arguments to specify the items to instantiate,
30305 # then the envvar interface is used.  Set only those that are not.
30306 # We use the long form for the default assignment because of an extremely
30307 # bizarre bug on SunOS 4.1.3.
30308 if $ac_need_defaults; then
30309   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30310   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30311   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30312 fi
30313
30314 # Have a temporary directory for convenience.  Make it in the build tree
30315 # simply because there is no reason to put it here, and in addition,
30316 # creating and moving files from /tmp can sometimes cause problems.
30317 # Create a temporary directory, and hook for its removal unless debugging.
30318 $debug ||
30319 {
30320   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30321   trap '{ (exit 1); exit 1; }' 1 2 13 15
30322 }
30323
30324 # Create a (secure) tmp directory for tmp files.
30325
30326 {
30327   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30328   test -n "$tmp" && test -d "$tmp"
30329 }  ||
30330 {
30331   tmp=./confstat$$-$RANDOM
30332   (umask 077 && mkdir $tmp)
30333 } ||
30334 {
30335    echo "$me: cannot create a temporary directory in ." >&2
30336    { (exit 1); exit 1; }
30337 }
30338
30339 _ACEOF
30340
30341 cat >>$CONFIG_STATUS <<_ACEOF
30342
30343 #
30344 # CONFIG_FILES section.
30345 #
30346
30347 # No need to generate the scripts if there are no CONFIG_FILES.
30348 # This happens for instance when ./config.status config.h
30349 if test -n "\$CONFIG_FILES"; then
30350   # Protect against being on the right side of a sed subst in config.status.
30351   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30352    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30353 s,@SHELL@,$SHELL,;t t
30354 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30355 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30356 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30357 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30358 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30359 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30360 s,@exec_prefix@,$exec_prefix,;t t
30361 s,@prefix@,$prefix,;t t
30362 s,@program_transform_name@,$program_transform_name,;t t
30363 s,@bindir@,$bindir,;t t
30364 s,@sbindir@,$sbindir,;t t
30365 s,@libexecdir@,$libexecdir,;t t
30366 s,@datadir@,$datadir,;t t
30367 s,@sysconfdir@,$sysconfdir,;t t
30368 s,@sharedstatedir@,$sharedstatedir,;t t
30369 s,@localstatedir@,$localstatedir,;t t
30370 s,@libdir@,$libdir,;t t
30371 s,@includedir@,$includedir,;t t
30372 s,@oldincludedir@,$oldincludedir,;t t
30373 s,@infodir@,$infodir,;t t
30374 s,@mandir@,$mandir,;t t
30375 s,@build_alias@,$build_alias,;t t
30376 s,@host_alias@,$host_alias,;t t
30377 s,@target_alias@,$target_alias,;t t
30378 s,@DEFS@,$DEFS,;t t
30379 s,@ECHO_C@,$ECHO_C,;t t
30380 s,@ECHO_N@,$ECHO_N,;t t
30381 s,@ECHO_T@,$ECHO_T,;t t
30382 s,@LIBS@,$LIBS,;t t
30383 s,@BUILD_DIR@,$BUILD_DIR,;t t
30384 s,@TRUEPRG@,$TRUEPRG,;t t
30385 s,@FALSEPRG@,$FALSEPRG,;t t
30386 s,@VERSION@,$VERSION,;t t
30387 s,@DATE@,$DATE,;t t
30388 s,@LSMDATE@,$LSMDATE,;t t
30389 s,@CC@,$CC,;t t
30390 s,@CFLAGS@,$CFLAGS,;t t
30391 s,@LDFLAGS@,$LDFLAGS,;t t
30392 s,@CPPFLAGS@,$CPPFLAGS,;t t
30393 s,@ac_ct_CC@,$ac_ct_CC,;t t
30394 s,@EXEEXT@,$EXEEXT,;t t
30395 s,@OBJEXT@,$OBJEXT,;t t
30396 s,@CXX@,$CXX,;t t
30397 s,@CXXFLAGS@,$CXXFLAGS,;t t
30398 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30399 s,@CPP@,$CPP,;t t
30400 s,@EGREP@,$EGREP,;t t
30401 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30402 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30403 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30404 s,@RANLIB@,$RANLIB,;t t
30405 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30406 s,@MV@,$MV,;t t
30407 s,@RM@,$RM,;t t
30408 s,@CP@,$CP,;t t
30409 s,@SED@,$SED,;t t
30410 s,@ECHO@,$ECHO,;t t
30411 s,@CMP@,$CMP,;t t
30412 s,@TBL@,$TBL,;t t
30413 s,@AR@,$AR,;t t
30414 s,@OPENSSL@,$OPENSSL,;t t
30415 s,@MTX@,$MTX,;t t
30416 s,@DF@,$DF,;t t
30417 s,@MKISOFS@,$MKISOFS,;t t
30418 s,@PYTHON@,$PYTHON,;t t
30419 s,@GROWISOFS@,$GROWISOFS,;t t
30420 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30421 s,@PKGCONFIG@,$PKGCONFIG,;t t
30422 s,@WXCONFIG@,$WXCONFIG,;t t
30423 s,@WXFLAGS@,$WXFLAGS,;t t
30424 s,@CDRECORD@,$CDRECORD,;t t
30425 s,@PIDOF@,$PIDOF,;t t
30426 s,@AWK@,$AWK,;t t
30427 s,@ARFLAGS@,$ARFLAGS,;t t
30428 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30429 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30430 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30431 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30432 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30433 s,@build@,$build,;t t
30434 s,@build_cpu@,$build_cpu,;t t
30435 s,@build_vendor@,$build_vendor,;t t
30436 s,@build_os@,$build_os,;t t
30437 s,@host@,$host,;t t
30438 s,@host_cpu@,$host_cpu,;t t
30439 s,@host_vendor@,$host_vendor,;t t
30440 s,@host_os@,$host_os,;t t
30441 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30442 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30443 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30444 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30445 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30446 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30447 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30448 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30449 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30450 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30451 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30452 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30453 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30454 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30455 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30456 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30457 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30458 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30459 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30460 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30461 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30462 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30463 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30464 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30465 s,@SET_MAKE@,$SET_MAKE,;t t
30466 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30467 s,@USE_NLS@,$USE_NLS,;t t
30468 s,@MSGFMT@,$MSGFMT,;t t
30469 s,@GMSGFMT@,$GMSGFMT,;t t
30470 s,@XGETTEXT@,$XGETTEXT,;t t
30471 s,@MSGMERGE@,$MSGMERGE,;t t
30472 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30473 s,@LIBICONV@,$LIBICONV,;t t
30474 s,@LTLIBICONV@,$LTLIBICONV,;t t
30475 s,@INTLLIBS@,$INTLLIBS,;t t
30476 s,@LIBINTL@,$LIBINTL,;t t
30477 s,@LTLIBINTL@,$LTLIBINTL,;t t
30478 s,@POSUB@,$POSUB,;t t
30479 s,@GLIBC2@,$GLIBC2,;t t
30480 s,@ALLOCA@,$ALLOCA,;t t
30481 s,@GLIBC21@,$GLIBC21,;t t
30482 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30483 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30484 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30485 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30486 s,@INTLBISON@,$INTLBISON,;t t
30487 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30488 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30489 s,@CATOBJEXT@,$CATOBJEXT,;t t
30490 s,@DATADIRNAME@,$DATADIRNAME,;t t
30491 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30492 s,@GENCAT@,$GENCAT,;t t
30493 s,@INTLOBJS@,$INTLOBJS,;t t
30494 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30495 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30496 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30497 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30498 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30499 s,@GNOME_DIR@,$GNOME_DIR,;t t
30500 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30501 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30502 s,@WX_DIR@,$WX_DIR,;t t
30503 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30504 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30505 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30506 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30507 s,@STATIC_FD@,$STATIC_FD,;t t
30508 s,@STATIC_SD@,$STATIC_SD,;t t
30509 s,@STATIC_DIR@,$STATIC_DIR,;t t
30510 s,@STATIC_CONS@,$STATIC_CONS,;t t
30511 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30512 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30513 s,@ALL_DIRS@,$ALL_DIRS,;t t
30514 s,@DIRD_DIR@,$DIRD_DIR,;t t
30515 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30516 s,@STORED_DIR@,$STORED_DIR,;t t
30517 s,@CONS_INC@,$CONS_INC,;t t
30518 s,@CONS_OBJ@,$CONS_OBJ,;t t
30519 s,@CONS_SRC@,$CONS_SRC,;t t
30520 s,@CONS_LIBS@,$CONS_LIBS,;t t
30521 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30522 s,@READLINE_SRC@,$READLINE_SRC,;t t
30523 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30524 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30525 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30526 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30527 s,@working_dir@,$working_dir,;t t
30528 s,@scriptdir@,$scriptdir,;t t
30529 s,@dump_email@,$dump_email,;t t
30530 s,@job_email@,$job_email,;t t
30531 s,@smtp_host@,$smtp_host,;t t
30532 s,@piddir@,$piddir,;t t
30533 s,@subsysdir@,$subsysdir,;t t
30534 s,@baseport@,$baseport,;t t
30535 s,@dir_port@,$dir_port,;t t
30536 s,@fd_port@,$fd_port,;t t
30537 s,@sd_port@,$sd_port,;t t
30538 s,@dir_password@,$dir_password,;t t
30539 s,@fd_password@,$fd_password,;t t
30540 s,@sd_password@,$sd_password,;t t
30541 s,@mon_dir_password@,$mon_dir_password,;t t
30542 s,@mon_fd_password@,$mon_fd_password,;t t
30543 s,@mon_sd_password@,$mon_sd_password,;t t
30544 s,@dir_user@,$dir_user,;t t
30545 s,@dir_group@,$dir_group,;t t
30546 s,@sd_user@,$sd_user,;t t
30547 s,@sd_group@,$sd_group,;t t
30548 s,@fd_user@,$fd_user,;t t
30549 s,@fd_group@,$fd_group,;t t
30550 s,@SBINPERM@,$SBINPERM,;t t
30551 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30552 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30553 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30554 s,@cats@,$cats,;t t
30555 s,@DB_NAME@,$DB_NAME,;t t
30556 s,@GETCONF@,$GETCONF,;t t
30557 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30558 s,@X_CFLAGS@,$X_CFLAGS,;t t
30559 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30560 s,@X_LIBS@,$X_LIBS,;t t
30561 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30562 s,@LIBOBJS@,$LIBOBJS,;t t
30563 s,@FDLIBS@,$FDLIBS,;t t
30564 s,@DEBUG@,$DEBUG,;t t
30565 s,@DINCLUDE@,$DINCLUDE,;t t
30566 s,@DLIB@,$DLIB,;t t
30567 s,@DB_LIBS@,$DB_LIBS,;t t
30568 s,@WCFLAGS@,$WCFLAGS,;t t
30569 s,@WLDFLAGS@,$WLDFLAGS,;t t
30570 s,@WRAPLIBS@,$WRAPLIBS,;t t
30571 s,@OBJLIST@,$OBJLIST,;t t
30572 s,@hostname@,$hostname,;t t
30573 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30574 s,@PSCMD@,$PSCMD,;t t
30575 s,@WIN32@,$WIN32,;t t
30576 s,@MACOSX@,$MACOSX,;t t
30577 s,@DISTNAME@,$DISTNAME,;t t
30578 s,@DISTVER@,$DISTVER,;t t
30579 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30580 /@MCOMMON@/r $MCOMMON
30581 s,@MCOMMON@,,;t t
30582 CEOF
30583
30584 _ACEOF
30585
30586   cat >>$CONFIG_STATUS <<\_ACEOF
30587   # Split the substitutions into bite-sized pieces for seds with
30588   # small command number limits, like on Digital OSF/1 and HP-UX.
30589   ac_max_sed_lines=48
30590   ac_sed_frag=1 # Number of current file.
30591   ac_beg=1 # First line for current file.
30592   ac_end=$ac_max_sed_lines # Line after last line for current file.
30593   ac_more_lines=:
30594   ac_sed_cmds=
30595   while $ac_more_lines; do
30596     if test $ac_beg -gt 1; then
30597       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30598     else
30599       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30600     fi
30601     if test ! -s $tmp/subs.frag; then
30602       ac_more_lines=false
30603     else
30604       # The purpose of the label and of the branching condition is to
30605       # speed up the sed processing (if there are no `@' at all, there
30606       # is no need to browse any of the substitutions).
30607       # These are the two extra sed commands mentioned above.
30608       (echo ':t
30609   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30610       if test -z "$ac_sed_cmds"; then
30611         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30612       else
30613         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30614       fi
30615       ac_sed_frag=`expr $ac_sed_frag + 1`
30616       ac_beg=$ac_end
30617       ac_end=`expr $ac_end + $ac_max_sed_lines`
30618     fi
30619   done
30620   if test -z "$ac_sed_cmds"; then
30621     ac_sed_cmds=cat
30622   fi
30623 fi # test -n "$CONFIG_FILES"
30624
30625 _ACEOF
30626 cat >>$CONFIG_STATUS <<\_ACEOF
30627 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30628   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30629   case $ac_file in
30630   - | *:- | *:-:* ) # input from stdin
30631         cat >$tmp/stdin
30632         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30633         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30634   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30635         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30636   * )   ac_file_in=$ac_file.in ;;
30637   esac
30638
30639   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30640   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30642          X"$ac_file" : 'X\(//\)[^/]' \| \
30643          X"$ac_file" : 'X\(//\)$' \| \
30644          X"$ac_file" : 'X\(/\)' \| \
30645          .     : '\(.\)' 2>/dev/null ||
30646 echo X"$ac_file" |
30647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30648           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30649           /^X\(\/\/\)$/{ s//\1/; q; }
30650           /^X\(\/\).*/{ s//\1/; q; }
30651           s/.*/./; q'`
30652   { if $as_mkdir_p; then
30653     mkdir -p "$ac_dir"
30654   else
30655     as_dir="$ac_dir"
30656     as_dirs=
30657     while test ! -d "$as_dir"; do
30658       as_dirs="$as_dir $as_dirs"
30659       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30661          X"$as_dir" : 'X\(//\)[^/]' \| \
30662          X"$as_dir" : 'X\(//\)$' \| \
30663          X"$as_dir" : 'X\(/\)' \| \
30664          .     : '\(.\)' 2>/dev/null ||
30665 echo X"$as_dir" |
30666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30667           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30668           /^X\(\/\/\)$/{ s//\1/; q; }
30669           /^X\(\/\).*/{ s//\1/; q; }
30670           s/.*/./; q'`
30671     done
30672     test ! -n "$as_dirs" || mkdir $as_dirs
30673   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30675    { (exit 1); exit 1; }; }; }
30676
30677   ac_builddir=.
30678
30679 if test "$ac_dir" != .; then
30680   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30681   # A "../" for each directory in $ac_dir_suffix.
30682   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30683 else
30684   ac_dir_suffix= ac_top_builddir=
30685 fi
30686
30687 case $srcdir in
30688   .)  # No --srcdir option.  We are building in place.
30689     ac_srcdir=.
30690     if test -z "$ac_top_builddir"; then
30691        ac_top_srcdir=.
30692     else
30693        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30694     fi ;;
30695   [\\/]* | ?:[\\/]* )  # Absolute path.
30696     ac_srcdir=$srcdir$ac_dir_suffix;
30697     ac_top_srcdir=$srcdir ;;
30698   *) # Relative path.
30699     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30700     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30701 esac
30702
30703 # Do not use `cd foo && pwd` to compute absolute paths, because
30704 # the directories may not exist.
30705 case `pwd` in
30706 .) ac_abs_builddir="$ac_dir";;
30707 *)
30708   case "$ac_dir" in
30709   .) ac_abs_builddir=`pwd`;;
30710   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30711   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30712   esac;;
30713 esac
30714 case $ac_abs_builddir in
30715 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30716 *)
30717   case ${ac_top_builddir}. in
30718   .) ac_abs_top_builddir=$ac_abs_builddir;;
30719   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30720   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30721   esac;;
30722 esac
30723 case $ac_abs_builddir in
30724 .) ac_abs_srcdir=$ac_srcdir;;
30725 *)
30726   case $ac_srcdir in
30727   .) ac_abs_srcdir=$ac_abs_builddir;;
30728   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30729   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30730   esac;;
30731 esac
30732 case $ac_abs_builddir in
30733 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30734 *)
30735   case $ac_top_srcdir in
30736   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30737   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30738   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30739   esac;;
30740 esac
30741
30742
30743   case $INSTALL in
30744   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30745   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30746   esac
30747
30748   if test x"$ac_file" != x-; then
30749     { echo "$as_me:$LINENO: creating $ac_file" >&5
30750 echo "$as_me: creating $ac_file" >&6;}
30751     rm -f "$ac_file"
30752   fi
30753   # Let's still pretend it is `configure' which instantiates (i.e., don't
30754   # use $as_me), people would be surprised to read:
30755   #    /* config.h.  Generated by config.status.  */
30756   if test x"$ac_file" = x-; then
30757     configure_input=
30758   else
30759     configure_input="$ac_file.  "
30760   fi
30761   configure_input=$configure_input"Generated from `echo $ac_file_in |
30762                                      sed 's,.*/,,'` by configure."
30763
30764   # First look for the input files in the build tree, otherwise in the
30765   # src tree.
30766   ac_file_inputs=`IFS=:
30767     for f in $ac_file_in; do
30768       case $f in
30769       -) echo $tmp/stdin ;;
30770       [\\/$]*)
30771          # Absolute (can't be DOS-style, as IFS=:)
30772          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30773 echo "$as_me: error: cannot find input file: $f" >&2;}
30774    { (exit 1); exit 1; }; }
30775          echo "$f";;
30776       *) # Relative
30777          if test -f "$f"; then
30778            # Build tree
30779            echo "$f"
30780          elif test -f "$srcdir/$f"; then
30781            # Source tree
30782            echo "$srcdir/$f"
30783          else
30784            # /dev/null tree
30785            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30786 echo "$as_me: error: cannot find input file: $f" >&2;}
30787    { (exit 1); exit 1; }; }
30788          fi;;
30789       esac
30790     done` || { (exit 1); exit 1; }
30791 _ACEOF
30792 cat >>$CONFIG_STATUS <<_ACEOF
30793   sed "$ac_vpsub
30794 $extrasub
30795 _ACEOF
30796 cat >>$CONFIG_STATUS <<\_ACEOF
30797 :t
30798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30799 s,@configure_input@,$configure_input,;t t
30800 s,@srcdir@,$ac_srcdir,;t t
30801 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30802 s,@top_srcdir@,$ac_top_srcdir,;t t
30803 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30804 s,@builddir@,$ac_builddir,;t t
30805 s,@abs_builddir@,$ac_abs_builddir,;t t
30806 s,@top_builddir@,$ac_top_builddir,;t t
30807 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30808 s,@INSTALL@,$ac_INSTALL,;t t
30809 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30810   rm -f $tmp/stdin
30811   if test x"$ac_file" != x-; then
30812     mv $tmp/out $ac_file
30813   else
30814     cat $tmp/out
30815     rm -f $tmp/out
30816   fi
30817
30818 done
30819 _ACEOF
30820 cat >>$CONFIG_STATUS <<\_ACEOF
30821
30822 #
30823 # CONFIG_HEADER section.
30824 #
30825
30826 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30827 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30828 #
30829 # ac_d sets the value in "#define NAME VALUE" lines.
30830 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30831 ac_dB='[         ].*$,\1#\2'
30832 ac_dC=' '
30833 ac_dD=',;t'
30834 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30835 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30836 ac_uB='$,\1#\2define\3'
30837 ac_uC=' '
30838 ac_uD=',;t'
30839
30840 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30841   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30842   case $ac_file in
30843   - | *:- | *:-:* ) # input from stdin
30844         cat >$tmp/stdin
30845         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30846         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30847   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30848         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30849   * )   ac_file_in=$ac_file.in ;;
30850   esac
30851
30852   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30853 echo "$as_me: creating $ac_file" >&6;}
30854
30855   # First look for the input files in the build tree, otherwise in the
30856   # src tree.
30857   ac_file_inputs=`IFS=:
30858     for f in $ac_file_in; do
30859       case $f in
30860       -) echo $tmp/stdin ;;
30861       [\\/$]*)
30862          # Absolute (can't be DOS-style, as IFS=:)
30863          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30864 echo "$as_me: error: cannot find input file: $f" >&2;}
30865    { (exit 1); exit 1; }; }
30866          # Do quote $f, to prevent DOS paths from being IFS'd.
30867          echo "$f";;
30868       *) # Relative
30869          if test -f "$f"; then
30870            # Build tree
30871            echo "$f"
30872          elif test -f "$srcdir/$f"; then
30873            # Source tree
30874            echo "$srcdir/$f"
30875          else
30876            # /dev/null tree
30877            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30878 echo "$as_me: error: cannot find input file: $f" >&2;}
30879    { (exit 1); exit 1; }; }
30880          fi;;
30881       esac
30882     done` || { (exit 1); exit 1; }
30883   # Remove the trailing spaces.
30884   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30885
30886 _ACEOF
30887
30888 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30889 # `conftest.undefs', that substitutes the proper values into
30890 # config.h.in to produce config.h.  The first handles `#define'
30891 # templates, and the second `#undef' templates.
30892 # And first: Protect against being on the right side of a sed subst in
30893 # config.status.  Protect against being in an unquoted here document
30894 # in config.status.
30895 rm -f conftest.defines conftest.undefs
30896 # Using a here document instead of a string reduces the quoting nightmare.
30897 # Putting comments in sed scripts is not portable.
30898 #
30899 # `end' is used to avoid that the second main sed command (meant for
30900 # 0-ary CPP macros) applies to n-ary macro definitions.
30901 # See the Autoconf documentation for `clear'.
30902 cat >confdef2sed.sed <<\_ACEOF
30903 s/[\\&,]/\\&/g
30904 s,[\\$`],\\&,g
30905 t clear
30906 : clear
30907 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30908 t end
30909 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30910 : end
30911 _ACEOF
30912 # If some macros were called several times there might be several times
30913 # the same #defines, which is useless.  Nevertheless, we may not want to
30914 # sort them, since we want the *last* AC-DEFINE to be honored.
30915 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30916 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30917 rm -f confdef2sed.sed
30918
30919 # This sed command replaces #undef with comments.  This is necessary, for
30920 # example, in the case of _POSIX_SOURCE, which is predefined and required
30921 # on some systems where configure will not decide to define it.
30922 cat >>conftest.undefs <<\_ACEOF
30923 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30924 _ACEOF
30925
30926 # Break up conftest.defines because some shells have a limit on the size
30927 # of here documents, and old seds have small limits too (100 cmds).
30928 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30929 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30930 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30931 echo '  :' >>$CONFIG_STATUS
30932 rm -f conftest.tail
30933 while grep . conftest.defines >/dev/null
30934 do
30935   # Write a limited-size here document to $tmp/defines.sed.
30936   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30937   # Speed up: don't consider the non `#define' lines.
30938   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30939   # Work around the forget-to-reset-the-flag bug.
30940   echo 't clr' >>$CONFIG_STATUS
30941   echo ': clr' >>$CONFIG_STATUS
30942   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30943   echo 'CEOF
30944   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30945   rm -f $tmp/in
30946   mv $tmp/out $tmp/in
30947 ' >>$CONFIG_STATUS
30948   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30949   rm -f conftest.defines
30950   mv conftest.tail conftest.defines
30951 done
30952 rm -f conftest.defines
30953 echo '  fi # grep' >>$CONFIG_STATUS
30954 echo >>$CONFIG_STATUS
30955
30956 # Break up conftest.undefs because some shells have a limit on the size
30957 # of here documents, and old seds have small limits too (100 cmds).
30958 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30959 rm -f conftest.tail
30960 while grep . conftest.undefs >/dev/null
30961 do
30962   # Write a limited-size here document to $tmp/undefs.sed.
30963   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30964   # Speed up: don't consider the non `#undef'
30965   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30966   # Work around the forget-to-reset-the-flag bug.
30967   echo 't clr' >>$CONFIG_STATUS
30968   echo ': clr' >>$CONFIG_STATUS
30969   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30970   echo 'CEOF
30971   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30972   rm -f $tmp/in
30973   mv $tmp/out $tmp/in
30974 ' >>$CONFIG_STATUS
30975   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30976   rm -f conftest.undefs
30977   mv conftest.tail conftest.undefs
30978 done
30979 rm -f conftest.undefs
30980
30981 cat >>$CONFIG_STATUS <<\_ACEOF
30982   # Let's still pretend it is `configure' which instantiates (i.e., don't
30983   # use $as_me), people would be surprised to read:
30984   #    /* config.h.  Generated by config.status.  */
30985   if test x"$ac_file" = x-; then
30986     echo "/* Generated by configure.  */" >$tmp/config.h
30987   else
30988     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30989   fi
30990   cat $tmp/in >>$tmp/config.h
30991   rm -f $tmp/in
30992   if test x"$ac_file" != x-; then
30993     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30994       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30995 echo "$as_me: $ac_file is unchanged" >&6;}
30996     else
30997       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30999          X"$ac_file" : 'X\(//\)[^/]' \| \
31000          X"$ac_file" : 'X\(//\)$' \| \
31001          X"$ac_file" : 'X\(/\)' \| \
31002          .     : '\(.\)' 2>/dev/null ||
31003 echo X"$ac_file" |
31004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31006           /^X\(\/\/\)$/{ s//\1/; q; }
31007           /^X\(\/\).*/{ s//\1/; q; }
31008           s/.*/./; q'`
31009       { if $as_mkdir_p; then
31010     mkdir -p "$ac_dir"
31011   else
31012     as_dir="$ac_dir"
31013     as_dirs=
31014     while test ! -d "$as_dir"; do
31015       as_dirs="$as_dir $as_dirs"
31016       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31018          X"$as_dir" : 'X\(//\)[^/]' \| \
31019          X"$as_dir" : 'X\(//\)$' \| \
31020          X"$as_dir" : 'X\(/\)' \| \
31021          .     : '\(.\)' 2>/dev/null ||
31022 echo X"$as_dir" |
31023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31025           /^X\(\/\/\)$/{ s//\1/; q; }
31026           /^X\(\/\).*/{ s//\1/; q; }
31027           s/.*/./; q'`
31028     done
31029     test ! -n "$as_dirs" || mkdir $as_dirs
31030   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31032    { (exit 1); exit 1; }; }; }
31033
31034       rm -f $ac_file
31035       mv $tmp/config.h $ac_file
31036     fi
31037   else
31038     cat $tmp/config.h
31039     rm -f $tmp/config.h
31040   fi
31041 done
31042 _ACEOF
31043 cat >>$CONFIG_STATUS <<\_ACEOF
31044
31045 #
31046 # CONFIG_COMMANDS section.
31047 #
31048 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31049   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31050   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31051   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31052 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31053          X"$ac_dest" : 'X\(//\)[^/]' \| \
31054          X"$ac_dest" : 'X\(//\)$' \| \
31055          X"$ac_dest" : 'X\(/\)' \| \
31056          .     : '\(.\)' 2>/dev/null ||
31057 echo X"$ac_dest" |
31058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31060           /^X\(\/\/\)$/{ s//\1/; q; }
31061           /^X\(\/\).*/{ s//\1/; q; }
31062           s/.*/./; q'`
31063   { if $as_mkdir_p; then
31064     mkdir -p "$ac_dir"
31065   else
31066     as_dir="$ac_dir"
31067     as_dirs=
31068     while test ! -d "$as_dir"; do
31069       as_dirs="$as_dir $as_dirs"
31070       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31072          X"$as_dir" : 'X\(//\)[^/]' \| \
31073          X"$as_dir" : 'X\(//\)$' \| \
31074          X"$as_dir" : 'X\(/\)' \| \
31075          .     : '\(.\)' 2>/dev/null ||
31076 echo X"$as_dir" |
31077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31079           /^X\(\/\/\)$/{ s//\1/; q; }
31080           /^X\(\/\).*/{ s//\1/; q; }
31081           s/.*/./; q'`
31082     done
31083     test ! -n "$as_dirs" || mkdir $as_dirs
31084   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31086    { (exit 1); exit 1; }; }; }
31087
31088   ac_builddir=.
31089
31090 if test "$ac_dir" != .; then
31091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31092   # A "../" for each directory in $ac_dir_suffix.
31093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31094 else
31095   ac_dir_suffix= ac_top_builddir=
31096 fi
31097
31098 case $srcdir in
31099   .)  # No --srcdir option.  We are building in place.
31100     ac_srcdir=.
31101     if test -z "$ac_top_builddir"; then
31102        ac_top_srcdir=.
31103     else
31104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31105     fi ;;
31106   [\\/]* | ?:[\\/]* )  # Absolute path.
31107     ac_srcdir=$srcdir$ac_dir_suffix;
31108     ac_top_srcdir=$srcdir ;;
31109   *) # Relative path.
31110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31112 esac
31113
31114 # Do not use `cd foo && pwd` to compute absolute paths, because
31115 # the directories may not exist.
31116 case `pwd` in
31117 .) ac_abs_builddir="$ac_dir";;
31118 *)
31119   case "$ac_dir" in
31120   .) ac_abs_builddir=`pwd`;;
31121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31123   esac;;
31124 esac
31125 case $ac_abs_builddir in
31126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31127 *)
31128   case ${ac_top_builddir}. in
31129   .) ac_abs_top_builddir=$ac_abs_builddir;;
31130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31132   esac;;
31133 esac
31134 case $ac_abs_builddir in
31135 .) ac_abs_srcdir=$ac_srcdir;;
31136 *)
31137   case $ac_srcdir in
31138   .) ac_abs_srcdir=$ac_abs_builddir;;
31139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31141   esac;;
31142 esac
31143 case $ac_abs_builddir in
31144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31145 *)
31146   case $ac_top_srcdir in
31147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31150   esac;;
31151 esac
31152
31153
31154   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31155 echo "$as_me: executing $ac_dest commands" >&6;}
31156   case $ac_dest in
31157     default-1 )
31158     for ac_file in $CONFIG_FILES; do
31159       # Support "outfile[:infile[:infile...]]"
31160       case "$ac_file" in
31161         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31162       esac
31163       # PO directories have a Makefile.in generated from Makefile.in.in.
31164       case "$ac_file" in */Makefile.in)
31165         # Adjust a relative srcdir.
31166         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31167         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31168         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31169         # In autoconf-2.13 it is called $ac_given_srcdir.
31170         # In autoconf-2.50 it is called $srcdir.
31171         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31172         case "$ac_given_srcdir" in
31173           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31174           /*) top_srcdir="$ac_given_srcdir" ;;
31175           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31176         esac
31177         # Treat a directory as a PO directory if and only if it has a
31178         # POTFILES.in file. This allows packages to have multiple PO
31179         # directories under different names or in different locations.
31180         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31181           rm -f "$ac_dir/POTFILES"
31182           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31183           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31184           POMAKEFILEDEPS="POTFILES.in"
31185           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31186           # on $ac_dir but don't depend on user-specified configuration
31187           # parameters.
31188           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31189             # The LINGUAS file contains the set of available languages.
31190             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31191               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31192             fi
31193             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31194             # Hide the ALL_LINGUAS assigment from automake.
31195             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31196             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31197           else
31198             # The set of available languages was given in configure.in.
31199             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31200           fi
31201           # Compute POFILES
31202           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31203           # Compute UPDATEPOFILES
31204           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31205           # Compute DUMMYPOFILES
31206           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31207           # Compute GMOFILES
31208           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31209           case "$ac_given_srcdir" in
31210             .) srcdirpre= ;;
31211             *) srcdirpre='$(srcdir)/' ;;
31212           esac
31213           POFILES=
31214           UPDATEPOFILES=
31215           DUMMYPOFILES=
31216           GMOFILES=
31217           for lang in $ALL_LINGUAS; do
31218             POFILES="$POFILES $srcdirpre$lang.po"
31219             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31220             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31221             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31222           done
31223           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31224           # environment variable.
31225           INST_LINGUAS=
31226           if test -n "$ALL_LINGUAS"; then
31227             for presentlang in $ALL_LINGUAS; do
31228               useit=no
31229               if test "%UNSET%" != "$LINGUAS"; then
31230                 desiredlanguages="$LINGUAS"
31231               else
31232                 desiredlanguages="$ALL_LINGUAS"
31233               fi
31234               for desiredlang in $desiredlanguages; do
31235                 # Use the presentlang catalog if desiredlang is
31236                 #   a. equal to presentlang, or
31237                 #   b. a variant of presentlang (because in this case,
31238                 #      presentlang can be used as a fallback for messages
31239                 #      which are not translated in the desiredlang catalog).
31240                 case "$desiredlang" in
31241                   "$presentlang"*) useit=yes;;
31242                 esac
31243               done
31244               if test $useit = yes; then
31245                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31246               fi
31247             done
31248           fi
31249           CATALOGS=
31250           if test -n "$INST_LINGUAS"; then
31251             for lang in $INST_LINGUAS; do
31252               CATALOGS="$CATALOGS $lang.gmo"
31253             done
31254           fi
31255           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31256           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
31257           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31258             if test -f "$f"; then
31259               case "$f" in
31260                 *.orig | *.bak | *~) ;;
31261                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31262               esac
31263             fi
31264           done
31265         fi
31266         ;;
31267       esac
31268     done ;;
31269     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31270  ;;
31271   esac
31272 done
31273 _ACEOF
31274
31275 cat >>$CONFIG_STATUS <<\_ACEOF
31276
31277 { (exit 0); exit 0; }
31278 _ACEOF
31279 chmod +x $CONFIG_STATUS
31280 ac_clean_files=$ac_clean_files_save
31281
31282
31283 # configure is writing to config.log, and then calls config.status.
31284 # config.status does its own redirection, appending to config.log.
31285 # Unfortunately, on DOS this fails, as config.log is still kept open
31286 # by configure, so config.status won't be able to write to it; its
31287 # output is simply discarded.  So we exec the FD to /dev/null,
31288 # effectively closing config.log, so it can be properly (re)opened and
31289 # appended to by config.status.  When coming back to configure, we
31290 # need to make the FD available again.
31291 if test "$no_create" != yes; then
31292   ac_cs_success=:
31293   ac_config_status_args=
31294   test "$silent" = yes &&
31295     ac_config_status_args="$ac_config_status_args --quiet"
31296   exec 5>/dev/null
31297   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31298   exec 5>>config.log
31299   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31300   # would make configure fail if this is the last instruction.
31301   $ac_cs_success || { (exit 1); exit 1; }
31302 fi
31303
31304
31305 cd scripts
31306 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31307 chmod 755 dvd-writepart dvd-freespace dvd-handler
31308 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31309 cd ..
31310
31311 c=src/cats
31312
31313 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31314 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31315
31316 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31317 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31318
31319 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31320 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31321
31322 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31323 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31324
31325 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31326 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31327
31328 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31329 chmod 755 $c/sqlite
31330 chmod 755 $c/mysql
31331
31332 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31333    largefile_support="yes"
31334 fi
31335
31336 #
31337 # A whole lot of hand springs to get the compiler version.
31338 #  This is because gcc changed the output in version 3.0
31339 #
31340 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31341 if test "x${CCVERSION}" = "x" ; then
31342   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31343 fi
31344 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31345 if test x"${CXXVERSION}" = x ; then
31346   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31347 fi
31348
31349 if test "x${subsysdir}" = "x${sbindir}" ; then
31350    echo " "
31351    echo " "
31352    echo "You have set --sbindir and --with-subsys-dir"
31353    echo "  both equal to: ${subsysdir} "
31354    echo "  This is not permitted. Please reconfigure."
31355    echo " "
31356    echo "Aborting configuration ..."
31357    echo " "
31358    echo " "
31359    exit 1
31360 fi
31361
31362 if test "x${db_name}" = "xInternal" ; then
31363    echo " "
31364    echo " "
31365    echo "You have not specified either --enable-client-only or one of the"
31366    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31367    echo "  This is not permitted. Please reconfigure."
31368    echo " "
31369    echo "Aborting the configuration ..."
31370    echo " "
31371    echo " "
31372    exit 1
31373 fi
31374
31375 echo "
31376 Configuration on `date`:
31377
31378   Host:                       $host -- ${DISTNAME} ${DISTVER}
31379   Bacula version:             ${VERSION} (${DATE})
31380   Source code location:       ${srcdir}
31381   Install binaries:           ${sbindir}
31382   Install config files:       ${sysconfdir}
31383   Scripts directory:          ${scriptdir}
31384   Working directory:          ${working_dir}
31385   PID directory:              ${piddir}
31386   Subsys directory:           ${subsysdir}
31387   Man directory:              ${mandir}
31388   Data directory:             ${datadir}
31389   C Compiler:                 ${CC} ${CCVERSION}
31390   C++ Compiler:               ${CXX} ${CXXVERSION}
31391   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31392   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31393   Libraries:                  ${LIBS}
31394   Statically Linked Tools:    ${support_static_tools}
31395   Statically Linked FD:       ${support_static_fd}
31396   Statically Linked SD:       ${support_static_sd}
31397   Statically Linked DIR:      ${support_static_dir}
31398   Statically Linked CONS:     ${support_static_cons}
31399   Database type:              ${db_name}
31400   Database lib:               ${DB_LIBS}
31401
31402   Job Output Email:           ${job_email}
31403   Traceback Email:            ${dump_email}
31404   SMTP Host Address:          ${smtp_host}
31405
31406   Director Port:              ${dir_port}
31407   File daemon Port:           ${fd_port}
31408   Storage daemon Port:        ${sd_port}
31409
31410   Director User:              ${dir_user}
31411   Director Group:             ${dir_group}
31412   Storage Daemon User:        ${sd_user}
31413   Storage DaemonGroup:        ${sd_group}
31414   File Daemon User:           ${fd_user}
31415   File Daemon Group:          ${fd_group}
31416
31417   SQL binaries Directory      ${SQL_BINDIR}
31418
31419   Large file support:         $largefile_support
31420   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31421   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31422   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31423   TLS support:                ${support_tls}
31424   ZLIB support:               ${have_zlib}
31425   enable-smartalloc:          ${support_smartalloc}
31426   enable-gnome:               ${support_gnome} ${gnome_version}
31427   enable-wx-console:          ${support_wx_console} ${wx_version}
31428   enable-tray-monitor:        ${support_tray_monitor}
31429   client-only:                ${build_client_only}
31430   build-dird:                 ${build_dird}
31431   build-stored:               ${build_stored}
31432   ACL support:                ${have_acl}
31433   Python support:             ${support_python} ${PYTHON_LIBS}
31434
31435   " > config.out
31436
31437 cat config.out