]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fix bug #292 (tray-monitor).
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG 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 INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_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 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 bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup 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 ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console     enable build of wxWidgets console disabled
860   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881
882   --with-python=DIR       Include Python support.  DIR is the Python base
883                           install directory, default is to search through
884                           a number of common places for the Python files.
885   --with-tcp-wrappers=DIR        enable tcpwrappers support
886   --with-openssl[=DIR]
887                           Include OpenSSL support. DIR is the OpenSSL base
888   --with-working-dir=PATH        specify path of Bacula working directory
889   --with-scriptdir=PATH    specify path of Bacula scripts directory
890   --with-dump-email=EMAIL        dump email address
891   --with-job-email=EMAIL         job output email address
892   --with-smtp-host=HOST          SMTP mail host address
893   --with-pid-dir=PATH            specify location of Bacula pid files
894   --with-subsys-dir=PATH         specify location of Bacula subsys file
895   --with-baseport=PORT           specify base port address for daemons
896   --with-dir-password=PASSWORD   specify Director's password
897   --with-fd-password=PASSWORD    specify Client's password
898   --with-sd-password=PASSWORD    specify Storage daemon's password
899   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
900   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
901   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
902   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
903   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
904   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
905   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
906   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
907   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
908   --with-dir-user=USER           specify user for Director daemon
909   --with-dir-group=GROUP                 specify group for Director daemon
910   --with-sd-user=USER            specify user for Storage daemon
911   --with-sd-group=GROUP          specify group for Storage daemon
912   --with-fd-user=USER            specify user for File daemon
913   --with-fd-group=GROUP          specify group for File daemon
914   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
915   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
916                           base install directory, defaults to /usr/local/pgsql
917
918   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
919                           install directory, default is to search through
920                           a number of common places for the MySQL files.
921
922   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
923                           install directory, default is to search through
924                           a number of common places for the MySQL files.
925
926   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
927                           install directory, default is to search through
928                           a number of common places for the SQLite3 files.
929
930   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
931                           install directory, default is to search through
932                           a number of common places for the SQLite files.
933   --with-x                use the X Window System
934
935 Some influential environment variables:
936   CC          C compiler command
937   CFLAGS      C compiler flags
938   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
939               nonstandard directory <lib dir>
940   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
941               headers in a nonstandard directory <include dir>
942   CXX         C++ compiler command
943   CXXFLAGS    C++ compiler flags
944   CPP         C preprocessor
945
946 Use these variables to override the choices made by `configure' or to help
947 it to find libraries and programs with nonstandard names/locations.
948
949 _ACEOF
950 fi
951
952 if test "$ac_init_help" = "recursive"; then
953   # If there are subdirs, report their specific --help.
954   ac_popdir=`pwd`
955   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
956     test -d $ac_dir || continue
957     ac_builddir=.
958
959 if test "$ac_dir" != .; then
960   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
961   # A "../" for each directory in $ac_dir_suffix.
962   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
963 else
964   ac_dir_suffix= ac_top_builddir=
965 fi
966
967 case $srcdir in
968   .)  # No --srcdir option.  We are building in place.
969     ac_srcdir=.
970     if test -z "$ac_top_builddir"; then
971        ac_top_srcdir=.
972     else
973        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
974     fi ;;
975   [\\/]* | ?:[\\/]* )  # Absolute path.
976     ac_srcdir=$srcdir$ac_dir_suffix;
977     ac_top_srcdir=$srcdir ;;
978   *) # Relative path.
979     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
980     ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 esac
982 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
983 # absolute.
984 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
985 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
986 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
987 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
988
989     cd $ac_dir
990     # Check for guested configure; otherwise get Cygnus style configure.
991     if test -f $ac_srcdir/configure.gnu; then
992       echo
993       $SHELL $ac_srcdir/configure.gnu  --help=recursive
994     elif test -f $ac_srcdir/configure; then
995       echo
996       $SHELL $ac_srcdir/configure  --help=recursive
997     elif test -f $ac_srcdir/configure.ac ||
998            test -f $ac_srcdir/configure.in; then
999       echo
1000       $ac_configure --help
1001     else
1002       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003     fi
1004     cd $ac_popdir
1005   done
1006 fi
1007
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010   cat <<\_ACEOF
1011
1012 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1013 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017   exit 0
1018 fi
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1023
1024 It was created by $as_me, which was
1025 generated by GNU Autoconf 2.57.  Invocation command line was
1026
1027   $ $0 $@
1028
1029 _ACEOF
1030 {
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1035
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1044
1045 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1046 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1049 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1050 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1051 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1052
1053 _ASUNAME
1054
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1057 do
1058   IFS=$as_save_IFS
1059   test -z "$as_dir" && as_dir=.
1060   echo "PATH: $as_dir"
1061 done
1062
1063 } >&5
1064
1065 cat >&5 <<_ACEOF
1066
1067
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1071
1072 _ACEOF
1073
1074
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1086 do
1087   for ac_arg
1088   do
1089     case $ac_arg in
1090     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092     | -silent | --silent | --silen | --sile | --sil)
1093       continue ;;
1094     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096     esac
1097     case $ac_pass in
1098     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099     2)
1100       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101       if test $ac_must_keep_next = true; then
1102         ac_must_keep_next=false # Got value, back to normal.
1103       else
1104         case $ac_arg in
1105           *=* | --config-cache | -C | -disable-* | --disable-* \
1106           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108           | -with-* | --with-* | -without-* | --without-* | --x)
1109             case "$ac_configure_args0 " in
1110               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111             esac
1112             ;;
1113           -* ) ac_must_keep_next=true ;;
1114         esac
1115       fi
1116       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117       # Get rid of the leading space.
1118       ac_sep=" "
1119       ;;
1120     esac
1121   done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log.  We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132   # Save into config.log some information that might help in debugging.
1133   {
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141     echo
1142     # The following way of writing the cache mishandles newlines in values,
1143 {
1144   (set) 2>&1 |
1145     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146     *ac_space=\ *)
1147       sed -n \
1148         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150       ;;
1151     *)
1152       sed -n \
1153         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154       ;;
1155     esac;
1156 }
1157     echo
1158
1159     cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164     echo
1165     for ac_var in $ac_subst_vars
1166     do
1167       eval ac_val=$`echo $ac_var`
1168       echo "$ac_var='"'"'$ac_val'"'"'"
1169     done | sort
1170     echo
1171
1172     if test -n "$ac_subst_files"; then
1173       cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178       echo
1179       for ac_var in $ac_subst_files
1180       do
1181         eval ac_val=$`echo $ac_var`
1182         echo "$ac_var='"'"'$ac_val'"'"'"
1183       done | sort
1184       echo
1185     fi
1186
1187     if test -s confdefs.h; then
1188       cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193       echo
1194       sed "/^$/d" confdefs.h | sort
1195       echo
1196     fi
1197     test "$ac_signal" != 0 &&
1198       echo "$as_me: caught signal $ac_signal"
1199     echo "$as_me: exit $exit_status"
1200   } >&5
1201   rm -f core core.* *.core &&
1202   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203     exit $exit_status
1204      ' 0
1205 for ac_signal in 1 2 13 15; do
1206   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1209
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1214
1215 # Predefined preprocessor variables.
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1230
1231
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1235
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1240
1241
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245   if test "x$prefix" != xNONE; then
1246     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247   else
1248     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249   fi
1250 fi
1251 for ac_site_file in $CONFIG_SITE; do
1252   if test -r "$ac_site_file"; then
1253     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255     sed 's/^/| /' "$ac_site_file" >&5
1256     . "$ac_site_file"
1257   fi
1258 done
1259
1260 if test -r "$cache_file"; then
1261   # Some versions of bash will fail to source /dev/null (special
1262   # files actually), so we avoid doing that.
1263   if test -f "$cache_file"; then
1264     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266     case $cache_file in
1267       [\\/]* | ?:[\\/]* ) . $cache_file;;
1268       *)                      . ./$cache_file;;
1269     esac
1270   fi
1271 else
1272   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274   >$cache_file
1275 fi
1276
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283   eval ac_new_set=\$ac_env_${ac_var}_set
1284   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285   eval ac_new_val="\$ac_env_${ac_var}_value"
1286   case $ac_old_set,$ac_new_set in
1287     set,)
1288       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290       ac_cache_corrupted=: ;;
1291     ,set)
1292       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294       ac_cache_corrupted=: ;;
1295     ,);;
1296     *)
1297       if test "x$ac_old_val" != "x$ac_new_val"; then
1298         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1301 echo "$as_me:   former value:  $ac_old_val" >&2;}
1302         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1303 echo "$as_me:   current value: $ac_new_val" >&2;}
1304         ac_cache_corrupted=:
1305       fi;;
1306   esac
1307   # Pass precious variables to config.status.
1308   if test "$ac_new_set" = set; then
1309     case $ac_new_val in
1310     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312     *) ac_arg=$ac_var=$ac_new_val ;;
1313     esac
1314     case " $ac_configure_args " in
1315       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1316       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317     esac
1318   fi
1319 done
1320 if $ac_cache_corrupted; then
1321   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325    { (exit 1); exit 1; }; }
1326 fi
1327
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352 BUILD_DIR=`pwd`
1353 cd ..
1354 TOP_DIR=`pwd`
1355 cd ${BUILD_DIR}
1356
1357 ac_aux_dir=
1358 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1359   if test -f $ac_dir/install-sh; then
1360     ac_aux_dir=$ac_dir
1361     ac_install_sh="$ac_aux_dir/install-sh -c"
1362     break
1363   elif test -f $ac_dir/install.sh; then
1364     ac_aux_dir=$ac_dir
1365     ac_install_sh="$ac_aux_dir/install.sh -c"
1366     break
1367   elif test -f $ac_dir/shtool; then
1368     ac_aux_dir=$ac_dir
1369     ac_install_sh="$ac_aux_dir/shtool install -c"
1370     break
1371   fi
1372 done
1373 if test -z "$ac_aux_dir"; then
1374   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1376    { (exit 1); exit 1; }; }
1377 fi
1378 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1381
1382           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1383
1384
1385
1386
1387
1388 for ac_prog in true
1389 do
1390   # Extract the first word of "$ac_prog", so it can be a program name with args.
1391 set dummy $ac_prog; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1395   echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397   case $TRUEPRG in
1398   [\\/]* | ?:[\\/]*)
1399   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1400   ;;
1401   *)
1402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403 for as_dir in $PATH
1404 do
1405   IFS=$as_save_IFS
1406   test -z "$as_dir" && as_dir=.
1407   for ac_exec_ext in '' $ac_executable_extensions; do
1408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411     break 2
1412   fi
1413 done
1414 done
1415
1416   ;;
1417 esac
1418 fi
1419 TRUEPRG=$ac_cv_path_TRUEPRG
1420
1421 if test -n "$TRUEPRG"; then
1422   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1423 echo "${ECHO_T}$TRUEPRG" >&6
1424 else
1425   echo "$as_me:$LINENO: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1427 fi
1428
1429   test -n "$TRUEPRG" && break
1430 done
1431 test -n "$TRUEPRG" || TRUEPRG=":"
1432
1433 for ac_prog in false
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_FALSEPRG+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   case $FALSEPRG in
1443   [\\/]* | ?:[\\/]*)
1444   ac_cv_path_FALSEPRG="$FALSEPRG" # 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_FALSEPRG="$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 FALSEPRG=$ac_cv_path_FALSEPRG
1465
1466 if test -n "$FALSEPRG"; then
1467   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1468 echo "${ECHO_T}$FALSEPRG" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474   test -n "$FALSEPRG" && break
1475 done
1476 test -n "$FALSEPRG" || FALSEPRG=":"
1477
1478
1479 #AC_CANONICAL_HOST
1480
1481 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1482 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1483 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1484 echo "configuring for bacula $VERSION ($DATE)"
1485
1486
1487
1488 ac_ext=c
1489 ac_cpp='$CPP $CPPFLAGS'
1490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493 if test -n "$ac_tool_prefix"; then
1494   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_CC+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   if test -n "$CC"; then
1502   ac_cv_prog_CC="$CC" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   for ac_exec_ext in '' $ac_executable_extensions; do
1510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513     break 2
1514   fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 CC=$ac_cv_prog_CC
1521 if test -n "$CC"; then
1522   echo "$as_me:$LINENO: result: $CC" >&5
1523 echo "${ECHO_T}$CC" >&6
1524 else
1525   echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529 fi
1530 if test -z "$ac_cv_prog_CC"; then
1531   ac_ct_CC=$CC
1532   # Extract the first word of "gcc", so it can be a program name with args.
1533 set dummy gcc; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1537   echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539   if test -n "$ac_ct_CC"; then
1540   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1541 else
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 for as_dir in $PATH
1544 do
1545   IFS=$as_save_IFS
1546   test -z "$as_dir" && as_dir=.
1547   for ac_exec_ext in '' $ac_executable_extensions; do
1548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549     ac_cv_prog_ac_ct_CC="gcc"
1550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551     break 2
1552   fi
1553 done
1554 done
1555
1556 fi
1557 fi
1558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1559 if test -n "$ac_ct_CC"; then
1560   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1561 echo "${ECHO_T}$ac_ct_CC" >&6
1562 else
1563   echo "$as_me:$LINENO: result: no" >&5
1564 echo "${ECHO_T}no" >&6
1565 fi
1566
1567   CC=$ac_ct_CC
1568 else
1569   CC="$ac_cv_prog_CC"
1570 fi
1571
1572 if test -z "$CC"; then
1573   if test -n "$ac_tool_prefix"; then
1574   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1575 set dummy ${ac_tool_prefix}cc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_CC+set}" = set; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   if test -n "$CC"; then
1582   ac_cv_prog_CC="$CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   for ac_exec_ext in '' $ac_executable_extensions; do
1590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591     ac_cv_prog_CC="${ac_tool_prefix}cc"
1592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593     break 2
1594   fi
1595 done
1596 done
1597
1598 fi
1599 fi
1600 CC=$ac_cv_prog_CC
1601 if test -n "$CC"; then
1602   echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1604 else
1605   echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609 fi
1610 if test -z "$ac_cv_prog_CC"; then
1611   ac_ct_CC=$CC
1612   # Extract the first word of "cc", so it can be a program name with args.
1613 set dummy cc; ac_word=$2
1614 echo "$as_me:$LINENO: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   if test -n "$ac_ct_CC"; then
1620   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1621 else
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1624 do
1625   IFS=$as_save_IFS
1626   test -z "$as_dir" && as_dir=.
1627   for ac_exec_ext in '' $ac_executable_extensions; do
1628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629     ac_cv_prog_ac_ct_CC="cc"
1630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631     break 2
1632   fi
1633 done
1634 done
1635
1636 fi
1637 fi
1638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1639 if test -n "$ac_ct_CC"; then
1640   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1641 echo "${ECHO_T}$ac_ct_CC" >&6
1642 else
1643   echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647   CC=$ac_ct_CC
1648 else
1649   CC="$ac_cv_prog_CC"
1650 fi
1651
1652 fi
1653 if test -z "$CC"; then
1654   # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$CC"; then
1662   ac_cv_prog_CC="$CC" # Let the user override the test.
1663 else
1664   ac_prog_rejected=no
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   for ac_exec_ext in '' $ac_executable_extensions; do
1671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1673        ac_prog_rejected=yes
1674        continue
1675      fi
1676     ac_cv_prog_CC="cc"
1677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678     break 2
1679   fi
1680 done
1681 done
1682
1683 if test $ac_prog_rejected = yes; then
1684   # We found a bogon in the path, so make sure we never use it.
1685   set dummy $ac_cv_prog_CC
1686   shift
1687   if test $# != 0; then
1688     # We chose a different compiler from the bogus one.
1689     # However, it has the same basename, so the bogon will be chosen
1690     # first if we set CC to just the basename; use the full file name.
1691     shift
1692     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1693   fi
1694 fi
1695 fi
1696 fi
1697 CC=$ac_cv_prog_CC
1698 if test -n "$CC"; then
1699   echo "$as_me:$LINENO: result: $CC" >&5
1700 echo "${ECHO_T}$CC" >&6
1701 else
1702   echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 fi
1705
1706 fi
1707 if test -z "$CC"; then
1708   if test -n "$ac_tool_prefix"; then
1709   for ac_prog in cl
1710   do
1711     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_CC+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   if test -n "$CC"; then
1719   ac_cv_prog_CC="$CC" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724   IFS=$as_save_IFS
1725   test -z "$as_dir" && as_dir=.
1726   for ac_exec_ext in '' $ac_executable_extensions; do
1727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730     break 2
1731   fi
1732 done
1733 done
1734
1735 fi
1736 fi
1737 CC=$ac_cv_prog_CC
1738 if test -n "$CC"; then
1739   echo "$as_me:$LINENO: result: $CC" >&5
1740 echo "${ECHO_T}$CC" >&6
1741 else
1742   echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 fi
1745
1746     test -n "$CC" && break
1747   done
1748 fi
1749 if test -z "$CC"; then
1750   ac_ct_CC=$CC
1751   for ac_prog in cl
1752 do
1753   # Extract the first word of "$ac_prog", so it can be a program name with args.
1754 set dummy $ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$ac_ct_CC"; then
1761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_ac_ct_CC="$ac_prog"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788   test -n "$ac_ct_CC" && break
1789 done
1790
1791   CC=$ac_ct_CC
1792 fi
1793
1794 fi
1795
1796
1797 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: no acceptable C compiler found in \$PATH
1800 See \`config.log' for more details." >&2;}
1801    { (exit 1); exit 1; }; }
1802
1803 # Provide some information about the compiler.
1804 echo "$as_me:$LINENO:" \
1805      "checking for C compiler version" >&5
1806 ac_compiler=`set X $ac_compile; echo $2`
1807 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1808   (eval $ac_compiler --version </dev/null >&5) 2>&5
1809   ac_status=$?
1810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811   (exit $ac_status); }
1812 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1813   (eval $ac_compiler -v </dev/null >&5) 2>&5
1814   ac_status=$?
1815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816   (exit $ac_status); }
1817 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1818   (eval $ac_compiler -V </dev/null >&5) 2>&5
1819   ac_status=$?
1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821   (exit $ac_status); }
1822
1823 cat >conftest.$ac_ext <<_ACEOF
1824 #line $LINENO "configure"
1825 /* confdefs.h.  */
1826 _ACEOF
1827 cat confdefs.h >>conftest.$ac_ext
1828 cat >>conftest.$ac_ext <<_ACEOF
1829 /* end confdefs.h.  */
1830
1831 int
1832 main ()
1833 {
1834
1835   ;
1836   return 0;
1837 }
1838 _ACEOF
1839 ac_clean_files_save=$ac_clean_files
1840 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1841 # Try to create an executable without -o first, disregard a.out.
1842 # It will help us diagnose broken compilers, and finding out an intuition
1843 # of exeext.
1844 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1845 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1846 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1847 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1848   (eval $ac_link_default) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }; then
1852   # Find the output, starting from the most likely.  This scheme is
1853 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1854 # resort.
1855
1856 # Be careful to initialize this variable, since it used to be cached.
1857 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1858 ac_cv_exeext=
1859 # b.out is created by i960 compilers.
1860 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1861 do
1862   test -f "$ac_file" || continue
1863   case $ac_file in
1864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1865         ;;
1866     conftest.$ac_ext )
1867         # This is the source file.
1868         ;;
1869     [ab].out )
1870         # We found the default executable, but exeext='' is most
1871         # certainly right.
1872         break;;
1873     *.* )
1874         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875         # FIXME: I believe we export ac_cv_exeext for Libtool,
1876         # but it would be cool to find out if it's true.  Does anybody
1877         # maintain Libtool? --akim.
1878         export ac_cv_exeext
1879         break;;
1880     * )
1881         break;;
1882   esac
1883 done
1884 else
1885   echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1889 See \`config.log' for more details." >&5
1890 echo "$as_me: error: C compiler cannot create executables
1891 See \`config.log' for more details." >&2;}
1892    { (exit 77); exit 77; }; }
1893 fi
1894
1895 ac_exeext=$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_file" >&5
1897 echo "${ECHO_T}$ac_file" >&6
1898
1899 # Check the compiler produces executables we can run.  If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1902 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1904 # If not cross compiling, check that we can run a simple program.
1905 if test "$cross_compiling" != yes; then
1906   if { ac_try='./$ac_file'
1907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1908   (eval $ac_try) 2>&5
1909   ac_status=$?
1910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911   (exit $ac_status); }; }; then
1912     cross_compiling=no
1913   else
1914     if test "$cross_compiling" = maybe; then
1915         cross_compiling=yes
1916     else
1917         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1918 If you meant to cross compile, use \`--host'.
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: cannot run C compiled programs.
1921 If you meant to cross compile, use \`--host'.
1922 See \`config.log' for more details." >&2;}
1923    { (exit 1); exit 1; }; }
1924     fi
1925   fi
1926 fi
1927 echo "$as_me:$LINENO: result: yes" >&5
1928 echo "${ECHO_T}yes" >&6
1929
1930 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1931 ac_clean_files=$ac_clean_files_save
1932 # Check the compiler produces executables we can run.  If not, either
1933 # the compiler is broken, or we cross compile.
1934 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1935 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1936 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1937 echo "${ECHO_T}$cross_compiling" >&6
1938
1939 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1940 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1942   (eval $ac_link) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; then
1946   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1947 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1948 # work properly (i.e., refer to `conftest.exe'), while it won't with
1949 # `rm'.
1950 for ac_file in conftest.exe conftest conftest.*; do
1951   test -f "$ac_file" || continue
1952   case $ac_file in
1953     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1954     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1955           export ac_cv_exeext
1956           break;;
1957     * ) break;;
1958   esac
1959 done
1960 else
1961   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1964 See \`config.log' for more details." >&2;}
1965    { (exit 1); exit 1; }; }
1966 fi
1967
1968 rm -f conftest$ac_cv_exeext
1969 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1970 echo "${ECHO_T}$ac_cv_exeext" >&6
1971
1972 rm -f conftest.$ac_ext
1973 EXEEXT=$ac_cv_exeext
1974 ac_exeext=$EXEEXT
1975 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1976 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1977 if test "${ac_cv_objext+set}" = set; then
1978   echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980   cat >conftest.$ac_ext <<_ACEOF
1981 #line $LINENO "configure"
1982 /* confdefs.h.  */
1983 _ACEOF
1984 cat confdefs.h >>conftest.$ac_ext
1985 cat >>conftest.$ac_ext <<_ACEOF
1986 /* end confdefs.h.  */
1987
1988 int
1989 main ()
1990 {
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 rm -f conftest.o conftest.obj
1997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998   (eval $ac_compile) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }; then
2002   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2003   case $ac_file in
2004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2005     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2006        break;;
2007   esac
2008 done
2009 else
2010   echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2016 See \`config.log' for more details." >&2;}
2017    { (exit 1); exit 1; }; }
2018 fi
2019
2020 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2021 fi
2022 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2023 echo "${ECHO_T}$ac_cv_objext" >&6
2024 OBJEXT=$ac_cv_objext
2025 ac_objext=$OBJEXT
2026 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2027 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2028 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 #line $LINENO "configure"
2033 /* confdefs.h.  */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h.  */
2038
2039 int
2040 main ()
2041 {
2042 #ifndef __GNUC__
2043        choke me
2044 #endif
2045
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052   (eval $ac_compile) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); } &&
2056          { ac_try='test -s conftest.$ac_objext'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; }; then
2062   ac_compiler_gnu=yes
2063 else
2064   echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 ac_compiler_gnu=no
2068 fi
2069 rm -f conftest.$ac_objext conftest.$ac_ext
2070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2071
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2074 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2075 GCC=`test $ac_compiler_gnu = yes && echo yes`
2076 ac_test_CFLAGS=${CFLAGS+set}
2077 ac_save_CFLAGS=$CFLAGS
2078 CFLAGS="-g"
2079 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2081 if test "${ac_cv_prog_cc_g+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2086 /* confdefs.h.  */
2087 _ACEOF
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h.  */
2091
2092 int
2093 main ()
2094 {
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102   (eval $ac_compile) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); } &&
2106          { ac_try='test -s conftest.$ac_objext'
2107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108   (eval $ac_try) 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }; }; then
2112   ac_cv_prog_cc_g=yes
2113 else
2114   echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2116
2117 ac_cv_prog_cc_g=no
2118 fi
2119 rm -f conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2122 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2123 if test "$ac_test_CFLAGS" = set; then
2124   CFLAGS=$ac_save_CFLAGS
2125 elif test $ac_cv_prog_cc_g = yes; then
2126   if test "$GCC" = yes; then
2127     CFLAGS="-g -O2"
2128   else
2129     CFLAGS="-g"
2130   fi
2131 else
2132   if test "$GCC" = yes; then
2133     CFLAGS="-O2"
2134   else
2135     CFLAGS=
2136   fi
2137 fi
2138 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2139 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   ac_cv_prog_cc_stdc=no
2144 ac_save_CC=$CC
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line $LINENO "configure"
2147 /* confdefs.h.  */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h.  */
2152 #include <stdarg.h>
2153 #include <stdio.h>
2154 #include <sys/types.h>
2155 #include <sys/stat.h>
2156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2157 struct buf { int x; };
2158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2159 static char *e (p, i)
2160      char **p;
2161      int i;
2162 {
2163   return p[i];
2164 }
2165 static char *f (char * (*g) (char **, int), char **p, ...)
2166 {
2167   char *s;
2168   va_list v;
2169   va_start (v,p);
2170   s = g (p, va_arg (v,int));
2171   va_end (v);
2172   return s;
2173 }
2174 int test (int i, double x);
2175 struct s1 {int (*f) (int a);};
2176 struct s2 {int (*f) (double a);};
2177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2178 int argc;
2179 char **argv;
2180 int
2181 main ()
2182 {
2183 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 # Don't try gcc -ansi; that turns off useful extensions and
2189 # breaks some systems' header files.
2190 # AIX                   -qlanglvl=ansi
2191 # Ultrix and OSF/1      -std1
2192 # HP-UX 10.20 and later -Ae
2193 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2194 # SVR4                  -Xc -D__EXTENSIONS__
2195 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2196 do
2197   CC="$ac_save_CC $ac_arg"
2198   rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200   (eval $ac_compile) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); } &&
2204          { ac_try='test -s conftest.$ac_objext'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; }; then
2210   ac_cv_prog_cc_stdc=$ac_arg
2211 break
2212 else
2213   echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 fi
2217 rm -f conftest.$ac_objext
2218 done
2219 rm -f conftest.$ac_ext conftest.$ac_objext
2220 CC=$ac_save_CC
2221
2222 fi
2223
2224 case "x$ac_cv_prog_cc_stdc" in
2225   x|xno)
2226     echo "$as_me:$LINENO: result: none needed" >&5
2227 echo "${ECHO_T}none needed" >&6 ;;
2228   *)
2229     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2230 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2231     CC="$CC $ac_cv_prog_cc_stdc" ;;
2232 esac
2233
2234 # Some people use a C++ compiler to compile C.  Since we use `exit',
2235 # in C++ we need to declare it.  In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #ifndef __cplusplus
2240   choke me
2241 #endif
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); } &&
2249          { ac_try='test -s conftest.$ac_objext'
2250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251   (eval $ac_try) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; }; then
2255   for ac_declaration in \
2256    ''\
2257    '#include <stdlib.h>' \
2258    'extern "C" void std::exit (int) throw (); using std::exit;' \
2259    'extern "C" void std::exit (int); using std::exit;' \
2260    'extern "C" void exit (int) throw ();' \
2261    'extern "C" void exit (int);' \
2262    'void exit (int);'
2263 do
2264   cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 /* confdefs.h.  */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h.  */
2271 #include <stdlib.h>
2272 $ac_declaration
2273 int
2274 main ()
2275 {
2276 exit (42);
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } &&
2287          { ac_try='test -s conftest.$ac_objext'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   :
2294 else
2295   echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 continue
2299 fi
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2301   cat >conftest.$ac_ext <<_ACEOF
2302 #line $LINENO "configure"
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308 $ac_declaration
2309 int
2310 main ()
2311 {
2312 exit (42);
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319   (eval $ac_compile) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); } &&
2323          { ac_try='test -s conftest.$ac_objext'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329   break
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 fi
2335 rm -f conftest.$ac_objext conftest.$ac_ext
2336 done
2337 rm -f conftest*
2338 if test -n "$ac_declaration"; then
2339   echo '#ifdef __cplusplus' >>confdefs.h
2340   echo $ac_declaration      >>confdefs.h
2341   echo '#endif'             >>confdefs.h
2342 fi
2343
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 fi
2349 rm -f conftest.$ac_objext conftest.$ac_ext
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356 ac_ext=cc
2357 ac_cpp='$CXXCPP $CPPFLAGS'
2358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2363   do
2364     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2366 echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368 if test "${ac_cv_prog_CXX+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   if test -n "$CXX"; then
2372   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377   IFS=$as_save_IFS
2378   test -z "$as_dir" && as_dir=.
2379   for ac_exec_ext in '' $ac_executable_extensions; do
2380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383     break 2
2384   fi
2385 done
2386 done
2387
2388 fi
2389 fi
2390 CXX=$ac_cv_prog_CXX
2391 if test -n "$CXX"; then
2392   echo "$as_me:$LINENO: result: $CXX" >&5
2393 echo "${ECHO_T}$CXX" >&6
2394 else
2395   echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2397 fi
2398
2399     test -n "$CXX" && break
2400   done
2401 fi
2402 if test -z "$CXX"; then
2403   ac_ct_CXX=$CXX
2404   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2405 do
2406   # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   if test -n "$ac_ct_CXX"; then
2414   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421   for ac_exec_ext in '' $ac_executable_extensions; do
2422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423     ac_cv_prog_ac_ct_CXX="$ac_prog"
2424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425     break 2
2426   fi
2427 done
2428 done
2429
2430 fi
2431 fi
2432 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2433 if test -n "$ac_ct_CXX"; then
2434   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2435 echo "${ECHO_T}$ac_ct_CXX" >&6
2436 else
2437   echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2439 fi
2440
2441   test -n "$ac_ct_CXX" && break
2442 done
2443 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2444
2445   CXX=$ac_ct_CXX
2446 fi
2447
2448
2449 # Provide some information about the compiler.
2450 echo "$as_me:$LINENO:" \
2451      "checking for C++ compiler version" >&5
2452 ac_compiler=`set X $ac_compile; echo $2`
2453 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2454   (eval $ac_compiler --version </dev/null >&5) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }
2458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2459   (eval $ac_compiler -v </dev/null >&5) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }
2463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2464   (eval $ac_compiler -V </dev/null >&5) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }
2468
2469 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2470 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2472   echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474   cat >conftest.$ac_ext <<_ACEOF
2475 #line $LINENO "configure"
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485 #ifndef __GNUC__
2486        choke me
2487 #endif
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); } &&
2499          { ac_try='test -s conftest.$ac_objext'
2500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501   (eval $ac_try) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505   ac_compiler_gnu=yes
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 ac_compiler_gnu=no
2511 fi
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2513 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2514
2515 fi
2516 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2517 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2518 GXX=`test $ac_compiler_gnu = yes && echo yes`
2519 ac_test_CXXFLAGS=${CXXFLAGS+set}
2520 ac_save_CXXFLAGS=$CXXFLAGS
2521 CXXFLAGS="-g"
2522 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2523 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2524 if test "${ac_cv_prog_cxx_g+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -s conftest.$ac_objext'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; }; then
2555   ac_cv_prog_cxx_g=yes
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 ac_cv_prog_cxx_g=no
2561 fi
2562 rm -f conftest.$ac_objext conftest.$ac_ext
2563 fi
2564 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2566 if test "$ac_test_CXXFLAGS" = set; then
2567   CXXFLAGS=$ac_save_CXXFLAGS
2568 elif test $ac_cv_prog_cxx_g = yes; then
2569   if test "$GXX" = yes; then
2570     CXXFLAGS="-g -O2"
2571   else
2572     CXXFLAGS="-g"
2573   fi
2574 else
2575   if test "$GXX" = yes; then
2576     CXXFLAGS="-O2"
2577   else
2578     CXXFLAGS=
2579   fi
2580 fi
2581 for ac_declaration in \
2582    ''\
2583    '#include <stdlib.h>' \
2584    'extern "C" void std::exit (int) throw (); using std::exit;' \
2585    'extern "C" void std::exit (int); using std::exit;' \
2586    'extern "C" void exit (int) throw ();' \
2587    'extern "C" void exit (int);' \
2588    'void exit (int);'
2589 do
2590   cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 /* confdefs.h.  */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h.  */
2597 #include <stdlib.h>
2598 $ac_declaration
2599 int
2600 main ()
2601 {
2602 exit (42);
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609   (eval $ac_compile) 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -s conftest.$ac_objext'
2614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615   (eval $ac_try) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; }; then
2619   :
2620 else
2621   echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 continue
2625 fi
2626 rm -f conftest.$ac_objext conftest.$ac_ext
2627   cat >conftest.$ac_ext <<_ACEOF
2628 #line $LINENO "configure"
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 $ac_declaration
2635 int
2636 main ()
2637 {
2638 exit (42);
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645   (eval $ac_compile) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } &&
2649          { ac_try='test -s conftest.$ac_objext'
2650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651   (eval $ac_try) 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; }; then
2655   break
2656 else
2657   echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660 fi
2661 rm -f conftest.$ac_objext conftest.$ac_ext
2662 done
2663 rm -f conftest*
2664 if test -n "$ac_declaration"; then
2665   echo '#ifdef __cplusplus' >>confdefs.h
2666   echo $ac_declaration      >>confdefs.h
2667   echo '#endif'             >>confdefs.h
2668 fi
2669
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675
2676 if test "x$CC" != xcc; then
2677   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2678 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2679 else
2680   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2681 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2682 fi
2683 set dummy $CC; ac_cc=`echo $2 |
2684                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2685 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695
2696 int
2697 main ()
2698 {
2699
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 # Make sure it works both with $CC and with simple cc.
2705 # We do the test twice because some compilers refuse to overwrite an
2706 # existing .o file with -o, though they will create one.
2707 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2708 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } &&
2713    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); };
2718 then
2719   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2720   if test "x$CC" != xcc; then
2721     # Test first that cc exists at all.
2722     if { ac_try='cc -c conftest.$ac_ext >&5'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2729       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); };
2739       then
2740         # cc works too.
2741         :
2742       else
2743         # cc exists but doesn't like -o.
2744         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2745       fi
2746     fi
2747   fi
2748 else
2749   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2750 fi
2751 rm -f conftest*
2752
2753 fi
2754 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2755   echo "$as_me:$LINENO: result: yes" >&5
2756 echo "${ECHO_T}yes" >&6
2757 else
2758   echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2760
2761 cat >>confdefs.h <<\_ACEOF
2762 #define NO_MINUS_C_MINUS_O 1
2763 _ACEOF
2764
2765 fi
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2773 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2774 # On Suns, sometimes $CPP names a directory.
2775 if test -n "$CPP" && test -d "$CPP"; then
2776   CPP=
2777 fi
2778 if test -z "$CPP"; then
2779   if test "${ac_cv_prog_CPP+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782       # Double quotes because CPP needs to be expanded
2783     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2784     do
2785       ac_preproc_ok=false
2786 for ac_c_preproc_warn_flag in '' yes
2787 do
2788   # Use a header file that comes with gcc, so configuring glibc
2789   # with a fresh cross-compiler works.
2790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2791   # <limits.h> exists even on freestanding compilers.
2792   # On the NeXT, cc -E runs the code through the compiler's parser,
2793   # not just through cpp. "Syntax error" is here to catch this case.
2794   cat >conftest.$ac_ext <<_ACEOF
2795 #line $LINENO "configure"
2796 /* confdefs.h.  */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h.  */
2801 #ifdef __STDC__
2802 # include <limits.h>
2803 #else
2804 # include <assert.h>
2805 #endif
2806                      Syntax error
2807 _ACEOF
2808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2810   ac_status=$?
2811   grep -v '^ *+' conftest.er1 >conftest.err
2812   rm -f conftest.er1
2813   cat conftest.err >&5
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); } >/dev/null; then
2816   if test -s conftest.err; then
2817     ac_cpp_err=$ac_c_preproc_warn_flag
2818   else
2819     ac_cpp_err=
2820   fi
2821 else
2822   ac_cpp_err=yes
2823 fi
2824 if test -z "$ac_cpp_err"; then
2825   :
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830   # Broken: fails on valid input.
2831 continue
2832 fi
2833 rm -f conftest.err conftest.$ac_ext
2834
2835   # OK, works on sane cases.  Now check whether non-existent headers
2836   # can be detected and how.
2837   cat >conftest.$ac_ext <<_ACEOF
2838 #line $LINENO "configure"
2839 /* confdefs.h.  */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h.  */
2844 #include <ac_nonexistent.h>
2845 _ACEOF
2846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2848   ac_status=$?
2849   grep -v '^ *+' conftest.er1 >conftest.err
2850   rm -f conftest.er1
2851   cat conftest.err >&5
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); } >/dev/null; then
2854   if test -s conftest.err; then
2855     ac_cpp_err=$ac_c_preproc_warn_flag
2856   else
2857     ac_cpp_err=
2858   fi
2859 else
2860   ac_cpp_err=yes
2861 fi
2862 if test -z "$ac_cpp_err"; then
2863   # Broken: success on invalid input.
2864 continue
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869   # Passes both tests.
2870 ac_preproc_ok=:
2871 break
2872 fi
2873 rm -f conftest.err conftest.$ac_ext
2874
2875 done
2876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2877 rm -f conftest.err conftest.$ac_ext
2878 if $ac_preproc_ok; then
2879   break
2880 fi
2881
2882     done
2883     ac_cv_prog_CPP=$CPP
2884
2885 fi
2886   CPP=$ac_cv_prog_CPP
2887 else
2888   ac_cv_prog_CPP=$CPP
2889 fi
2890 echo "$as_me:$LINENO: result: $CPP" >&5
2891 echo "${ECHO_T}$CPP" >&6
2892 ac_preproc_ok=false
2893 for ac_c_preproc_warn_flag in '' yes
2894 do
2895   # Use a header file that comes with gcc, so configuring glibc
2896   # with a fresh cross-compiler works.
2897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898   # <limits.h> exists even on freestanding compilers.
2899   # On the NeXT, cc -E runs the code through the compiler's parser,
2900   # not just through cpp. "Syntax error" is here to catch this case.
2901   cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 #ifdef __STDC__
2909 # include <limits.h>
2910 #else
2911 # include <assert.h>
2912 #endif
2913                      Syntax error
2914 _ACEOF
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2917   ac_status=$?
2918   grep -v '^ *+' conftest.er1 >conftest.err
2919   rm -f conftest.er1
2920   cat conftest.err >&5
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } >/dev/null; then
2923   if test -s conftest.err; then
2924     ac_cpp_err=$ac_c_preproc_warn_flag
2925   else
2926     ac_cpp_err=
2927   fi
2928 else
2929   ac_cpp_err=yes
2930 fi
2931 if test -z "$ac_cpp_err"; then
2932   :
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937   # Broken: fails on valid input.
2938 continue
2939 fi
2940 rm -f conftest.err conftest.$ac_ext
2941
2942   # OK, works on sane cases.  Now check whether non-existent headers
2943   # can be detected and how.
2944   cat >conftest.$ac_ext <<_ACEOF
2945 #line $LINENO "configure"
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951 #include <ac_nonexistent.h>
2952 _ACEOF
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } >/dev/null; then
2961   if test -s conftest.err; then
2962     ac_cpp_err=$ac_c_preproc_warn_flag
2963   else
2964     ac_cpp_err=
2965   fi
2966 else
2967   ac_cpp_err=yes
2968 fi
2969 if test -z "$ac_cpp_err"; then
2970   # Broken: success on invalid input.
2971 continue
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976   # Passes both tests.
2977 ac_preproc_ok=:
2978 break
2979 fi
2980 rm -f conftest.err conftest.$ac_ext
2981
2982 done
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2986   :
2987 else
2988   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2991 See \`config.log' for more details." >&2;}
2992    { (exit 1); exit 1; }; }
2993 fi
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000
3001
3002 echo "$as_me:$LINENO: checking for egrep" >&5
3003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3004 if test "${ac_cv_prog_egrep+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3008     then ac_cv_prog_egrep='grep -E'
3009     else ac_cv_prog_egrep='egrep'
3010     fi
3011 fi
3012 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3013 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3014  EGREP=$ac_cv_prog_egrep
3015
3016
3017 if test $ac_cv_c_compiler_gnu = yes; then
3018     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3019 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3020 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023     ac_pattern="Autoconf.*'x'"
3024   cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <sgtty.h>
3032 Autoconf TIOCGETP
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 else
3038   ac_cv_prog_gcc_traditional=no
3039 fi
3040 rm -f conftest*
3041
3042
3043   if test $ac_cv_prog_gcc_traditional = no; then
3044     cat >conftest.$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051 #include <termio.h>
3052 Autoconf TCGETA
3053 _ACEOF
3054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3055   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3056   ac_cv_prog_gcc_traditional=yes
3057 fi
3058 rm -f conftest*
3059
3060   fi
3061 fi
3062 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3063 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3064   if test $ac_cv_prog_gcc_traditional = yes; then
3065     CC="$CC -traditional"
3066   fi
3067 fi
3068
3069 if test "x$CC" = xgcc
3070 then
3071    cat >>confdefs.h <<\_ACEOF
3072 #define HAVE_GCC 1
3073 _ACEOF
3074
3075 fi
3076
3077 # Find a good install program.  We prefer a C program (faster),
3078 # so one script is as good as another.  But avoid the broken or
3079 # incompatible versions:
3080 # SysV /etc/install, /usr/sbin/install
3081 # SunOS /usr/etc/install
3082 # IRIX /sbin/install
3083 # AIX /bin/install
3084 # AmigaOS /C/install, which installs bootblocks on floppy discs
3085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3088 # ./install, which can be erroneously created by make from ./install.sh.
3089 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3090 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3091 if test -z "$INSTALL"; then
3092 if test "${ac_cv_path_install+set}" = set; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100   # Account for people who put trailing slashes in PATH elements.
3101 case $as_dir/ in
3102   ./ | .// | /cC/* | \
3103   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3104   /usr/ucb/* ) ;;
3105   *)
3106     # OSF1 and SCO ODT 3.0 have their own names for install.
3107     # Don't use installbsd from OSF since it installs stuff as root
3108     # by default.
3109     for ac_prog in ginstall scoinst install; do
3110       for ac_exec_ext in '' $ac_executable_extensions; do
3111         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3112           if test $ac_prog = install &&
3113             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3114             # AIX install.  It has an incompatible calling convention.
3115             :
3116           elif test $ac_prog = install &&
3117             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3118             # program-specific install script used by HP pwplus--don't use.
3119             :
3120           else
3121             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3122             break 3
3123           fi
3124         fi
3125       done
3126     done
3127     ;;
3128 esac
3129 done
3130
3131
3132 fi
3133   if test "${ac_cv_path_install+set}" = set; then
3134     INSTALL=$ac_cv_path_install
3135   else
3136     # As a last resort, use the slow shell script.  We don't cache a
3137     # path for INSTALL within a source directory, because that will
3138     # break other packages using the cache if that directory is
3139     # removed, or if the path is relative.
3140     INSTALL=$ac_install_sh
3141   fi
3142 fi
3143 echo "$as_me:$LINENO: result: $INSTALL" >&5
3144 echo "${ECHO_T}$INSTALL" >&6
3145
3146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3147 # It thinks the first close brace ends the variable substitution.
3148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3149
3150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3151
3152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3153
3154 if test -n "$ac_tool_prefix"; then
3155   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_RANLIB+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   if test -n "$RANLIB"; then
3163   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170   for ac_exec_ext in '' $ac_executable_extensions; do
3171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177 done
3178
3179 fi
3180 fi
3181 RANLIB=$ac_cv_prog_RANLIB
3182 if test -n "$RANLIB"; then
3183   echo "$as_me:$LINENO: result: $RANLIB" >&5
3184 echo "${ECHO_T}$RANLIB" >&6
3185 else
3186   echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3188 fi
3189
3190 fi
3191 if test -z "$ac_cv_prog_RANLIB"; then
3192   ac_ct_RANLIB=$RANLIB
3193   # Extract the first word of "ranlib", so it can be a program name with args.
3194 set dummy ranlib; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   if test -n "$ac_ct_RANLIB"; then
3201   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   for ac_exec_ext in '' $ac_executable_extensions; do
3209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210     ac_cv_prog_ac_ct_RANLIB="ranlib"
3211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215 done
3216
3217   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3218 fi
3219 fi
3220 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3221 if test -n "$ac_ct_RANLIB"; then
3222   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3223 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3224 else
3225   echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3227 fi
3228
3229   RANLIB=$ac_ct_RANLIB
3230 else
3231   RANLIB="$ac_cv_prog_RANLIB"
3232 fi
3233
3234 # Extract the first word of "mv", so it can be a program name with args.
3235 set dummy mv; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_path_MV+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   case $MV in
3242   [\\/]* | ?:[\\/]*)
3243   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3244   ;;
3245   *)
3246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251   for ac_exec_ext in '' $ac_executable_extensions; do
3252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258 done
3259
3260   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3261   ;;
3262 esac
3263 fi
3264 MV=$ac_cv_path_MV
3265
3266 if test -n "$MV"; then
3267   echo "$as_me:$LINENO: result: $MV" >&5
3268 echo "${ECHO_T}$MV" >&6
3269 else
3270   echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272 fi
3273
3274 # Extract the first word of "rm", so it can be a program name with args.
3275 set dummy rm; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_path_RM+set}" = set; then
3279   echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281   case $RM in
3282   [\\/]* | ?:[\\/]*)
3283   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3284   ;;
3285   *)
3286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291   for ac_exec_ext in '' $ac_executable_extensions; do
3292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298 done
3299
3300   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3301   ;;
3302 esac
3303 fi
3304 RM=$ac_cv_path_RM
3305
3306 if test -n "$RM"; then
3307   echo "$as_me:$LINENO: result: $RM" >&5
3308 echo "${ECHO_T}$RM" >&6
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314 # Extract the first word of "cp", so it can be a program name with args.
3315 set dummy cp; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_path_CP+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   case $CP in
3322   [\\/]* | ?:[\\/]*)
3323   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3324   ;;
3325   *)
3326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329   IFS=$as_save_IFS
3330   test -z "$as_dir" && as_dir=.
3331   for ac_exec_ext in '' $ac_executable_extensions; do
3332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335     break 2
3336   fi
3337 done
3338 done
3339
3340   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3341   ;;
3342 esac
3343 fi
3344 CP=$ac_cv_path_CP
3345
3346 if test -n "$CP"; then
3347   echo "$as_me:$LINENO: result: $CP" >&5
3348 echo "${ECHO_T}$CP" >&6
3349 else
3350   echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3352 fi
3353
3354 # Extract the first word of "sed", so it can be a program name with args.
3355 set dummy sed; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_path_SED+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   case $SED in
3362   [\\/]* | ?:[\\/]*)
3363   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3364   ;;
3365   *)
3366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371   for ac_exec_ext in '' $ac_executable_extensions; do
3372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378 done
3379
3380   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3381   ;;
3382 esac
3383 fi
3384 SED=$ac_cv_path_SED
3385
3386 if test -n "$SED"; then
3387   echo "$as_me:$LINENO: result: $SED" >&5
3388 echo "${ECHO_T}$SED" >&6
3389 else
3390   echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3392 fi
3393
3394 # Extract the first word of "echo", so it can be a program name with args.
3395 set dummy echo; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_path_ECHO+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   case $ECHO in
3402   [\\/]* | ?:[\\/]*)
3403   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3404   ;;
3405   *)
3406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411   for ac_exec_ext in '' $ac_executable_extensions; do
3412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418 done
3419
3420   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3421   ;;
3422 esac
3423 fi
3424 ECHO=$ac_cv_path_ECHO
3425
3426 if test -n "$ECHO"; then
3427   echo "$as_me:$LINENO: result: $ECHO" >&5
3428 echo "${ECHO_T}$ECHO" >&6
3429 else
3430   echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3432 fi
3433
3434 # Extract the first word of "cmp", so it can be a program name with args.
3435 set dummy cmp; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_path_CMP+set}" = set; then
3439   echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441   case $CMP in
3442   [\\/]* | ?:[\\/]*)
3443   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3444   ;;
3445   *)
3446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449   IFS=$as_save_IFS
3450   test -z "$as_dir" && as_dir=.
3451   for ac_exec_ext in '' $ac_executable_extensions; do
3452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458 done
3459
3460   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3461   ;;
3462 esac
3463 fi
3464 CMP=$ac_cv_path_CMP
3465
3466 if test -n "$CMP"; then
3467   echo "$as_me:$LINENO: result: $CMP" >&5
3468 echo "${ECHO_T}$CMP" >&6
3469 else
3470   echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3472 fi
3473
3474 # Extract the first word of "tbl", so it can be a program name with args.
3475 set dummy tbl; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_path_TBL+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   case $TBL in
3482   [\\/]* | ?:[\\/]*)
3483   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3484   ;;
3485   *)
3486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489   IFS=$as_save_IFS
3490   test -z "$as_dir" && as_dir=.
3491   for ac_exec_ext in '' $ac_executable_extensions; do
3492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495     break 2
3496   fi
3497 done
3498 done
3499
3500   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3501   ;;
3502 esac
3503 fi
3504 TBL=$ac_cv_path_TBL
3505
3506 if test -n "$TBL"; then
3507   echo "$as_me:$LINENO: result: $TBL" >&5
3508 echo "${ECHO_T}$TBL" >&6
3509 else
3510   echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3512 fi
3513
3514 # Extract the first word of "ar", so it can be a program name with args.
3515 set dummy ar; ac_word=$2
3516 echo "$as_me:$LINENO: checking for $ac_word" >&5
3517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3518 if test "${ac_cv_path_AR+set}" = set; then
3519   echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521   case $AR in
3522   [\\/]* | ?:[\\/]*)
3523   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3524   ;;
3525   *)
3526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529   IFS=$as_save_IFS
3530   test -z "$as_dir" && as_dir=.
3531   for ac_exec_ext in '' $ac_executable_extensions; do
3532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535     break 2
3536   fi
3537 done
3538 done
3539
3540   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3541   ;;
3542 esac
3543 fi
3544 AR=$ac_cv_path_AR
3545
3546 if test -n "$AR"; then
3547   echo "$as_me:$LINENO: result: $AR" >&5
3548 echo "${ECHO_T}$AR" >&6
3549 else
3550   echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3552 fi
3553
3554 # Extract the first word of "openssl", so it can be a program name with args.
3555 set dummy openssl; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_path_OPENSSL+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   case $OPENSSL in
3562   [\\/]* | ?:[\\/]*)
3563   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3564   ;;
3565   *)
3566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571   for ac_exec_ext in '' $ac_executable_extensions; do
3572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578 done
3579
3580   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3581   ;;
3582 esac
3583 fi
3584 OPENSSL=$ac_cv_path_OPENSSL
3585
3586 if test -n "$OPENSSL"; then
3587   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3588 echo "${ECHO_T}$OPENSSL" >&6
3589 else
3590   echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3592 fi
3593
3594 # Extract the first word of "mtx", so it can be a program name with args.
3595 set dummy mtx; ac_word=$2
3596 echo "$as_me:$LINENO: checking for $ac_word" >&5
3597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3598 if test "${ac_cv_path_MTX+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   case $MTX in
3602   [\\/]* | ?:[\\/]*)
3603   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3604   ;;
3605   *)
3606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609   IFS=$as_save_IFS
3610   test -z "$as_dir" && as_dir=.
3611   for ac_exec_ext in '' $ac_executable_extensions; do
3612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618 done
3619
3620   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3621   ;;
3622 esac
3623 fi
3624 MTX=$ac_cv_path_MTX
3625
3626 if test -n "$MTX"; then
3627   echo "$as_me:$LINENO: result: $MTX" >&5
3628 echo "${ECHO_T}$MTX" >&6
3629 else
3630   echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3632 fi
3633
3634 # Extract the first word of "mkisofs", so it can be a program name with args.
3635 set dummy mkisofs; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_path_MKISOFS+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   case $MKISOFS in
3642   [\\/]* | ?:[\\/]*)
3643   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3644   ;;
3645   *)
3646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649   IFS=$as_save_IFS
3650   test -z "$as_dir" && as_dir=.
3651   for ac_exec_ext in '' $ac_executable_extensions; do
3652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655     break 2
3656   fi
3657 done
3658 done
3659
3660   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3661   ;;
3662 esac
3663 fi
3664 MKISOFS=$ac_cv_path_MKISOFS
3665
3666 if test -n "$MKISOFS"; then
3667   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3668 echo "${ECHO_T}$MKISOFS" >&6
3669 else
3670   echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3672 fi
3673
3674 # Extract the first word of "python", so it can be a program name with args.
3675 set dummy python; ac_word=$2
3676 echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678 if test "${ac_cv_path_PYTHON+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   case $PYTHON in
3682   [\\/]* | ?:[\\/]*)
3683   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3684   ;;
3685   *)
3686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691   for ac_exec_ext in '' $ac_executable_extensions; do
3692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695     break 2
3696   fi
3697 done
3698 done
3699
3700   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3701   ;;
3702 esac
3703 fi
3704 PYTHON=$ac_cv_path_PYTHON
3705
3706 if test -n "$PYTHON"; then
3707   echo "$as_me:$LINENO: result: $PYTHON" >&5
3708 echo "${ECHO_T}$PYTHON" >&6
3709 else
3710   echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3712 fi
3713
3714 # Extract the first word of "growisofs", so it can be a program name with args.
3715 set dummy growisofs; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   case $GROWISOFS in
3722   [\\/]* | ?:[\\/]*)
3723   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3724   ;;
3725   *)
3726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731   for ac_exec_ext in '' $ac_executable_extensions; do
3732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738 done
3739
3740   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3741   ;;
3742 esac
3743 fi
3744 GROWISOFS=$ac_cv_path_GROWISOFS
3745
3746 if test -n "$GROWISOFS"; then
3747   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3748 echo "${ECHO_T}$GROWISOFS" >&6
3749 else
3750   echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3752 fi
3753
3754 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3755 set dummy dvd+rw-mediainfo; ac_word=$2
3756 echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   case $DVDRWMEDIAINFO in
3762   [\\/]* | ?:[\\/]*)
3763   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3764   ;;
3765   *)
3766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   for ac_exec_ext in '' $ac_executable_extensions; do
3772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778 done
3779
3780   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3781   ;;
3782 esac
3783 fi
3784 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3785
3786 if test -n "$DVDRWMEDIAINFO"; then
3787   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3788 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3789 else
3790   echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3792 fi
3793
3794 # Extract the first word of "pkg-config", so it can be a program name with args.
3795 set dummy pkg-config; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   case $PKGCONFIG in
3802   [\\/]* | ?:[\\/]*)
3803   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3804   ;;
3805   *)
3806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811   for ac_exec_ext in '' $ac_executable_extensions; do
3812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818 done
3819
3820   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3821   ;;
3822 esac
3823 fi
3824 PKGCONFIG=$ac_cv_path_PKGCONFIG
3825
3826 if test -n "$PKGCONFIG"; then
3827   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3828 echo "${ECHO_T}$PKGCONFIG" >&6
3829 else
3830   echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832 fi
3833
3834 # Extract the first word of "wx-config", so it can be a program name with args.
3835 set dummy wx-config; ac_word=$2
3836 echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3838 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   case $WXCONFIG in
3842   [\\/]* | ?:[\\/]*)
3843   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3844   ;;
3845   *)
3846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851   for ac_exec_ext in '' $ac_executable_extensions; do
3852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858 done
3859
3860   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3861   ;;
3862 esac
3863 fi
3864 WXCONFIG=$ac_cv_path_WXCONFIG
3865
3866 if test -n "$WXCONFIG"; then
3867   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3868 echo "${ECHO_T}$WXCONFIG" >&6
3869 else
3870   echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872 fi
3873
3874 # Extract the first word of "cdrecord", so it can be a program name with args.
3875 set dummy cdrecord; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_path_CDRECORD+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881   case $CDRECORD in
3882   [\\/]* | ?:[\\/]*)
3883   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3884   ;;
3885   *)
3886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895     break 2
3896   fi
3897 done
3898 done
3899
3900   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3901   ;;
3902 esac
3903 fi
3904 CDRECORD=$ac_cv_path_CDRECORD
3905
3906 if test -n "$CDRECORD"; then
3907   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3908 echo "${ECHO_T}$CDRECORD" >&6
3909 else
3910   echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912 fi
3913
3914 # Extract the first word of "pidof", so it can be a program name with args.
3915 set dummy pidof; ac_word=$2
3916 echo "$as_me:$LINENO: checking for $ac_word" >&5
3917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918 if test "${ac_cv_path_PIDOF+set}" = set; then
3919   echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921   case $PIDOF in
3922   [\\/]* | ?:[\\/]*)
3923   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3924   ;;
3925   *)
3926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931   for ac_exec_ext in '' $ac_executable_extensions; do
3932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935     break 2
3936   fi
3937 done
3938 done
3939
3940   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3941   ;;
3942 esac
3943 fi
3944 PIDOF=$ac_cv_path_PIDOF
3945
3946 if test -n "$PIDOF"; then
3947   echo "$as_me:$LINENO: result: $PIDOF" >&5
3948 echo "${ECHO_T}$PIDOF" >&6
3949 else
3950   echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954 for ac_prog in gawk mawk nawk awk
3955 do
3956   # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_AWK+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if test -n "$AWK"; then
3964   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971   for ac_exec_ext in '' $ac_executable_extensions; do
3972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973     ac_cv_prog_AWK="$ac_prog"
3974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978 done
3979
3980 fi
3981 fi
3982 AWK=$ac_cv_prog_AWK
3983 if test -n "$AWK"; then
3984   echo "$as_me:$LINENO: result: $AWK" >&5
3985 echo "${ECHO_T}$AWK" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990
3991   test -n "$AWK" && break
3992 done
3993
3994 # Some AWK programs fail, so test it and warn the user
3995 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
3996       { if ((prog == $2) || (("(" prog ")") == $2) ||
3997            (("" prog "") == $2) ||
3998            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
3999 else
4000   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4001    The regex engine of $AWK is too broken to be used you
4002    might want to install GNU AWK.
4003    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4004 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4005    The regex engine of $AWK is too broken to be used you
4006    might want to install GNU AWK.
4007    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4008    { (exit 1); exit 1; }; }
4009 fi
4010 THE_AWK=$AWK
4011 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4012 set dummy $THE_AWK; ac_word=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_path_AWK+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   case $AWK in
4019   [\\/]* | ?:[\\/]*)
4020   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4021   ;;
4022   *)
4023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028   for ac_exec_ext in '' $ac_executable_extensions; do
4029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032     break 2
4033   fi
4034 done
4035 done
4036
4037   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4038   ;;
4039 esac
4040 fi
4041 AWK=$ac_cv_path_AWK
4042
4043 if test -n "$AWK"; then
4044   echo "$as_me:$LINENO: result: $AWK" >&5
4045 echo "${ECHO_T}$AWK" >&6
4046 else
4047   echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049 fi
4050
4051
4052 test -n "$ARFLAG" || ARFLAGS="cr"
4053
4054
4055 MAKE_SHELL=/bin/sh
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065 # Make sure we can run config.sub.
4066 $ac_config_sub sun4 >/dev/null 2>&1 ||
4067   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4068 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4069    { (exit 1); exit 1; }; }
4070
4071 echo "$as_me:$LINENO: checking build system type" >&5
4072 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4073 if test "${ac_cv_build+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   ac_cv_build_alias=$build_alias
4077 test -z "$ac_cv_build_alias" &&
4078   ac_cv_build_alias=`$ac_config_guess`
4079 test -z "$ac_cv_build_alias" &&
4080   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4081 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4082    { (exit 1); exit 1; }; }
4083 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4084   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4085 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4086    { (exit 1); exit 1; }; }
4087
4088 fi
4089 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4090 echo "${ECHO_T}$ac_cv_build" >&6
4091 build=$ac_cv_build
4092 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4093 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4094 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4095
4096
4097
4098 echo "$as_me:$LINENO: checking host system type" >&5
4099 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4100 if test "${ac_cv_host+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   ac_cv_host_alias=$host_alias
4104 test -z "$ac_cv_host_alias" &&
4105   ac_cv_host_alias=$ac_cv_build_alias
4106 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4107   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4108 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4109    { (exit 1); exit 1; }; }
4110
4111 fi
4112 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4113 echo "${ECHO_T}$ac_cv_host" >&6
4114 host=$ac_cv_host
4115 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4116 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4117 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4118
4119
4120 case $host_os in
4121   *cygwin* ) CYGWIN=yes;;
4122          * ) CYGWIN=no;;
4123 esac
4124
4125 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4126 then
4127
4128
4129 if $TRUEPRG; then
4130   HAVE_SUN_OS_TRUE=
4131   HAVE_SUN_OS_FALSE='#'
4132 else
4133   HAVE_SUN_OS_TRUE='#'
4134   HAVE_SUN_OS_FALSE=
4135 fi
4136         cat >>confdefs.h <<\_ACEOF
4137 #define HAVE_SUN_OS 1
4138 _ACEOF
4139
4140 else
4141
4142
4143 if $FALSEPRG; then
4144   HAVE_SUN_OS_TRUE=
4145   HAVE_SUN_OS_FALSE='#'
4146 else
4147   HAVE_SUN_OS_TRUE='#'
4148   HAVE_SUN_OS_FALSE=
4149 fi
4150 fi
4151
4152 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4153 then
4154
4155
4156 if $TRUEPRG; then
4157   HAVE_OSF1_OS_TRUE=
4158   HAVE_OSF1_OS_FALSE='#'
4159 else
4160   HAVE_OSF1_OS_TRUE='#'
4161   HAVE_OSF1_OS_FALSE=
4162 fi
4163         cat >>confdefs.h <<\_ACEOF
4164 #define HAVE_OSF1_OS 1
4165 _ACEOF
4166
4167 else
4168
4169
4170 if $FALSEPRG; then
4171   HAVE_OSF1_OS_TRUE=
4172   HAVE_OSF1_OS_FALSE='#'
4173 else
4174   HAVE_OSF1_OS_TRUE='#'
4175   HAVE_OSF1_OS_FALSE=
4176 fi
4177 fi
4178
4179 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4180 then
4181
4182
4183 if $TRUEPRG; then
4184   HAVE_AIX_OS_TRUE=
4185   HAVE_AIX_OS_FALSE='#'
4186 else
4187   HAVE_AIX_OS_TRUE='#'
4188   HAVE_AIX_OS_FALSE=
4189 fi
4190         cat >>confdefs.h <<\_ACEOF
4191 #define HAVE_AIX_OS 1
4192 _ACEOF
4193
4194 else
4195
4196
4197 if $FALSEPRG; then
4198   HAVE_AIX_OS_TRUE=
4199   HAVE_AIX_OS_FALSE='#'
4200 else
4201   HAVE_AIX_OS_TRUE='#'
4202   HAVE_AIX_OS_FALSE=
4203 fi
4204 fi
4205
4206 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4207 then
4208
4209
4210 if $TRUEPRG; then
4211   HAVE_HPUX_OS_TRUE=
4212   HAVE_HPUX_OS_FALSE='#'
4213 else
4214   HAVE_HPUX_OS_TRUE='#'
4215   HAVE_HPUX_OS_FALSE=
4216 fi
4217         cat >>confdefs.h <<\_ACEOF
4218 #define HAVE_HPUX_OS 1
4219 _ACEOF
4220
4221 else
4222
4223
4224 if $FALSEPRG; then
4225   HAVE_HPUX_OS_TRUE=
4226   HAVE_HPUX_OS_FALSE='#'
4227 else
4228   HAVE_HPUX_OS_TRUE='#'
4229   HAVE_HPUX_OS_FALSE=
4230 fi
4231 fi
4232
4233 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4234 then
4235
4236
4237 if $TRUEPRG; then
4238   HAVE_LINUX_OS_TRUE=
4239   HAVE_LINUX_OS_FALSE='#'
4240 else
4241   HAVE_LINUX_OS_TRUE='#'
4242   HAVE_LINUX_OS_FALSE=
4243 fi
4244         cat >>confdefs.h <<\_ACEOF
4245 #define HAVE_LINUX_OS 1
4246 _ACEOF
4247
4248 else
4249
4250
4251 if $FALSEPRG; then
4252   HAVE_LINUX_OS_TRUE=
4253   HAVE_LINUX_OS_FALSE='#'
4254 else
4255   HAVE_LINUX_OS_TRUE='#'
4256   HAVE_LINUX_OS_FALSE=
4257 fi
4258 fi
4259
4260 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4261 then
4262
4263
4264 if $TRUEPRG; then
4265   HAVE_FREEBSD_OS_TRUE=
4266   HAVE_FREEBSD_OS_FALSE='#'
4267 else
4268   HAVE_FREEBSD_OS_TRUE='#'
4269   HAVE_FREEBSD_OS_FALSE=
4270 fi
4271         cat >>confdefs.h <<\_ACEOF
4272 #define HAVE_FREEBSD_OS 1
4273 _ACEOF
4274
4275 else
4276
4277
4278 if $FALSEPRG; then
4279   HAVE_FREEBSD_OS_TRUE=
4280   HAVE_FREEBSD_OS_FALSE='#'
4281 else
4282   HAVE_FREEBSD_OS_TRUE='#'
4283   HAVE_FREEBSD_OS_FALSE=
4284 fi
4285 fi
4286
4287 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4288 then
4289
4290
4291 if $TRUEPRG; then
4292   HAVE_NETBSD_OS_TRUE=
4293   HAVE_NETBSD_OS_FALSE='#'
4294 else
4295   HAVE_NETBSD_OS_TRUE='#'
4296   HAVE_NETBSD_OS_FALSE=
4297 fi
4298         cat >>confdefs.h <<\_ACEOF
4299 #define HAVE_NETBSD_OS 1
4300 _ACEOF
4301
4302 else
4303
4304
4305 if $FALSEPRG; then
4306   HAVE_NETBSD_OS_TRUE=
4307   HAVE_NETBSD_OS_FALSE='#'
4308 else
4309   HAVE_NETBSD_OS_TRUE='#'
4310   HAVE_NETBSD_OS_FALSE=
4311 fi
4312 fi
4313
4314 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4315 then
4316
4317
4318 if $TRUEPRG; then
4319   HAVE_OPENBSD_OS_TRUE=
4320   HAVE_OPENBSD_OS_FALSE='#'
4321 else
4322   HAVE_OPENBSD_OS_TRUE='#'
4323   HAVE_OPENBSD_OS_FALSE=
4324 fi
4325         cat >>confdefs.h <<\_ACEOF
4326 #define HAVE_OPENBSD_OS 1
4327 _ACEOF
4328
4329 else
4330
4331
4332 if $FALSEPRG; then
4333   HAVE_OPENBSD_OS_TRUE=
4334   HAVE_OPENBSD_OS_FALSE='#'
4335 else
4336   HAVE_OPENBSD_OS_TRUE='#'
4337   HAVE_OPENBSD_OS_FALSE=
4338 fi
4339 fi
4340
4341 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4342 then
4343
4344
4345 if $TRUEPRG; then
4346   HAVE_BSDI_OS_TRUE=
4347   HAVE_BSDI_OS_FALSE='#'
4348 else
4349   HAVE_BSDI_OS_TRUE='#'
4350   HAVE_BSDI_OS_FALSE=
4351 fi
4352         cat >>confdefs.h <<\_ACEOF
4353 #define HAVE_BSDI_OS 1
4354 _ACEOF
4355
4356 else
4357
4358
4359 if $FALSEPRG; then
4360   HAVE_BSDI_OS_TRUE=
4361   HAVE_BSDI_OS_FALSE='#'
4362 else
4363   HAVE_BSDI_OS_TRUE='#'
4364   HAVE_BSDI_OS_FALSE=
4365 fi
4366 fi
4367
4368 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4369 then
4370
4371
4372 if $TRUEPRG; then
4373   HAVE_SGI_OS_TRUE=
4374   HAVE_SGI_OS_FALSE='#'
4375 else
4376   HAVE_SGI_OS_TRUE='#'
4377   HAVE_SGI_OS_FALSE=
4378 fi
4379         cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_SGI_OS 1
4381 _ACEOF
4382
4383 else
4384
4385
4386 if $FALSEPRG; then
4387   HAVE_SGI_OS_TRUE=
4388   HAVE_SGI_OS_FALSE='#'
4389 else
4390   HAVE_SGI_OS_TRUE='#'
4391   HAVE_SGI_OS_FALSE=
4392 fi
4393 fi
4394
4395 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4396 then
4397
4398
4399 if $TRUEPRG; then
4400   HAVE_IRIX_OS_TRUE=
4401   HAVE_IRIX_OS_FALSE='#'
4402 else
4403   HAVE_IRIX_OS_TRUE='#'
4404   HAVE_IRIX_OS_FALSE=
4405 fi
4406         cat >>confdefs.h <<\_ACEOF
4407 #define HAVE_IRIX_OS 1
4408 _ACEOF
4409
4410 else
4411
4412
4413 if $FALSEPRG; then
4414   HAVE_IRIX_OS_TRUE=
4415   HAVE_IRIX_OS_FALSE='#'
4416 else
4417   HAVE_IRIX_OS_TRUE='#'
4418   HAVE_IRIX_OS_FALSE=
4419 fi
4420 fi
4421
4422 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4423 then
4424
4425
4426 if $TRUEPRG; then
4427   HAVE_DARWIN_OS_TRUE=
4428   HAVE_DARWIN_OS_FALSE='#'
4429 else
4430   HAVE_DARWIN_OS_TRUE='#'
4431   HAVE_DARWIN_OS_FALSE=
4432 fi
4433     cat >>confdefs.h <<\_ACEOF
4434 #define HAVE_DARWIN_OS 1
4435 _ACEOF
4436
4437 else
4438
4439
4440 if $FALSEPRG; then
4441   HAVE_DARWIN_OS_TRUE=
4442   HAVE_DARWIN_OS_FALSE='#'
4443 else
4444   HAVE_DARWIN_OS_TRUE='#'
4445   HAVE_DARWIN_OS_FALSE=
4446 fi
4447 fi
4448
4449
4450 # -----------------------------------------------------------
4451 # ----------------------------------------------------------
4452 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4453 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4454 if test "x$DISTNAME" != "x"
4455 then
4456         echo "distname set to $DISTNAME"
4457 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4458 then
4459         DISTNAME=alpha
4460 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4461 then
4462         DISTNAME=aix
4463 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4464 then
4465         DISTNAME=hpux
4466 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4467 then
4468         DISTNAME=solaris
4469 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4470 then
4471         DISTNAME=freebsd
4472 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4473 then
4474         DISTNAME=netbsd
4475 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4476 then
4477         DISTNAME=openbsd
4478 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4479 then
4480         DISTNAME=irix
4481 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4482 then
4483         DISTNAME=bsdi
4484 elif test -f /etc/SuSE-release
4485 then
4486         DISTNAME=suse
4487 elif test -d /etc/SuSEconfig
4488 then
4489         DISTNAME=suse5
4490 elif test -f /etc/mandrake-release
4491 then
4492         DISTNAME=mandrake
4493 elif test -f /etc/whitebox-release
4494 then
4495        DISTNAME=redhat
4496 elif test -f /etc/redhat-release
4497 then
4498         DISTNAME=redhat
4499 elif test -f /etc/gentoo-release
4500 then
4501         DISTNAME=gentoo
4502 elif test -f /etc/debian_version
4503 then
4504         DISTNAME=debian
4505 elif test -f /etc/slackware-version
4506 then
4507         DISTNAME=slackware
4508 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4509 then
4510     DISTNAME=darwin
4511 elif test -f /etc/engarde-version
4512 then
4513         DISTNAME=engarde
4514 elif test "$CYGWIN" = yes
4515 then
4516         DISTNAME=cygwin
4517         cat >>confdefs.h <<\_ACEOF
4518 #define HAVE_CYGWIN 1
4519 _ACEOF
4520
4521 else
4522         DISTNAME=unknown
4523 fi
4524 echo "$as_me:$LINENO: result: done" >&5
4525 echo "${ECHO_T}done" >&6
4526
4527
4528 # -----------------------------------------------------------
4529 # ----------------------------------------------------------
4530
4531
4532
4533 if false; then
4534   INSIDE_GNOME_COMMON_TRUE=
4535   INSIDE_GNOME_COMMON_FALSE='#'
4536 else
4537   INSIDE_GNOME_COMMON_TRUE='#'
4538   INSIDE_GNOME_COMMON_FALSE=
4539 fi
4540
4541         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4542
4543         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4544
4545
4546 # ------------------------------------------------------------------
4547 #  If the user has not set --prefix, we set our default to nothing.
4548 #  In this case, if the user has not set --sysconfdir, we set it
4549 #  to the package default of /etc/bacula.  If either --prefix or
4550 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4551 # ------------------------------------------------------------------
4552 if test x${prefix} = xNONE ; then
4553     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4554         sysconfdir=/etc/bacula
4555     fi
4556     prefix=
4557 fi
4558 sysconfdir=`eval echo ${sysconfdir}`
4559
4560 # -------------------------------------------------------------------------
4561 #  If the user has not set --exec-prefix, we default to ${prefix}
4562 # -------------------------------------------------------------------------
4563 if test x${exec_prefix} = xNONE ; then
4564     exec_prefix=${prefix}
4565 fi
4566
4567 # ------------------------------------------------------------------
4568 # If the user has not set --sbindir, we set our default as /sbin
4569 # ------------------------------------------------------------------
4570 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4571     sbindir=${exec_prefix}/sbin
4572 fi
4573 sbindir=`eval echo ${sbindir}`
4574
4575 # ------------------------------------------------------------------
4576 # All list of languages for which a translation exist. Each
4577 #  language is separated by a space.
4578 # ------------------------------------------------------------------
4579 ALL_LINGUAS=""
4580
4581 for ac_prog in msgfmt
4582 do
4583   # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_path_MSGFMT+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   case $MSGFMT in
4591   [\\/]* | ?:[\\/]*)
4592   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4593   ;;
4594   *)
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600   for ac_exec_ext in '' $ac_executable_extensions; do
4601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607 done
4608
4609   ;;
4610 esac
4611 fi
4612 MSGFMT=$ac_cv_path_MSGFMT
4613
4614 if test -n "$MSGFMT"; then
4615   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4616 echo "${ECHO_T}$MSGFMT" >&6
4617 else
4618   echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4620 fi
4621
4622   test -n "$MSGFMT" && break
4623 done
4624 test -n "$MSGFMT" || MSGFMT="no"
4625
4626 if test "$MSGFMT" = "no"
4627 then
4628    echo 'msgfmt program not found, disabling NLS !'
4629    USE_NLS=no
4630    USE_INCLUDED_LIBINTL=no
4631 #else
4632 #   AM_GNU_GETTEXT
4633 fi
4634
4635
4636 support_mysql=no
4637 support_sqlite=no
4638 support_sqlite3=no
4639 support_postgresql=no
4640 support_smartalloc=yes
4641 support_readline=yes
4642 support_conio=yes
4643 support_gnome=no
4644 support_wx_console=no
4645 support_tls=no
4646 gnome_version=
4647 support_static_tools=no
4648 support_static_fd=no
4649 support_static_sd=no
4650 support_static_dir=no
4651 support_static_cons=no
4652 support_python=no
4653 build_client_only=no
4654 cats=
4655 db_name=Internal
4656 DB_NAME=bdb
4657
4658
4659 # -------------------------------------------
4660 # gnome (default off)
4661 # -------------------------------------------
4662 # Check whether --enable-gnome or --disable-gnome was given.
4663 if test "${enable_gnome+set}" = set; then
4664   enableval="$enable_gnome"
4665   if test x$enableval = xyes; then
4666     support_gnome=yes
4667   fi
4668 fi;
4669
4670 GNOME_DIR=
4671 if test x$support_gnome = xyes; then
4672   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4673   pkg=$?
4674   if test $pkg = 0; then
4675      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4676      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4677      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4678      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4679
4680
4681
4682
4683      GNOME_DIR=src/gnome2-console
4684      gnome_version="Version 2.x"
4685   else
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4698 if test "${with_gnome_includes+set}" = set; then
4699   withval="$with_gnome_includes"
4700
4701         CFLAGS="$CFLAGS -I$withval"
4702
4703 fi;
4704
4705
4706 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4707 if test "${with_gnome_libs+set}" = set; then
4708   withval="$with_gnome_libs"
4709
4710         LDFLAGS="$LDFLAGS -L$withval"
4711         gnome_prefix=$withval
4712
4713 fi;
4714
4715
4716 # Check whether --with-gnome or --without-gnome was given.
4717 if test "${with_gnome+set}" = set; then
4718   withval="$with_gnome"
4719   if test x$withval = xyes; then
4720                         want_gnome=yes
4721                                                                         :
4722                 else
4723                         if test "x$withval" = xno; then
4724                                 want_gnome=no
4725                         else
4726                                 want_gnome=yes
4727                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4728                                 CFLAGS="$CFLAGS -I$withval/include"
4729                                 gnome_prefix=$withval/lib
4730                         fi
4731                 fi
4732 else
4733   want_gnome=yes
4734 fi;
4735
4736         if test "x$want_gnome" = xyes; then
4737
4738             # Extract the first word of "gnome-config", so it can be a program name with args.
4739 set dummy gnome-config; ac_word=$2
4740 echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $GNOME_CONFIG in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763
4764   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4765   ;;
4766 esac
4767 fi
4768 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4769
4770 if test -n "$GNOME_CONFIG"; then
4771   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4772 echo "${ECHO_T}$GNOME_CONFIG" >&6
4773 else
4774   echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4776 fi
4777
4778             if test "$GNOME_CONFIG" = "no"; then
4779               no_gnome_config="yes"
4780             else
4781               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4782 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4783               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4784                 echo "$as_me:$LINENO: result: yes" >&5
4785 echo "${ECHO_T}yes" >&6
4786
4787
4788         # Extract the first word of "orbit-config", so it can be a program name with args.
4789 set dummy orbit-config; ac_word=$2
4790 echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   case $ORBIT_CONFIG in
4796   [\\/]* | ?:[\\/]*)
4797   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4798   ;;
4799   *)
4800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805   for ac_exec_ext in '' $ac_executable_extensions; do
4806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812 done
4813
4814   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4815   ;;
4816 esac
4817 fi
4818 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4819
4820 if test -n "$ORBIT_CONFIG"; then
4821   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4822 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4823 else
4824   echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4826 fi
4827
4828         # Extract the first word of "orbit-idl", so it can be a program name with args.
4829 set dummy orbit-idl; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   case $ORBIT_IDL in
4836   [\\/]* | ?:[\\/]*)
4837   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4838   ;;
4839   *)
4840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845   for ac_exec_ext in '' $ac_executable_extensions; do
4846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852 done
4853
4854   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4855   ;;
4856 esac
4857 fi
4858 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4859
4860 if test -n "$ORBIT_IDL"; then
4861   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4862 echo "${ECHO_T}$ORBIT_IDL" >&6
4863 else
4864   echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4866 fi
4867
4868         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4869 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4870 if test "${gnome_cv_orbit_found+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873
4874                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4875                         gnome_cv_orbit_found=no
4876                 else
4877                         gnome_cv_orbit_found=yes
4878                 fi
4879
4880 fi
4881 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4882 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4883
4884
4885 if test x$gnome_cv_orbit_found = xyes; then
4886   HAVE_ORBIT_TRUE=
4887   HAVE_ORBIT_FALSE='#'
4888 else
4889   HAVE_ORBIT_TRUE='#'
4890   HAVE_ORBIT_FALSE=
4891 fi
4892         if test x$gnome_cv_orbit_found = xyes; then
4893
4894                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4895                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4896
4897
4898         else
4899                 if test xfail = xfailure; then
4900                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4901 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4902    { (exit 1); exit 1; }; }
4903                 fi
4904         fi
4905
4906         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4907 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4908 if test "${gnome_cv_gnorba_found+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911
4912                 gnome_cv_gnorba_found=no
4913                 if test x$gnome_cv_orbit_found = xyes; then
4914                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4915                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4916                         if test -n "$GNORBA_LIBS"; then
4917                                 gnome_cv_gnorba_found=yes
4918                         fi
4919                 fi
4920
4921 fi
4922 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4923 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4924
4925
4926 if test x$gnome_cv_gnorba_found = xyes; then
4927   HAVE_GNORBA_TRUE=
4928   HAVE_GNORBA_FALSE='#'
4929 else
4930   HAVE_GNORBA_TRUE='#'
4931   HAVE_GNORBA_FALSE=
4932 fi
4933         if test x$gnome_cv_orbit_found = xyes; then
4934
4935                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4936                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4937
4938
4939         else
4940                 if test xfail = xfailure; then
4941                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4942 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4943    { (exit 1); exit 1; }; }
4944                 fi
4945         fi
4946
4947                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4948                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4949                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4950                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4951                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4952                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4953                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4954
4955               else
4956                 echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6
4958                 no_gnome_config="yes"
4959               fi
4960             fi
4961
4962             if test x$exec_prefix = xNONE; then
4963                 if test x$prefix = xNONE; then
4964                     gnome_prefix=$ac_default_prefix/lib
4965                 else
4966                     gnome_prefix=$prefix/lib
4967                 fi
4968             else
4969                 gnome_prefix=`eval echo \`echo $libdir\``
4970             fi
4971
4972             if test "$no_gnome_config" = "yes"; then
4973               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4974 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4975               if test -f $gnome_prefix/gnomeConf.sh; then
4976                 echo "$as_me:$LINENO: result: found" >&5
4977 echo "${ECHO_T}found" >&6
4978                 echo "loading gnome configuration from" \
4979                      "$gnome_prefix/gnomeConf.sh"
4980                 . $gnome_prefix/gnomeConf.sh
4981
4982               else
4983                 echo "$as_me:$LINENO: result: not found" >&5
4984 echo "${ECHO_T}not found" >&6
4985                 if test xfail = xfail; then
4986                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4987 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4988    { (exit 1); exit 1; }; }
4989                 fi
4990               fi
4991             fi
4992         fi
4993
4994         if test -n ""; then
4995           n=""
4996           for i in $n; do
4997             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4998 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4999             case $i in
5000               applets)
5001
5002                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5003                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5004 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5005               docklets)
5006
5007                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5008                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5009 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5010               capplet)
5011
5012                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5013                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5014 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5015               *)
5016                 echo "$as_me:$LINENO: result: unknown library" >&5
5017 echo "${ECHO_T}unknown library" >&6
5018             esac
5019             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5020             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5021           done
5022         fi
5023
5024
5025      GNOME_DIR=src/gnome-console
5026      gnome_version="Version 1.4"
5027   fi
5028 fi
5029
5030
5031
5032 # -------------------------------------------
5033 # wx-console (default off)
5034 # -------------------------------------------
5035 # Check whether --enable-wx-console or --disable-wx-console was given.
5036 if test "${enable_wx_console+set}" = set; then
5037   enableval="$enable_wx_console"
5038   if test x$enableval = xyes; then
5039     support_wx_console=yes
5040   fi
5041 fi;
5042
5043 WX_DIR=
5044 if test x$support_wx_console = xyes; then
5045   abc=`$WXCONFIG --cppflags`
5046   pkg=$?
5047   if test $pkg = 0; then
5048      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5049      WXCONS_LDFLAGS=`$WXCONFIG --libs`
5050
5051
5052      WX_DIR=src/wx-console
5053   else
5054      echo " "
5055      echo "wx-config program not found. wx-console disabled."
5056      echo " "
5057      support_wx_console=no
5058   fi
5059 fi
5060
5061
5062
5063 # -------------------------------------------
5064 # tray-monitor (default off)
5065 # -------------------------------------------
5066 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5067 if test "${enable_tray_monitor+set}" = set; then
5068   enableval="$enable_tray_monitor"
5069   if test x$enableval = xyes; then
5070     support_tray_monitor=yes
5071   fi
5072 fi;
5073
5074 TRAY_MONITOR_DIR=
5075 if test x$support_tray_monitor = xyes; then
5076   abc=`$PKGCONFIG --exists gtk+-2.0`
5077   pkg=$?
5078   if test $pkg = 0; then
5079      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5080      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5081
5082
5083      TRAY_MONITOR_DIR=src/tray-monitor
5084      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5085      pkg=$?
5086      if test $pkg = 0; then
5087         cat >>confdefs.h <<\_ACEOF
5088 #define HAVE_GTK_2_4 1
5089 _ACEOF
5090
5091      fi
5092   fi
5093 fi
5094
5095
5096 # -------------------------------------------
5097 # smartalloc (default off)
5098 # -------------------------------------------
5099 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5100 if test "${enable_smartalloc+set}" = set; then
5101   enableval="$enable_smartalloc"
5102   if test x$enableval = xno; then
5103     support_smartalloc=no
5104   fi
5105 fi;
5106
5107 if test x$support_smartalloc = xyes; then
5108    cat >>confdefs.h <<\_ACEOF
5109 #define SMARTALLOC 1
5110 _ACEOF
5111
5112 fi
5113
5114 # -------------------------------------------
5115 # static-tools (default off)
5116 # -------------------------------------------
5117 # Check whether --enable-static-tools or --disable-static-tools was given.
5118 if test "${enable_static_tools+set}" = set; then
5119   enableval="$enable_static_tools"
5120   if test x$enableval = xyes; then
5121      support_static_tools=yes
5122    fi
5123 fi;
5124
5125 TTOOL_LDFLAGS=
5126 if test x$support_static_tools = xyes; then
5127    TTOOL_LDFLAGS="-static"
5128 fi
5129
5130
5131 # -------------------------------------------
5132 # static-fd    (default off)
5133 # -------------------------------------------
5134 # Check whether --enable-static-fd or --disable-static-fd was given.
5135 if test "${enable_static_fd+set}" = set; then
5136   enableval="$enable_static_fd"
5137   if test x$enableval = xyes; then
5138      support_static_fd=yes
5139    fi
5140 fi;
5141
5142 STATIC_FD=
5143 if test x$support_static_fd = xyes; then
5144    STATIC_FD="static-bacula-fd"
5145 fi
5146
5147
5148 # -------------------------------------------
5149 # static-sd    (default off)
5150 # -------------------------------------------
5151 # Check whether --enable-static-sd or --disable-static-sd was given.
5152 if test "${enable_static_sd+set}" = set; then
5153   enableval="$enable_static_sd"
5154   if test x$enableval = xyes; then
5155      support_static_sd=yes
5156    fi
5157 fi;
5158
5159 STATIC_SD=
5160 if test x$support_static_sd = xyes; then
5161    STATIC_SD="static-bacula-sd"
5162 fi
5163
5164
5165 # -------------------------------------------
5166 # static-dir   (default off)
5167 # -------------------------------------------
5168 # Check whether --enable-static-dir or --disable-static-dir was given.
5169 if test "${enable_static_dir+set}" = set; then
5170   enableval="$enable_static_dir"
5171   if test x$enableval = xyes; then
5172      support_static_dir=yes
5173    fi
5174 fi;
5175
5176 STATIC_DIR=
5177 if test x$support_static_dir = xyes; then
5178    STATIC_DIR="static-bacula-dir"
5179 fi
5180
5181
5182 # -------------------------------------------
5183 # static-cons  (default off)
5184 # -------------------------------------------
5185 # Check whether --enable-static-cons or --disable-static-cons was given.
5186 if test "${enable_static_cons+set}" = set; then
5187   enableval="$enable_static_cons"
5188   if test x$enableval = xyes; then
5189      support_static_cons=yes
5190    fi
5191 fi;
5192
5193 STATIC_CONS=
5194 STATIC_GNOME_CONS=
5195 STATIC_WX_CONS=
5196 if test x$support_static_cons = xyes; then
5197    STATIC_CONS="static-bconsole"
5198    STATIC_GNOME_CONS="static-gnome-console"
5199    STATIC_WX_CONS="static-wx-console"
5200 fi
5201
5202
5203
5204
5205 # -------------------------------------------
5206 # client_only  (default off)
5207 # -------------------------------------------
5208 # Check whether --enable-client-only or --disable-client-only was given.
5209 if test "${enable_client_only+set}" = set; then
5210   enableval="$enable_client_only"
5211   if test x$enableval = xyes; then
5212      build_client_only=yes
5213     db_name=None
5214     DB_NAME=none
5215    fi
5216 fi;
5217 if test x$build_client_only = xno; then
5218    ALL_DIRS="subdirs"
5219 else
5220    ALL_DIRS=""
5221 fi
5222
5223
5224 # ---------------------------------------------------
5225 # Check for conio (Bacula readline substitute)(
5226 # ---------------------------------------------------
5227 # this allows you to turn it completely off
5228 # Check whether --enable-conio or --disable-conio was given.
5229 if test "${enable_conio+set}" = set; then
5230   enableval="$enable_conio"
5231   if test x$enableval = xno; then
5232     support_conio=no
5233   fi
5234 fi;
5235
5236 got_conio="no"
5237 if test x$support_conio = xyes; then
5238    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5240 if test "${ac_cv_header_stdc+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <stdlib.h>
5251 #include <stdarg.h>
5252 #include <string.h>
5253 #include <float.h>
5254
5255 int
5256 main ()
5257 {
5258
5259   ;
5260   return 0;
5261 }
5262 _ACEOF
5263 rm -f conftest.$ac_objext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265   (eval $ac_compile) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -s conftest.$ac_objext'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; }; then
5275   ac_cv_header_stdc=yes
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ac_cv_header_stdc=no
5281 fi
5282 rm -f conftest.$ac_objext conftest.$ac_ext
5283
5284 if test $ac_cv_header_stdc = yes; then
5285   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5286   cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5293 #include <string.h>
5294
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297   $EGREP "memchr" >/dev/null 2>&1; then
5298   :
5299 else
5300   ac_cv_header_stdc=no
5301 fi
5302 rm -f conftest*
5303
5304 fi
5305
5306 if test $ac_cv_header_stdc = yes; then
5307   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5308   cat >conftest.$ac_ext <<_ACEOF
5309 #line $LINENO "configure"
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315 #include <stdlib.h>
5316
5317 _ACEOF
5318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319   $EGREP "free" >/dev/null 2>&1; then
5320   :
5321 else
5322   ac_cv_header_stdc=no
5323 fi
5324 rm -f conftest*
5325
5326 fi
5327
5328 if test $ac_cv_header_stdc = yes; then
5329   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5330   if test "$cross_compiling" = yes; then
5331   :
5332 else
5333   cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 #include <ctype.h>
5341 #if ((' ' & 0x0FF) == 0x020)
5342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5344 #else
5345 # define ISLOWER(c) \
5346                    (('a' <= (c) && (c) <= 'i') \
5347                      || ('j' <= (c) && (c) <= 'r') \
5348                      || ('s' <= (c) && (c) <= 'z'))
5349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5350 #endif
5351
5352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353 int
5354 main ()
5355 {
5356   int i;
5357   for (i = 0; i < 256; i++)
5358     if (XOR (islower (i), ISLOWER (i))
5359         || toupper (i) != TOUPPER (i))
5360       exit(2);
5361   exit (0);
5362 }
5363 _ACEOF
5364 rm -f conftest$ac_exeext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5366   (eval $ac_link) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371   (eval $ac_try) 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; }; then
5375   :
5376 else
5377   echo "$as_me: program exited with status $ac_status" >&5
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 ( exit $ac_status )
5382 ac_cv_header_stdc=no
5383 fi
5384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5385 fi
5386 fi
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5389 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5390 if test $ac_cv_header_stdc = yes; then
5391
5392 cat >>confdefs.h <<\_ACEOF
5393 #define STDC_HEADERS 1
5394 _ACEOF
5395
5396 fi
5397
5398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5409                   inttypes.h stdint.h unistd.h
5410 do
5411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 echo "$as_me:$LINENO: checking for $ac_header" >&5
5413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 /* confdefs.h.  */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h.  */
5424 $ac_includes_default
5425
5426 #include <$ac_header>
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430   (eval $ac_compile) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); } &&
5434          { ac_try='test -s conftest.$ac_objext'
5435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436   (eval $ac_try) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; }; then
5440   eval "$as_ac_Header=yes"
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 eval "$as_ac_Header=no"
5446 fi
5447 rm -f conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5452   cat >>confdefs.h <<_ACEOF
5453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5454 _ACEOF
5455
5456 fi
5457
5458 done
5459
5460
5461 if test "${ac_cv_header_termcap_h+set}" = set; then
5462   echo "$as_me:$LINENO: checking for termcap.h" >&5
5463 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5464 if test "${ac_cv_header_termcap_h+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 fi
5467 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5468 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5469 else
5470   # Is the header compilable?
5471 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5472 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480 $ac_includes_default
5481 #include <termcap.h>
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485   (eval $ac_compile) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } &&
5489          { ac_try='test -s conftest.$ac_objext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_header_compiler=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_header_compiler=no
5501 fi
5502 rm -f conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5504 echo "${ECHO_T}$ac_header_compiler" >&6
5505
5506 # Is the header present?
5507 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5508 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516 #include <termcap.h>
5517 _ACEOF
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } >/dev/null; then
5526   if test -s conftest.err; then
5527     ac_cpp_err=$ac_c_preproc_warn_flag
5528   else
5529     ac_cpp_err=
5530   fi
5531 else
5532   ac_cpp_err=yes
5533 fi
5534 if test -z "$ac_cpp_err"; then
5535   ac_header_preproc=yes
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540   ac_header_preproc=no
5541 fi
5542 rm -f conftest.err conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5544 echo "${ECHO_T}$ac_header_preproc" >&6
5545
5546 # So?  What about this header?
5547 case $ac_header_compiler:$ac_header_preproc in
5548   yes:no )
5549     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5550 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5551     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5552 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5553     (
5554       cat <<\_ASBOX
5555 ## ------------------------------------ ##
5556 ## Report this to bug-autoconf@gnu.org. ##
5557 ## ------------------------------------ ##
5558 _ASBOX
5559     ) |
5560       sed "s/^/$as_me: WARNING:     /" >&2
5561     ;;
5562   no:yes )
5563     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5565     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5567     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5569     (
5570       cat <<\_ASBOX
5571 ## ------------------------------------ ##
5572 ## Report this to bug-autoconf@gnu.org. ##
5573 ## ------------------------------------ ##
5574 _ASBOX
5575     ) |
5576       sed "s/^/$as_me: WARNING:     /" >&2
5577     ;;
5578 esac
5579 echo "$as_me:$LINENO: checking for termcap.h" >&5
5580 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5581 if test "${ac_cv_header_termcap_h+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   ac_cv_header_termcap_h=$ac_header_preproc
5585 fi
5586 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5587 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5588
5589 fi
5590 if test $ac_cv_header_termcap_h = yes; then
5591    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5592 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5593 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5594   echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596   ac_check_lib_save_LIBS=$LIBS
5597 LIBS="-ltermcap  $LIBS"
5598 cat >conftest.$ac_ext <<_ACEOF
5599 #line $LINENO "configure"
5600 /* confdefs.h.  */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h.  */
5605
5606 /* Override any gcc2 internal prototype to avoid an error.  */
5607 #ifdef __cplusplus
5608 extern "C"
5609 #endif
5610 /* We use char because int might match the return type of a gcc2
5611    builtin and then its argument prototype would still apply.  */
5612 char tgetent ();
5613 int
5614 main ()
5615 {
5616 tgetent ();
5617   ;
5618   return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623   (eval $ac_link) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } &&
5627          { ac_try='test -s conftest$ac_exeext'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_cv_lib_termcap_tgetent=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cv_lib_termcap_tgetent=no
5639 fi
5640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5641 LIBS=$ac_check_lib_save_LIBS
5642 fi
5643 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5644 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5645 if test $ac_cv_lib_termcap_tgetent = yes; then
5646    CONS_LIBS="-ltermcap"
5647          CONS_OBJ="conio.o"
5648          CONS_SRC="conio.c"
5649          got_conio="yes"
5650          support_readline=no
5651
5652 cat >>confdefs.h <<\_ACEOF
5653 #define HAVE_CONIO 1
5654 _ACEOF
5655
5656
5657 else
5658    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5659 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5660 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   ac_check_lib_save_LIBS=$LIBS
5664 LIBS="-lncurses  $LIBS"
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 /* Override any gcc2 internal prototype to avoid an error.  */
5674 #ifdef __cplusplus
5675 extern "C"
5676 #endif
5677 /* We use char because int might match the return type of a gcc2
5678    builtin and then its argument prototype would still apply.  */
5679 char tgetent ();
5680 int
5681 main ()
5682 {
5683 tgetent ();
5684   ;
5685   return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690   (eval $ac_link) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } &&
5694          { ac_try='test -s conftest$ac_exeext'
5695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696   (eval $ac_try) 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; }; then
5700   ac_cv_lib_ncurses_tgetent=yes
5701 else
5702   echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 ac_cv_lib_ncurses_tgetent=no
5706 fi
5707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5708 LIBS=$ac_check_lib_save_LIBS
5709 fi
5710 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5711 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5712 if test $ac_cv_lib_ncurses_tgetent = yes; then
5713    CONS_LIBS="-lncurses"
5714            CONS_OBJ="conio.o"
5715            CONS_SRC="conio.c"
5716            got_conio="yes"
5717            support_readline=no
5718
5719 cat >>confdefs.h <<\_ACEOF
5720 #define HAVE_CONIO 1
5721 _ACEOF
5722
5723
5724 fi
5725
5726
5727 fi
5728
5729
5730 else
5731
5732
5733 for ac_header in curses.h
5734 do
5735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5737   echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 fi
5742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5744 else
5745   # Is the header compilable?
5746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5748 cat >conftest.$ac_ext <<_ACEOF
5749 #line $LINENO "configure"
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755 $ac_includes_default
5756 #include <$ac_header>
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760   (eval $ac_compile) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } &&
5764          { ac_try='test -s conftest.$ac_objext'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; }; then
5770   ac_header_compiler=yes
5771 else
5772   echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 ac_header_compiler=no
5776 fi
5777 rm -f conftest.$ac_objext conftest.$ac_ext
5778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5779 echo "${ECHO_T}$ac_header_compiler" >&6
5780
5781 # Is the header present?
5782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 #include <$ac_header>
5792 _ACEOF
5793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } >/dev/null; then
5801   if test -s conftest.err; then
5802     ac_cpp_err=$ac_c_preproc_warn_flag
5803   else
5804     ac_cpp_err=
5805   fi
5806 else
5807   ac_cpp_err=yes
5808 fi
5809 if test -z "$ac_cpp_err"; then
5810   ac_header_preproc=yes
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815   ac_header_preproc=no
5816 fi
5817 rm -f conftest.err conftest.$ac_ext
5818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5819 echo "${ECHO_T}$ac_header_preproc" >&6
5820
5821 # So?  What about this header?
5822 case $ac_header_compiler:$ac_header_preproc in
5823   yes:no )
5824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5828     (
5829       cat <<\_ASBOX
5830 ## ------------------------------------ ##
5831 ## Report this to bug-autoconf@gnu.org. ##
5832 ## ------------------------------------ ##
5833 _ASBOX
5834     ) |
5835       sed "s/^/$as_me: WARNING:     /" >&2
5836     ;;
5837   no:yes )
5838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5840     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5844     (
5845       cat <<\_ASBOX
5846 ## ------------------------------------ ##
5847 ## Report this to bug-autoconf@gnu.org. ##
5848 ## ------------------------------------ ##
5849 _ASBOX
5850     ) |
5851       sed "s/^/$as_me: WARNING:     /" >&2
5852     ;;
5853 esac
5854 echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   eval "$as_ac_Header=$ac_header_preproc"
5860 fi
5861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5863
5864 fi
5865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5866   cat >>confdefs.h <<_ACEOF
5867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5868 _ACEOF
5869
5870 fi
5871
5872 done
5873
5874          echo "$as_me:$LINENO: checking for term.h" >&5
5875 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5876 if test "${ac_cv_header_term_h+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 #if HAVE_CURSES_H
5887 #include <curses.h>
5888 #endif
5889
5890
5891 #include <term.h>
5892 _ACEOF
5893 rm -f conftest.$ac_objext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5895   (eval $ac_compile) 2>&5
5896   ac_status=$?
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); } &&
5899          { ac_try='test -s conftest.$ac_objext'
5900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901   (eval $ac_try) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; }; then
5905   ac_cv_header_term_h=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_header_term_h=no
5911 fi
5912 rm -f conftest.$ac_objext conftest.$ac_ext
5913 fi
5914 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5915 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5916 if test $ac_cv_header_term_h = yes; then
5917    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5918 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5919 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   ac_check_lib_save_LIBS=$LIBS
5923 LIBS="-lcurses  $LIBS"
5924 cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931
5932 /* Override any gcc2 internal prototype to avoid an error.  */
5933 #ifdef __cplusplus
5934 extern "C"
5935 #endif
5936 /* We use char because int might match the return type of a gcc2
5937    builtin and then its argument prototype would still apply.  */
5938 char tgetent ();
5939 int
5940 main ()
5941 {
5942 tgetent ();
5943   ;
5944   return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext conftest$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949   (eval $ac_link) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } &&
5953          { ac_try='test -s conftest$ac_exeext'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   ac_cv_lib_curses_tgetent=yes
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 ac_cv_lib_curses_tgetent=no
5965 fi
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5968 fi
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5970 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5971 if test $ac_cv_lib_curses_tgetent = yes; then
5972    CONS_LIBS="-lcurses"
5973                    CONS_OBJ="conio.o"
5974                    CONS_SRC="conio.c"
5975                    got_conio="yes"
5976                    support_readline=no
5977
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_CONIO 1
5980 _ACEOF
5981
5982
5983 fi
5984
5985
5986 else
5987    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5988 fi
5989
5990
5991
5992 fi
5993
5994
5995 fi
5996
5997
5998 # ---------------------------------------------------
5999 # Check for readline support/directory (default off)
6000 # ---------------------------------------------------
6001 # this allows you to turn it completely off
6002 # Check whether --enable-readline or --disable-readline was given.
6003 if test "${enable_readline+set}" = set; then
6004   enableval="$enable_readline"
6005   if test x$enableval = xno; then
6006     support_readline=no
6007   fi
6008 fi;
6009
6010 got_readline="no"
6011 READLINE_SRC=
6012 if test x$support_readline = xyes; then
6013
6014 # Check whether --with-readline or --without-readline was given.
6015 if test "${with_readline+set}" = set; then
6016   withval="$with_readline"
6017
6018         case "$with_readline" in
6019         no) : ;;
6020         yes|*)
6021           if test "$with_readline" != "yes"; then
6022             CONS_INC="-I${with_readline}"
6023             CONS_LDFLAGS="-L$with_readline"
6024           else
6025              with_readline="/usr/include/readline"
6026           fi
6027           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6030 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 fi
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 else
6037   # Is the header compilable?
6038 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6039 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 $ac_includes_default
6048 #include <${with_readline}/readline.h>
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052   (eval $ac_compile) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -s conftest.$ac_objext'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; }; then
6062   ac_header_compiler=yes
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_header_compiler=no
6068 fi
6069 rm -f conftest.$ac_objext conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071 echo "${ECHO_T}$ac_header_compiler" >&6
6072
6073 # Is the header present?
6074 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6075 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6076 cat >conftest.$ac_ext <<_ACEOF
6077 #line $LINENO "configure"
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 #include <${with_readline}/readline.h>
6084 _ACEOF
6085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6087   ac_status=$?
6088   grep -v '^ *+' conftest.er1 >conftest.err
6089   rm -f conftest.er1
6090   cat conftest.err >&5
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } >/dev/null; then
6093   if test -s conftest.err; then
6094     ac_cpp_err=$ac_c_preproc_warn_flag
6095   else
6096     ac_cpp_err=
6097   fi
6098 else
6099   ac_cpp_err=yes
6100 fi
6101 if test -z "$ac_cpp_err"; then
6102   ac_header_preproc=yes
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107   ac_header_preproc=no
6108 fi
6109 rm -f conftest.err conftest.$ac_ext
6110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6111 echo "${ECHO_T}$ac_header_preproc" >&6
6112
6113 # So?  What about this header?
6114 case $ac_header_compiler:$ac_header_preproc in
6115   yes:no )
6116     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6117 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6118     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6119 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6120     (
6121       cat <<\_ASBOX
6122 ## ------------------------------------ ##
6123 ## Report this to bug-autoconf@gnu.org. ##
6124 ## ------------------------------------ ##
6125 _ASBOX
6126     ) |
6127       sed "s/^/$as_me: WARNING:     /" >&2
6128     ;;
6129   no:yes )
6130     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6131 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6132     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6133 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6134     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6135 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6136     (
6137       cat <<\_ASBOX
6138 ## ------------------------------------ ##
6139 ## Report this to bug-autoconf@gnu.org. ##
6140 ## ------------------------------------ ##
6141 _ASBOX
6142     ) |
6143       sed "s/^/$as_me: WARNING:     /" >&2
6144     ;;
6145 esac
6146 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6147 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   eval "$as_ac_Header=$ac_header_preproc"
6152 fi
6153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6155
6156 fi
6157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6158    cat >>confdefs.h <<\_ACEOF
6159 #define HAVE_READLINE 1
6160 _ACEOF
6161
6162                CONS_LIBS="-lreadline -ltermcap"
6163                got_readline="yes"
6164
6165 else
6166    echo " "
6167                echo "readline.h not found. readline turned off ..."
6168                echo " "
6169
6170
6171 fi
6172
6173
6174           ;;
6175         esac
6176
6177 else
6178
6179        # check for standard readline library
6180        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6181   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6182 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6183 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 fi
6186 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6187 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6188 else
6189   # Is the header compilable?
6190 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6191 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6192 cat >conftest.$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199 $ac_includes_default
6200 #include </usr/include/readline/readline.h>
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204   (eval $ac_compile) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); } &&
6208          { ac_try='test -s conftest.$ac_objext'
6209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210   (eval $ac_try) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; }; then
6214   ac_header_compiler=yes
6215 else
6216   echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 ac_header_compiler=no
6220 fi
6221 rm -f conftest.$ac_objext conftest.$ac_ext
6222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6223 echo "${ECHO_T}$ac_header_compiler" >&6
6224
6225 # Is the header present?
6226 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6227 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #include </usr/include/readline/readline.h>
6236 _ACEOF
6237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6239   ac_status=$?
6240   grep -v '^ *+' conftest.er1 >conftest.err
6241   rm -f conftest.er1
6242   cat conftest.err >&5
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); } >/dev/null; then
6245   if test -s conftest.err; then
6246     ac_cpp_err=$ac_c_preproc_warn_flag
6247   else
6248     ac_cpp_err=
6249   fi
6250 else
6251   ac_cpp_err=yes
6252 fi
6253 if test -z "$ac_cpp_err"; then
6254   ac_header_preproc=yes
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259   ac_header_preproc=no
6260 fi
6261 rm -f conftest.err conftest.$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6263 echo "${ECHO_T}$ac_header_preproc" >&6
6264
6265 # So?  What about this header?
6266 case $ac_header_compiler:$ac_header_preproc in
6267   yes:no )
6268     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6269 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6270     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6271 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6272     (
6273       cat <<\_ASBOX
6274 ## ------------------------------------ ##
6275 ## Report this to bug-autoconf@gnu.org. ##
6276 ## ------------------------------------ ##
6277 _ASBOX
6278     ) |
6279       sed "s/^/$as_me: WARNING:     /" >&2
6280     ;;
6281   no:yes )
6282     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6283 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6284     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6285 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6286     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6288     (
6289       cat <<\_ASBOX
6290 ## ------------------------------------ ##
6291 ## Report this to bug-autoconf@gnu.org. ##
6292 ## ------------------------------------ ##
6293 _ASBOX
6294     ) |
6295       sed "s/^/$as_me: WARNING:     /" >&2
6296     ;;
6297 esac
6298 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6299 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6300 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6304 fi
6305 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6306 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6307
6308 fi
6309 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6310    cat >>confdefs.h <<\_ACEOF
6311 #define HAVE_READLINE 1
6312 _ACEOF
6313
6314            got_readline="yes"
6315            CONS_INC="-I/usr/include/readline"
6316            CONS_LIBS="-lreadline -ltermcap"
6317
6318 else
6319
6320            # Did not find standard library, so try Bacula's default
6321             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6324 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 fi
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 else
6331   # Is the header compilable?
6332 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6333 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 $ac_includes_default
6342 #include <${TOP_DIR}/depkgs/readline/readline.h>
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346   (eval $ac_compile) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -s conftest.$ac_objext'
6351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352   (eval $ac_try) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; }; then
6356   ac_header_compiler=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_header_compiler=no
6362 fi
6363 rm -f conftest.$ac_objext conftest.$ac_ext
6364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6365 echo "${ECHO_T}$ac_header_compiler" >&6
6366
6367 # Is the header present?
6368 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6369 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6370 cat >conftest.$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377 #include <${TOP_DIR}/depkgs/readline/readline.h>
6378 _ACEOF
6379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6381   ac_status=$?
6382   grep -v '^ *+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } >/dev/null; then
6387   if test -s conftest.err; then
6388     ac_cpp_err=$ac_c_preproc_warn_flag
6389   else
6390     ac_cpp_err=
6391   fi
6392 else
6393   ac_cpp_err=yes
6394 fi
6395 if test -z "$ac_cpp_err"; then
6396   ac_header_preproc=yes
6397 else
6398   echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401   ac_header_preproc=no
6402 fi
6403 rm -f conftest.err conftest.$ac_ext
6404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6405 echo "${ECHO_T}$ac_header_preproc" >&6
6406
6407 # So?  What about this header?
6408 case $ac_header_compiler:$ac_header_preproc in
6409   yes:no )
6410     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6411 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6412     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6413 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6414     (
6415       cat <<\_ASBOX
6416 ## ------------------------------------ ##
6417 ## Report this to bug-autoconf@gnu.org. ##
6418 ## ------------------------------------ ##
6419 _ASBOX
6420     ) |
6421       sed "s/^/$as_me: WARNING:     /" >&2
6422     ;;
6423   no:yes )
6424     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6425 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6426     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6427 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6428     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6429 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6430     (
6431       cat <<\_ASBOX
6432 ## ------------------------------------ ##
6433 ## Report this to bug-autoconf@gnu.org. ##
6434 ## ------------------------------------ ##
6435 _ASBOX
6436     ) |
6437       sed "s/^/$as_me: WARNING:     /" >&2
6438     ;;
6439 esac
6440 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6441 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   eval "$as_ac_Header=$ac_header_preproc"
6446 fi
6447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6449
6450 fi
6451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6452    cat >>confdefs.h <<\_ACEOF
6453 #define HAVE_READLINE 1
6454 _ACEOF
6455
6456                  got_readline="yes"
6457                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6458                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6459                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6460                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6461
6462 else
6463    echo " "
6464                 echo "readline.h not found. readline turned off ..."
6465                 echo " "
6466
6467
6468 fi
6469
6470
6471
6472
6473 fi
6474
6475
6476
6477
6478 fi;
6479 fi
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 # Minimal stuff for readline Makefile configuration
6491 MAKE_SHELL=/bin/sh
6492
6493 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6494 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6495 if test "${ac_cv_header_stat_broken+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   cat >conftest.$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6500 /* confdefs.h.  */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h.  */
6505 #include <sys/types.h>
6506 #include <sys/stat.h>
6507
6508 #if defined(S_ISBLK) && defined(S_IFDIR)
6509 # if S_ISBLK (S_IFDIR)
6510 You lose.
6511 # endif
6512 #endif
6513
6514 #if defined(S_ISBLK) && defined(S_IFCHR)
6515 # if S_ISBLK (S_IFCHR)
6516 You lose.
6517 # endif
6518 #endif
6519
6520 #if defined(S_ISLNK) && defined(S_IFREG)
6521 # if S_ISLNK (S_IFREG)
6522 You lose.
6523 # endif
6524 #endif
6525
6526 #if defined(S_ISSOCK) && defined(S_IFREG)
6527 # if S_ISSOCK (S_IFREG)
6528 You lose.
6529 # endif
6530 #endif
6531
6532 _ACEOF
6533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534   $EGREP "You lose" >/dev/null 2>&1; then
6535   ac_cv_header_stat_broken=yes
6536 else
6537   ac_cv_header_stat_broken=no
6538 fi
6539 rm -f conftest*
6540
6541 fi
6542 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6543 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6544 if test $ac_cv_header_stat_broken = yes; then
6545
6546 cat >>confdefs.h <<\_ACEOF
6547 #define STAT_MACROS_BROKEN 1
6548 _ACEOF
6549
6550 fi
6551
6552
6553
6554
6555
6556
6557 ac_header_dirent=no
6558 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6559   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6560 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6561 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565   cat >conftest.$ac_ext <<_ACEOF
6566 #line $LINENO "configure"
6567 /* confdefs.h.  */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h.  */
6572 #include <sys/types.h>
6573 #include <$ac_hdr>
6574
6575 int
6576 main ()
6577 {
6578 if ((DIR *) 0)
6579 return 0;
6580   ;
6581   return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586   (eval $ac_compile) 2>&5
6587   ac_status=$?
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } &&
6590          { ac_try='test -s conftest.$ac_objext'
6591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592   (eval $ac_try) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); }; }; then
6596   eval "$as_ac_Header=yes"
6597 else
6598   echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601 eval "$as_ac_Header=no"
6602 fi
6603 rm -f conftest.$ac_objext conftest.$ac_ext
6604 fi
6605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608   cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 ac_header_dirent=$ac_hdr; break
6613 fi
6614
6615 done
6616 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6617 if test $ac_header_dirent = dirent.h; then
6618   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6619 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6620 if test "${ac_cv_search_opendir+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   ac_func_search_save_LIBS=$LIBS
6624 ac_cv_search_opendir=no
6625 cat >conftest.$ac_ext <<_ACEOF
6626 #line $LINENO "configure"
6627 /* confdefs.h.  */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h.  */
6632
6633 /* Override any gcc2 internal prototype to avoid an error.  */
6634 #ifdef __cplusplus
6635 extern "C"
6636 #endif
6637 /* We use char because int might match the return type of a gcc2
6638    builtin and then its argument prototype would still apply.  */
6639 char opendir ();
6640 int
6641 main ()
6642 {
6643 opendir ();
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650   (eval $ac_link) 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); } &&
6654          { ac_try='test -s conftest$ac_exeext'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660   ac_cv_search_opendir="none required"
6661 else
6662   echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6664
6665 fi
6666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6667 if test "$ac_cv_search_opendir" = no; then
6668   for ac_lib in dir; do
6669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6670     cat >conftest.$ac_ext <<_ACEOF
6671 #line $LINENO "configure"
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677
6678 /* Override any gcc2 internal prototype to avoid an error.  */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 /* We use char because int might match the return type of a gcc2
6683    builtin and then its argument prototype would still apply.  */
6684 char opendir ();
6685 int
6686 main ()
6687 {
6688 opendir ();
6689   ;
6690   return 0;
6691 }
6692 _ACEOF
6693 rm -f conftest.$ac_objext conftest$ac_exeext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695   (eval $ac_link) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } &&
6699          { ac_try='test -s conftest$ac_exeext'
6700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701   (eval $ac_try) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; }; then
6705   ac_cv_search_opendir="-l$ac_lib"
6706 break
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 fi
6712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6713   done
6714 fi
6715 LIBS=$ac_func_search_save_LIBS
6716 fi
6717 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6718 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6719 if test "$ac_cv_search_opendir" != no; then
6720   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6721
6722 fi
6723
6724 else
6725   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6726 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6727 if test "${ac_cv_search_opendir+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   ac_func_search_save_LIBS=$LIBS
6731 ac_cv_search_opendir=no
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739
6740 /* Override any gcc2 internal prototype to avoid an error.  */
6741 #ifdef __cplusplus
6742 extern "C"
6743 #endif
6744 /* We use char because int might match the return type of a gcc2
6745    builtin and then its argument prototype would still apply.  */
6746 char opendir ();
6747 int
6748 main ()
6749 {
6750 opendir ();
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext conftest$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757   (eval $ac_link) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); } &&
6761          { ac_try='test -s conftest$ac_exeext'
6762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763   (eval $ac_try) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; }; then
6767   ac_cv_search_opendir="none required"
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 fi
6773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6774 if test "$ac_cv_search_opendir" = no; then
6775   for ac_lib in x; do
6776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6777     cat >conftest.$ac_ext <<_ACEOF
6778 #line $LINENO "configure"
6779 /* confdefs.h.  */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h.  */
6784
6785 /* Override any gcc2 internal prototype to avoid an error.  */
6786 #ifdef __cplusplus
6787 extern "C"
6788 #endif
6789 /* We use char because int might match the return type of a gcc2
6790    builtin and then its argument prototype would still apply.  */
6791 char opendir ();
6792 int
6793 main ()
6794 {
6795 opendir ();
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802   (eval $ac_link) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); } &&
6806          { ac_try='test -s conftest$ac_exeext'
6807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808   (eval $ac_try) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); }; }; then
6812   ac_cv_search_opendir="-l$ac_lib"
6813 break
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 fi
6819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6820   done
6821 fi
6822 LIBS=$ac_func_search_save_LIBS
6823 fi
6824 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6825 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6826 if test "$ac_cv_search_opendir" != no; then
6827   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6828
6829 fi
6830
6831 fi
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6842 do
6843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6844 echo "$as_me:$LINENO: checking for $ac_func" >&5
6845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6846 if eval "test \"\${$as_ac_var+set}\" = set"; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   cat >conftest.$ac_ext <<_ACEOF
6850 #line $LINENO "configure"
6851 /* confdefs.h.  */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h.  */
6856 /* System header to define __stub macros and hopefully few prototypes,
6857     which can conflict with char $ac_func (); below.
6858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6859     <limits.h> exists even on freestanding compilers.  */
6860 #ifdef __STDC__
6861 # include <limits.h>
6862 #else
6863 # include <assert.h>
6864 #endif
6865 /* Override any gcc2 internal prototype to avoid an error.  */
6866 #ifdef __cplusplus
6867 extern "C"
6868 {
6869 #endif
6870 /* We use char because int might match the return type of a gcc2
6871    builtin and then its argument prototype would still apply.  */
6872 char $ac_func ();
6873 /* The GNU C library defines this for functions which it implements
6874     to always fail with ENOSYS.  Some functions are actually named
6875     something starting with __ and the normal name is an alias.  */
6876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6877 choke me
6878 #else
6879 char (*f) () = $ac_func;
6880 #endif
6881 #ifdef __cplusplus
6882 }
6883 #endif
6884
6885 int
6886 main ()
6887 {
6888 return f != $ac_func;
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895   (eval $ac_link) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); } &&
6899          { ac_try='test -s conftest$ac_exeext'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; }; then
6905   eval "$as_ac_var=yes"
6906 else
6907   echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6909
6910 eval "$as_ac_var=no"
6911 fi
6912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6913 fi
6914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6916 if test `eval echo '${'$as_ac_var'}'` = yes; then
6917   cat >>confdefs.h <<_ACEOF
6918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6919 _ACEOF
6920
6921 fi
6922 done
6923
6924
6925
6926 for ac_func in nanosleep nl_langinfo
6927 do
6928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6929 echo "$as_me:$LINENO: checking for $ac_func" >&5
6930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6931 if eval "test \"\${$as_ac_var+set}\" = set"; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   cat >conftest.$ac_ext <<_ACEOF
6935 #line $LINENO "configure"
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 /* System header to define __stub macros and hopefully few prototypes,
6942     which can conflict with char $ac_func (); below.
6943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6944     <limits.h> exists even on freestanding compilers.  */
6945 #ifdef __STDC__
6946 # include <limits.h>
6947 #else
6948 # include <assert.h>
6949 #endif
6950 /* Override any gcc2 internal prototype to avoid an error.  */
6951 #ifdef __cplusplus
6952 extern "C"
6953 {
6954 #endif
6955 /* We use char because int might match the return type of a gcc2
6956    builtin and then its argument prototype would still apply.  */
6957 char $ac_func ();
6958 /* The GNU C library defines this for functions which it implements
6959     to always fail with ENOSYS.  Some functions are actually named
6960     something starting with __ and the normal name is an alias.  */
6961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6962 choke me
6963 #else
6964 char (*f) () = $ac_func;
6965 #endif
6966 #ifdef __cplusplus
6967 }
6968 #endif
6969
6970 int
6971 main ()
6972 {
6973 return f != $ac_func;
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext conftest$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980   (eval $ac_link) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); } &&
6984          { ac_try='test -s conftest$ac_exeext'
6985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986   (eval $ac_try) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; }; then
6990   eval "$as_ac_var=yes"
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 eval "$as_ac_var=no"
6996 fi
6997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6998 fi
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7001 if test `eval echo '${'$as_ac_var'}'` = yes; then
7002   cat >>confdefs.h <<_ACEOF
7003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7004 _ACEOF
7005
7006 fi
7007 done
7008
7009
7010 for ac_header in varargs.h
7011 do
7012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7014   echo "$as_me:$LINENO: checking for $ac_header" >&5
7015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 fi
7019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7021 else
7022   # Is the header compilable?
7023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7025 cat >conftest.$ac_ext <<_ACEOF
7026 #line $LINENO "configure"
7027 /* confdefs.h.  */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h.  */
7032 $ac_includes_default
7033 #include <$ac_header>
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037   (eval $ac_compile) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } &&
7041          { ac_try='test -s conftest.$ac_objext'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; }; then
7047   ac_header_compiler=yes
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 ac_header_compiler=no
7053 fi
7054 rm -f conftest.$ac_objext conftest.$ac_ext
7055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7056 echo "${ECHO_T}$ac_header_compiler" >&6
7057
7058 # Is the header present?
7059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7061 cat >conftest.$ac_ext <<_ACEOF
7062 #line $LINENO "configure"
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068 #include <$ac_header>
7069 _ACEOF
7070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } >/dev/null; then
7078   if test -s conftest.err; then
7079     ac_cpp_err=$ac_c_preproc_warn_flag
7080   else
7081     ac_cpp_err=
7082   fi
7083 else
7084   ac_cpp_err=yes
7085 fi
7086 if test -z "$ac_cpp_err"; then
7087   ac_header_preproc=yes
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092   ac_header_preproc=no
7093 fi
7094 rm -f conftest.err conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096 echo "${ECHO_T}$ac_header_preproc" >&6
7097
7098 # So?  What about this header?
7099 case $ac_header_compiler:$ac_header_preproc in
7100   yes:no )
7101     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7105     (
7106       cat <<\_ASBOX
7107 ## ------------------------------------ ##
7108 ## Report this to bug-autoconf@gnu.org. ##
7109 ## ------------------------------------ ##
7110 _ASBOX
7111     ) |
7112       sed "s/^/$as_me: WARNING:     /" >&2
7113     ;;
7114   no:yes )
7115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7117     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7121     (
7122       cat <<\_ASBOX
7123 ## ------------------------------------ ##
7124 ## Report this to bug-autoconf@gnu.org. ##
7125 ## ------------------------------------ ##
7126 _ASBOX
7127     ) |
7128       sed "s/^/$as_me: WARNING:     /" >&2
7129     ;;
7130 esac
7131 echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   eval "$as_ac_Header=$ac_header_preproc"
7137 fi
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140
7141 fi
7142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143   cat >>confdefs.h <<_ACEOF
7144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145 _ACEOF
7146
7147 fi
7148
7149 done
7150
7151
7152 # End of readline/conio stuff
7153 # -----------------------------------------------------------------------
7154
7155 # -----------------------------------------------------------------------
7156 #  Check for Python support
7157 #
7158 echo "$as_me:$LINENO: checking for Python support" >&5
7159 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7160
7161 # Check whether --with-python or --without-python was given.
7162 if test "${with_python+set}" = set; then
7163   withval="$with_python"
7164
7165   PYTHON_INCDIR=
7166   PYTHON_LIBS=
7167   if test "$withval" != "no"; then
7168      if test "$withval" = "yes"; then
7169         if test -f /usr/include/python2.2/Python.h; then
7170            PYTHON_INCDIR=-I/usr/include/python2.2
7171            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7172         elif test -f /usr/include/python2.3/Python.h; then
7173            PYTHON_INCDIR=-I/usr/include/python2.3
7174            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7175         elif test -f /usr/include/python2.4/Python.h; then
7176            PYTHON_INCDIR=-I/usr/include/python2.4
7177            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7178         elif test -f $prefix/include/Python.h; then
7179            PYTHON_INCDIR=-I$prefix/include
7180            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7181         else
7182            echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6
7184            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7185 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7186    { (exit 1); exit 1; }; }
7187         fi
7188      else
7189         if test -f $withval/Python.h; then
7190            PYTHON_INCDIR=-I$withval
7191            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7192         elif test -f $withval/include/Python.h; then
7193            PYTHON_INCDIR=-I$withval/include
7194            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7195         else
7196            echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6
7198            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7199 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7200    { (exit 1); exit 1; }; }
7201         fi
7202      fi
7203      cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_PYTHON 1
7205 _ACEOF
7206
7207      echo "$as_me:$LINENO: result: yes" >&5
7208 echo "${ECHO_T}yes" >&6
7209      support_python=yes
7210
7211   else
7212      echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7214   fi
7215
7216 else
7217
7218   echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6
7220
7221 fi;
7222
7223
7224
7225
7226 #
7227 # Find where sockets are (especially for Solaris)
7228 # Do this before the TCP Wrappers test since tcp wrappers
7229 # uses the socket library and some linkers are stupid.
7230 #
7231 echo "$as_me:$LINENO: checking for socket" >&5
7232 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7233 if test "${ac_cv_func_socket+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   cat >conftest.$ac_ext <<_ACEOF
7237 #line $LINENO "configure"
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243 /* System header to define __stub macros and hopefully few prototypes,
7244     which can conflict with char socket (); below.
7245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246     <limits.h> exists even on freestanding compilers.  */
7247 #ifdef __STDC__
7248 # include <limits.h>
7249 #else
7250 # include <assert.h>
7251 #endif
7252 /* Override any gcc2 internal prototype to avoid an error.  */
7253 #ifdef __cplusplus
7254 extern "C"
7255 {
7256 #endif
7257 /* We use char because int might match the return type of a gcc2
7258    builtin and then its argument prototype would still apply.  */
7259 char socket ();
7260 /* The GNU C library defines this for functions which it implements
7261     to always fail with ENOSYS.  Some functions are actually named
7262     something starting with __ and the normal name is an alias.  */
7263 #if defined (__stub_socket) || defined (__stub___socket)
7264 choke me
7265 #else
7266 char (*f) () = socket;
7267 #endif
7268 #ifdef __cplusplus
7269 }
7270 #endif
7271
7272 int
7273 main ()
7274 {
7275 return f != socket;
7276   ;
7277   return 0;
7278 }
7279 _ACEOF
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282   (eval $ac_link) 2>&5
7283   ac_status=$?
7284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); } &&
7286          { ac_try='test -s conftest$ac_exeext'
7287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288   (eval $ac_try) 2>&5
7289   ac_status=$?
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); }; }; then
7292   ac_cv_func_socket=yes
7293 else
7294   echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7296
7297 ac_cv_func_socket=no
7298 fi
7299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7300 fi
7301 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7302 echo "${ECHO_T}$ac_cv_func_socket" >&6
7303 if test $ac_cv_func_socket = yes; then
7304   echo "$as_me:$LINENO: result: using libc's socket" >&5
7305 echo "${ECHO_T}using libc's socket" >&6
7306 else
7307
7308 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7309 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7310 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   ac_check_lib_save_LIBS=$LIBS
7314 LIBS="-lxnet  $LIBS"
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 /* confdefs.h.  */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h.  */
7322
7323 /* Override any gcc2 internal prototype to avoid an error.  */
7324 #ifdef __cplusplus
7325 extern "C"
7326 #endif
7327 /* We use char because int might match the return type of a gcc2
7328    builtin and then its argument prototype would still apply.  */
7329 char socket ();
7330 int
7331 main ()
7332 {
7333 socket ();
7334   ;
7335   return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext conftest$ac_exeext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340   (eval $ac_link) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } &&
7344          { ac_try='test -s conftest$ac_exeext'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; }; then
7350   ac_cv_lib_xnet_socket=yes
7351 else
7352   echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 ac_cv_lib_xnet_socket=no
7356 fi
7357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7359 fi
7360 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7361 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7362 if test $ac_cv_lib_xnet_socket = yes; then
7363   cat >>confdefs.h <<_ACEOF
7364 #define HAVE_LIBXNET 1
7365 _ACEOF
7366
7367   LIBS="-lxnet $LIBS"
7368
7369 fi
7370
7371
7372 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7373 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7374 if test "${ac_cv_lib_socket_socket+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   ac_check_lib_save_LIBS=$LIBS
7378 LIBS="-lsocket  $LIBS"
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386
7387 /* Override any gcc2 internal prototype to avoid an error.  */
7388 #ifdef __cplusplus
7389 extern "C"
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392    builtin and then its argument prototype would still apply.  */
7393 char socket ();
7394 int
7395 main ()
7396 {
7397 socket ();
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404   (eval $ac_link) 2>&5
7405   ac_status=$?
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } &&
7408          { ac_try='test -s conftest$ac_exeext'
7409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410   (eval $ac_try) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; }; then
7414   ac_cv_lib_socket_socket=yes
7415 else
7416   echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_lib_socket_socket=no
7420 fi
7421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7422 LIBS=$ac_check_lib_save_LIBS
7423 fi
7424 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7425 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7426 if test $ac_cv_lib_socket_socket = yes; then
7427   cat >>confdefs.h <<_ACEOF
7428 #define HAVE_LIBSOCKET 1
7429 _ACEOF
7430
7431   LIBS="-lsocket $LIBS"
7432
7433 fi
7434
7435
7436 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7437 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7438 if test "${ac_cv_lib_inet_socket+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   ac_check_lib_save_LIBS=$LIBS
7442 LIBS="-linet  $LIBS"
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 /* confdefs.h.  */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h.  */
7450
7451 /* Override any gcc2 internal prototype to avoid an error.  */
7452 #ifdef __cplusplus
7453 extern "C"
7454 #endif
7455 /* We use char because int might match the return type of a gcc2
7456    builtin and then its argument prototype would still apply.  */
7457 char socket ();
7458 int
7459 main ()
7460 {
7461 socket ();
7462   ;
7463   return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468   (eval $ac_link) 2>&5
7469   ac_status=$?
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } &&
7472          { ac_try='test -s conftest$ac_exeext'
7473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474   (eval $ac_try) 2>&5
7475   ac_status=$?
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); }; }; then
7478   ac_cv_lib_inet_socket=yes
7479 else
7480   echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 ac_cv_lib_inet_socket=no
7484 fi
7485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7487 fi
7488 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7489 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7490 if test $ac_cv_lib_inet_socket = yes; then
7491   cat >>confdefs.h <<_ACEOF
7492 #define HAVE_LIBINET 1
7493 _ACEOF
7494
7495   LIBS="-linet $LIBS"
7496
7497 fi
7498
7499 fi
7500
7501
7502
7503 # -----------------------------------------------------------
7504 # Check whether user wants TCP wrappers support (default off)
7505 # -----------------------------------------------------------
7506 TCPW_MSG="no"
7507
7508 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7509 if test "${with_tcp_wrappers+set}" = set; then
7510   withval="$with_tcp_wrappers"
7511
7512     if test "x$withval" != "xno" ; then
7513        saved_LIBS="$LIBS"
7514        LIBS="$saved_LIBS -lwrap"
7515        echo "$as_me:$LINENO: checking for libwrap" >&5
7516 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7517        cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7519 /* confdefs.h.  */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h.  */
7524  #include <tcpd.h>
7525              int deny_severity = 0;
7526              int allow_severity = 0;
7527              struct request_info *req;
7528 int
7529 main ()
7530 {
7531  hosts_access(req);
7532   ;
7533   return 0;
7534 }
7535 _ACEOF
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538   (eval $ac_link) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); } &&
7542          { ac_try='test -s conftest$ac_exeext'
7543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544   (eval $ac_try) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }; }; then
7548
7549             echo "$as_me:$LINENO: result: yes" >&5
7550 echo "${ECHO_T}yes" >&6
7551             cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_LIBWRAP 1
7553 _ACEOF
7554
7555             TCPW_MSG="yes"
7556
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561
7562             LIBS="$saved_LIBS -lwrap -lnsl"
7563             cat >conftest.$ac_ext <<_ACEOF
7564 #line $LINENO "configure"
7565 /* confdefs.h.  */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h.  */
7570  #include <tcpd.h>
7571                  int deny_severity = 0;
7572                  int allow_severity = 0;
7573                  struct request_info *req;
7574 int
7575 main ()
7576 {
7577  hosts_access(req);
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584   (eval $ac_link) 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
7595                  echo "$as_me:$LINENO: result: yes" >&5
7596 echo "${ECHO_T}yes" >&6
7597                  cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_LIBWRAP 1
7599 _ACEOF
7600
7601                  TCPW_MSG="yes"
7602
7603 else
7604   echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7608 echo "$as_me: error: *** libwrap missing" >&2;}
7609    { (exit 1); exit 1; }; }
7610
7611 fi
7612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7613
7614 fi
7615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7616     fi
7617
7618
7619 fi;
7620
7621 # -----------------------------------------------------------
7622 # Check whether OpenSSL is available
7623 # -----------------------------------------------------------
7624 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7625 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7626
7627 # Check whether --with-openssl or --without-openssl was given.
7628 if test "${with_openssl+set}" = set; then
7629   withval="$with_openssl"
7630   with_openssl_directory=${withval}
7631 fi;
7632
7633 if test "x$with_openssl_directory" != "xno"; then
7634         OPENSSL_LIBS="-lssl -lcrypto"
7635         OPENSSL_INC=""
7636
7637         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7638                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7639                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7640         fi
7641
7642         saved_LIBS="$LIBS"
7643         saved_CFLAGS="$CFLAGS"
7644         LIBS="$saved_LIBS $OPENSSL_LIBS"
7645         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7646
7647         cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 /* confdefs.h.  */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h.  */
7654  #include <openssl/ssl.h>
7655 int
7656 main ()
7657 {
7658  CRYPTO_set_id_callback(NULL);
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665   (eval $ac_link) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } &&
7669          { ac_try='test -s conftest$ac_exeext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675    support_tls="yes"
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680  support_tls="no"
7681
7682 fi
7683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7684
7685         LIBS="$saved_LIBS"
7686         CFLAGS="$saved_CFLAGS"
7687
7688         if test "$support_tls" = "yes"; then
7689
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_OPENSSL 1
7692 _ACEOF
7693
7694
7695 cat >>confdefs.h <<\_ACEOF
7696 #define HAVE_TLS 1
7697 _ACEOF
7698
7699         fi
7700 else
7701         support_tls="no"
7702         OPENSSL_LIBS=""
7703         OPENSSL_INC=""
7704 fi
7705
7706 echo "$as_me:$LINENO: result: $support_tls" >&5
7707 echo "${ECHO_T}$support_tls" >&6
7708
7709
7710
7711
7712
7713 # ------------------------------------------
7714 # Where to place working dir
7715 # ------------------------------------------
7716 working_dir=`eval echo ${prefix}/var/bacula/working`
7717
7718 # Check whether --with-working-dir or --without-working-dir was given.
7719 if test "${with_working_dir+set}" = set; then
7720   withval="$with_working_dir"
7721
7722        if test "x$withval" != "xno" ; then
7723               working_dir=$withval
7724        fi
7725
7726
7727 fi;
7728
7729
7730
7731
7732 # ------------------------------------------
7733 # Where to place scriptdir (script files)
7734 # ------------------------------------------
7735 scriptdir=`eval echo ${sysconfdir}`
7736
7737 # Check whether --with-scriptdir or --without-scriptdir was given.
7738 if test "${with_scriptdir+set}" = set; then
7739   withval="$with_scriptdir"
7740
7741        if test "x$withval" != "xno" ; then
7742               scriptdir=$withval
7743        fi
7744
7745
7746 fi;
7747
7748
7749
7750
7751 # ------------------------------------------
7752 # Where to send dump email
7753 # ------------------------------------------
7754 dump_email=root@localhost
7755
7756 # Check whether --with-dump-email or --without-dump-email was given.
7757 if test "${with_dump_email+set}" = set; then
7758   withval="$with_dump_email"
7759
7760        if test "x$withval" != "xno" ; then
7761               dump_email=$withval
7762        fi
7763
7764
7765 fi;
7766
7767
7768
7769 # ------------------------------------------
7770 # Where to send job email
7771 # ------------------------------------------
7772 job_email=root@localhost
7773
7774 # Check whether --with-job-email or --without-job-email was given.
7775 if test "${with_job_email+set}" = set; then
7776   withval="$with_job_email"
7777
7778        if test "x$withval" != "xno" ; then
7779               job_email=$withval
7780        fi
7781
7782
7783 fi;
7784
7785
7786
7787 # ------------------------------------------
7788 # Where to find smtp host
7789 # ------------------------------------------
7790 smtp_host=localhost
7791
7792 # Check whether --with-smtp_host or --without-smtp_host was given.
7793 if test "${with_smtp_host+set}" = set; then
7794   withval="$with_smtp_host"
7795
7796        if test "x$withval" != "xno" ; then
7797               smtp_host=$withval
7798        fi
7799
7800
7801 fi;
7802
7803
7804
7805
7806 # ------------------------------------
7807 # Where to place pid files
7808 # ------------------------------------
7809 piddir=/var/run
7810
7811 # Check whether --with-pid-dir or --without-pid-dir was given.
7812 if test "${with_pid_dir+set}" = set; then
7813   withval="$with_pid_dir"
7814
7815         if test "x$withval" != "xno" ; then
7816             piddir=$withval
7817         fi
7818
7819
7820 fi;
7821
7822 cat >>confdefs.h <<_ACEOF
7823 #define _PATH_BACULA_PIDDIR "$piddir"
7824 _ACEOF
7825
7826
7827
7828
7829 # ------------------------------------
7830 # Where to place subsys "lock file"
7831 # ------------------------------------
7832 subsysdir=/var/run/subsys
7833
7834 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7835 if test "${with_subsys_dir+set}" = set; then
7836   withval="$with_subsys_dir"
7837
7838         if test "x$withval" != "xno" ; then
7839             subsysdir=$withval
7840         fi
7841
7842
7843 fi;
7844
7845
7846
7847
7848
7849 # ------------------------------------
7850 # Where to start assigning ports
7851 # ------------------------------------
7852 baseport=9101
7853
7854 # Check whether --with-baseport or --without-baseport was given.
7855 if test "${with_baseport+set}" = set; then
7856   withval="$with_baseport"
7857
7858         if test "x$withval" != "xno" ; then
7859              baseport=$withval
7860         fi
7861
7862
7863 fi;
7864
7865
7866 dir_port=`expr $baseport`
7867 fd_port=`expr $baseport + 1`
7868 sd_port=`expr $fd_port + 1`
7869
7870
7871
7872
7873
7874
7875 # ------------------------------------------
7876 # Generate passwords
7877 # ------------------------------------------
7878 dir_password=
7879
7880 # Check whether --with-dir-password or --without-dir-password was given.
7881 if test "${with_dir_password+set}" = set; then
7882   withval="$with_dir_password"
7883
7884        if test "x$withval" != "xno" ; then
7885            dir_password=$withval
7886        fi
7887
7888
7889 fi;
7890
7891 if test "x$dir_password" = "x" ; then
7892    if test "x$OPENSSL" = "xnone" ; then
7893 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7894       key=`autoconf/randpass 33`
7895    else
7896       key=`openssl rand -base64 33`
7897    fi
7898    dir_password=$key
7899 fi
7900
7901 fd_password=
7902
7903 # Check whether --with-fd-password or --without-fd-password was given.
7904 if test "${with_fd_password+set}" = set; then
7905   withval="$with_fd_password"
7906
7907        if test "x$withval" != "xno" ; then
7908            fd_password=$withval
7909        fi
7910
7911
7912 fi;
7913
7914 if test "x$fd_password" = "x" ; then
7915    if test "x$OPENSSL" = "xnone" ; then
7916 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7917       key=`autoconf/randpass 37`
7918    else
7919       key=`openssl rand -base64 33`
7920    fi
7921    fd_password=$key
7922 fi
7923
7924 sd_password=
7925
7926 # Check whether --with-sd-password or --without-sd-password was given.
7927 if test "${with_sd_password+set}" = set; then
7928   withval="$with_sd_password"
7929
7930        if test "x$withval" != "xno" ; then
7931            sd_password=$withval
7932        fi
7933
7934
7935 fi;
7936
7937 if test "x$sd_password" = "x" ; then
7938    if test "x$OPENSSL" = "xnone" ; then
7939 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7940       key=`autoconf/randpass 41`
7941    else
7942       key=`openssl rand -base64 33`
7943    fi
7944    sd_password=$key
7945 fi
7946
7947 mon_dir_password=
7948
7949 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7950 if test "${with_mon_dir_password+set}" = set; then
7951   withval="$with_mon_dir_password"
7952
7953        if test "x$withval" != "xno" ; then
7954            mon_dir_password=$withval
7955        fi
7956
7957
7958 fi;
7959
7960 if test "x$mon_dir_password" = "x" ; then
7961    if test "x$OPENSSL" = "xnone" ; then
7962 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7963       key=`autoconf/randpass 33`
7964    else
7965       key=`openssl rand -base64 33`
7966    fi
7967    mon_dir_password=$key
7968 fi
7969
7970 mon_fd_password=
7971
7972 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7973 if test "${with_mon_fd_password+set}" = set; then
7974   withval="$with_mon_fd_password"
7975
7976        if test "x$withval" != "xno" ; then
7977            mon_fd_password=$withval
7978        fi
7979
7980
7981 fi;
7982
7983 if test "x$mon_fd_password" = "x" ; then
7984    if test "x$OPENSSL" = "xnone" ; then
7985 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7986       key=`autoconf/randpass 37`
7987    else
7988       key=`openssl rand -base64 33`
7989    fi
7990    mon_fd_password=$key
7991 fi
7992
7993 mon_sd_password=
7994
7995 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7996 if test "${with_mon_sd_password+set}" = set; then
7997   withval="$with_mon_sd_password"
7998
7999        if test "x$withval" != "xno" ; then
8000            mon_sd_password=$withval
8001        fi
8002
8003
8004 fi;
8005
8006 if test "x$mon_sd_password" = "x" ; then
8007    if test "x$OPENSSL" = "xnone" ; then
8008 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8009       key=`autoconf/randpass 41`
8010    else
8011       key=`openssl rand -base64 33`
8012    fi
8013    mon_sd_password=$key
8014 fi
8015
8016
8017
8018
8019
8020
8021
8022
8023 # -------------------------------------------------------------------------
8024 #  Set variables for bimagemgr installation
8025 # -------------------------------------------------------------------------
8026 bimagemgr_cgidir=/var/www/cgi-bin
8027
8028 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8029 if test "${with_bimagemgr_cgidir+set}" = set; then
8030   withval="$with_bimagemgr_cgidir"
8031
8032        if test "x$withval" != "xno" ; then
8033            bimagemgr_cgidir=$withval
8034        fi
8035
8036
8037 fi;
8038
8039 bimagemgr_docdir=/var/www/html
8040
8041 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8042 if test "${with_bimagemgr_docdir+set}" = set; then
8043   withval="$with_bimagemgr_docdir"
8044
8045        if test "x$withval" != "xno" ; then
8046            bimagemgr_docdir=$withval
8047        fi
8048
8049
8050 fi;
8051
8052 bimagemgr_binowner=root
8053
8054 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8055 if test "${with_bimagemgr_binowner+set}" = set; then
8056   withval="$with_bimagemgr_binowner"
8057
8058        if test "x$withval" != "xno" ; then
8059            bimagemgr_binowner=$withval
8060        fi
8061
8062
8063 fi;
8064
8065 bimagemgr_bingroup=root
8066
8067 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8068 if test "${with_bimagemgr_bingroup+set}" = set; then
8069   withval="$with_bimagemgr_bingroup"
8070
8071        if test "x$withval" != "xno" ; then
8072            bimagemgr_bingroup=$withval
8073        fi
8074
8075
8076 fi;
8077
8078 bimagemgr_dataowner=apache
8079
8080 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8081 if test "${with_bimagemgr_dataowner+set}" = set; then
8082   withval="$with_bimagemgr_dataowner"
8083
8084        if test "x$withval" != "xno" ; then
8085            bimagemgr_dataowner=$withval
8086        fi
8087
8088
8089 fi;
8090
8091 bimagemgr_datagroup=apache
8092
8093 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8094 if test "${with_bimagemgr_datagroup+set}" = set; then
8095   withval="$with_bimagemgr_datagroup"
8096
8097        if test "x$withval" != "xno" ; then
8098            bimagemgr_datagroup=$withval
8099        fi
8100
8101
8102 fi;
8103
8104
8105
8106
8107
8108
8109
8110
8111 #
8112 # Handle users and groups for each daemon
8113 #
8114 dir_user=
8115
8116 # Check whether --with-dir_user or --without-dir_user was given.
8117 if test "${with_dir_user+set}" = set; then
8118   withval="$with_dir_user"
8119
8120         if test "x$withval" != "x" ; then
8121              dir_user=$withval
8122         fi
8123
8124
8125 fi;
8126
8127 dir_group=
8128
8129 # Check whether --with-dir_group or --without-dir_group was given.
8130 if test "${with_dir_group+set}" = set; then
8131   withval="$with_dir_group"
8132
8133         if test "x$withval" != "x" ; then
8134              dir_group=$withval
8135         fi
8136
8137
8138 fi;
8139
8140 sd_user=
8141
8142 # Check whether --with-sd_user or --without-sd_user was given.
8143 if test "${with_sd_user+set}" = set; then
8144   withval="$with_sd_user"
8145
8146         if test "x$withval" != "x" ; then
8147              sd_user=$withval
8148         fi
8149
8150
8151 fi;
8152
8153 sd_group=
8154
8155 # Check whether --with-sd_group or --without-sd_group was given.
8156 if test "${with_sd_group+set}" = set; then
8157   withval="$with_sd_group"
8158
8159         if test "x$withval" != "x" ; then
8160              sd_group=$withval
8161         fi
8162
8163
8164 fi;
8165
8166 fd_user=
8167
8168 # Check whether --with-fd_user or --without-fd_user was given.
8169 if test "${with_fd_user+set}" = set; then
8170   withval="$with_fd_user"
8171
8172         if test "x$withval" != "x" ; then
8173              fd_user=$withval
8174         fi
8175
8176
8177 fi;
8178
8179 fd_group=
8180
8181 # Check whether --with-fd_group or --without-fd_group was given.
8182 if test "${with_fd_group+set}" = set; then
8183   withval="$with_fd_group"
8184
8185         if test "x$withval" != "x" ; then
8186              fd_group=$withval
8187         fi
8188
8189
8190 fi;
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 #
8203 # allow setting default executable permissions
8204 #
8205 SBINPERM=0754
8206
8207 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8208 if test "${with_sbin_perm+set}" = set; then
8209   withval="$with_sbin_perm"
8210
8211         if test "x$withval" != "x" ; then
8212             SBINPERM=$withval
8213         fi
8214
8215
8216 fi;
8217
8218
8219
8220 # ------------------------------------------------
8221 # Bacula check for various SQL database engines
8222 # ------------------------------------------------
8223
8224 db_found=no
8225 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8226 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8227
8228 # Check whether --with-postgresql or --without-postgresql was given.
8229 if test "${with_postgresql+set}" = set; then
8230   withval="$with_postgresql"
8231
8232   if test "$withval" != "no"; then
8233       if test "$db_found" = "yes"; then
8234           echo "$as_me:$LINENO: result: error" >&5
8235 echo "${ECHO_T}error" >&6
8236           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8237 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8238    { (exit 1); exit 1; }; };
8239       fi
8240       if test "$withval" = "yes"; then
8241           if test -f /usr/local/include/libpq-fe.h; then
8242               POSTGRESQL_INCDIR=/usr/local/include
8243               POSTGRESQL_LIBDIR=/usr/local/lib
8244               POSTGRESQL_BINDIR=/usr/local/bin
8245           elif test -f /usr/include/libpq-fe.h; then
8246               POSTGRESQL_INCDIR=/usr/include
8247               POSTGRESQL_LIBDIR=/usr/lib
8248               POSTGRESQL_BINDIR=/usr/bin
8249           elif test -f /usr/include/pgsql/libpq-fe.h; then
8250               POSTGRESQL_INCDIR=/usr/include/pgsql
8251               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8252               POSTGRESQL_BINDIR=/usr/bin
8253           elif test -f /usr/include/postgresql/libpq-fe.h; then
8254               POSTGRESQL_INCDIR=/usr/include/postgresql
8255               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8256               POSTGRESQL_BINDIR=/usr/bin
8257           else
8258               echo "$as_me:$LINENO: result: no" >&5
8259 echo "${ECHO_T}no" >&6
8260               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8261 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8262    { (exit 1); exit 1; }; }
8263           fi
8264       elif test -f $withval/include/libpq-fe.h; then
8265           POSTGRESQL_INCDIR=$withval/include
8266           POSTGRESQL_LIBDIR=$withval/lib
8267           POSTGRESQL_BINDIR=$withval/bin
8268       elif test -f $withval/include/postgresql/libpq-fe.h; then
8269           POSTGRESQL_INCDIR=$withval/include/postgresql
8270           POSTGRESQL_LIBDIR=$withval/lib
8271           POSTGRESQL_BINDIR=$withval/bin
8272       else
8273           echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6
8275           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8276 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8277    { (exit 1); exit 1; }; }
8278       fi
8279       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8280       echo "$as_me:$LINENO: checking for crypt" >&5
8281 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8282 if test "${ac_cv_func_crypt+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 /* System header to define __stub macros and hopefully few prototypes,
8293     which can conflict with char crypt (); below.
8294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295     <limits.h> exists even on freestanding compilers.  */
8296 #ifdef __STDC__
8297 # include <limits.h>
8298 #else
8299 # include <assert.h>
8300 #endif
8301 /* Override any gcc2 internal prototype to avoid an error.  */
8302 #ifdef __cplusplus
8303 extern "C"
8304 {
8305 #endif
8306 /* We use char because int might match the return type of a gcc2
8307    builtin and then its argument prototype would still apply.  */
8308 char crypt ();
8309 /* The GNU C library defines this for functions which it implements
8310     to always fail with ENOSYS.  Some functions are actually named
8311     something starting with __ and the normal name is an alias.  */
8312 #if defined (__stub_crypt) || defined (__stub___crypt)
8313 choke me
8314 #else
8315 char (*f) () = crypt;
8316 #endif
8317 #ifdef __cplusplus
8318 }
8319 #endif
8320
8321 int
8322 main ()
8323 {
8324 return f != crypt;
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 rm -f conftest.$ac_objext conftest$ac_exeext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331   (eval $ac_link) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } &&
8335          { ac_try='test -s conftest$ac_exeext'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; }; then
8341   ac_cv_func_crypt=yes
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 ac_cv_func_crypt=no
8347 fi
8348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8349 fi
8350 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8351 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8352 if test $ac_cv_func_crypt = yes; then
8353   :
8354 else
8355   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8356 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8357 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lcrypt  $LIBS"
8362 cat >conftest.$ac_ext <<_ACEOF
8363 #line $LINENO "configure"
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369
8370 /* Override any gcc2 internal prototype to avoid an error.  */
8371 #ifdef __cplusplus
8372 extern "C"
8373 #endif
8374 /* We use char because int might match the return type of a gcc2
8375    builtin and then its argument prototype would still apply.  */
8376 char crypt ();
8377 int
8378 main ()
8379 {
8380 crypt ();
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387   (eval $ac_link) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -s conftest$ac_exeext'
8392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393   (eval $ac_try) 2>&5
8394   ac_status=$?
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); }; }; then
8397   ac_cv_lib_crypt_crypt=yes
8398 else
8399   echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ac_cv_lib_crypt_crypt=no
8403 fi
8404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8405 LIBS=$ac_check_lib_save_LIBS
8406 fi
8407 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8408 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8409 if test $ac_cv_lib_crypt_crypt = yes; then
8410   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8411 fi
8412
8413 fi
8414
8415       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8416       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8417       SQL_BINDIR=$POSTGRESQL_BINDIR
8418       cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_POSTGRESQL 1
8420 _ACEOF
8421
8422       echo "$as_me:$LINENO: result: yes" >&5
8423 echo "${ECHO_T}yes" >&6
8424       db_found=yes
8425       support_postgresql=yes
8426       db_name=PostgreSQL
8427       DB_NAME=postgresql
8428   else
8429       echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6
8431   fi
8432
8433 else
8434
8435   echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8437
8438 fi;
8439
8440
8441
8442
8443
8444
8445
8446 db_found=no
8447 echo "$as_me:$LINENO: checking for MySQL support" >&5
8448 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8449
8450 # Check whether --with-mysql or --without-mysql was given.
8451 if test "${with_mysql+set}" = set; then
8452   withval="$with_mysql"
8453
8454   if test "$withval" != "no"; then
8455         if test "$withval" = "yes"; then
8456                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8457                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8458                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8459                         MYSQL_BINDIR=/usr/local/mysql/bin
8460                 elif test -f /usr/include/mysql/mysql.h; then
8461                         MYSQL_INCDIR=/usr/include/mysql
8462                         MYSQL_LIBDIR=/usr/lib/mysql
8463                         MYSQL_BINDIR=/usr/bin
8464                 elif test -f /usr/include/mysql.h; then
8465                         MYSQL_INCDIR=/usr/include
8466                         MYSQL_LIBDIR=/usr/lib
8467                         MYSQL_BINDIR=/usr/bin
8468                 elif test -f /usr/local/include/mysql/mysql.h; then
8469                         MYSQL_INCDIR=/usr/local/include/mysql
8470                         MYSQL_LIBDIR=/usr/local/lib/mysql
8471                         MYSQL_BINDIR=/usr/local/bin
8472                 elif test -f /usr/local/include/mysql.h; then
8473                         MYSQL_INCDIR=/usr/local/include
8474                         MYSQL_LIBDIR=/usr/local/lib
8475                         MYSQL_BINDIR=/usr/local/bin
8476                 else
8477                    echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6
8479                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8480 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8481    { (exit 1); exit 1; }; }
8482                 fi
8483         else
8484                 if test -f $withval/include/mysql/mysql.h; then
8485                         MYSQL_INCDIR=$withval/include/mysql
8486                         MYSQL_LIBDIR=$withval/lib/mysql
8487                         MYSQL_BINDIR=$withval/bin
8488                 elif test -f $withval/include/mysql.h; then
8489                         MYSQL_INCDIR=$withval/include
8490                         MYSQL_LIBDIR=$withval/lib
8491                         MYSQL_BINDIR=$withval/bin
8492                 else
8493                    echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6
8495                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8496 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8497    { (exit 1); exit 1; }; }
8498                 fi
8499         fi
8500     SQL_INCLUDE=-I$MYSQL_INCDIR
8501     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8502        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8503        cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_THREAD_SAFE_MYSQL 1
8505 _ACEOF
8506
8507     else
8508        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8509     fi
8510     SQL_BINDIR=$MYSQL_BINDIR
8511
8512     cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_MYSQL 1
8514 _ACEOF
8515
8516     echo "$as_me:$LINENO: result: yes" >&5
8517 echo "${ECHO_T}yes" >&6
8518     db_found=yes
8519     support_mysql=yes
8520     db_name=MySQL
8521     DB_NAME=mysql
8522
8523   else
8524         echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6
8526   fi
8527
8528
8529 fi;
8530
8531
8532 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8533 if test "${with_embedded_mysql+set}" = set; then
8534   withval="$with_embedded_mysql"
8535
8536   if test "$withval" != "no"; then
8537         if test "$withval" = "yes"; then
8538                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8539                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8540                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8541                         MYSQL_BINDIR=/usr/local/mysql/bin
8542                 elif test -f /usr/include/mysql/mysql.h; then
8543                         MYSQL_INCDIR=/usr/include/mysql
8544                         MYSQL_LIBDIR=/usr/lib/mysql
8545                         MYSQL_BINDIR=/usr/bin
8546                 elif test -f /usr/include/mysql.h; then
8547                         MYSQL_INCDIR=/usr/include
8548                         MYSQL_LIBDIR=/usr/lib
8549                         MYSQL_BINDIR=/usr/bin
8550                 elif test -f /usr/local/include/mysql/mysql.h; then
8551                         MYSQL_INCDIR=/usr/local/include/mysql
8552                         MYSQL_LIBDIR=/usr/local/lib/mysql
8553                         MYSQL_BINDIR=/usr/local/bin
8554                 elif test -f /usr/local/include/mysql.h; then
8555                         MYSQL_INCDIR=/usr/local/include
8556                         MYSQL_LIBDIR=/usr/local/lib
8557                         MYSQL_BINDIR=/usr/local/bin
8558                 else
8559                    echo "$as_me:$LINENO: result: no" >&5
8560 echo "${ECHO_T}no" >&6
8561                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8562 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8563    { (exit 1); exit 1; }; }
8564                 fi
8565         else
8566                 if test -f $withval/include/mysql/mysql.h; then
8567                         MYSQL_INCDIR=$withval/include/mysql
8568                         MYSQL_LIBDIR=$withval/lib/mysql
8569                         MYSQL_BINDIR=$withval/bin
8570                 elif test -f $withval/include/mysql.h; then
8571                         MYSQL_INCDIR=$withval/include
8572                         MYSQL_LIBDIR=$withval/lib
8573                         MYSQL_BINDIR=$withval/bin
8574                 else
8575                    echo "$as_me:$LINENO: result: no" >&5
8576 echo "${ECHO_T}no" >&6
8577                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8578 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8579    { (exit 1); exit 1; }; }
8580                 fi
8581         fi
8582     SQL_INCLUDE=-I$MYSQL_INCDIR
8583     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8584     SQL_BINDIR=$MYSQL_BINDIR
8585
8586     cat >>confdefs.h <<\_ACEOF
8587 #define HAVE_MYSQL 1
8588 _ACEOF
8589
8590     cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_EMBEDDED_MYSQL 1
8592 _ACEOF
8593
8594     echo "$as_me:$LINENO: result: yes" >&5
8595 echo "${ECHO_T}yes" >&6
8596     db_found=yes
8597     support_mysql=yes
8598     db_name=MySQL
8599     DB_NAME=mysql
8600
8601   else
8602         echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6
8604   fi
8605
8606
8607 fi;
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 db_found=no
8618 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8619 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8620
8621 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8622 if test "${with_sqlite3+set}" = set; then
8623   withval="$with_sqlite3"
8624
8625   if test "$withval" != "no"; then
8626      if test "$withval" = "yes"; then
8627         if test -f /usr/local/include/sqlite3.h; then
8628            SQLITE_INCDIR=/usr/local/include
8629            SQLITE_LIBDIR=/usr/local/lib
8630            SQLITE_BINDIR=/usr/local/bin
8631         elif test -f /usr/include/sqlite3.h; then
8632            SQLITE_INCDIR=/usr/include
8633            SQLITE_LIBDIR=/usr/lib
8634            SQLITE_BINDIR=/usr/bin
8635         elif test -f $prefix/include/sqlite3.h; then
8636            SQLITE_INCDIR=$prefix/include
8637            SQLITE_LIBDIR=$prefix/lib
8638            SQLITE_BINDIR=$prefix/bin
8639         else
8640            echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6
8642            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8643 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8644    { (exit 1); exit 1; }; }
8645         fi
8646      else
8647         if test -f $withval/sqlite3.h; then
8648            SQLITE_INCDIR=$withval
8649            SQLITE_LIBDIR=$withval
8650            SQLITE_BINDIR=$withval
8651         elif test -f $withval/include/sqlite3.h; then
8652            SQLITE_INCDIR=$withval/include
8653            SQLITE_LIBDIR=$withval/lib
8654            SQLITE_BINDIR=$withval/bin
8655         else
8656            echo "$as_me:$LINENO: result: no" >&5
8657 echo "${ECHO_T}no" >&6
8658            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8659 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8660    { (exit 1); exit 1; }; }
8661         fi
8662      fi
8663      SQL_INCLUDE=-I$SQLITE_INCDIR
8664      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8665      SQL_BINDIR=$SQLITE_BINDIR
8666
8667      cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_SQLITE3 1
8669 _ACEOF
8670
8671      echo "$as_me:$LINENO: result: yes" >&5
8672 echo "${ECHO_T}yes" >&6
8673      db_found=yes
8674      support_sqlite3=yes
8675      db_name=SQLite3
8676      DB_NAME=sqlite3
8677
8678   else
8679      echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8681   fi
8682
8683 else
8684
8685   echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8687
8688 fi;
8689
8690
8691
8692
8693
8694
8695
8696 db_found=no
8697 echo "$as_me:$LINENO: checking for SQLite support" >&5
8698 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8699
8700 # Check whether --with-sqlite or --without-sqlite was given.
8701 if test "${with_sqlite+set}" = set; then
8702   withval="$with_sqlite"
8703
8704   if test "$withval" != "no"; then
8705      if test "$withval" = "yes"; then
8706         if test -f /usr/local/include/sqlite.h; then
8707            SQLITE_INCDIR=/usr/local/include
8708            SQLITE_LIBDIR=/usr/local/lib
8709            SQLITE_BINDIR=/usr/local/bin
8710         elif test -f /usr/include/sqlite.h; then
8711            SQLITE_INCDIR=/usr/include
8712            SQLITE_LIBDIR=/usr/lib
8713            SQLITE_BINDIR=/usr/bin
8714         elif test -f $prefix/include/sqlite.h; then
8715            SQLITE_INCDIR=$prefix/include
8716            SQLITE_LIBDIR=$prefix/lib
8717            SQLITE_BINDIR=$prefix/bin
8718         else
8719            echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6
8721            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8722 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8723    { (exit 1); exit 1; }; }
8724         fi
8725      else
8726         if test -f $withval/sqlite.h; then
8727            SQLITE_INCDIR=$withval
8728            SQLITE_LIBDIR=$withval
8729            SQLITE_BINDIR=$withval
8730         elif test -f $withval/include/sqlite.h; then
8731            SQLITE_INCDIR=$withval/include
8732            SQLITE_LIBDIR=$withval/lib
8733            SQLITE_BINDIR=$withval/bin
8734         else
8735            echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6
8737            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8738 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8739    { (exit 1); exit 1; }; }
8740         fi
8741      fi
8742      SQL_INCLUDE=-I$SQLITE_INCDIR
8743      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8744      SQL_BINDIR=$SQLITE_BINDIR
8745
8746      cat >>confdefs.h <<\_ACEOF
8747 #define HAVE_SQLITE 1
8748 _ACEOF
8749
8750      echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6
8752      db_found=yes
8753      support_sqlite=yes
8754      db_name=SQLite
8755      DB_NAME=sqlite
8756
8757   else
8758      echo "$as_me:$LINENO: result: no" >&5
8759 echo "${ECHO_T}no" >&6
8760   fi
8761
8762 else
8763
8764   echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8766
8767 fi;
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777 cat >>confdefs.h <<\_ACEOF
8778 #define PROTOTYPES 1
8779 _ACEOF
8780
8781
8782 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8783     if test -z "$CCOPTS"; then
8784         CCOPTS='-g -O2 -Wall'
8785     fi
8786     CFLAGS="$CCOPTS"
8787 fi
8788
8789
8790
8791
8792 largefile_support="no"
8793
8794    # Check whether --enable-largefile or --disable-largefile was given.
8795 if test "${enable_largefile+set}" = set; then
8796   enableval="$enable_largefile"
8797
8798 fi;
8799    if test "$enable_largefile" != no; then
8800      if test -n "$ac_tool_prefix"; then
8801   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8802 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8803 echo "$as_me:$LINENO: checking for $ac_word" >&5
8804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8805 if test "${ac_cv_prog_GETCONF+set}" = set; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   if test -n "$GETCONF"; then
8809   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8810 else
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814   IFS=$as_save_IFS
8815   test -z "$as_dir" && as_dir=.
8816   for ac_exec_ext in '' $ac_executable_extensions; do
8817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8820     break 2
8821   fi
8822 done
8823 done
8824
8825 fi
8826 fi
8827 GETCONF=$ac_cv_prog_GETCONF
8828 if test -n "$GETCONF"; then
8829   echo "$as_me:$LINENO: result: $GETCONF" >&5
8830 echo "${ECHO_T}$GETCONF" >&6
8831 else
8832   echo "$as_me:$LINENO: result: no" >&5
8833 echo "${ECHO_T}no" >&6
8834 fi
8835
8836 fi
8837 if test -z "$ac_cv_prog_GETCONF"; then
8838   ac_ct_GETCONF=$GETCONF
8839   # Extract the first word of "getconf", so it can be a program name with args.
8840 set dummy getconf; ac_word=$2
8841 echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   if test -n "$ac_ct_GETCONF"; then
8847   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852   IFS=$as_save_IFS
8853   test -z "$as_dir" && as_dir=.
8854   for ac_exec_ext in '' $ac_executable_extensions; do
8855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856     ac_cv_prog_ac_ct_GETCONF="getconf"
8857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858     break 2
8859   fi
8860 done
8861 done
8862
8863 fi
8864 fi
8865 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8866 if test -n "$ac_ct_GETCONF"; then
8867   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8868 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8869 else
8870   echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8872 fi
8873
8874   GETCONF=$ac_ct_GETCONF
8875 else
8876   GETCONF="$ac_cv_prog_GETCONF"
8877 fi
8878
8879      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8880 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8881 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8885         ac_cv_sys_largefile_CFLAGS=no
8886         case "$host_os" in
8887            # IRIX 6.2 and later require cc -n32.
8888            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8889              if test "$GCC" != yes; then
8890                ac_cv_sys_largefile_CFLAGS=-n32
8891              fi
8892              ac_save_CC="$CC"
8893              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8894              cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8896 /* confdefs.h.  */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h.  */
8901
8902 int
8903 main ()
8904 {
8905
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 rm -f conftest.$ac_objext conftest$ac_exeext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912   (eval $ac_link) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } &&
8916          { ac_try='test -s conftest$ac_exeext'
8917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918   (eval $ac_try) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; }; then
8922   :
8923 else
8924   echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927 ac_cv_sys_largefile_CFLAGS=no
8928 fi
8929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8930              CC="$ac_save_CC"
8931            esac
8932       }
8933 fi
8934 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8935 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8936      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8937 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8938 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8942         ac_cv_sys_largefile_LDFLAGS=no
8943
8944       }
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8947 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8948      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8949 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8950 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8951   echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8954         ac_cv_sys_largefile_LIBS=no
8955
8956       }
8957 fi
8958 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8959 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8960
8961      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8962        case "$ac_flag" in
8963        no) ;;
8964        -D_FILE_OFFSET_BITS=*) ;;
8965        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8966        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8967        -D?* | -I?*)
8968          case "$ac_flag" in
8969    no) ;;
8970    ?*)
8971      case "$CPPFLAGS" in
8972      '') CPPFLAGS="$ac_flag" ;;
8973      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8974      esac ;;
8975    esac ;;
8976        *)
8977          case "$ac_flag" in
8978    no) ;;
8979    ?*)
8980      case "$CFLAGS" in
8981      '') CFLAGS="$ac_flag" ;;
8982      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8983      esac ;;
8984    esac ;;
8985        esac
8986      done
8987      case "$ac_cv_sys_largefile_LDFLAGS" in
8988    no) ;;
8989    ?*)
8990      case "$LDFLAGS" in
8991      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8992      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8993      esac ;;
8994    esac
8995      case "$ac_cv_sys_largefile_LIBS" in
8996    no) ;;
8997    ?*)
8998      case "$LIBS" in
8999      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9000      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9001      esac ;;
9002    esac
9003      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9004 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9005 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   ac_cv_sys_file_offset_bits=no
9009       ac_cv_sys_file_offset_bits=64
9010       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9011         case "$ac_flag" in
9012         -D_FILE_OFFSET_BITS)
9013           ac_cv_sys_file_offset_bits=1 ;;
9014         -D_FILE_OFFSET_BITS=*)
9015           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9016         esac
9017       done
9018
9019 fi
9020 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9021 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9022    if test "$ac_cv_sys_file_offset_bits" != no; then
9023
9024 cat >>confdefs.h <<_ACEOF
9025 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9026 _ACEOF
9027
9028    fi
9029      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9030 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9031 if test "${ac_cv_sys_largefile_source+set}" = set; then
9032   echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034   ac_cv_sys_largefile_source=no
9035       ac_cv_sys_largefile_source=1
9036       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9037         case "$ac_flag" in
9038         -D_LARGEFILE_SOURCE)
9039           ac_cv_sys_largefile_source=1 ;;
9040         -D_LARGEFILE_SOURCE=*)
9041           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9042         esac
9043       done
9044
9045 fi
9046 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9047 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9048    if test "$ac_cv_sys_largefile_source" != no; then
9049
9050 cat >>confdefs.h <<_ACEOF
9051 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9052 _ACEOF
9053
9054    fi
9055      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9056 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9057 if test "${ac_cv_sys_large_files+set}" = set; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060   ac_cv_sys_large_files=no
9061       ac_cv_sys_large_files=1
9062       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9063         case "$ac_flag" in
9064         -D_LARGE_FILES)
9065           ac_cv_sys_large_files=1 ;;
9066         -D_LARGE_FILES=*)
9067           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9068         esac
9069       done
9070
9071 fi
9072 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9073 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9074    if test "$ac_cv_sys_large_files" != no; then
9075
9076 cat >>confdefs.h <<_ACEOF
9077 #define _LARGE_FILES $ac_cv_sys_large_files
9078 _ACEOF
9079
9080    fi
9081    fi
9082
9083
9084
9085 echo "$as_me:$LINENO: checking for X" >&5
9086 echo $ECHO_N "checking for X... $ECHO_C" >&6
9087
9088
9089 # Check whether --with-x or --without-x was given.
9090 if test "${with_x+set}" = set; then
9091   withval="$with_x"
9092
9093 fi;
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno; then
9096   # The user explicitly disabled X.
9097   have_x=disabled
9098 else
9099   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9100     # Both variables are already set.
9101     have_x=yes
9102   else
9103     if test "${ac_cv_have_x+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106   # One or both of the vars are not set, and there is no cached value.
9107 ac_x_includes=no ac_x_libraries=no
9108 rm -fr conftest.dir
9109 if mkdir conftest.dir; then
9110   cd conftest.dir
9111   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9112   cat >Imakefile <<'_ACEOF'
9113 acfindx:
9114         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9115 _ACEOF
9116   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9117     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9118     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9119     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9120     for ac_extension in a so sl; do
9121       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9122          test -f $ac_im_libdir/libX11.$ac_extension; then
9123         ac_im_usrlibdir=$ac_im_libdir; break
9124       fi
9125     done
9126     # Screen out bogus values from the imake configuration.  They are
9127     # bogus both because they are the default anyway, and because
9128     # using them would break gcc on systems where it needs fixed includes.
9129     case $ac_im_incroot in
9130         /usr/include) ;;
9131         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9132     esac
9133     case $ac_im_usrlibdir in
9134         /usr/lib | /lib) ;;
9135         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9136     esac
9137   fi
9138   cd ..
9139   rm -fr conftest.dir
9140 fi
9141
9142 # Standard set of common directories for X headers.
9143 # Check X11 before X11Rn because it is often a symlink to the current release.
9144 ac_x_header_dirs='
9145 /usr/X11/include
9146 /usr/X11R6/include
9147 /usr/X11R5/include
9148 /usr/X11R4/include
9149
9150 /usr/include/X11
9151 /usr/include/X11R6
9152 /usr/include/X11R5
9153 /usr/include/X11R4
9154
9155 /usr/local/X11/include
9156 /usr/local/X11R6/include
9157 /usr/local/X11R5/include
9158 /usr/local/X11R4/include
9159
9160 /usr/local/include/X11
9161 /usr/local/include/X11R6
9162 /usr/local/include/X11R5
9163 /usr/local/include/X11R4
9164
9165 /usr/X386/include
9166 /usr/x386/include
9167 /usr/XFree86/include/X11
9168
9169 /usr/include
9170 /usr/local/include
9171 /usr/unsupported/include
9172 /usr/athena/include
9173 /usr/local/x11r5/include
9174 /usr/lpp/Xamples/include
9175
9176 /usr/openwin/include
9177 /usr/openwin/share/include'
9178
9179 if test "$ac_x_includes" = no; then
9180   # Guess where to find include files, by looking for Intrinsic.h.
9181   # First, try using that file with no special directory specified.
9182   cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189 #include <X11/Intrinsic.h>
9190 _ACEOF
9191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } >/dev/null; then
9199   if test -s conftest.err; then
9200     ac_cpp_err=$ac_c_preproc_warn_flag
9201   else
9202     ac_cpp_err=
9203   fi
9204 else
9205   ac_cpp_err=yes
9206 fi
9207 if test -z "$ac_cpp_err"; then
9208   # We can compile using X headers with no special include directory.
9209 ac_x_includes=
9210 else
9211   echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9213
9214   for ac_dir in $ac_x_header_dirs; do
9215   if test -r "$ac_dir/X11/Intrinsic.h"; then
9216     ac_x_includes=$ac_dir
9217     break
9218   fi
9219 done
9220 fi
9221 rm -f conftest.err conftest.$ac_ext
9222 fi # $ac_x_includes = no
9223
9224 if test "$ac_x_libraries" = no; then
9225   # Check for the libraries.
9226   # See if we find them without any special options.
9227   # Don't add to $LIBS permanently.
9228   ac_save_LIBS=$LIBS
9229   LIBS="-lXt $LIBS"
9230   cat >conftest.$ac_ext <<_ACEOF
9231 #line $LINENO "configure"
9232 /* confdefs.h.  */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h.  */
9237 #include <X11/Intrinsic.h>
9238 int
9239 main ()
9240 {
9241 XtMalloc (0)
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248   (eval $ac_link) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -s conftest$ac_exeext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   LIBS=$ac_save_LIBS
9259 # We can link X programs with no special library path.
9260 ac_x_libraries=
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 LIBS=$ac_save_LIBS
9266 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9267 do
9268   # Don't even attempt the hair of trying to link an X program!
9269   for ac_extension in a so sl; do
9270     if test -r $ac_dir/libXt.$ac_extension; then
9271       ac_x_libraries=$ac_dir
9272       break 2
9273     fi
9274   done
9275 done
9276 fi
9277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9278 fi # $ac_x_libraries = no
9279
9280 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9281   # Didn't find X anywhere.  Cache the known absence of X.
9282   ac_cv_have_x="have_x=no"
9283 else
9284   # Record where we found X for the cache.
9285   ac_cv_have_x="have_x=yes \
9286                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9287 fi
9288 fi
9289
9290   fi
9291   eval "$ac_cv_have_x"
9292 fi # $with_x != no
9293
9294 if test "$have_x" != yes; then
9295   echo "$as_me:$LINENO: result: $have_x" >&5
9296 echo "${ECHO_T}$have_x" >&6
9297   no_x=yes
9298 else
9299   # If each of the values was on the command line, it overrides each guess.
9300   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9301   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9302   # Update the cache value to reflect the command line values.
9303   ac_cv_have_x="have_x=yes \
9304                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9305   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9306 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9307 fi
9308
9309 if test "$no_x" = yes; then
9310   # Not all programs may use this symbol, but it does not hurt to define it.
9311
9312 cat >>confdefs.h <<\_ACEOF
9313 #define X_DISPLAY_MISSING 1
9314 _ACEOF
9315
9316   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9317 else
9318   if test -n "$x_includes"; then
9319     X_CFLAGS="$X_CFLAGS -I$x_includes"
9320   fi
9321
9322   # It would also be nice to do this for all -L options, not just this one.
9323   if test -n "$x_libraries"; then
9324     X_LIBS="$X_LIBS -L$x_libraries"
9325     # For Solaris; some versions of Sun CC require a space after -R and
9326     # others require no space.  Words are not sufficient . . . .
9327     case `(uname -sr) 2>/dev/null` in
9328     "SunOS 5"*)
9329       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9330 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9331       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9332       cat >conftest.$ac_ext <<_ACEOF
9333 #line $LINENO "configure"
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339
9340 int
9341 main ()
9342 {
9343
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9350   (eval $ac_link) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } &&
9354          { ac_try='test -s conftest$ac_exeext'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; }; then
9360   ac_R_nospace=yes
9361 else
9362   echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365 ac_R_nospace=no
9366 fi
9367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9368       if test $ac_R_nospace = yes; then
9369         echo "$as_me:$LINENO: result: no" >&5
9370 echo "${ECHO_T}no" >&6
9371         X_LIBS="$X_LIBS -R$x_libraries"
9372       else
9373         LIBS="$ac_xsave_LIBS -R $x_libraries"
9374         cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381
9382 int
9383 main ()
9384 {
9385
9386   ;
9387   return 0;
9388 }
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392   (eval $ac_link) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } &&
9396          { ac_try='test -s conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   ac_R_space=yes
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_R_space=no
9408 fi
9409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9410         if test $ac_R_space = yes; then
9411           echo "$as_me:$LINENO: result: yes" >&5
9412 echo "${ECHO_T}yes" >&6
9413           X_LIBS="$X_LIBS -R $x_libraries"
9414         else
9415           echo "$as_me:$LINENO: result: neither works" >&5
9416 echo "${ECHO_T}neither works" >&6
9417         fi
9418       fi
9419       LIBS=$ac_xsave_LIBS
9420     esac
9421   fi
9422
9423   # Check for system-dependent libraries X programs must link with.
9424   # Do this before checking for the system-independent R6 libraries
9425   # (-lICE), since we may need -lsocket or whatever for X linking.
9426
9427   if test "$ISC" = yes; then
9428     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9429   else
9430     # Martyn Johnson says this is needed for Ultrix, if the X
9431     # libraries were built with DECnet support.  And Karl Berry says
9432     # the Alpha needs dnet_stub (dnet does not exist).
9433     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9434     cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441
9442 /* Override any gcc2 internal prototype to avoid an error.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 /* We use char because int might match the return type of a gcc2
9447    builtin and then its argument prototype would still apply.  */
9448 char XOpenDisplay ();
9449 int
9450 main ()
9451 {
9452 XOpenDisplay ();
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459   (eval $ac_link) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } &&
9463          { ac_try='test -s conftest$ac_exeext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   :
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9475 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9476 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   ac_check_lib_save_LIBS=$LIBS
9480 LIBS="-ldnet  $LIBS"
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488
9489 /* Override any gcc2 internal prototype to avoid an error.  */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 /* We use char because int might match the return type of a gcc2
9494    builtin and then its argument prototype would still apply.  */
9495 char dnet_ntoa ();
9496 int
9497 main ()
9498 {
9499 dnet_ntoa ();
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506   (eval $ac_link) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } &&
9510          { ac_try='test -s conftest$ac_exeext'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; }; then
9516   ac_cv_lib_dnet_dnet_ntoa=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_cv_lib_dnet_dnet_ntoa=no
9522 fi
9523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9524 LIBS=$ac_check_lib_save_LIBS
9525 fi
9526 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9527 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9528 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9529   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9530 fi
9531
9532     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9533       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9534 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9535 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-ldnet_stub  $LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 #line $LINENO "configure"
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547
9548 /* Override any gcc2 internal prototype to avoid an error.  */
9549 #ifdef __cplusplus
9550 extern "C"
9551 #endif
9552 /* We use char because int might match the return type of a gcc2
9553    builtin and then its argument prototype would still apply.  */
9554 char dnet_ntoa ();
9555 int
9556 main ()
9557 {
9558 dnet_ntoa ();
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565   (eval $ac_link) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } &&
9569          { ac_try='test -s conftest$ac_exeext'
9570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571   (eval $ac_try) 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; }; then
9575   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9576 else
9577   echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ac_cv_lib_dnet_stub_dnet_ntoa=no
9581 fi
9582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9584 fi
9585 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9586 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9587 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9588   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9589 fi
9590
9591     fi
9592 fi
9593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9594     LIBS="$ac_xsave_LIBS"
9595
9596     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9597     # to get the SysV transport functions.
9598     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9599     # needs -lnsl.
9600     # The nsl library prevents programs from opening the X display
9601     # on Irix 5.2, according to T.E. Dickey.
9602     # The functions gethostbyname, getservbyname, and inet_addr are
9603     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9604     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9605 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9606 if test "${ac_cv_func_gethostbyname+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   cat >conftest.$ac_ext <<_ACEOF
9610 #line $LINENO "configure"
9611 /* confdefs.h.  */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h.  */
9616 /* System header to define __stub macros and hopefully few prototypes,
9617     which can conflict with char gethostbyname (); below.
9618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9619     <limits.h> exists even on freestanding compilers.  */
9620 #ifdef __STDC__
9621 # include <limits.h>
9622 #else
9623 # include <assert.h>
9624 #endif
9625 /* Override any gcc2 internal prototype to avoid an error.  */
9626 #ifdef __cplusplus
9627 extern "C"
9628 {
9629 #endif
9630 /* We use char because int might match the return type of a gcc2
9631    builtin and then its argument prototype would still apply.  */
9632 char gethostbyname ();
9633 /* The GNU C library defines this for functions which it implements
9634     to always fail with ENOSYS.  Some functions are actually named
9635     something starting with __ and the normal name is an alias.  */
9636 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9637 choke me
9638 #else
9639 char (*f) () = gethostbyname;
9640 #endif
9641 #ifdef __cplusplus
9642 }
9643 #endif
9644
9645 int
9646 main ()
9647 {
9648 return f != gethostbyname;
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655   (eval $ac_link) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -s conftest$ac_exeext'
9660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661   (eval $ac_try) 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   ac_cv_func_gethostbyname=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_cv_func_gethostbyname=no
9671 fi
9672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9673 fi
9674 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9675 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9676
9677     if test $ac_cv_func_gethostbyname = no; then
9678       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9679 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9680 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   ac_check_lib_save_LIBS=$LIBS
9684 LIBS="-lnsl  $LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692
9693 /* Override any gcc2 internal prototype to avoid an error.  */
9694 #ifdef __cplusplus
9695 extern "C"
9696 #endif
9697 /* We use char because int might match the return type of a gcc2
9698    builtin and then its argument prototype would still apply.  */
9699 char gethostbyname ();
9700 int
9701 main ()
9702 {
9703 gethostbyname ();
9704   ;
9705   return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710   (eval $ac_link) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); } &&
9714          { ac_try='test -s conftest$ac_exeext'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; }; then
9720   ac_cv_lib_nsl_gethostbyname=yes
9721 else
9722   echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 ac_cv_lib_nsl_gethostbyname=no
9726 fi
9727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9729 fi
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9731 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9732 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9733   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9734 fi
9735
9736       if test $ac_cv_lib_nsl_gethostbyname = no; then
9737         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9738 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9739 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742   ac_check_lib_save_LIBS=$LIBS
9743 LIBS="-lbsd  $LIBS"
9744 cat >conftest.$ac_ext <<_ACEOF
9745 #line $LINENO "configure"
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 /* Override any gcc2 internal prototype to avoid an error.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757    builtin and then its argument prototype would still apply.  */
9758 char gethostbyname ();
9759 int
9760 main ()
9761 {
9762 gethostbyname ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } &&
9773          { ac_try='test -s conftest$ac_exeext'
9774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775   (eval $ac_try) 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); }; }; then
9779   ac_cv_lib_bsd_gethostbyname=yes
9780 else
9781   echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_cv_lib_bsd_gethostbyname=no
9785 fi
9786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9788 fi
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9790 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9791 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9792   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9793 fi
9794
9795       fi
9796     fi
9797
9798     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9799     # socket/setsockopt and other routines are undefined under SCO ODT
9800     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9801     # on later versions), says Simon Leinen: it contains gethostby*
9802     # variants that don't use the name server (or something).  -lsocket
9803     # must be given before -lnsl if both are needed.  We assume that
9804     # if connect needs -lnsl, so does gethostbyname.
9805     echo "$as_me:$LINENO: checking for connect" >&5
9806 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9807 if test "${ac_cv_func_connect+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 /* System header to define __stub macros and hopefully few prototypes,
9818     which can conflict with char connect (); below.
9819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820     <limits.h> exists even on freestanding compilers.  */
9821 #ifdef __STDC__
9822 # include <limits.h>
9823 #else
9824 # include <assert.h>
9825 #endif
9826 /* Override any gcc2 internal prototype to avoid an error.  */
9827 #ifdef __cplusplus
9828 extern "C"
9829 {
9830 #endif
9831 /* We use char because int might match the return type of a gcc2
9832    builtin and then its argument prototype would still apply.  */
9833 char connect ();
9834 /* The GNU C library defines this for functions which it implements
9835     to always fail with ENOSYS.  Some functions are actually named
9836     something starting with __ and the normal name is an alias.  */
9837 #if defined (__stub_connect) || defined (__stub___connect)
9838 choke me
9839 #else
9840 char (*f) () = connect;
9841 #endif
9842 #ifdef __cplusplus
9843 }
9844 #endif
9845
9846 int
9847 main ()
9848 {
9849 return f != connect;
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856   (eval $ac_link) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -s conftest$ac_exeext'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   ac_cv_func_connect=yes
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 ac_cv_func_connect=no
9872 fi
9873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9874 fi
9875 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9876 echo "${ECHO_T}$ac_cv_func_connect" >&6
9877
9878     if test $ac_cv_func_connect = no; then
9879       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9880 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9881 if test "${ac_cv_lib_socket_connect+set}" = set; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884   ac_check_lib_save_LIBS=$LIBS
9885 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9886 cat >conftest.$ac_ext <<_ACEOF
9887 #line $LINENO "configure"
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893
9894 /* Override any gcc2 internal prototype to avoid an error.  */
9895 #ifdef __cplusplus
9896 extern "C"
9897 #endif
9898 /* We use char because int might match the return type of a gcc2
9899    builtin and then its argument prototype would still apply.  */
9900 char connect ();
9901 int
9902 main ()
9903 {
9904 connect ();
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911   (eval $ac_link) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } &&
9915          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9921   ac_cv_lib_socket_connect=yes
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 ac_cv_lib_socket_connect=no
9927 fi
9928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9930 fi
9931 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9932 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9933 if test $ac_cv_lib_socket_connect = yes; then
9934   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9935 fi
9936
9937     fi
9938
9939     # Guillermo Gomez says -lposix is necessary on A/UX.
9940     echo "$as_me:$LINENO: checking for remove" >&5
9941 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9942 if test "${ac_cv_func_remove+set}" = set; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   cat >conftest.$ac_ext <<_ACEOF
9946 #line $LINENO "configure"
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 /* System header to define __stub macros and hopefully few prototypes,
9953     which can conflict with char remove (); below.
9954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9955     <limits.h> exists even on freestanding compilers.  */
9956 #ifdef __STDC__
9957 # include <limits.h>
9958 #else
9959 # include <assert.h>
9960 #endif
9961 /* Override any gcc2 internal prototype to avoid an error.  */
9962 #ifdef __cplusplus
9963 extern "C"
9964 {
9965 #endif
9966 /* We use char because int might match the return type of a gcc2
9967    builtin and then its argument prototype would still apply.  */
9968 char remove ();
9969 /* The GNU C library defines this for functions which it implements
9970     to always fail with ENOSYS.  Some functions are actually named
9971     something starting with __ and the normal name is an alias.  */
9972 #if defined (__stub_remove) || defined (__stub___remove)
9973 choke me
9974 #else
9975 char (*f) () = remove;
9976 #endif
9977 #ifdef __cplusplus
9978 }
9979 #endif
9980
9981 int
9982 main ()
9983 {
9984 return f != remove;
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991   (eval $ac_link) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -s conftest$ac_exeext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_cv_func_remove=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 ac_cv_func_remove=no
10007 fi
10008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10009 fi
10010 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10011 echo "${ECHO_T}$ac_cv_func_remove" >&6
10012
10013     if test $ac_cv_func_remove = no; then
10014       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10015 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10016 if test "${ac_cv_lib_posix_remove+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-lposix  $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 /* Override any gcc2 internal prototype to avoid an error.  */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 /* We use char because int might match the return type of a gcc2
10034    builtin and then its argument prototype would still apply.  */
10035 char remove ();
10036 int
10037 main ()
10038 {
10039 remove ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046   (eval $ac_link) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } &&
10050          { ac_try='test -s conftest$ac_exeext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   ac_cv_lib_posix_remove=yes
10057 else
10058   echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 ac_cv_lib_posix_remove=no
10062 fi
10063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10064 LIBS=$ac_check_lib_save_LIBS
10065 fi
10066 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10067 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10068 if test $ac_cv_lib_posix_remove = yes; then
10069   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10070 fi
10071
10072     fi
10073
10074     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10075     echo "$as_me:$LINENO: checking for shmat" >&5
10076 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10077 if test "${ac_cv_func_shmat+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 /* System header to define __stub macros and hopefully few prototypes,
10088     which can conflict with char shmat (); below.
10089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10090     <limits.h> exists even on freestanding compilers.  */
10091 #ifdef __STDC__
10092 # include <limits.h>
10093 #else
10094 # include <assert.h>
10095 #endif
10096 /* Override any gcc2 internal prototype to avoid an error.  */
10097 #ifdef __cplusplus
10098 extern "C"
10099 {
10100 #endif
10101 /* We use char because int might match the return type of a gcc2
10102    builtin and then its argument prototype would still apply.  */
10103 char shmat ();
10104 /* The GNU C library defines this for functions which it implements
10105     to always fail with ENOSYS.  Some functions are actually named
10106     something starting with __ and the normal name is an alias.  */
10107 #if defined (__stub_shmat) || defined (__stub___shmat)
10108 choke me
10109 #else
10110 char (*f) () = shmat;
10111 #endif
10112 #ifdef __cplusplus
10113 }
10114 #endif
10115
10116 int
10117 main ()
10118 {
10119 return f != shmat;
10120   ;
10121   return 0;
10122 }
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10126   (eval $ac_link) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } &&
10130          { ac_try='test -s conftest$ac_exeext'
10131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132   (eval $ac_try) 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; }; then
10136   ac_cv_func_shmat=yes
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 ac_cv_func_shmat=no
10142 fi
10143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10144 fi
10145 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10146 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10147
10148     if test $ac_cv_func_shmat = no; then
10149       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10150 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10151 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10152   echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154   ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-lipc  $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10157 #line $LINENO "configure"
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163
10164 /* Override any gcc2 internal prototype to avoid an error.  */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 /* We use char because int might match the return type of a gcc2
10169    builtin and then its argument prototype would still apply.  */
10170 char shmat ();
10171 int
10172 main ()
10173 {
10174 shmat ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181   (eval $ac_link) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -s conftest$ac_exeext'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; }; then
10191   ac_cv_lib_ipc_shmat=yes
10192 else
10193   echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_cv_lib_ipc_shmat=no
10197 fi
10198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10200 fi
10201 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10202 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10203 if test $ac_cv_lib_ipc_shmat = yes; then
10204   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10205 fi
10206
10207     fi
10208   fi
10209
10210   # Check for libraries that X11R6 Xt/Xaw programs need.
10211   ac_save_LDFLAGS=$LDFLAGS
10212   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10213   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10214   # check for ICE first), but we must link in the order -lSM -lICE or
10215   # we get undefined symbols.  So assume we have SM if we have ICE.
10216   # These have to be linked with before -lX11, unlike the other
10217   # libraries we check for below, so use a different variable.
10218   # John Interrante, Karl Berry
10219   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10220 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10221 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10227 #line $LINENO "configure"
10228 /* confdefs.h.  */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h.  */
10233
10234 /* Override any gcc2 internal prototype to avoid an error.  */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 /* We use char because int might match the return type of a gcc2
10239    builtin and then its argument prototype would still apply.  */
10240 char IceConnectionNumber ();
10241 int
10242 main ()
10243 {
10244 IceConnectionNumber ();
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251   (eval $ac_link) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -s conftest$ac_exeext'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_cv_lib_ICE_IceConnectionNumber=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_cv_lib_ICE_IceConnectionNumber=no
10267 fi
10268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10272 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10273 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10274   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10275 fi
10276
10277   LDFLAGS=$ac_save_LDFLAGS
10278
10279 fi
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309 for ac_header in \
10310         assert.h \
10311         fcntl.h \
10312         grp.h \
10313         pwd.h \
10314         libc.h \
10315         limits.h \
10316         stdarg.h \
10317         stdlib.h \
10318         stdint.h \
10319         string.h \
10320         termios.h \
10321         termcap.h \
10322         term.h \
10323         unistd.h \
10324         sys/bitypes.h \
10325         sys/byteorder.h \
10326         sys/ioctl.h \
10327         sys/select.h \
10328         sys/sockio.h \
10329         sys/time.h \
10330         sys/socket.h \
10331         arpa/nameser.h \
10332         resolv.h \
10333         mtio.h \
10334         sys/mtio.h \
10335         sys/tape.h \
10336         regex.h \
10337
10338 do
10339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10341   echo "$as_me:$LINENO: checking for $ac_header" >&5
10342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 fi
10346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10348 else
10349   # Is the header compilable?
10350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 /* confdefs.h.  */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h.  */
10359 $ac_includes_default
10360 #include <$ac_header>
10361 _ACEOF
10362 rm -f conftest.$ac_objext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364   (eval $ac_compile) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } &&
10368          { ac_try='test -s conftest.$ac_objext'
10369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370   (eval $ac_try) 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   ac_header_compiler=yes
10375 else
10376   echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379 ac_header_compiler=no
10380 fi
10381 rm -f conftest.$ac_objext conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10383 echo "${ECHO_T}$ac_header_compiler" >&6
10384
10385 # Is the header present?
10386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <$ac_header>
10396 _ACEOF
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } >/dev/null; then
10405   if test -s conftest.err; then
10406     ac_cpp_err=$ac_c_preproc_warn_flag
10407   else
10408     ac_cpp_err=
10409   fi
10410 else
10411   ac_cpp_err=yes
10412 fi
10413 if test -z "$ac_cpp_err"; then
10414   ac_header_preproc=yes
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419   ac_header_preproc=no
10420 fi
10421 rm -f conftest.err conftest.$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10423 echo "${ECHO_T}$ac_header_preproc" >&6
10424
10425 # So?  What about this header?
10426 case $ac_header_compiler:$ac_header_preproc in
10427   yes:no )
10428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10432     (
10433       cat <<\_ASBOX
10434 ## ------------------------------------ ##
10435 ## Report this to bug-autoconf@gnu.org. ##
10436 ## ------------------------------------ ##
10437 _ASBOX
10438     ) |
10439       sed "s/^/$as_me: WARNING:     /" >&2
10440     ;;
10441   no:yes )
10442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10444     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10448     (
10449       cat <<\_ASBOX
10450 ## ------------------------------------ ##
10451 ## Report this to bug-autoconf@gnu.org. ##
10452 ## ------------------------------------ ##
10453 _ASBOX
10454     ) |
10455       sed "s/^/$as_me: WARNING:     /" >&2
10456     ;;
10457 esac
10458 echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   eval "$as_ac_Header=$ac_header_preproc"
10464 fi
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10467
10468 fi
10469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10470   cat >>confdefs.h <<_ACEOF
10471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10472 _ACEOF
10473
10474 fi
10475
10476 done
10477
10478 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10480 if test "${ac_cv_header_stdc+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10485 /* confdefs.h.  */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h.  */
10490 #include <stdlib.h>
10491 #include <stdarg.h>
10492 #include <string.h>
10493 #include <float.h>
10494
10495 int
10496 main ()
10497 {
10498
10499   ;
10500   return 0;
10501 }
10502 _ACEOF
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505   (eval $ac_compile) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -s conftest.$ac_objext'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; }; then
10515   ac_cv_header_stdc=yes
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_header_stdc=no
10521 fi
10522 rm -f conftest.$ac_objext conftest.$ac_ext
10523
10524 if test $ac_cv_header_stdc = yes; then
10525   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10526   cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10528 /* confdefs.h.  */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h.  */
10533 #include <string.h>
10534
10535 _ACEOF
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537   $EGREP "memchr" >/dev/null 2>&1; then
10538   :
10539 else
10540   ac_cv_header_stdc=no
10541 fi
10542 rm -f conftest*
10543
10544 fi
10545
10546 if test $ac_cv_header_stdc = yes; then
10547   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10548   cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10550 /* confdefs.h.  */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h.  */
10555 #include <stdlib.h>
10556
10557 _ACEOF
10558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10559   $EGREP "free" >/dev/null 2>&1; then
10560   :
10561 else
10562   ac_cv_header_stdc=no
10563 fi
10564 rm -f conftest*
10565
10566 fi
10567
10568 if test $ac_cv_header_stdc = yes; then
10569   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10570   if test "$cross_compiling" = yes; then
10571   :
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10575 /* confdefs.h.  */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h.  */
10580 #include <ctype.h>
10581 #if ((' ' & 0x0FF) == 0x020)
10582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10584 #else
10585 # define ISLOWER(c) \
10586                    (('a' <= (c) && (c) <= 'i') \
10587                      || ('j' <= (c) && (c) <= 'r') \
10588                      || ('s' <= (c) && (c) <= 'z'))
10589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10590 #endif
10591
10592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10593 int
10594 main ()
10595 {
10596   int i;
10597   for (i = 0; i < 256; i++)
10598     if (XOR (islower (i), ISLOWER (i))
10599         || toupper (i) != TOUPPER (i))
10600       exit(2);
10601   exit (0);
10602 }
10603 _ACEOF
10604 rm -f conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606   (eval $ac_link) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   :
10616 else
10617   echo "$as_me: program exited with status $ac_status" >&5
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ( exit $ac_status )
10622 ac_cv_header_stdc=no
10623 fi
10624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10625 fi
10626 fi
10627 fi
10628 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10629 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10630 if test $ac_cv_header_stdc = yes; then
10631
10632 cat >>confdefs.h <<\_ACEOF
10633 #define STDC_HEADERS 1
10634 _ACEOF
10635
10636 fi
10637
10638 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10639 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10640 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10645 /* confdefs.h.  */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h.  */
10650 #include <sys/types.h>
10651 int
10652 main ()
10653 {
10654 return makedev(0, 0);
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661   (eval $ac_link) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } &&
10665          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10671   ac_cv_header_sys_types_h_makedev=yes
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_cv_header_sys_types_h_makedev=no
10677 fi
10678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10679
10680 fi
10681 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10682 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10683
10684 if test $ac_cv_header_sys_types_h_makedev = no; then
10685 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10686   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10687 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10688 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 fi
10691 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10692 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10693 else
10694   # Is the header compilable?
10695 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10696 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10699 /* confdefs.h.  */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h.  */
10704 $ac_includes_default
10705 #include <sys/mkdev.h>
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709   (eval $ac_compile) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); } &&
10713          { ac_try='test -s conftest.$ac_objext'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   ac_header_compiler=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_header_compiler=no
10725 fi
10726 rm -f conftest.$ac_objext conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10728 echo "${ECHO_T}$ac_header_compiler" >&6
10729
10730 # Is the header present?
10731 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10732 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #include <sys/mkdev.h>
10741 _ACEOF
10742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } >/dev/null; then
10750   if test -s conftest.err; then
10751     ac_cpp_err=$ac_c_preproc_warn_flag
10752   else
10753     ac_cpp_err=
10754   fi
10755 else
10756   ac_cpp_err=yes
10757 fi
10758 if test -z "$ac_cpp_err"; then
10759   ac_header_preproc=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764   ac_header_preproc=no
10765 fi
10766 rm -f conftest.err conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10768 echo "${ECHO_T}$ac_header_preproc" >&6
10769
10770 # So?  What about this header?
10771 case $ac_header_compiler:$ac_header_preproc in
10772   yes:no )
10773     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10774 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10775     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10776 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10777     (
10778       cat <<\_ASBOX
10779 ## ------------------------------------ ##
10780 ## Report this to bug-autoconf@gnu.org. ##
10781 ## ------------------------------------ ##
10782 _ASBOX
10783     ) |
10784       sed "s/^/$as_me: WARNING:     /" >&2
10785     ;;
10786   no:yes )
10787     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10788 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10790 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10792 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10793     (
10794       cat <<\_ASBOX
10795 ## ------------------------------------ ##
10796 ## Report this to bug-autoconf@gnu.org. ##
10797 ## ------------------------------------ ##
10798 _ASBOX
10799     ) |
10800       sed "s/^/$as_me: WARNING:     /" >&2
10801     ;;
10802 esac
10803 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10804 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10805 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10809 fi
10810 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10811 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10812
10813 fi
10814 if test $ac_cv_header_sys_mkdev_h = yes; then
10815
10816 cat >>confdefs.h <<\_ACEOF
10817 #define MAJOR_IN_MKDEV 1
10818 _ACEOF
10819
10820 fi
10821
10822
10823
10824   if test $ac_cv_header_sys_mkdev_h = no; then
10825     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10826   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10827 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10828 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 fi
10831 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10832 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10833 else
10834   # Is the header compilable?
10835 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10836 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10838 #line $LINENO "configure"
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844 $ac_includes_default
10845 #include <sys/sysmacros.h>
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849   (eval $ac_compile) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -s conftest.$ac_objext'
10854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855   (eval $ac_try) 2>&5
10856   ac_status=$?
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); }; }; then
10859   ac_header_compiler=yes
10860 else
10861   echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ac_header_compiler=no
10865 fi
10866 rm -f conftest.$ac_objext conftest.$ac_ext
10867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10868 echo "${ECHO_T}$ac_header_compiler" >&6
10869
10870 # Is the header present?
10871 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10872 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880 #include <sys/sysmacros.h>
10881 _ACEOF
10882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } >/dev/null; then
10890   if test -s conftest.err; then
10891     ac_cpp_err=$ac_c_preproc_warn_flag
10892   else
10893     ac_cpp_err=
10894   fi
10895 else
10896   ac_cpp_err=yes
10897 fi
10898 if test -z "$ac_cpp_err"; then
10899   ac_header_preproc=yes
10900 else
10901   echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904   ac_header_preproc=no
10905 fi
10906 rm -f conftest.err conftest.$ac_ext
10907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10908 echo "${ECHO_T}$ac_header_preproc" >&6
10909
10910 # So?  What about this header?
10911 case $ac_header_compiler:$ac_header_preproc in
10912   yes:no )
10913     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10914 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10915     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10916 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10917     (
10918       cat <<\_ASBOX
10919 ## ------------------------------------ ##
10920 ## Report this to bug-autoconf@gnu.org. ##
10921 ## ------------------------------------ ##
10922 _ASBOX
10923     ) |
10924       sed "s/^/$as_me: WARNING:     /" >&2
10925     ;;
10926   no:yes )
10927     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10928 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10929     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10930 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10931     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10932 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10933     (
10934       cat <<\_ASBOX
10935 ## ------------------------------------ ##
10936 ## Report this to bug-autoconf@gnu.org. ##
10937 ## ------------------------------------ ##
10938 _ASBOX
10939     ) |
10940       sed "s/^/$as_me: WARNING:     /" >&2
10941     ;;
10942 esac
10943 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10944 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10945 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10949 fi
10950 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10951 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10952
10953 fi
10954 if test $ac_cv_header_sys_sysmacros_h = yes; then
10955
10956 cat >>confdefs.h <<\_ACEOF
10957 #define MAJOR_IN_SYSMACROS 1
10958 _ACEOF
10959
10960 fi
10961
10962
10963   fi
10964 fi
10965
10966
10967
10968
10969
10970
10971 ac_header_dirent=no
10972 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10973   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10974 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10975 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986 #include <sys/types.h>
10987 #include <$ac_hdr>
10988
10989 int
10990 main ()
10991 {
10992 if ((DIR *) 0)
10993 return 0;
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000   (eval $ac_compile) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); } &&
11004          { ac_try='test -s conftest.$ac_objext'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; }; then
11010   eval "$as_ac_Header=yes"
11011 else
11012   echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 eval "$as_ac_Header=no"
11016 fi
11017 rm -f conftest.$ac_objext conftest.$ac_ext
11018 fi
11019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022   cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11024 _ACEOF
11025
11026 ac_header_dirent=$ac_hdr; break
11027 fi
11028
11029 done
11030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11031 if test $ac_header_dirent = dirent.h; then
11032   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11033 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11034 if test "${ac_cv_search_opendir+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   ac_func_search_save_LIBS=$LIBS
11038 ac_cv_search_opendir=no
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046
11047 /* Override any gcc2 internal prototype to avoid an error.  */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 /* We use char because int might match the return type of a gcc2
11052    builtin and then its argument prototype would still apply.  */
11053 char opendir ();
11054 int
11055 main ()
11056 {
11057 opendir ();
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064   (eval $ac_link) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } &&
11068          { ac_try='test -s conftest$ac_exeext'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; }; then
11074   ac_cv_search_opendir="none required"
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 fi
11080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11081 if test "$ac_cv_search_opendir" = no; then
11082   for ac_lib in dir; do
11083     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11084     cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11086 /* confdefs.h.  */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h.  */
11091
11092 /* Override any gcc2 internal prototype to avoid an error.  */
11093 #ifdef __cplusplus
11094 extern "C"
11095 #endif
11096 /* We use char because int might match the return type of a gcc2
11097    builtin and then its argument prototype would still apply.  */
11098 char opendir ();
11099 int
11100 main ()
11101 {
11102 opendir ();
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109   (eval $ac_link) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -s conftest$ac_exeext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   ac_cv_search_opendir="-l$ac_lib"
11120 break
11121 else
11122   echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125 fi
11126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11127   done
11128 fi
11129 LIBS=$ac_func_search_save_LIBS
11130 fi
11131 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11132 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11133 if test "$ac_cv_search_opendir" != no; then
11134   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11135
11136 fi
11137
11138 else
11139   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11140 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11141 if test "${ac_cv_search_opendir+set}" = set; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144   ac_func_search_save_LIBS=$LIBS
11145 ac_cv_search_opendir=no
11146 cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153
11154 /* Override any gcc2 internal prototype to avoid an error.  */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 /* We use char because int might match the return type of a gcc2
11159    builtin and then its argument prototype would still apply.  */
11160 char opendir ();
11161 int
11162 main ()
11163 {
11164 opendir ();
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171   (eval $ac_link) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } &&
11175          { ac_try='test -s conftest$ac_exeext'
11176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177   (eval $ac_try) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; }; then
11181   ac_cv_search_opendir="none required"
11182 else
11183   echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 fi
11187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11188 if test "$ac_cv_search_opendir" = no; then
11189   for ac_lib in x; do
11190     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11191     cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198
11199 /* Override any gcc2 internal prototype to avoid an error.  */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 /* We use char because int might match the return type of a gcc2
11204    builtin and then its argument prototype would still apply.  */
11205 char opendir ();
11206 int
11207 main ()
11208 {
11209 opendir ();
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216   (eval $ac_link) 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } &&
11220          { ac_try='test -s conftest$ac_exeext'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }; then
11226   ac_cv_search_opendir="-l$ac_lib"
11227 break
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 fi
11233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11234   done
11235 fi
11236 LIBS=$ac_func_search_save_LIBS
11237 fi
11238 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11239 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11240 if test "$ac_cv_search_opendir" != no; then
11241   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11242
11243 fi
11244
11245 fi
11246
11247 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11248 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11249 if test "${ac_cv_header_stat_broken+set}" = set; then
11250   echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252   cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259 #include <sys/types.h>
11260 #include <sys/stat.h>
11261
11262 #if defined(S_ISBLK) && defined(S_IFDIR)
11263 # if S_ISBLK (S_IFDIR)
11264 You lose.
11265 # endif
11266 #endif
11267
11268 #if defined(S_ISBLK) && defined(S_IFCHR)
11269 # if S_ISBLK (S_IFCHR)
11270 You lose.
11271 # endif
11272 #endif
11273
11274 #if defined(S_ISLNK) && defined(S_IFREG)
11275 # if S_ISLNK (S_IFREG)
11276 You lose.
11277 # endif
11278 #endif
11279
11280 #if defined(S_ISSOCK) && defined(S_IFREG)
11281 # if S_ISSOCK (S_IFREG)
11282 You lose.
11283 # endif
11284 #endif
11285
11286 _ACEOF
11287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11288   $EGREP "You lose" >/dev/null 2>&1; then
11289   ac_cv_header_stat_broken=yes
11290 else
11291   ac_cv_header_stat_broken=no
11292 fi
11293 rm -f conftest*
11294
11295 fi
11296 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11297 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11298 if test $ac_cv_header_stat_broken = yes; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define STAT_MACROS_BROKEN 1
11302 _ACEOF
11303
11304 fi
11305
11306 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11307 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11308 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   cat >conftest.$ac_ext <<_ACEOF
11312 #line $LINENO "configure"
11313 /* confdefs.h.  */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h.  */
11318 #include <sys/types.h>
11319 #include <sys/wait.h>
11320 #ifndef WEXITSTATUS
11321 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11322 #endif
11323 #ifndef WIFEXITED
11324 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11325 #endif
11326
11327 int
11328 main ()
11329 {
11330   int s;
11331   wait (&s);
11332   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339   (eval $ac_compile) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } &&
11343          { ac_try='test -s conftest.$ac_objext'
11344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345   (eval $ac_try) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; }; then
11349   ac_cv_header_sys_wait_h=yes
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354 ac_cv_header_sys_wait_h=no
11355 fi
11356 rm -f conftest.$ac_objext conftest.$ac_ext
11357 fi
11358 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11359 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11360 if test $ac_cv_header_sys_wait_h = yes; then
11361
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_SYS_WAIT_H 1
11364 _ACEOF
11365
11366 fi
11367
11368 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11370 if test "${ac_cv_header_time+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   cat >conftest.$ac_ext <<_ACEOF
11374 #line $LINENO "configure"
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 #include <sys/types.h>
11381 #include <sys/time.h>
11382 #include <time.h>
11383
11384 int
11385 main ()
11386 {
11387 if ((struct tm *) 0)
11388 return 0;
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395   (eval $ac_compile) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); } &&
11399          { ac_try='test -s conftest.$ac_objext'
11400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401   (eval $ac_try) 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; }; then
11405   ac_cv_header_time=yes
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_cv_header_time=no
11411 fi
11412 rm -f conftest.$ac_objext conftest.$ac_ext
11413 fi
11414 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11415 echo "${ECHO_T}$ac_cv_header_time" >&6
11416 if test $ac_cv_header_time = yes; then
11417
11418 cat >>confdefs.h <<\_ACEOF
11419 #define TIME_WITH_SYS_TIME 1
11420 _ACEOF
11421
11422 fi
11423
11424
11425 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11426 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11427 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430   cat >conftest.$ac_ext <<_ACEOF
11431 #line $LINENO "configure"
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 $ac_includes_default
11438 int
11439 main ()
11440 {
11441 static struct stat ac_aggr;
11442 if (ac_aggr.st_blksize)
11443 return 0;
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450   (eval $ac_compile) 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } &&
11454          { ac_try='test -s conftest.$ac_objext'
11455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456   (eval $ac_try) 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; }; then
11460   ac_cv_member_struct_stat_st_blksize=yes
11461 else
11462   echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 $ac_includes_default
11473 int
11474 main ()
11475 {
11476 static struct stat ac_aggr;
11477 if (sizeof ac_aggr.st_blksize)
11478 return 0;
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485   (eval $ac_compile) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); } &&
11489          { ac_try='test -s conftest.$ac_objext'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }; then
11495   ac_cv_member_struct_stat_st_blksize=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500 ac_cv_member_struct_stat_st_blksize=no
11501 fi
11502 rm -f conftest.$ac_objext conftest.$ac_ext
11503 fi
11504 rm -f conftest.$ac_objext conftest.$ac_ext
11505 fi
11506 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11507 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11508 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11509
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11512 _ACEOF
11513
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_ST_BLKSIZE 1
11517 _ACEOF
11518
11519 fi
11520
11521
11522 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11523 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11524 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11529 /* confdefs.h.  */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h.  */
11534 $ac_includes_default
11535 int
11536 main ()
11537 {
11538 static struct stat ac_aggr;
11539 if (ac_aggr.st_blocks)
11540 return 0;
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547   (eval $ac_compile) 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } &&
11551          { ac_try='test -s conftest.$ac_objext'
11552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553   (eval $ac_try) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; }; then
11557   ac_cv_member_struct_stat_st_blocks=yes
11558 else
11559   echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 $ac_includes_default
11570 int
11571 main ()
11572 {
11573 static struct stat ac_aggr;
11574 if (sizeof ac_aggr.st_blocks)
11575 return 0;
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11582   (eval $ac_compile) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } &&
11586          { ac_try='test -s conftest.$ac_objext'
11587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588   (eval $ac_try) 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; }; then
11592   ac_cv_member_struct_stat_st_blocks=yes
11593 else
11594   echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11596
11597 ac_cv_member_struct_stat_st_blocks=no
11598 fi
11599 rm -f conftest.$ac_objext conftest.$ac_ext
11600 fi
11601 rm -f conftest.$ac_objext conftest.$ac_ext
11602 fi
11603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11604 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11605 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11606
11607 cat >>confdefs.h <<_ACEOF
11608 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11609 _ACEOF
11610
11611
11612 cat >>confdefs.h <<\_ACEOF
11613 #define HAVE_ST_BLOCKS 1
11614 _ACEOF
11615
11616 else
11617   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11618 fi
11619
11620
11621 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11622 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11623 if test "${ac_cv_struct_tm+set}" = set; then
11624   echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626   cat >conftest.$ac_ext <<_ACEOF
11627 #line $LINENO "configure"
11628 /* confdefs.h.  */
11629 _ACEOF
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h.  */
11633 #include <sys/types.h>
11634 #include <time.h>
11635
11636 int
11637 main ()
11638 {
11639 struct tm *tp; tp->tm_sec;
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646   (eval $ac_compile) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -s conftest.$ac_objext'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   ac_cv_struct_tm=time.h
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 ac_cv_struct_tm=sys/time.h
11662 fi
11663 rm -f conftest.$ac_objext conftest.$ac_ext
11664 fi
11665 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11666 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11667 if test $ac_cv_struct_tm = sys/time.h; then
11668
11669 cat >>confdefs.h <<\_ACEOF
11670 #define TM_IN_SYS_TIME 1
11671 _ACEOF
11672
11673 fi
11674
11675 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11676 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11677 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   cat >conftest.$ac_ext <<_ACEOF
11681 #line $LINENO "configure"
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687 #include <sys/types.h>
11688 #include <$ac_cv_struct_tm>
11689
11690
11691 int
11692 main ()
11693 {
11694 static struct tm ac_aggr;
11695 if (ac_aggr.tm_zone)
11696 return 0;
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703   (eval $ac_compile) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -s conftest.$ac_objext'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   ac_cv_member_struct_tm_tm_zone=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718 cat >conftest.$ac_ext <<_ACEOF
11719 #line $LINENO "configure"
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725 #include <sys/types.h>
11726 #include <$ac_cv_struct_tm>
11727
11728
11729 int
11730 main ()
11731 {
11732 static struct tm ac_aggr;
11733 if (sizeof ac_aggr.tm_zone)
11734 return 0;
11735   ;
11736   return 0;
11737 }
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741   (eval $ac_compile) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } &&
11745          { ac_try='test -s conftest.$ac_objext'
11746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747   (eval $ac_try) 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; }; then
11751   ac_cv_member_struct_tm_tm_zone=yes
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 ac_cv_member_struct_tm_tm_zone=no
11757 fi
11758 rm -f conftest.$ac_objext conftest.$ac_ext
11759 fi
11760 rm -f conftest.$ac_objext conftest.$ac_ext
11761 fi
11762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11763 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11764 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11765
11766 cat >>confdefs.h <<_ACEOF
11767 #define HAVE_STRUCT_TM_TM_ZONE 1
11768 _ACEOF
11769
11770
11771 fi
11772
11773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11774
11775 cat >>confdefs.h <<\_ACEOF
11776 #define HAVE_TM_ZONE 1
11777 _ACEOF
11778
11779 else
11780   echo "$as_me:$LINENO: checking for tzname" >&5
11781 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11782 if test "${ac_cv_var_tzname+set}" = set; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785   cat >conftest.$ac_ext <<_ACEOF
11786 #line $LINENO "configure"
11787 /* confdefs.h.  */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h.  */
11792 #include <time.h>
11793 #ifndef tzname /* For SGI.  */
11794 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11795 #endif
11796
11797 int
11798 main ()
11799 {
11800 atoi(*tzname);
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807   (eval $ac_link) 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -s conftest$ac_exeext'
11812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813   (eval $ac_try) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; }; then
11817   ac_cv_var_tzname=yes
11818 else
11819   echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 ac_cv_var_tzname=no
11823 fi
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11825 fi
11826 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11827 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11828   if test $ac_cv_var_tzname = yes; then
11829
11830 cat >>confdefs.h <<\_ACEOF
11831 #define HAVE_TZNAME 1
11832 _ACEOF
11833
11834   fi
11835 fi
11836
11837
11838 echo "$as_me:$LINENO: checking for utime.h" >&5
11839 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11840 if test "${ba_cv_header_utime_h+set}" = set; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843   cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850
11851 #include <sys/types.h>
11852 #include <utime.h>
11853 int
11854 main ()
11855 {
11856 struct utimbuf foo
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863   (eval $ac_compile) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } &&
11867          { ac_try='test -s conftest.$ac_objext'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; }; then
11873   ba_cv_header_utime_h=yes
11874 else
11875   echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 ba_cv_header_utime_h=no
11879 fi
11880 rm -f conftest.$ac_objext conftest.$ac_ext
11881 fi
11882 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11883 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11884 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11885 #define HAVE_UTIME_H 1
11886 _ACEOF
11887
11888
11889 echo "$as_me:$LINENO: checking for socklen_t" >&5
11890 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11891 if test "${ba_cv_header_socklen_t+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 #line $LINENO "configure"
11896 /* confdefs.h.  */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h.  */
11901
11902 #include <sys/types.h>
11903 #include <sys/socket.h>
11904 int
11905 main ()
11906 {
11907 socklen_t x
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914   (eval $ac_compile) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -s conftest.$ac_objext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ba_cv_header_socklen_t=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ba_cv_header_socklen_t=no
11930 fi
11931 rm -f conftest.$ac_objext conftest.$ac_ext
11932 fi
11933 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11934 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11935 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_SOCKLEN_T 1
11937 _ACEOF
11938
11939
11940 echo "$as_me:$LINENO: checking for bigendian" >&5
11941 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11942 if test "${ba_cv_bigendian+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   if test "$cross_compiling" = yes; then
11946   ba_cv_bigendian=no
11947 else
11948   cat >conftest.$ac_ext <<_ACEOF
11949 #line $LINENO "configure"
11950 /* confdefs.h.  */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h.  */
11955 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11956 _ACEOF
11957 rm -f conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959   (eval $ac_link) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   ba_cv_bigendian=yes
11969 else
11970   echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 ( exit $ac_status )
11975 ba_cv_bigendian=no
11976 fi
11977 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11978 fi
11979 fi
11980 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11981 echo "${ECHO_T}$ba_cv_bigendian" >&6
11982 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_BIGENDIAN 1
11984 _ACEOF
11985
11986
11987
11988 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11990 if test "${ac_cv_c_const+set}" = set; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   cat >conftest.$ac_ext <<_ACEOF
11994 #line $LINENO "configure"
11995 /* confdefs.h.  */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h.  */
12000
12001 int
12002 main ()
12003 {
12004 /* FIXME: Include the comments suggested by Paul. */
12005 #ifndef __cplusplus
12006   /* Ultrix mips cc rejects this.  */
12007   typedef int charset[2];
12008   const charset x;
12009   /* SunOS 4.1.1 cc rejects this.  */
12010   char const *const *ccp;
12011   char **p;
12012   /* NEC SVR4.0.2 mips cc rejects this.  */
12013   struct point {int x, y;};
12014   static struct point const zero = {0,0};
12015   /* AIX XL C 1.02.0.0 rejects this.
12016      It does not let you subtract one const X* pointer from another in
12017      an arm of an if-expression whose if-part is not a constant
12018      expression */
12019   const char *g = "string";
12020   ccp = &g + (g ? g-g : 0);
12021   /* HPUX 7.0 cc rejects these. */
12022   ++ccp;
12023   p = (char**) ccp;
12024   ccp = (char const *const *) p;
12025   { /* SCO 3.2v4 cc rejects this.  */
12026     char *t;
12027     char const *s = 0 ? (char *) 0 : (char const *) 0;
12028
12029     *t++ = 0;
12030   }
12031   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12032     int x[] = {25, 17};
12033     const int *foo = &x[0];
12034     ++foo;
12035   }
12036   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12037     typedef const int *iptr;
12038     iptr p = 0;
12039     ++p;
12040   }
12041   { /* AIX XL C 1.02.0.0 rejects this saying
12042        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12043     struct s { int j; const int *ap[3]; };
12044     struct s *b; b->j = 5;
12045   }
12046   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12047     const int foo = 10;
12048   }
12049 #endif
12050
12051   ;
12052   return 0;
12053 }
12054 _ACEOF
12055 rm -f conftest.$ac_objext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12057   (eval $ac_compile) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } &&
12061          { ac_try='test -s conftest.$ac_objext'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; }; then
12067   ac_cv_c_const=yes
12068 else
12069   echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12071
12072 ac_cv_c_const=no
12073 fi
12074 rm -f conftest.$ac_objext conftest.$ac_ext
12075 fi
12076 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12077 echo "${ECHO_T}$ac_cv_c_const" >&6
12078 if test $ac_cv_c_const = no; then
12079
12080 cat >>confdefs.h <<\_ACEOF
12081 #define const
12082 _ACEOF
12083
12084 fi
12085
12086
12087
12088 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12089 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12090 fstype=no
12091 # The order of these tests is important.
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099 #include <sys/statvfs.h>
12100 #include <sys/fstyp.h>
12101 _ACEOF
12102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } >/dev/null; then
12110   if test -s conftest.err; then
12111     ac_cpp_err=$ac_c_preproc_warn_flag
12112   else
12113     ac_cpp_err=
12114   fi
12115 else
12116   ac_cpp_err=yes
12117 fi
12118 if test -z "$ac_cpp_err"; then
12119   cat >>confdefs.h <<\_ACEOF
12120 #define FSTYPE_STATVFS 1
12121 _ACEOF
12122  fstype=SVR4
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127
12128 fi
12129 rm -f conftest.err conftest.$ac_ext
12130 if test $fstype = no; then
12131 cat >conftest.$ac_ext <<_ACEOF
12132 #line $LINENO "configure"
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 #include <sys/statfs.h>
12139 #include <sys/fstyp.h>
12140 _ACEOF
12141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } >/dev/null; then
12149   if test -s conftest.err; then
12150     ac_cpp_err=$ac_c_preproc_warn_flag
12151   else
12152     ac_cpp_err=
12153   fi
12154 else
12155   ac_cpp_err=yes
12156 fi
12157 if test -z "$ac_cpp_err"; then
12158   cat >>confdefs.h <<\_ACEOF
12159 #define FSTYPE_USG_STATFS 1
12160 _ACEOF
12161  fstype=SVR3
12162 else
12163   echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166
12167 fi
12168 rm -f conftest.err conftest.$ac_ext
12169 fi
12170 if test $fstype = no; then
12171 cat >conftest.$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 #include <sys/statfs.h>
12179 #include <sys/vmount.h>
12180 _ACEOF
12181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } >/dev/null; then
12189   if test -s conftest.err; then
12190     ac_cpp_err=$ac_c_preproc_warn_flag
12191   else
12192     ac_cpp_err=
12193   fi
12194 else
12195   ac_cpp_err=yes
12196 fi
12197 if test -z "$ac_cpp_err"; then
12198   cat >>confdefs.h <<\_ACEOF
12199 #define FSTYPE_AIX_STATFS 1
12200 _ACEOF
12201  fstype=AIX
12202 else
12203   echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206
12207 fi
12208 rm -f conftest.err conftest.$ac_ext
12209 fi
12210 if test $fstype = no; then
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 /* confdefs.h.  */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h.  */
12218 #include <mntent.h>
12219 _ACEOF
12220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } >/dev/null; then
12228   if test -s conftest.err; then
12229     ac_cpp_err=$ac_c_preproc_warn_flag
12230   else
12231     ac_cpp_err=
12232   fi
12233 else
12234   ac_cpp_err=yes
12235 fi
12236 if test -z "$ac_cpp_err"; then
12237   cat >>confdefs.h <<\_ACEOF
12238 #define FSTYPE_MNTENT 1
12239 _ACEOF
12240  fstype=4.3BSD
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245
12246 fi
12247 rm -f conftest.err conftest.$ac_ext
12248 fi
12249 if test $fstype = no; then
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257 #include <sys/mount.h>
12258
12259 _ACEOF
12260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12261   $EGREP "f_type;" >/dev/null 2>&1; then
12262   cat >>confdefs.h <<\_ACEOF
12263 #define FSTYPE_STATFS 1
12264 _ACEOF
12265  fstype=4.4BSD/OSF1
12266 fi
12267 rm -f conftest*
12268
12269 fi
12270 if test $fstype = no; then
12271 cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278 #include <sys/mount.h>
12279 #include <sys/fs_types.h>
12280 _ACEOF
12281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } >/dev/null; then
12289   if test -s conftest.err; then
12290     ac_cpp_err=$ac_c_preproc_warn_flag
12291   else
12292     ac_cpp_err=
12293   fi
12294 else
12295   ac_cpp_err=yes
12296 fi
12297 if test -z "$ac_cpp_err"; then
12298   cat >>confdefs.h <<\_ACEOF
12299 #define FSTYPE_GETMNT 1
12300 _ACEOF
12301  fstype=Ultrix
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306
12307 fi
12308 rm -f conftest.err conftest.$ac_ext
12309 fi
12310 echo "$as_me:$LINENO: result: $fstype" >&5
12311 echo "${ECHO_T}$fstype" >&6
12312
12313 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12314 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12315 if test "${ac_cv_type_signal+set}" = set; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   cat >conftest.$ac_ext <<_ACEOF
12319 #line $LINENO "configure"
12320 /* confdefs.h.  */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h.  */
12325 #include <sys/types.h>
12326 #include <signal.h>
12327 #ifdef signal
12328 # undef signal
12329 #endif
12330 #ifdef __cplusplus
12331 extern "C" void (*signal (int, void (*)(int)))(int);
12332 #else
12333 void (*signal ()) ();
12334 #endif
12335
12336 int
12337 main ()
12338 {
12339 int i;
12340   ;
12341   return 0;
12342 }
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346   (eval $ac_compile) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -s conftest.$ac_objext'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; }; then
12356   ac_cv_type_signal=void
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361 ac_cv_type_signal=int
12362 fi
12363 rm -f conftest.$ac_objext conftest.$ac_ext
12364 fi
12365 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12366 echo "${ECHO_T}$ac_cv_type_signal" >&6
12367
12368 cat >>confdefs.h <<_ACEOF
12369 #define RETSIGTYPE $ac_cv_type_signal
12370 _ACEOF
12371
12372
12373
12374 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12375 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12376 if test "${bash_cv_signal_vintage+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379
12380   cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 /* confdefs.h.  */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h.  */
12387 #include <signal.h>
12388 int
12389 main ()
12390 {
12391
12392     sigset_t ss;
12393     struct sigaction sa;
12394     sigemptyset(&ss); sigsuspend(&ss);
12395     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12396     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404   (eval $ac_link) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); } &&
12408          { ac_try='test -s conftest$ac_exeext'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414   bash_cv_signal_vintage=posix
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419
12420     cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 #include <signal.h>
12428 int
12429 main ()
12430 {
12431
12432         int mask = sigmask(SIGINT);
12433         sigsetmask(mask); sigblock(mask); sigpause(mask);
12434
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441   (eval $ac_link) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } &&
12445          { ac_try='test -s conftest$ac_exeext'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   bash_cv_signal_vintage=4.2bsd
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456
12457       cat >conftest.$ac_ext <<_ACEOF
12458 #line $LINENO "configure"
12459 /* confdefs.h.  */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h.  */
12464
12465         #include <signal.h>
12466         RETSIGTYPE foo() { }
12467 int
12468 main ()
12469 {
12470
12471                 int mask = sigmask(SIGINT);
12472                 sigset(SIGINT, foo); sigrelse(SIGINT);
12473                 sighold(SIGINT); sigpause(SIGINT);
12474
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481   (eval $ac_link) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); } &&
12485          { ac_try='test -s conftest$ac_exeext'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   bash_cv_signal_vintage=svr3
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 bash_cv_signal_vintage=v7
12497
12498 fi
12499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12500
12501 fi
12502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12503
12504 fi
12505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12506
12507 fi
12508
12509 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12510 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12511 if test "$bash_cv_signal_vintage" = posix; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_POSIX_SIGNALS 1
12514 _ACEOF
12515
12516 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12517 cat >>confdefs.h <<\_ACEOF
12518 #define HAVE_BSD_SIGNALS 1
12519 _ACEOF
12520
12521 elif test "$bash_cv_signal_vintage" = svr3; then
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_USG_SIGHOLD 1
12524 _ACEOF
12525
12526 fi
12527
12528 echo "$as_me:$LINENO: checking for mode_t" >&5
12529 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12530 if test "${ac_cv_type_mode_t+set}" = set; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533   cat >conftest.$ac_ext <<_ACEOF
12534 #line $LINENO "configure"
12535 /* confdefs.h.  */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h.  */
12540 $ac_includes_default
12541 int
12542 main ()
12543 {
12544 if ((mode_t *) 0)
12545   return 0;
12546 if (sizeof (mode_t))
12547   return 0;
12548   ;
12549   return 0;
12550 }
12551 _ACEOF
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554   (eval $ac_compile) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -s conftest.$ac_objext'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; }; then
12564   ac_cv_type_mode_t=yes
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 ac_cv_type_mode_t=no
12570 fi
12571 rm -f conftest.$ac_objext conftest.$ac_ext
12572 fi
12573 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12574 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12575 if test $ac_cv_type_mode_t = yes; then
12576   :
12577 else
12578
12579 cat >>confdefs.h <<_ACEOF
12580 #define mode_t int
12581 _ACEOF
12582
12583 fi
12584
12585 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12586 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12587 if test "${ac_cv_type_uid_t+set}" = set; then
12588   echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590   cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597 #include <sys/types.h>
12598
12599 _ACEOF
12600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12601   $EGREP "uid_t" >/dev/null 2>&1; then
12602   ac_cv_type_uid_t=yes
12603 else
12604   ac_cv_type_uid_t=no
12605 fi
12606 rm -f conftest*
12607
12608 fi
12609 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12610 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12611 if test $ac_cv_type_uid_t = no; then
12612
12613 cat >>confdefs.h <<\_ACEOF
12614 #define uid_t int
12615 _ACEOF
12616
12617
12618 cat >>confdefs.h <<\_ACEOF
12619 #define gid_t int
12620 _ACEOF
12621
12622 fi
12623
12624 echo "$as_me:$LINENO: checking for size_t" >&5
12625 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12626 if test "${ac_cv_type_size_t+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629   cat >conftest.$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12631 /* confdefs.h.  */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h.  */
12636 $ac_includes_default
12637 int
12638 main ()
12639 {
12640 if ((size_t *) 0)
12641   return 0;
12642 if (sizeof (size_t))
12643   return 0;
12644   ;
12645   return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest.$ac_objext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12650   (eval $ac_compile) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); } &&
12654          { ac_try='test -s conftest.$ac_objext'
12655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656   (eval $ac_try) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; }; then
12660   ac_cv_type_size_t=yes
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 ac_cv_type_size_t=no
12666 fi
12667 rm -f conftest.$ac_objext conftest.$ac_ext
12668 fi
12669 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12670 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12671 if test $ac_cv_type_size_t = yes; then
12672   :
12673 else
12674
12675 cat >>confdefs.h <<_ACEOF
12676 #define size_t unsigned
12677 _ACEOF
12678
12679 fi
12680
12681 echo "$as_me:$LINENO: checking for pid_t" >&5
12682 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12683 if test "${ac_cv_type_pid_t+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686   cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 $ac_includes_default
12694 int
12695 main ()
12696 {
12697 if ((pid_t *) 0)
12698   return 0;
12699 if (sizeof (pid_t))
12700   return 0;
12701   ;
12702   return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707   (eval $ac_compile) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } &&
12711          { ac_try='test -s conftest.$ac_objext'
12712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713   (eval $ac_try) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; }; then
12717   ac_cv_type_pid_t=yes
12718 else
12719   echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12721
12722 ac_cv_type_pid_t=no
12723 fi
12724 rm -f conftest.$ac_objext conftest.$ac_ext
12725 fi
12726 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12727 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12728 if test $ac_cv_type_pid_t = yes; then
12729   :
12730 else
12731
12732 cat >>confdefs.h <<_ACEOF
12733 #define pid_t int
12734 _ACEOF
12735
12736 fi
12737
12738 echo "$as_me:$LINENO: checking for off_t" >&5
12739 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12740 if test "${ac_cv_type_off_t+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743   cat >conftest.$ac_ext <<_ACEOF
12744 #line $LINENO "configure"
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 $ac_includes_default
12751 int
12752 main ()
12753 {
12754 if ((off_t *) 0)
12755   return 0;
12756 if (sizeof (off_t))
12757   return 0;
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764   (eval $ac_compile) 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } &&
12768          { ac_try='test -s conftest.$ac_objext'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; }; then
12774   ac_cv_type_off_t=yes
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12778
12779 ac_cv_type_off_t=no
12780 fi
12781 rm -f conftest.$ac_objext conftest.$ac_ext
12782 fi
12783 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12784 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12785 if test $ac_cv_type_off_t = yes; then
12786   :
12787 else
12788
12789 cat >>confdefs.h <<_ACEOF
12790 #define off_t long
12791 _ACEOF
12792
12793 fi
12794
12795 echo "$as_me:$LINENO: checking for ino_t" >&5
12796 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12797 if test "${ac_cv_type_ino_t+set}" = set; then
12798   echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800   cat >conftest.$ac_ext <<_ACEOF
12801 #line $LINENO "configure"
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807 $ac_includes_default
12808 int
12809 main ()
12810 {
12811 if ((ino_t *) 0)
12812   return 0;
12813 if (sizeof (ino_t))
12814   return 0;
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821   (eval $ac_compile) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -s conftest.$ac_objext'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }; then
12831   ac_cv_type_ino_t=yes
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 ac_cv_type_ino_t=no
12837 fi
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12839 fi
12840 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12841 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12842 if test $ac_cv_type_ino_t = yes; then
12843   :
12844 else
12845
12846 cat >>confdefs.h <<_ACEOF
12847 #define ino_t unsigned long
12848 _ACEOF
12849
12850 fi
12851
12852 echo "$as_me:$LINENO: checking for dev_t" >&5
12853 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12854 if test "${ac_cv_type_dev_t+set}" = set; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857   cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 /* confdefs.h.  */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h.  */
12864 $ac_includes_default
12865 int
12866 main ()
12867 {
12868 if ((dev_t *) 0)
12869   return 0;
12870 if (sizeof (dev_t))
12871   return 0;
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878   (eval $ac_compile) 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); } &&
12882          { ac_try='test -s conftest.$ac_objext'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; }; then
12888   ac_cv_type_dev_t=yes
12889 else
12890   echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12892
12893 ac_cv_type_dev_t=no
12894 fi
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12896 fi
12897 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12898 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12899 if test $ac_cv_type_dev_t = yes; then
12900   :
12901 else
12902
12903 cat >>confdefs.h <<_ACEOF
12904 #define dev_t unsigned long
12905 _ACEOF
12906
12907 fi
12908
12909 echo "$as_me:$LINENO: checking for daddr_t" >&5
12910 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12911 if test "${ac_cv_type_daddr_t+set}" = set; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   cat >conftest.$ac_ext <<_ACEOF
12915 #line $LINENO "configure"
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 $ac_includes_default
12922 int
12923 main ()
12924 {
12925 if ((daddr_t *) 0)
12926   return 0;
12927 if (sizeof (daddr_t))
12928   return 0;
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest.$ac_objext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12935   (eval $ac_compile) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -s conftest.$ac_objext'
12940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941   (eval $ac_try) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; }; then
12945   ac_cv_type_daddr_t=yes
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950 ac_cv_type_daddr_t=no
12951 fi
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12953 fi
12954 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12955 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12956 if test $ac_cv_type_daddr_t = yes; then
12957   :
12958 else
12959
12960 cat >>confdefs.h <<_ACEOF
12961 #define daddr_t long
12962 _ACEOF
12963
12964 fi
12965
12966 echo "$as_me:$LINENO: checking for major_t" >&5
12967 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12968 if test "${ac_cv_type_major_t+set}" = set; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971   cat >conftest.$ac_ext <<_ACEOF
12972 #line $LINENO "configure"
12973 /* confdefs.h.  */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h.  */
12978 $ac_includes_default
12979 int
12980 main ()
12981 {
12982 if ((major_t *) 0)
12983   return 0;
12984 if (sizeof (major_t))
12985   return 0;
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 rm -f conftest.$ac_objext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992   (eval $ac_compile) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } &&
12996          { ac_try='test -s conftest.$ac_objext'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; }; then
13002   ac_cv_type_major_t=yes
13003 else
13004   echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 ac_cv_type_major_t=no
13008 fi
13009 rm -f conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13012 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13013 if test $ac_cv_type_major_t = yes; then
13014   :
13015 else
13016
13017 cat >>confdefs.h <<_ACEOF
13018 #define major_t int
13019 _ACEOF
13020
13021 fi
13022
13023 echo "$as_me:$LINENO: checking for minor_t" >&5
13024 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13025 if test "${ac_cv_type_minor_t+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   cat >conftest.$ac_ext <<_ACEOF
13029 #line $LINENO "configure"
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035 $ac_includes_default
13036 int
13037 main ()
13038 {
13039 if ((minor_t *) 0)
13040   return 0;
13041 if (sizeof (minor_t))
13042   return 0;
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049   (eval $ac_compile) 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } &&
13053          { ac_try='test -s conftest.$ac_objext'
13054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055   (eval $ac_try) 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; }; then
13059   ac_cv_type_minor_t=yes
13060 else
13061   echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 ac_cv_type_minor_t=no
13065 fi
13066 rm -f conftest.$ac_objext conftest.$ac_ext
13067 fi
13068 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13069 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13070 if test $ac_cv_type_minor_t = yes; then
13071   :
13072 else
13073
13074 cat >>confdefs.h <<_ACEOF
13075 #define minor_t int
13076 _ACEOF
13077
13078 fi
13079
13080 echo "$as_me:$LINENO: checking for ssize_t" >&5
13081 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13082 if test "${ac_cv_type_ssize_t+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   cat >conftest.$ac_ext <<_ACEOF
13086 #line $LINENO "configure"
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092 $ac_includes_default
13093 int
13094 main ()
13095 {
13096 if ((ssize_t *) 0)
13097   return 0;
13098 if (sizeof (ssize_t))
13099   return 0;
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 rm -f conftest.$ac_objext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106   (eval $ac_compile) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); } &&
13110          { ac_try='test -s conftest.$ac_objext'
13111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112   (eval $ac_try) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; }; then
13116   ac_cv_type_ssize_t=yes
13117 else
13118   echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_cv_type_ssize_t=no
13122 fi
13123 rm -f conftest.$ac_objext conftest.$ac_ext
13124 fi
13125 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13126 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13127 if test $ac_cv_type_ssize_t = yes; then
13128   :
13129 else
13130
13131 cat >>confdefs.h <<_ACEOF
13132 #define ssize_t int
13133 _ACEOF
13134
13135 fi
13136
13137 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13138 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13139 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   cat >conftest.$ac_ext <<_ACEOF
13143 #line $LINENO "configure"
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149 $ac_includes_default
13150 int
13151 main ()
13152 {
13153 static struct stat ac_aggr;
13154 if (ac_aggr.st_blocks)
13155 return 0;
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -s conftest.$ac_objext'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_cv_member_struct_stat_st_blocks=yes
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177 cat >conftest.$ac_ext <<_ACEOF
13178 #line $LINENO "configure"
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184 $ac_includes_default
13185 int
13186 main ()
13187 {
13188 static struct stat ac_aggr;
13189 if (sizeof ac_aggr.st_blocks)
13190 return 0;
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197   (eval $ac_compile) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); } &&
13201          { ac_try='test -s conftest.$ac_objext'
13202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203   (eval $ac_try) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; }; then
13207   ac_cv_member_struct_stat_st_blocks=yes
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212 ac_cv_member_struct_stat_st_blocks=no
13213 fi
13214 rm -f conftest.$ac_objext conftest.$ac_ext
13215 fi
13216 rm -f conftest.$ac_objext conftest.$ac_ext
13217 fi
13218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13219 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13220 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13221
13222 cat >>confdefs.h <<_ACEOF
13223 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13224 _ACEOF
13225
13226
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_ST_BLOCKS 1
13229 _ACEOF
13230
13231 else
13232   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
13233 fi
13234
13235
13236
13237 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13238 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13239 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242   cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13244 /* confdefs.h.  */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h.  */
13249 $ac_includes_default
13250 int
13251 main ()
13252 {
13253 static struct stat ac_aggr;
13254 if (ac_aggr.st_rdev)
13255 return 0;
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262   (eval $ac_compile) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } &&
13266          { ac_try='test -s conftest.$ac_objext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_cv_member_struct_stat_st_rdev=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 cat >conftest.$ac_ext <<_ACEOF
13278 #line $LINENO "configure"
13279 /* confdefs.h.  */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h.  */
13284 $ac_includes_default
13285 int
13286 main ()
13287 {
13288 static struct stat ac_aggr;
13289 if (sizeof ac_aggr.st_rdev)
13290 return 0;
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297   (eval $ac_compile) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } &&
13301          { ac_try='test -s conftest.$ac_objext'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_cv_member_struct_stat_st_rdev=yes
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_cv_member_struct_stat_st_rdev=no
13313 fi
13314 rm -f conftest.$ac_objext conftest.$ac_ext
13315 fi
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13317 fi
13318 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13320 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13321
13322 cat >>confdefs.h <<_ACEOF
13323 #define HAVE_STRUCT_STAT_ST_RDEV 1
13324 _ACEOF
13325
13326
13327 cat >>confdefs.h <<\_ACEOF
13328 #define HAVE_ST_RDEV 1
13329 _ACEOF
13330
13331 fi
13332
13333
13334 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13335 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13336 if test "${ac_cv_struct_tm+set}" = set; then
13337   echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339   cat >conftest.$ac_ext <<_ACEOF
13340 #line $LINENO "configure"
13341 /* confdefs.h.  */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h.  */
13346 #include <sys/types.h>
13347 #include <time.h>
13348
13349 int
13350 main ()
13351 {
13352 struct tm *tp; tp->tm_sec;
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13359   (eval $ac_compile) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); } &&
13363          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13369   ac_cv_struct_tm=time.h
13370 else
13371   echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13373
13374 ac_cv_struct_tm=sys/time.h
13375 fi
13376 rm -f conftest.$ac_objext conftest.$ac_ext
13377 fi
13378 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13379 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13380 if test $ac_cv_struct_tm = sys/time.h; then
13381
13382 cat >>confdefs.h <<\_ACEOF
13383 #define TM_IN_SYS_TIME 1
13384 _ACEOF
13385
13386 fi
13387
13388 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13389 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13390 if test "${ac_cv_c_const+set}" = set; then
13391   echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393   cat >conftest.$ac_ext <<_ACEOF
13394 #line $LINENO "configure"
13395 /* confdefs.h.  */
13396 _ACEOF
13397 cat confdefs.h >>conftest.$ac_ext
13398 cat >>conftest.$ac_ext <<_ACEOF
13399 /* end confdefs.h.  */
13400
13401 int
13402 main ()
13403 {
13404 /* FIXME: Include the comments suggested by Paul. */
13405 #ifndef __cplusplus
13406   /* Ultrix mips cc rejects this.  */
13407   typedef int charset[2];
13408   const charset x;
13409   /* SunOS 4.1.1 cc rejects this.  */
13410   char const *const *ccp;
13411   char **p;
13412   /* NEC SVR4.0.2 mips cc rejects this.  */
13413   struct point {int x, y;};
13414   static struct point const zero = {0,0};
13415   /* AIX XL C 1.02.0.0 rejects this.
13416      It does not let you subtract one const X* pointer from another in
13417      an arm of an if-expression whose if-part is not a constant
13418      expression */
13419   const char *g = "string";
13420   ccp = &g + (g ? g-g : 0);
13421   /* HPUX 7.0 cc rejects these. */
13422   ++ccp;
13423   p = (char**) ccp;
13424   ccp = (char const *const *) p;
13425   { /* SCO 3.2v4 cc rejects this.  */
13426     char *t;
13427     char const *s = 0 ? (char *) 0 : (char const *) 0;
13428
13429     *t++ = 0;
13430   }
13431   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13432     int x[] = {25, 17};
13433     const int *foo = &x[0];
13434     ++foo;
13435   }
13436   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13437     typedef const int *iptr;
13438     iptr p = 0;
13439     ++p;
13440   }
13441   { /* AIX XL C 1.02.0.0 rejects this saying
13442        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13443     struct s { int j; const int *ap[3]; };
13444     struct s *b; b->j = 5;
13445   }
13446   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13447     const int foo = 10;
13448   }
13449 #endif
13450
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457   (eval $ac_compile) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } &&
13461          { ac_try='test -s conftest.$ac_objext'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467   ac_cv_c_const=yes
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_cv_c_const=no
13473 fi
13474 rm -f conftest.$ac_objext conftest.$ac_ext
13475 fi
13476 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13477 echo "${ECHO_T}$ac_cv_c_const" >&6
13478 if test $ac_cv_c_const = no; then
13479
13480 cat >>confdefs.h <<\_ACEOF
13481 #define const
13482 _ACEOF
13483
13484 fi
13485
13486
13487
13488 echo "$as_me:$LINENO: checking for char" >&5
13489 echo $ECHO_N "checking for char... $ECHO_C" >&6
13490 if test "${ac_cv_type_char+set}" = set; then
13491   echo $ECHO_N "(cached) $ECHO_C" >&6
13492 else
13493   cat >conftest.$ac_ext <<_ACEOF
13494 #line $LINENO "configure"
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500 $ac_includes_default
13501 int
13502 main ()
13503 {
13504 if ((char *) 0)
13505   return 0;
13506 if (sizeof (char))
13507   return 0;
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514   (eval $ac_compile) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -s conftest.$ac_objext'
13519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520   (eval $ac_try) 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; }; then
13524   ac_cv_type_char=yes
13525 else
13526   echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_type_char=no
13530 fi
13531 rm -f conftest.$ac_objext conftest.$ac_ext
13532 fi
13533 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13534 echo "${ECHO_T}$ac_cv_type_char" >&6
13535
13536 echo "$as_me:$LINENO: checking size of char" >&5
13537 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13538 if test "${ac_cv_sizeof_char+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   if test "$ac_cv_type_char" = yes; then
13542   # The cast to unsigned long works around a bug in the HP C Compiler
13543   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13544   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13545   # This bug is HP SR number 8606223364.
13546   if test "$cross_compiling" = yes; then
13547   # Depending upon the size, compute the lo and hi bounds.
13548 cat >conftest.$ac_ext <<_ACEOF
13549 #line $LINENO "configure"
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 $ac_includes_default
13556 int
13557 main ()
13558 {
13559 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13560 test_array [0] = 0
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568   (eval $ac_compile) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -s conftest.$ac_objext'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; }; then
13578   ac_lo=0 ac_mid=0
13579   while :; do
13580     cat >conftest.$ac_ext <<_ACEOF
13581 #line $LINENO "configure"
13582 /* confdefs.h.  */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h.  */
13587 $ac_includes_default
13588 int
13589 main ()
13590 {
13591 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13592 test_array [0] = 0
13593
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 rm -f conftest.$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600   (eval $ac_compile) 2>&5
13601   ac_status=$?
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } &&
13604          { ac_try='test -s conftest.$ac_objext'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; }; then
13610   ac_hi=$ac_mid; break
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 ac_lo=`expr $ac_mid + 1`
13616                     if test $ac_lo -le $ac_mid; then
13617                       ac_lo= ac_hi=
13618                       break
13619                     fi
13620                     ac_mid=`expr 2 '*' $ac_mid + 1`
13621 fi
13622 rm -f conftest.$ac_objext conftest.$ac_ext
13623   done
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 cat >conftest.$ac_ext <<_ACEOF
13629 #line $LINENO "configure"
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635 $ac_includes_default
13636 int
13637 main ()
13638 {
13639 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13640 test_array [0] = 0
13641
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648   (eval $ac_compile) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -s conftest.$ac_objext'
13653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654   (eval $ac_try) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); }; }; then
13658   ac_hi=-1 ac_mid=-1
13659   while :; do
13660     cat >conftest.$ac_ext <<_ACEOF
13661 #line $LINENO "configure"
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667 $ac_includes_default
13668 int
13669 main ()
13670 {
13671 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13672 test_array [0] = 0
13673
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13680   (eval $ac_compile) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); } &&
13684          { ac_try='test -s conftest.$ac_objext'
13685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686   (eval $ac_try) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; }; then
13690   ac_lo=$ac_mid; break
13691 else
13692   echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695 ac_hi=`expr '(' $ac_mid ')' - 1`
13696                        if test $ac_mid -le $ac_hi; then
13697                          ac_lo= ac_hi=
13698                          break
13699                        fi
13700                        ac_mid=`expr 2 '*' $ac_mid`
13701 fi
13702 rm -f conftest.$ac_objext conftest.$ac_ext
13703   done
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_lo= ac_hi=
13709 fi
13710 rm -f conftest.$ac_objext conftest.$ac_ext
13711 fi
13712 rm -f conftest.$ac_objext conftest.$ac_ext
13713 # Binary search between lo and hi bounds.
13714 while test "x$ac_lo" != "x$ac_hi"; do
13715   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13716   cat >conftest.$ac_ext <<_ACEOF
13717 #line $LINENO "configure"
13718 /* confdefs.h.  */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h.  */
13723 $ac_includes_default
13724 int
13725 main ()
13726 {
13727 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13728 test_array [0] = 0
13729
13730   ;
13731   return 0;
13732 }
13733 _ACEOF
13734 rm -f conftest.$ac_objext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736   (eval $ac_compile) 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); } &&
13740          { ac_try='test -s conftest.$ac_objext'
13741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742   (eval $ac_try) 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; }; then
13746   ac_hi=$ac_mid
13747 else
13748   echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ac_lo=`expr '(' $ac_mid ')' + 1`
13752 fi
13753 rm -f conftest.$ac_objext conftest.$ac_ext
13754 done
13755 case $ac_lo in
13756 ?*) ac_cv_sizeof_char=$ac_lo;;
13757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13758 See \`config.log' for more details." >&5
13759 echo "$as_me: error: cannot compute sizeof (char), 77
13760 See \`config.log' for more details." >&2;}
13761    { (exit 1); exit 1; }; } ;;
13762 esac
13763 else
13764   if test "$cross_compiling" = yes; then
13765   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13766 See \`config.log' for more details." >&5
13767 echo "$as_me: error: cannot run test program while cross compiling
13768 See \`config.log' for more details." >&2;}
13769    { (exit 1); exit 1; }; }
13770 else
13771   cat >conftest.$ac_ext <<_ACEOF
13772 #line $LINENO "configure"
13773 /* confdefs.h.  */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h.  */
13778 $ac_includes_default
13779 long longval () { return (long) (sizeof (char)); }
13780 unsigned long ulongval () { return (long) (sizeof (char)); }
13781 #include <stdio.h>
13782 #include <stdlib.h>
13783 int
13784 main ()
13785 {
13786
13787   FILE *f = fopen ("conftest.val", "w");
13788   if (! f)
13789     exit (1);
13790   if (((long) (sizeof (char))) < 0)
13791     {
13792       long i = longval ();
13793       if (i != ((long) (sizeof (char))))
13794         exit (1);
13795       fprintf (f, "%ld\n", i);
13796     }
13797   else
13798     {
13799       unsigned long i = ulongval ();
13800       if (i != ((long) (sizeof (char))))
13801         exit (1);
13802       fprintf (f, "%lu\n", i);
13803     }
13804   exit (ferror (f) || fclose (f) != 0);
13805
13806   ;
13807   return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest$ac_exeext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812   (eval $ac_link) 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   ac_cv_sizeof_char=`cat conftest.val`
13822 else
13823   echo "$as_me: program exited with status $ac_status" >&5
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 ( exit $ac_status )
13828 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13829 See \`config.log' for more details." >&5
13830 echo "$as_me: error: cannot compute sizeof (char), 77
13831 See \`config.log' for more details." >&2;}
13832    { (exit 1); exit 1; }; }
13833 fi
13834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 fi
13837 rm -f conftest.val
13838 else
13839   ac_cv_sizeof_char=0
13840 fi
13841 fi
13842 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13843 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13844 cat >>confdefs.h <<_ACEOF
13845 #define SIZEOF_CHAR $ac_cv_sizeof_char
13846 _ACEOF
13847
13848
13849 echo "$as_me:$LINENO: checking for short int" >&5
13850 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13851 if test "${ac_cv_type_short_int+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   cat >conftest.$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861 $ac_includes_default
13862 int
13863 main ()
13864 {
13865 if ((short int *) 0)
13866   return 0;
13867 if (sizeof (short int))
13868   return 0;
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875   (eval $ac_compile) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } &&
13879          { ac_try='test -s conftest.$ac_objext'
13880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881   (eval $ac_try) 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885   ac_cv_type_short_int=yes
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ac_cv_type_short_int=no
13891 fi
13892 rm -f conftest.$ac_objext conftest.$ac_ext
13893 fi
13894 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13895 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13896
13897 echo "$as_me:$LINENO: checking size of short int" >&5
13898 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13899 if test "${ac_cv_sizeof_short_int+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   if test "$ac_cv_type_short_int" = yes; then
13903   # The cast to unsigned long works around a bug in the HP C Compiler
13904   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13905   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13906   # This bug is HP SR number 8606223364.
13907   if test "$cross_compiling" = yes; then
13908   # Depending upon the size, compute the lo and hi bounds.
13909 cat >conftest.$ac_ext <<_ACEOF
13910 #line $LINENO "configure"
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916 $ac_includes_default
13917 int
13918 main ()
13919 {
13920 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13921 test_array [0] = 0
13922
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929   (eval $ac_compile) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } &&
13933          { ac_try='test -s conftest.$ac_objext'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; }; then
13939   ac_lo=0 ac_mid=0
13940   while :; do
13941     cat >conftest.$ac_ext <<_ACEOF
13942 #line $LINENO "configure"
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 $ac_includes_default
13949 int
13950 main ()
13951 {
13952 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13953 test_array [0] = 0
13954
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961   (eval $ac_compile) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -s conftest.$ac_objext'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   ac_hi=$ac_mid; break
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ac_lo=`expr $ac_mid + 1`
13977                     if test $ac_lo -le $ac_mid; then
13978                       ac_lo= ac_hi=
13979                       break
13980                     fi
13981                     ac_mid=`expr 2 '*' $ac_mid + 1`
13982 fi
13983 rm -f conftest.$ac_objext conftest.$ac_ext
13984   done
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 cat >conftest.$ac_ext <<_ACEOF
13990 #line $LINENO "configure"
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996 $ac_includes_default
13997 int
13998 main ()
13999 {
14000 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14001 test_array [0] = 0
14002
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009   (eval $ac_compile) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } &&
14013          { ac_try='test -s conftest.$ac_objext'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; }; then
14019   ac_hi=-1 ac_mid=-1
14020   while :; do
14021     cat >conftest.$ac_ext <<_ACEOF
14022 #line $LINENO "configure"
14023 /* confdefs.h.  */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h.  */
14028 $ac_includes_default
14029 int
14030 main ()
14031 {
14032 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14033 test_array [0] = 0
14034
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041   (eval $ac_compile) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); } &&
14045          { ac_try='test -s conftest.$ac_objext'
14046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047   (eval $ac_try) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; }; then
14051   ac_lo=$ac_mid; break
14052 else
14053   echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 ac_hi=`expr '(' $ac_mid ')' - 1`
14057                        if test $ac_mid -le $ac_hi; then
14058                          ac_lo= ac_hi=
14059                          break
14060                        fi
14061                        ac_mid=`expr 2 '*' $ac_mid`
14062 fi
14063 rm -f conftest.$ac_objext conftest.$ac_ext
14064   done
14065 else
14066   echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_lo= ac_hi=
14070 fi
14071 rm -f conftest.$ac_objext conftest.$ac_ext
14072 fi
14073 rm -f conftest.$ac_objext conftest.$ac_ext
14074 # Binary search between lo and hi bounds.
14075 while test "x$ac_lo" != "x$ac_hi"; do
14076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14077   cat >conftest.$ac_ext <<_ACEOF
14078 #line $LINENO "configure"
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084 $ac_includes_default
14085 int
14086 main ()
14087 {
14088 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14089 test_array [0] = 0
14090
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097   (eval $ac_compile) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -s conftest.$ac_objext'
14102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103   (eval $ac_try) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; }; then
14107   ac_hi=$ac_mid
14108 else
14109   echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ac_lo=`expr '(' $ac_mid ')' + 1`
14113 fi
14114 rm -f conftest.$ac_objext conftest.$ac_ext
14115 done
14116 case $ac_lo in
14117 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14119 See \`config.log' for more details." >&5
14120 echo "$as_me: error: cannot compute sizeof (short int), 77
14121 See \`config.log' for more details." >&2;}
14122    { (exit 1); exit 1; }; } ;;
14123 esac
14124 else
14125   if test "$cross_compiling" = yes; then
14126   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14127 See \`config.log' for more details." >&5
14128 echo "$as_me: error: cannot run test program while cross compiling
14129 See \`config.log' for more details." >&2;}
14130    { (exit 1); exit 1; }; }
14131 else
14132   cat >conftest.$ac_ext <<_ACEOF
14133 #line $LINENO "configure"
14134 /* confdefs.h.  */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h.  */
14139 $ac_includes_default
14140 long longval () { return (long) (sizeof (short int)); }
14141 unsigned long ulongval () { return (long) (sizeof (short int)); }
14142 #include <stdio.h>
14143 #include <stdlib.h>
14144 int
14145 main ()
14146 {
14147
14148   FILE *f = fopen ("conftest.val", "w");
14149   if (! f)
14150     exit (1);
14151   if (((long) (sizeof (short int))) < 0)
14152     {
14153       long i = longval ();
14154       if (i != ((long) (sizeof (short int))))
14155         exit (1);
14156       fprintf (f, "%ld\n", i);
14157     }
14158   else
14159     {
14160       unsigned long i = ulongval ();
14161       if (i != ((long) (sizeof (short int))))
14162         exit (1);
14163       fprintf (f, "%lu\n", i);
14164     }
14165   exit (ferror (f) || fclose (f) != 0);
14166
14167   ;
14168   return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173   (eval $ac_link) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178   (eval $ac_try) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; }; then
14182   ac_cv_sizeof_short_int=`cat conftest.val`
14183 else
14184   echo "$as_me: program exited with status $ac_status" >&5
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ( exit $ac_status )
14189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14190 See \`config.log' for more details." >&5
14191 echo "$as_me: error: cannot compute sizeof (short int), 77
14192 See \`config.log' for more details." >&2;}
14193    { (exit 1); exit 1; }; }
14194 fi
14195 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14196 fi
14197 fi
14198 rm -f conftest.val
14199 else
14200   ac_cv_sizeof_short_int=0
14201 fi
14202 fi
14203 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14204 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14205 cat >>confdefs.h <<_ACEOF
14206 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14207 _ACEOF
14208
14209
14210 echo "$as_me:$LINENO: checking for int" >&5
14211 echo $ECHO_N "checking for int... $ECHO_C" >&6
14212 if test "${ac_cv_type_int+set}" = set; then
14213   echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215   cat >conftest.$ac_ext <<_ACEOF
14216 #line $LINENO "configure"
14217 /* confdefs.h.  */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h.  */
14222 $ac_includes_default
14223 int
14224 main ()
14225 {
14226 if ((int *) 0)
14227   return 0;
14228 if (sizeof (int))
14229   return 0;
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 rm -f conftest.$ac_objext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14236   (eval $ac_compile) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); } &&
14240          { ac_try='test -s conftest.$ac_objext'
14241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242   (eval $ac_try) 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; }; then
14246   ac_cv_type_int=yes
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 ac_cv_type_int=no
14252 fi
14253 rm -f conftest.$ac_objext conftest.$ac_ext
14254 fi
14255 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14256 echo "${ECHO_T}$ac_cv_type_int" >&6
14257
14258 echo "$as_me:$LINENO: checking size of int" >&5
14259 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14260 if test "${ac_cv_sizeof_int+set}" = set; then
14261   echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263   if test "$ac_cv_type_int" = yes; then
14264   # The cast to unsigned long works around a bug in the HP C Compiler
14265   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14266   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14267   # This bug is HP SR number 8606223364.
14268   if test "$cross_compiling" = yes; then
14269   # Depending upon the size, compute the lo and hi bounds.
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line $LINENO "configure"
14272 /* confdefs.h.  */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h.  */
14277 $ac_includes_default
14278 int
14279 main ()
14280 {
14281 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14282 test_array [0] = 0
14283
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290   (eval $ac_compile) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); } &&
14294          { ac_try='test -s conftest.$ac_objext'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300   ac_lo=0 ac_mid=0
14301   while :; do
14302     cat >conftest.$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14304 /* confdefs.h.  */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h.  */
14309 $ac_includes_default
14310 int
14311 main ()
14312 {
14313 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14314 test_array [0] = 0
14315
14316   ;
14317   return 0;
14318 }
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322   (eval $ac_compile) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } &&
14326          { ac_try='test -s conftest.$ac_objext'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; }; then
14332   ac_hi=$ac_mid; break
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_lo=`expr $ac_mid + 1`
14338                     if test $ac_lo -le $ac_mid; then
14339                       ac_lo= ac_hi=
14340                       break
14341                     fi
14342                     ac_mid=`expr 2 '*' $ac_mid + 1`
14343 fi
14344 rm -f conftest.$ac_objext conftest.$ac_ext
14345   done
14346 else
14347   echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14349
14350 cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357 $ac_includes_default
14358 int
14359 main ()
14360 {
14361 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14362 test_array [0] = 0
14363
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370   (eval $ac_compile) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } &&
14374          { ac_try='test -s conftest.$ac_objext'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; }; then
14380   ac_hi=-1 ac_mid=-1
14381   while :; do
14382     cat >conftest.$ac_ext <<_ACEOF
14383 #line $LINENO "configure"
14384 /* confdefs.h.  */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h.  */
14389 $ac_includes_default
14390 int
14391 main ()
14392 {
14393 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14394 test_array [0] = 0
14395
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402   (eval $ac_compile) 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); } &&
14406          { ac_try='test -s conftest.$ac_objext'
14407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408   (eval $ac_try) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }; }; then
14412   ac_lo=$ac_mid; break
14413 else
14414   echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417 ac_hi=`expr '(' $ac_mid ')' - 1`
14418                        if test $ac_mid -le $ac_hi; then
14419                          ac_lo= ac_hi=
14420                          break
14421                        fi
14422                        ac_mid=`expr 2 '*' $ac_mid`
14423 fi
14424 rm -f conftest.$ac_objext conftest.$ac_ext
14425   done
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 ac_lo= ac_hi=
14431 fi
14432 rm -f conftest.$ac_objext conftest.$ac_ext
14433 fi
14434 rm -f conftest.$ac_objext conftest.$ac_ext
14435 # Binary search between lo and hi bounds.
14436 while test "x$ac_lo" != "x$ac_hi"; do
14437   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14438   cat >conftest.$ac_ext <<_ACEOF
14439 #line $LINENO "configure"
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 $ac_includes_default
14446 int
14447 main ()
14448 {
14449 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14450 test_array [0] = 0
14451
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458   (eval $ac_compile) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -s conftest.$ac_objext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_hi=$ac_mid
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_lo=`expr '(' $ac_mid ')' + 1`
14474 fi
14475 rm -f conftest.$ac_objext conftest.$ac_ext
14476 done
14477 case $ac_lo in
14478 ?*) ac_cv_sizeof_int=$ac_lo;;
14479 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14480 See \`config.log' for more details." >&5
14481 echo "$as_me: error: cannot compute sizeof (int), 77
14482 See \`config.log' for more details." >&2;}
14483    { (exit 1); exit 1; }; } ;;
14484 esac
14485 else
14486   if test "$cross_compiling" = yes; then
14487   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14488 See \`config.log' for more details." >&5
14489 echo "$as_me: error: cannot run test program while cross compiling
14490 See \`config.log' for more details." >&2;}
14491    { (exit 1); exit 1; }; }
14492 else
14493   cat >conftest.$ac_ext <<_ACEOF
14494 #line $LINENO "configure"
14495 /* confdefs.h.  */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h.  */
14500 $ac_includes_default
14501 long longval () { return (long) (sizeof (int)); }
14502 unsigned long ulongval () { return (long) (sizeof (int)); }
14503 #include <stdio.h>
14504 #include <stdlib.h>
14505 int
14506 main ()
14507 {
14508
14509   FILE *f = fopen ("conftest.val", "w");
14510   if (! f)
14511     exit (1);
14512   if (((long) (sizeof (int))) < 0)
14513     {
14514       long i = longval ();
14515       if (i != ((long) (sizeof (int))))
14516         exit (1);
14517       fprintf (f, "%ld\n", i);
14518     }
14519   else
14520     {
14521       unsigned long i = ulongval ();
14522       if (i != ((long) (sizeof (int))))
14523         exit (1);
14524       fprintf (f, "%lu\n", i);
14525     }
14526   exit (ferror (f) || fclose (f) != 0);
14527
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534   (eval $ac_link) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539   (eval $ac_try) 2>&5
14540   ac_status=$?
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); }; }; then
14543   ac_cv_sizeof_int=`cat conftest.val`
14544 else
14545   echo "$as_me: program exited with status $ac_status" >&5
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ( exit $ac_status )
14550 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14551 See \`config.log' for more details." >&5
14552 echo "$as_me: error: cannot compute sizeof (int), 77
14553 See \`config.log' for more details." >&2;}
14554    { (exit 1); exit 1; }; }
14555 fi
14556 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14557 fi
14558 fi
14559 rm -f conftest.val
14560 else
14561   ac_cv_sizeof_int=0
14562 fi
14563 fi
14564 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14565 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14566 cat >>confdefs.h <<_ACEOF
14567 #define SIZEOF_INT $ac_cv_sizeof_int
14568 _ACEOF
14569
14570
14571 echo "$as_me:$LINENO: checking for long int" >&5
14572 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14573 if test "${ac_cv_type_long_int+set}" = set; then
14574   echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576   cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14578 /* confdefs.h.  */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h.  */
14583 $ac_includes_default
14584 int
14585 main ()
14586 {
14587 if ((long int *) 0)
14588   return 0;
14589 if (sizeof (long int))
14590   return 0;
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14597   (eval $ac_compile) 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); } &&
14601          { ac_try='test -s conftest.$ac_objext'
14602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603   (eval $ac_try) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; }; then
14607   ac_cv_type_long_int=yes
14608 else
14609   echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 ac_cv_type_long_int=no
14613 fi
14614 rm -f conftest.$ac_objext conftest.$ac_ext
14615 fi
14616 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14617 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14618
14619 echo "$as_me:$LINENO: checking size of long int" >&5
14620 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14621 if test "${ac_cv_sizeof_long_int+set}" = set; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   if test "$ac_cv_type_long_int" = yes; then
14625   # The cast to unsigned long works around a bug in the HP C Compiler
14626   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14627   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14628   # This bug is HP SR number 8606223364.
14629   if test "$cross_compiling" = yes; then
14630   # Depending upon the size, compute the lo and hi bounds.
14631 cat >conftest.$ac_ext <<_ACEOF
14632 #line $LINENO "configure"
14633 /* confdefs.h.  */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h.  */
14638 $ac_includes_default
14639 int
14640 main ()
14641 {
14642 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14643 test_array [0] = 0
14644
14645   ;
14646   return 0;
14647 }
14648 _ACEOF
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651   (eval $ac_compile) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); } &&
14655          { ac_try='test -s conftest.$ac_objext'
14656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657   (eval $ac_try) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; }; then
14661   ac_lo=0 ac_mid=0
14662   while :; do
14663     cat >conftest.$ac_ext <<_ACEOF
14664 #line $LINENO "configure"
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 $ac_includes_default
14671 int
14672 main ()
14673 {
14674 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14675 test_array [0] = 0
14676
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683   (eval $ac_compile) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); } &&
14687          { ac_try='test -s conftest.$ac_objext'
14688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689   (eval $ac_try) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693   ac_hi=$ac_mid; break
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_lo=`expr $ac_mid + 1`
14699                     if test $ac_lo -le $ac_mid; then
14700                       ac_lo= ac_hi=
14701                       break
14702                     fi
14703                     ac_mid=`expr 2 '*' $ac_mid + 1`
14704 fi
14705 rm -f conftest.$ac_objext conftest.$ac_ext
14706   done
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 cat >conftest.$ac_ext <<_ACEOF
14712 #line $LINENO "configure"
14713 /* confdefs.h.  */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h.  */
14718 $ac_includes_default
14719 int
14720 main ()
14721 {
14722 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14723 test_array [0] = 0
14724
14725   ;
14726   return 0;
14727 }
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731   (eval $ac_compile) 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); } &&
14735          { ac_try='test -s conftest.$ac_objext'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; }; then
14741   ac_hi=-1 ac_mid=-1
14742   while :; do
14743     cat >conftest.$ac_ext <<_ACEOF
14744 #line $LINENO "configure"
14745 /* confdefs.h.  */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h.  */
14750 $ac_includes_default
14751 int
14752 main ()
14753 {
14754 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14755 test_array [0] = 0
14756
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763   (eval $ac_compile) 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); } &&
14767          { ac_try='test -s conftest.$ac_objext'
14768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769   (eval $ac_try) 2>&5
14770   ac_status=$?
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); }; }; then
14773   ac_lo=$ac_mid; break
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 ac_hi=`expr '(' $ac_mid ')' - 1`
14779                        if test $ac_mid -le $ac_hi; then
14780                          ac_lo= ac_hi=
14781                          break
14782                        fi
14783                        ac_mid=`expr 2 '*' $ac_mid`
14784 fi
14785 rm -f conftest.$ac_objext conftest.$ac_ext
14786   done
14787 else
14788   echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791 ac_lo= ac_hi=
14792 fi
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14794 fi
14795 rm -f conftest.$ac_objext conftest.$ac_ext
14796 # Binary search between lo and hi bounds.
14797 while test "x$ac_lo" != "x$ac_hi"; do
14798   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14799   cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 $ac_includes_default
14807 int
14808 main ()
14809 {
14810 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14811 test_array [0] = 0
14812
14813   ;
14814   return 0;
14815 }
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819   (eval $ac_compile) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); } &&
14823          { ac_try='test -s conftest.$ac_objext'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; }; then
14829   ac_hi=$ac_mid
14830 else
14831   echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 ac_lo=`expr '(' $ac_mid ')' + 1`
14835 fi
14836 rm -f conftest.$ac_objext conftest.$ac_ext
14837 done
14838 case $ac_lo in
14839 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14840 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14841 See \`config.log' for more details." >&5
14842 echo "$as_me: error: cannot compute sizeof (long int), 77
14843 See \`config.log' for more details." >&2;}
14844    { (exit 1); exit 1; }; } ;;
14845 esac
14846 else
14847   if test "$cross_compiling" = yes; then
14848   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14849 See \`config.log' for more details." >&5
14850 echo "$as_me: error: cannot run test program while cross compiling
14851 See \`config.log' for more details." >&2;}
14852    { (exit 1); exit 1; }; }
14853 else
14854   cat >conftest.$ac_ext <<_ACEOF
14855 #line $LINENO "configure"
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 $ac_includes_default
14862 long longval () { return (long) (sizeof (long int)); }
14863 unsigned long ulongval () { return (long) (sizeof (long int)); }
14864 #include <stdio.h>
14865 #include <stdlib.h>
14866 int
14867 main ()
14868 {
14869
14870   FILE *f = fopen ("conftest.val", "w");
14871   if (! f)
14872     exit (1);
14873   if (((long) (sizeof (long int))) < 0)
14874     {
14875       long i = longval ();
14876       if (i != ((long) (sizeof (long int))))
14877         exit (1);
14878       fprintf (f, "%ld\n", i);
14879     }
14880   else
14881     {
14882       unsigned long i = ulongval ();
14883       if (i != ((long) (sizeof (long int))))
14884         exit (1);
14885       fprintf (f, "%lu\n", i);
14886     }
14887   exit (ferror (f) || fclose (f) != 0);
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895   (eval $ac_link) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900   (eval $ac_try) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; }; then
14904   ac_cv_sizeof_long_int=`cat conftest.val`
14905 else
14906   echo "$as_me: program exited with status $ac_status" >&5
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 ( exit $ac_status )
14911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14912 See \`config.log' for more details." >&5
14913 echo "$as_me: error: cannot compute sizeof (long int), 77
14914 See \`config.log' for more details." >&2;}
14915    { (exit 1); exit 1; }; }
14916 fi
14917 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14918 fi
14919 fi
14920 rm -f conftest.val
14921 else
14922   ac_cv_sizeof_long_int=0
14923 fi
14924 fi
14925 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14926 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14927 cat >>confdefs.h <<_ACEOF
14928 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14929 _ACEOF
14930
14931
14932 echo "$as_me:$LINENO: checking for long long int" >&5
14933 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14934 if test "${ac_cv_type_long_long_int+set}" = set; then
14935   echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937   cat >conftest.$ac_ext <<_ACEOF
14938 #line $LINENO "configure"
14939 /* confdefs.h.  */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h.  */
14944 $ac_includes_default
14945 int
14946 main ()
14947 {
14948 if ((long long int *) 0)
14949   return 0;
14950 if (sizeof (long long int))
14951   return 0;
14952   ;
14953   return 0;
14954 }
14955 _ACEOF
14956 rm -f conftest.$ac_objext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14958   (eval $ac_compile) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } &&
14962          { ac_try='test -s conftest.$ac_objext'
14963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964   (eval $ac_try) 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; }; then
14968   ac_cv_type_long_long_int=yes
14969 else
14970   echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973 ac_cv_type_long_long_int=no
14974 fi
14975 rm -f conftest.$ac_objext conftest.$ac_ext
14976 fi
14977 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14978 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14979
14980 echo "$as_me:$LINENO: checking size of long long int" >&5
14981 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14982 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14983   echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985   if test "$ac_cv_type_long_long_int" = yes; then
14986   # The cast to unsigned long works around a bug in the HP C Compiler
14987   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14988   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14989   # This bug is HP SR number 8606223364.
14990   if test "$cross_compiling" = yes; then
14991   # Depending upon the size, compute the lo and hi bounds.
14992 cat >conftest.$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14994 /* confdefs.h.  */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h.  */
14999 $ac_includes_default
15000 int
15001 main ()
15002 {
15003 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15004 test_array [0] = 0
15005
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15012   (eval $ac_compile) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } &&
15016          { ac_try='test -s conftest.$ac_objext'
15017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018   (eval $ac_try) 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   ac_lo=0 ac_mid=0
15023   while :; do
15024     cat >conftest.$ac_ext <<_ACEOF
15025 #line $LINENO "configure"
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031 $ac_includes_default
15032 int
15033 main ()
15034 {
15035 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15036 test_array [0] = 0
15037
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044   (eval $ac_compile) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -s conftest.$ac_objext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   ac_hi=$ac_mid; break
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059 ac_lo=`expr $ac_mid + 1`
15060                     if test $ac_lo -le $ac_mid; then
15061                       ac_lo= ac_hi=
15062                       break
15063                     fi
15064                     ac_mid=`expr 2 '*' $ac_mid + 1`
15065 fi
15066 rm -f conftest.$ac_objext conftest.$ac_ext
15067   done
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079 $ac_includes_default
15080 int
15081 main ()
15082 {
15083 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15084 test_array [0] = 0
15085
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092   (eval $ac_compile) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -s conftest.$ac_objext'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   ac_hi=-1 ac_mid=-1
15103   while :; do
15104     cat >conftest.$ac_ext <<_ACEOF
15105 #line $LINENO "configure"
15106 /* confdefs.h.  */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h.  */
15111 $ac_includes_default
15112 int
15113 main ()
15114 {
15115 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
15116 test_array [0] = 0
15117
15118   ;
15119   return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124   (eval $ac_compile) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); } &&
15128          { ac_try='test -s conftest.$ac_objext'
15129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130   (eval $ac_try) 2>&5
15131   ac_status=$?
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); }; }; then
15134   ac_lo=$ac_mid; break
15135 else
15136   echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 ac_hi=`expr '(' $ac_mid ')' - 1`
15140                        if test $ac_mid -le $ac_hi; then
15141                          ac_lo= ac_hi=
15142                          break
15143                        fi
15144                        ac_mid=`expr 2 '*' $ac_mid`
15145 fi
15146 rm -f conftest.$ac_objext conftest.$ac_ext
15147   done
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152 ac_lo= ac_hi=
15153 fi
15154 rm -f conftest.$ac_objext conftest.$ac_ext
15155 fi
15156 rm -f conftest.$ac_objext conftest.$ac_ext
15157 # Binary search between lo and hi bounds.
15158 while test "x$ac_lo" != "x$ac_hi"; do
15159   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15160   cat >conftest.$ac_ext <<_ACEOF
15161 #line $LINENO "configure"
15162 /* confdefs.h.  */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h.  */
15167 $ac_includes_default
15168 int
15169 main ()
15170 {
15171 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15172 test_array [0] = 0
15173
15174   ;
15175   return 0;
15176 }
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180   (eval $ac_compile) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); } &&
15184          { ac_try='test -s conftest.$ac_objext'
15185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186   (eval $ac_try) 2>&5
15187   ac_status=$?
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); }; }; then
15190   ac_hi=$ac_mid
15191 else
15192   echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15194
15195 ac_lo=`expr '(' $ac_mid ')' + 1`
15196 fi
15197 rm -f conftest.$ac_objext conftest.$ac_ext
15198 done
15199 case $ac_lo in
15200 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
15201 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15202 See \`config.log' for more details." >&5
15203 echo "$as_me: error: cannot compute sizeof (long long int), 77
15204 See \`config.log' for more details." >&2;}
15205    { (exit 1); exit 1; }; } ;;
15206 esac
15207 else
15208   if test "$cross_compiling" = yes; then
15209   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15210 See \`config.log' for more details." >&5
15211 echo "$as_me: error: cannot run test program while cross compiling
15212 See \`config.log' for more details." >&2;}
15213    { (exit 1); exit 1; }; }
15214 else
15215   cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15217 /* confdefs.h.  */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h.  */
15222 $ac_includes_default
15223 long longval () { return (long) (sizeof (long long int)); }
15224 unsigned long ulongval () { return (long) (sizeof (long long int)); }
15225 #include <stdio.h>
15226 #include <stdlib.h>
15227 int
15228 main ()
15229 {
15230
15231   FILE *f = fopen ("conftest.val", "w");
15232   if (! f)
15233     exit (1);
15234   if (((long) (sizeof (long long int))) < 0)
15235     {
15236       long i = longval ();
15237       if (i != ((long) (sizeof (long long int))))
15238         exit (1);
15239       fprintf (f, "%ld\n", i);
15240     }
15241   else
15242     {
15243       unsigned long i = ulongval ();
15244       if (i != ((long) (sizeof (long long int))))
15245         exit (1);
15246       fprintf (f, "%lu\n", i);
15247     }
15248   exit (ferror (f) || fclose (f) != 0);
15249
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest$ac_exeext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15256   (eval $ac_link) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261   (eval $ac_try) 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }; }; then
15265   ac_cv_sizeof_long_long_int=`cat conftest.val`
15266 else
15267   echo "$as_me: program exited with status $ac_status" >&5
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ( exit $ac_status )
15272 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15273 See \`config.log' for more details." >&5
15274 echo "$as_me: error: cannot compute sizeof (long long int), 77
15275 See \`config.log' for more details." >&2;}
15276    { (exit 1); exit 1; }; }
15277 fi
15278 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15279 fi
15280 fi
15281 rm -f conftest.val
15282 else
15283   ac_cv_sizeof_long_long_int=0
15284 fi
15285 fi
15286 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15287 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15288 cat >>confdefs.h <<_ACEOF
15289 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15290 _ACEOF
15291
15292
15293 echo "$as_me:$LINENO: checking for int *" >&5
15294 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15295 if test "${ac_cv_type_int_p+set}" = set; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298   cat >conftest.$ac_ext <<_ACEOF
15299 #line $LINENO "configure"
15300 /* confdefs.h.  */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h.  */
15305 $ac_includes_default
15306 int
15307 main ()
15308 {
15309 if ((int * *) 0)
15310   return 0;
15311 if (sizeof (int *))
15312   return 0;
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319   (eval $ac_compile) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_cv_type_int_p=yes
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 ac_cv_type_int_p=no
15335 fi
15336 rm -f conftest.$ac_objext conftest.$ac_ext
15337 fi
15338 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15339 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15340
15341 echo "$as_me:$LINENO: checking size of int *" >&5
15342 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15343 if test "${ac_cv_sizeof_int_p+set}" = set; then
15344   echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346   if test "$ac_cv_type_int_p" = yes; then
15347   # The cast to unsigned long works around a bug in the HP C Compiler
15348   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15349   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15350   # This bug is HP SR number 8606223364.
15351   if test "$cross_compiling" = yes; then
15352   # Depending upon the size, compute the lo and hi bounds.
15353 cat >conftest.$ac_ext <<_ACEOF
15354 #line $LINENO "configure"
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 $ac_includes_default
15361 int
15362 main ()
15363 {
15364 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15365 test_array [0] = 0
15366
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373   (eval $ac_compile) 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); } &&
15377          { ac_try='test -s conftest.$ac_objext'
15378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379   (eval $ac_try) 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); }; }; then
15383   ac_lo=0 ac_mid=0
15384   while :; do
15385     cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392 $ac_includes_default
15393 int
15394 main ()
15395 {
15396 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15397 test_array [0] = 0
15398
15399   ;
15400   return 0;
15401 }
15402 _ACEOF
15403 rm -f conftest.$ac_objext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15405   (eval $ac_compile) 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); } &&
15409          { ac_try='test -s conftest.$ac_objext'
15410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411   (eval $ac_try) 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; }; then
15415   ac_hi=$ac_mid; break
15416 else
15417   echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_lo=`expr $ac_mid + 1`
15421                     if test $ac_lo -le $ac_mid; then
15422                       ac_lo= ac_hi=
15423                       break
15424                     fi
15425                     ac_mid=`expr 2 '*' $ac_mid + 1`
15426 fi
15427 rm -f conftest.$ac_objext conftest.$ac_ext
15428   done
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433 cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440 $ac_includes_default
15441 int
15442 main ()
15443 {
15444 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15445 test_array [0] = 0
15446
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 rm -f conftest.$ac_objext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453   (eval $ac_compile) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } &&
15457          { ac_try='test -s conftest.$ac_objext'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; }; then
15463   ac_hi=-1 ac_mid=-1
15464   while :; do
15465     cat >conftest.$ac_ext <<_ACEOF
15466 #line $LINENO "configure"
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472 $ac_includes_default
15473 int
15474 main ()
15475 {
15476 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15477 test_array [0] = 0
15478
15479   ;
15480   return 0;
15481 }
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485   (eval $ac_compile) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } &&
15489          { ac_try='test -s conftest.$ac_objext'
15490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491   (eval $ac_try) 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; }; then
15495   ac_lo=$ac_mid; break
15496 else
15497   echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500 ac_hi=`expr '(' $ac_mid ')' - 1`
15501                        if test $ac_mid -le $ac_hi; then
15502                          ac_lo= ac_hi=
15503                          break
15504                        fi
15505                        ac_mid=`expr 2 '*' $ac_mid`
15506 fi
15507 rm -f conftest.$ac_objext conftest.$ac_ext
15508   done
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_lo= ac_hi=
15514 fi
15515 rm -f conftest.$ac_objext conftest.$ac_ext
15516 fi
15517 rm -f conftest.$ac_objext conftest.$ac_ext
15518 # Binary search between lo and hi bounds.
15519 while test "x$ac_lo" != "x$ac_hi"; do
15520   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15521   cat >conftest.$ac_ext <<_ACEOF
15522 #line $LINENO "configure"
15523 /* confdefs.h.  */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h.  */
15528 $ac_includes_default
15529 int
15530 main ()
15531 {
15532 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15533 test_array [0] = 0
15534
15535   ;
15536   return 0;
15537 }
15538 _ACEOF
15539 rm -f conftest.$ac_objext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541   (eval $ac_compile) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } &&
15545          { ac_try='test -s conftest.$ac_objext'
15546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547   (eval $ac_try) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }; then
15551   ac_hi=$ac_mid
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 ac_lo=`expr '(' $ac_mid ')' + 1`
15557 fi
15558 rm -f conftest.$ac_objext conftest.$ac_ext
15559 done
15560 case $ac_lo in
15561 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15562 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15563 See \`config.log' for more details." >&5
15564 echo "$as_me: error: cannot compute sizeof (int *), 77
15565 See \`config.log' for more details." >&2;}
15566    { (exit 1); exit 1; }; } ;;
15567 esac
15568 else
15569   if test "$cross_compiling" = yes; then
15570   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15571 See \`config.log' for more details." >&5
15572 echo "$as_me: error: cannot run test program while cross compiling
15573 See \`config.log' for more details." >&2;}
15574    { (exit 1); exit 1; }; }
15575 else
15576   cat >conftest.$ac_ext <<_ACEOF
15577 #line $LINENO "configure"
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 $ac_includes_default
15584 long longval () { return (long) (sizeof (int *)); }
15585 unsigned long ulongval () { return (long) (sizeof (int *)); }
15586 #include <stdio.h>
15587 #include <stdlib.h>
15588 int
15589 main ()
15590 {
15591
15592   FILE *f = fopen ("conftest.val", "w");
15593   if (! f)
15594     exit (1);
15595   if (((long) (sizeof (int *))) < 0)
15596     {
15597       long i = longval ();
15598       if (i != ((long) (sizeof (int *))))
15599         exit (1);
15600       fprintf (f, "%ld\n", i);
15601     }
15602   else
15603     {
15604       unsigned long i = ulongval ();
15605       if (i != ((long) (sizeof (int *))))
15606         exit (1);
15607       fprintf (f, "%lu\n", i);
15608     }
15609   exit (ferror (f) || fclose (f) != 0);
15610
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617   (eval $ac_link) 2>&5
15618   ac_status=$?
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622   (eval $ac_try) 2>&5
15623   ac_status=$?
15624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625   (exit $ac_status); }; }; then
15626   ac_cv_sizeof_int_p=`cat conftest.val`
15627 else
15628   echo "$as_me: program exited with status $ac_status" >&5
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632 ( exit $ac_status )
15633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15634 See \`config.log' for more details." >&5
15635 echo "$as_me: error: cannot compute sizeof (int *), 77
15636 See \`config.log' for more details." >&2;}
15637    { (exit 1); exit 1; }; }
15638 fi
15639 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15640 fi
15641 fi
15642 rm -f conftest.val
15643 else
15644   ac_cv_sizeof_int_p=0
15645 fi
15646 fi
15647 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15648 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15649 cat >>confdefs.h <<_ACEOF
15650 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15651 _ACEOF
15652
15653
15654
15655 # Check for sys/types.h types
15656 echo "$as_me:$LINENO: checking for u_int type" >&5
15657 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15658 if test "${ac_cv_have_u_int+set}" = set; then
15659   echo $ECHO_N "(cached) $ECHO_C" >&6
15660 else
15661
15662     cat >conftest.$ac_ext <<_ACEOF
15663 #line $LINENO "configure"
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669  #include <sys/types.h>
15670 int
15671 main ()
15672 {
15673  u_int a; a = 1;
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680   (eval $ac_compile) 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -s conftest.$ac_objext'
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    ac_cv_have_u_int="yes"
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695  ac_cv_have_u_int="no"
15696
15697 fi
15698 rm -f conftest.$ac_objext conftest.$ac_ext
15699
15700 fi
15701 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15702 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15703 if test "x$ac_cv_have_u_int" = "xyes" ; then
15704    cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_U_INT 1
15706 _ACEOF
15707
15708    have_u_int=1
15709 fi
15710
15711 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15712 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15713 if test "${ac_cv_have_intmax_t+set}" = set; then
15714   echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716
15717    cat >conftest.$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724  #include <sys/types.h>
15725 int
15726 main ()
15727 {
15728  intmax_t a; a = 1;
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest.$ac_objext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735   (eval $ac_compile) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -s conftest.$ac_objext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745    ac_cv_have_intmax_t="yes"
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750
15751          cat >conftest.$ac_ext <<_ACEOF
15752 #line $LINENO "configure"
15753 /* confdefs.h.  */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h.  */
15758  #include <stdint.h>
15759 int
15760 main ()
15761 {
15762  intmax_t a; a = 1;
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769   (eval $ac_compile) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779    ac_cv_have_intmax_t="yes"
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784  ac_cv_have_intmax_t="no"
15785
15786 fi
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15788
15789
15790 fi
15791 rm -f conftest.$ac_objext conftest.$ac_ext
15792
15793
15794 fi
15795 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15796 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15797 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15798    cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_INTMAX_T 1
15800 _ACEOF
15801
15802    have_intmax_t=1
15803 fi
15804
15805
15806 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15807 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15808 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811
15812    cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15814 /* confdefs.h.  */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h.  */
15819  #include <sys/types.h>
15820 int
15821 main ()
15822 {
15823  u_intmax_t a; a = 1;
15824   ;
15825   return 0;
15826 }
15827 _ACEOF
15828 rm -f conftest.$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830   (eval $ac_compile) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } &&
15834          { ac_try='test -s conftest.$ac_objext'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }; then
15840    ac_cv_have_u_intmax_t="yes"
15841 else
15842   echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845
15846          cat >conftest.$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853  #include <stdint.h>
15854 int
15855 main ()
15856 {
15857  u_intmax_t a; a = 1;
15858   ;
15859   return 0;
15860 }
15861 _ACEOF
15862 rm -f conftest.$ac_objext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864   (eval $ac_compile) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } &&
15868          { ac_try='test -s conftest.$ac_objext'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874    ac_cv_have_u_intmax_t="yes"
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879  ac_cv_have_u_intmax_t="no"
15880
15881 fi
15882 rm -f conftest.$ac_objext conftest.$ac_ext
15883
15884
15885 fi
15886 rm -f conftest.$ac_objext conftest.$ac_ext
15887
15888 fi
15889 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15890 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15891 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15892    cat >>confdefs.h <<\_ACEOF
15893 #define HAVE_U_INTMAX_T 1
15894 _ACEOF
15895
15896    have_u_intmax_t=1
15897 fi
15898
15899
15900 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15901 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15902 if test "${ac_cv_have_intxx_t+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905
15906    cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913  #include <sys/types.h>
15914 int
15915 main ()
15916 {
15917  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924   (eval $ac_compile) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } &&
15928          { ac_try='test -s conftest.$ac_objext'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; }; then
15934    ac_cv_have_intxx_t="yes"
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939  ac_cv_have_intxx_t="no"
15940
15941 fi
15942 rm -f conftest.$ac_objext conftest.$ac_ext
15943
15944 fi
15945 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15946 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15947 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15948    cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_INTXX_T 1
15950 _ACEOF
15951
15952    have_intxx_t=1
15953 fi
15954
15955 echo "$as_me:$LINENO: checking for int64_t type" >&5
15956 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15957 if test "${ac_cv_have_int64_t+set}" = set; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960
15961    cat >conftest.$ac_ext <<_ACEOF
15962 #line $LINENO "configure"
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968  #include <sys/types.h>
15969 int
15970 main ()
15971 {
15972  int64_t a; a = 1;
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979   (eval $ac_compile) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } &&
15983          { ac_try='test -s conftest.$ac_objext'
15984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985   (eval $ac_try) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); }; }; then
15989    ac_cv_have_int64_t="yes"
15990 else
15991   echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994  ac_cv_have_int64_t="no"
15995
15996 fi
15997 rm -f conftest.$ac_objext conftest.$ac_ext
15998
15999 fi
16000 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16001 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16002 if test "x$ac_cv_have_int64_t" = "xyes" ; then
16003    cat >>confdefs.h <<\_ACEOF
16004 #define HAVE_INT64_T 1
16005 _ACEOF
16006
16007    have_int64_t=1
16008 fi
16009
16010 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16011 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16012 if test "${ac_cv_have_u_intxx_t+set}" = set; then
16013   echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015
16016    cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023  #include <sys/types.h>
16024 int
16025 main ()
16026 {
16027  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 rm -f conftest.$ac_objext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16034   (eval $ac_compile) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } &&
16038          { ac_try='test -s conftest.$ac_objext'
16039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040   (eval $ac_try) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044    ac_cv_have_u_intxx_t="yes"
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049  ac_cv_have_u_intxx_t="no"
16050
16051 fi
16052 rm -f conftest.$ac_objext conftest.$ac_ext
16053
16054 fi
16055 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16056 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16057 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16058    cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_U_INTXX_T 1
16060 _ACEOF
16061
16062    have_u_intxx_t=1
16063 fi
16064
16065 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16066 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16067 if test "${ac_cv_have_u_int64_t+set}" = set; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070
16071    cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078  #include <sys/types.h>
16079 int
16080 main ()
16081 {
16082  u_int64_t a; a = 1;
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089   (eval $ac_compile) 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -s conftest.$ac_objext'
16094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095   (eval $ac_try) 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); }; }; then
16099    ac_cv_have_u_int64_t="yes"
16100 else
16101   echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104  ac_cv_have_u_int64_t="no"
16105
16106 fi
16107 rm -f conftest.$ac_objext conftest.$ac_ext
16108
16109 fi
16110 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16111 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16112 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16113    cat >>confdefs.h <<\_ACEOF
16114 #define HAVE_U_INT64_T 1
16115 _ACEOF
16116
16117    have_u_int64_t=1
16118 fi
16119
16120 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16121            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16122 then
16123    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16124 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16125    cat >conftest.$ac_ext <<_ACEOF
16126 #line $LINENO "configure"
16127 /* confdefs.h.  */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h.  */
16132  #include <sys/bitypes.h>
16133 int
16134 main ()
16135 {
16136  int8_t a; int16_t b; int32_t c;
16137         u_int8_t e; u_int16_t f; u_int32_t g;
16138         a = b = c = e = f = g = 1;
16139   ;
16140   return 0;
16141 }
16142 _ACEOF
16143 rm -f conftest.$ac_objext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16145   (eval $ac_compile) 2>&5
16146   ac_status=$?
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } &&
16149          { ac_try='test -s conftest.$ac_objext'
16150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151   (eval $ac_try) 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); }; }; then
16155    cat >>confdefs.h <<\_ACEOF
16156 #define HAVE_U_INTXX_T 1
16157 _ACEOF
16158
16159         cat >>confdefs.h <<\_ACEOF
16160 #define HAVE_INTXX_T 1
16161 _ACEOF
16162
16163         cat >>confdefs.h <<\_ACEOF
16164 #define HAVE_SYS_BITYPES_H 1
16165 _ACEOF
16166
16167         echo "$as_me:$LINENO: result: yes" >&5
16168 echo "${ECHO_T}yes" >&6
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173  echo "$as_me:$LINENO: result: no" >&5
16174 echo "${ECHO_T}no" >&6
16175
16176 fi
16177 rm -f conftest.$ac_objext conftest.$ac_ext
16178 fi
16179
16180 if test -z "$have_u_intxx_t" ; then
16181    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16182 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16183 if test "${ac_cv_have_uintxx_t+set}" = set; then
16184   echo $ECHO_N "(cached) $ECHO_C" >&6
16185 else
16186
16187       cat >conftest.$ac_ext <<_ACEOF
16188 #line $LINENO "configure"
16189 /* confdefs.h.  */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h.  */
16194  #include <sys/types.h>
16195 int
16196 main ()
16197 {
16198  uint8_t a; uint16_t b;
16199            uint32_t c; a = b = c = 1;
16200   ;
16201   return 0;
16202 }
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206   (eval $ac_compile) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); } &&
16210          { ac_try='test -s conftest.$ac_objext'
16211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212   (eval $ac_try) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; }; then
16216    ac_cv_have_uintxx_t="yes"
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221  ac_cv_have_uintxx_t="no"
16222
16223 fi
16224 rm -f conftest.$ac_objext conftest.$ac_ext
16225
16226 fi
16227 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16228 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16229    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16230       cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_UINTXX_T 1
16232 _ACEOF
16233
16234    fi
16235 fi
16236
16237 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
16238           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16239 then
16240    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
16241 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
16242    cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249  #include <sys/bitypes.h>
16250 int
16251 main ()
16252 {
16253  int64_t a; u_int64_t b;
16254        a = b = 1;
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261   (eval $ac_compile) 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } &&
16265          { ac_try='test -s conftest.$ac_objext'
16266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267   (eval $ac_try) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; }; then
16271    cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_U_INT64_T 1
16273 _ACEOF
16274
16275        cat >>confdefs.h <<\_ACEOF
16276 #define HAVE_INT64_T 1
16277 _ACEOF
16278
16279        echo "$as_me:$LINENO: result: yes" >&5
16280 echo "${ECHO_T}yes" >&6
16281 else
16282   echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285  echo "$as_me:$LINENO: result: no" >&5
16286 echo "${ECHO_T}no" >&6
16287
16288 fi
16289 rm -f conftest.$ac_objext conftest.$ac_ext
16290 fi
16291
16292 if (test -z "$have_uintxx_t" && \
16293           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16294 then
16295    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16296 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16297    cat >conftest.$ac_ext <<_ACEOF
16298 #line $LINENO "configure"
16299 /* confdefs.h.  */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h.  */
16304  #include <sys/bitypes.h>
16305 int
16306 main ()
16307 {
16308  uint8_t a; uint16_t b;
16309           uint32_t c; a = b = c = 1;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316   (eval $ac_compile) 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } &&
16320          { ac_try='test -s conftest.$ac_objext'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; }; then
16326    cat >>confdefs.h <<\_ACEOF
16327 #define HAVE_UINTXX_T 1
16328 _ACEOF
16329
16330        echo "$as_me:$LINENO: result: yes" >&5
16331 echo "${ECHO_T}yes" >&6
16332 else
16333   echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336  echo "$as_me:$LINENO: result: no" >&5
16337 echo "${ECHO_T}no" >&6
16338
16339 fi
16340 rm -f conftest.$ac_objext conftest.$ac_ext
16341
16342 fi
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360 for ac_func in \
16361         fork \
16362         getcwd \
16363         gethostname \
16364         getpid \
16365         gettimeofday \
16366         setpgid \
16367         setpgrp \
16368         setsid \
16369         signal \
16370         strerror \
16371         strncmp \
16372         strncpy \
16373         vfprintf \
16374
16375 do
16376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16377 echo "$as_me:$LINENO: checking for $ac_func" >&5
16378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16379 if eval "test \"\${$as_ac_var+set}\" = set"; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 /* System header to define __stub macros and hopefully few prototypes,
16390     which can conflict with char $ac_func (); below.
16391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16392     <limits.h> exists even on freestanding compilers.  */
16393 #ifdef __STDC__
16394 # include <limits.h>
16395 #else
16396 # include <assert.h>
16397 #endif
16398 /* Override any gcc2 internal prototype to avoid an error.  */
16399 #ifdef __cplusplus
16400 extern "C"
16401 {
16402 #endif
16403 /* We use char because int might match the return type of a gcc2
16404    builtin and then its argument prototype would still apply.  */
16405 char $ac_func ();
16406 /* The GNU C library defines this for functions which it implements
16407     to always fail with ENOSYS.  Some functions are actually named
16408     something starting with __ and the normal name is an alias.  */
16409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16410 choke me
16411 #else
16412 char (*f) () = $ac_func;
16413 #endif
16414 #ifdef __cplusplus
16415 }
16416 #endif
16417
16418 int
16419 main ()
16420 {
16421 return f != $ac_func;
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428   (eval $ac_link) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } &&
16432          { ac_try='test -s conftest$ac_exeext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   eval "$as_ac_var=yes"
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 eval "$as_ac_var=no"
16444 fi
16445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446 fi
16447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450   cat >>confdefs.h <<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16452 _ACEOF
16453
16454 else
16455   echo 'configure: cannot find needed function.'; exit 1
16456
16457 fi
16458 done
16459
16460
16461
16462 for ac_func in fchdir
16463 do
16464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16465 echo "$as_me:$LINENO: checking for $ac_func" >&5
16466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16467 if eval "test \"\${$as_ac_var+set}\" = set"; then
16468   echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470   cat >conftest.$ac_ext <<_ACEOF
16471 #line $LINENO "configure"
16472 /* confdefs.h.  */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h.  */
16477 /* System header to define __stub macros and hopefully few prototypes,
16478     which can conflict with char $ac_func (); below.
16479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480     <limits.h> exists even on freestanding compilers.  */
16481 #ifdef __STDC__
16482 # include <limits.h>
16483 #else
16484 # include <assert.h>
16485 #endif
16486 /* Override any gcc2 internal prototype to avoid an error.  */
16487 #ifdef __cplusplus
16488 extern "C"
16489 {
16490 #endif
16491 /* We use char because int might match the return type of a gcc2
16492    builtin and then its argument prototype would still apply.  */
16493 char $ac_func ();
16494 /* The GNU C library defines this for functions which it implements
16495     to always fail with ENOSYS.  Some functions are actually named
16496     something starting with __ and the normal name is an alias.  */
16497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16498 choke me
16499 #else
16500 char (*f) () = $ac_func;
16501 #endif
16502 #ifdef __cplusplus
16503 }
16504 #endif
16505
16506 int
16507 main ()
16508 {
16509 return f != $ac_func;
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16516   (eval $ac_link) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); } &&
16520          { ac_try='test -s conftest$ac_exeext'
16521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522   (eval $ac_try) 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; }; then
16526   eval "$as_ac_var=yes"
16527 else
16528   echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 eval "$as_ac_var=no"
16532 fi
16533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16534 fi
16535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16537 if test `eval echo '${'$as_ac_var'}'` = yes; then
16538   cat >>confdefs.h <<_ACEOF
16539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16540 _ACEOF
16541  cat >>confdefs.h <<\_ACEOF
16542 #define HAVE_FCHDIR 1
16543 _ACEOF
16544
16545 fi
16546 done
16547
16548
16549 for ac_func in strtoll
16550 do
16551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16552 echo "$as_me:$LINENO: checking for $ac_func" >&5
16553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16554 if eval "test \"\${$as_ac_var+set}\" = set"; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   cat >conftest.$ac_ext <<_ACEOF
16558 #line $LINENO "configure"
16559 /* confdefs.h.  */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h.  */
16564 /* System header to define __stub macros and hopefully few prototypes,
16565     which can conflict with char $ac_func (); below.
16566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16567     <limits.h> exists even on freestanding compilers.  */
16568 #ifdef __STDC__
16569 # include <limits.h>
16570 #else
16571 # include <assert.h>
16572 #endif
16573 /* Override any gcc2 internal prototype to avoid an error.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 {
16577 #endif
16578 /* We use char because int might match the return type of a gcc2
16579    builtin and then its argument prototype would still apply.  */
16580 char $ac_func ();
16581 /* The GNU C library defines this for functions which it implements
16582     to always fail with ENOSYS.  Some functions are actually named
16583     something starting with __ and the normal name is an alias.  */
16584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16585 choke me
16586 #else
16587 char (*f) () = $ac_func;
16588 #endif
16589 #ifdef __cplusplus
16590 }
16591 #endif
16592
16593 int
16594 main ()
16595 {
16596 return f != $ac_func;
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603   (eval $ac_link) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } &&
16607          { ac_try='test -s conftest$ac_exeext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   eval "$as_ac_var=yes"
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 eval "$as_ac_var=no"
16619 fi
16620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16621 fi
16622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16625   cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16627 _ACEOF
16628  cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_STRTOLL 1
16630 _ACEOF
16631
16632 fi
16633 done
16634
16635
16636
16637 for ac_func in chflags
16638 do
16639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16640 echo "$as_me:$LINENO: checking for $ac_func" >&5
16641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16642 if eval "test \"\${$as_ac_var+set}\" = set"; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   cat >conftest.$ac_ext <<_ACEOF
16646 #line $LINENO "configure"
16647 /* confdefs.h.  */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h.  */
16652 /* System header to define __stub macros and hopefully few prototypes,
16653     which can conflict with char $ac_func (); below.
16654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655     <limits.h> exists even on freestanding compilers.  */
16656 #ifdef __STDC__
16657 # include <limits.h>
16658 #else
16659 # include <assert.h>
16660 #endif
16661 /* Override any gcc2 internal prototype to avoid an error.  */
16662 #ifdef __cplusplus
16663 extern "C"
16664 {
16665 #endif
16666 /* We use char because int might match the return type of a gcc2
16667    builtin and then its argument prototype would still apply.  */
16668 char $ac_func ();
16669 /* The GNU C library defines this for functions which it implements
16670     to always fail with ENOSYS.  Some functions are actually named
16671     something starting with __ and the normal name is an alias.  */
16672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16673 choke me
16674 #else
16675 char (*f) () = $ac_func;
16676 #endif
16677 #ifdef __cplusplus
16678 }
16679 #endif
16680
16681 int
16682 main ()
16683 {
16684 return f != $ac_func;
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691   (eval $ac_link) 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } &&
16695          { ac_try='test -s conftest$ac_exeext'
16696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697   (eval $ac_try) 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; }; then
16701   eval "$as_ac_var=yes"
16702 else
16703   echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 eval "$as_ac_var=no"
16707 fi
16708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16709 fi
16710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16712 if test `eval echo '${'$as_ac_var'}'` = yes; then
16713   cat >>confdefs.h <<_ACEOF
16714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16715 _ACEOF
16716
16717 fi
16718 done
16719
16720
16721
16722
16723
16724
16725 for ac_func in snprintf vsnprintf gethostid fseeko
16726 do
16727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16728 echo "$as_me:$LINENO: checking for $ac_func" >&5
16729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16730 if eval "test \"\${$as_ac_var+set}\" = set"; then
16731   echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733   cat >conftest.$ac_ext <<_ACEOF
16734 #line $LINENO "configure"
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740 /* System header to define __stub macros and hopefully few prototypes,
16741     which can conflict with char $ac_func (); below.
16742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743     <limits.h> exists even on freestanding compilers.  */
16744 #ifdef __STDC__
16745 # include <limits.h>
16746 #else
16747 # include <assert.h>
16748 #endif
16749 /* Override any gcc2 internal prototype to avoid an error.  */
16750 #ifdef __cplusplus
16751 extern "C"
16752 {
16753 #endif
16754 /* We use char because int might match the return type of a gcc2
16755    builtin and then its argument prototype would still apply.  */
16756 char $ac_func ();
16757 /* The GNU C library defines this for functions which it implements
16758     to always fail with ENOSYS.  Some functions are actually named
16759     something starting with __ and the normal name is an alias.  */
16760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16761 choke me
16762 #else
16763 char (*f) () = $ac_func;
16764 #endif
16765 #ifdef __cplusplus
16766 }
16767 #endif
16768
16769 int
16770 main ()
16771 {
16772 return f != $ac_func;
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779   (eval $ac_link) 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } &&
16783          { ac_try='test -s conftest$ac_exeext'
16784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785   (eval $ac_try) 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; }; then
16789   eval "$as_ac_var=yes"
16790 else
16791   echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794 eval "$as_ac_var=no"
16795 fi
16796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16797 fi
16798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16800 if test `eval echo '${'$as_ac_var'}'` = yes; then
16801   cat >>confdefs.h <<_ACEOF
16802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16803 _ACEOF
16804
16805 fi
16806 done
16807
16808
16809
16810
16811
16812
16813 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16814 do
16815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16816 echo "$as_me:$LINENO: checking for $ac_func" >&5
16817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16818 if eval "test \"\${$as_ac_var+set}\" = set"; then
16819   echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821   cat >conftest.$ac_ext <<_ACEOF
16822 #line $LINENO "configure"
16823 /* confdefs.h.  */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h.  */
16828 /* System header to define __stub macros and hopefully few prototypes,
16829     which can conflict with char $ac_func (); below.
16830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16831     <limits.h> exists even on freestanding compilers.  */
16832 #ifdef __STDC__
16833 # include <limits.h>
16834 #else
16835 # include <assert.h>
16836 #endif
16837 /* Override any gcc2 internal prototype to avoid an error.  */
16838 #ifdef __cplusplus
16839 extern "C"
16840 {
16841 #endif
16842 /* We use char because int might match the return type of a gcc2
16843    builtin and then its argument prototype would still apply.  */
16844 char $ac_func ();
16845 /* The GNU C library defines this for functions which it implements
16846     to always fail with ENOSYS.  Some functions are actually named
16847     something starting with __ and the normal name is an alias.  */
16848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16849 choke me
16850 #else
16851 char (*f) () = $ac_func;
16852 #endif
16853 #ifdef __cplusplus
16854 }
16855 #endif
16856
16857 int
16858 main ()
16859 {
16860 return f != $ac_func;
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867   (eval $ac_link) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest$ac_exeext'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   eval "$as_ac_var=yes"
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 eval "$as_ac_var=no"
16883 fi
16884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885 fi
16886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16888 if test `eval echo '${'$as_ac_var'}'` = yes; then
16889   cat >>confdefs.h <<_ACEOF
16890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16891 _ACEOF
16892
16893 fi
16894 done
16895
16896
16897 # If resolver functions are not in libc check for -lnsl or -lresolv.
16898 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16899 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16900 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903   cat >conftest.$ac_ext <<_ACEOF
16904 #line $LINENO "configure"
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910 /* System header to define __stub macros and hopefully few prototypes,
16911     which can conflict with char gethostbyname_r (); below.
16912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913     <limits.h> exists even on freestanding compilers.  */
16914 #ifdef __STDC__
16915 # include <limits.h>
16916 #else
16917 # include <assert.h>
16918 #endif
16919 /* Override any gcc2 internal prototype to avoid an error.  */
16920 #ifdef __cplusplus
16921 extern "C"
16922 {
16923 #endif
16924 /* We use char because int might match the return type of a gcc2
16925    builtin and then its argument prototype would still apply.  */
16926 char gethostbyname_r ();
16927 /* The GNU C library defines this for functions which it implements
16928     to always fail with ENOSYS.  Some functions are actually named
16929     something starting with __ and the normal name is an alias.  */
16930 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16931 choke me
16932 #else
16933 char (*f) () = gethostbyname_r;
16934 #endif
16935 #ifdef __cplusplus
16936 }
16937 #endif
16938
16939 int
16940 main ()
16941 {
16942 return f != gethostbyname_r;
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949   (eval $ac_link) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); } &&
16953          { ac_try='test -s conftest$ac_exeext'
16954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955   (eval $ac_try) 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; }; then
16959   ac_cv_func_gethostbyname_r=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 ac_cv_func_gethostbyname_r=no
16965 fi
16966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16967 fi
16968 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16969 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16970 if test $ac_cv_func_gethostbyname_r = yes; then
16971   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16972 echo "${ECHO_T}using libc's resolver" >&6
16973 else
16974
16975 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16976 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16977 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16978   echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980   ac_check_lib_save_LIBS=$LIBS
16981 LIBS="-lnsl  $LIBS"
16982 cat >conftest.$ac_ext <<_ACEOF
16983 #line $LINENO "configure"
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989
16990 /* Override any gcc2 internal prototype to avoid an error.  */
16991 #ifdef __cplusplus
16992 extern "C"
16993 #endif
16994 /* We use char because int might match the return type of a gcc2
16995    builtin and then its argument prototype would still apply.  */
16996 char gethostbyname_r ();
16997 int
16998 main ()
16999 {
17000 gethostbyname_r ();
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007   (eval $ac_link) 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); } &&
17011          { ac_try='test -s conftest$ac_exeext'
17012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013   (eval $ac_try) 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; }; then
17017   ac_cv_lib_nsl_gethostbyname_r=yes
17018 else
17019   echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022 ac_cv_lib_nsl_gethostbyname_r=no
17023 fi
17024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17025 LIBS=$ac_check_lib_save_LIBS
17026 fi
17027 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
17028 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
17029 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
17030   cat >>confdefs.h <<_ACEOF
17031 #define HAVE_LIBNSL 1
17032 _ACEOF
17033
17034   LIBS="-lnsl $LIBS"
17035
17036 fi
17037
17038
17039 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
17040 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
17041 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   ac_check_lib_save_LIBS=$LIBS
17045 LIBS="-lresolv  $LIBS"
17046 cat >conftest.$ac_ext <<_ACEOF
17047 #line $LINENO "configure"
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053
17054 /* Override any gcc2 internal prototype to avoid an error.  */
17055 #ifdef __cplusplus
17056 extern "C"
17057 #endif
17058 /* We use char because int might match the return type of a gcc2
17059    builtin and then its argument prototype would still apply.  */
17060 char gethostbyname_r ();
17061 int
17062 main ()
17063 {
17064 gethostbyname_r ();
17065   ;
17066   return 0;
17067 }
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17071   (eval $ac_link) 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -s conftest$ac_exeext'
17076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077   (eval $ac_try) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; }; then
17081   ac_cv_lib_resolv_gethostbyname_r=yes
17082 else
17083   echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086 ac_cv_lib_resolv_gethostbyname_r=no
17087 fi
17088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17089 LIBS=$ac_check_lib_save_LIBS
17090 fi
17091 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
17092 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
17093 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
17094   cat >>confdefs.h <<_ACEOF
17095 #define HAVE_LIBRESOLV 1
17096 _ACEOF
17097
17098   LIBS="-lresolv $LIBS"
17099
17100 fi
17101
17102 fi
17103
17104
17105
17106
17107
17108 for ac_func in inet_pton
17109 do
17110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17111 echo "$as_me:$LINENO: checking for $ac_func" >&5
17112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17113 if eval "test \"\${$as_ac_var+set}\" = set"; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   cat >conftest.$ac_ext <<_ACEOF
17117 #line $LINENO "configure"
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123 /* System header to define __stub macros and hopefully few prototypes,
17124     which can conflict with char $ac_func (); below.
17125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126     <limits.h> exists even on freestanding compilers.  */
17127 #ifdef __STDC__
17128 # include <limits.h>
17129 #else
17130 # include <assert.h>
17131 #endif
17132 /* Override any gcc2 internal prototype to avoid an error.  */
17133 #ifdef __cplusplus
17134 extern "C"
17135 {
17136 #endif
17137 /* We use char because int might match the return type of a gcc2
17138    builtin and then its argument prototype would still apply.  */
17139 char $ac_func ();
17140 /* The GNU C library defines this for functions which it implements
17141     to always fail with ENOSYS.  Some functions are actually named
17142     something starting with __ and the normal name is an alias.  */
17143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17144 choke me
17145 #else
17146 char (*f) () = $ac_func;
17147 #endif
17148 #ifdef __cplusplus
17149 }
17150 #endif
17151
17152 int
17153 main ()
17154 {
17155 return f != $ac_func;
17156   ;
17157   return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17162   (eval $ac_link) 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); } &&
17166          { ac_try='test -s conftest$ac_exeext'
17167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168   (eval $ac_try) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); }; }; then
17172   eval "$as_ac_var=yes"
17173 else
17174   echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 eval "$as_ac_var=no"
17178 fi
17179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17180 fi
17181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17183 if test `eval echo '${'$as_ac_var'}'` = yes; then
17184   cat >>confdefs.h <<_ACEOF
17185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17186 _ACEOF
17187  cat >>confdefs.h <<\_ACEOF
17188 #define HAVE_INET_PTON 1
17189 _ACEOF
17190
17191 fi
17192 done
17193
17194
17195 for ac_func in inet_ntop
17196 do
17197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17200 if eval "test \"\${$as_ac_var+set}\" = set"; then
17201   echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203   cat >conftest.$ac_ext <<_ACEOF
17204 #line $LINENO "configure"
17205 /* confdefs.h.  */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h.  */
17210 /* System header to define __stub macros and hopefully few prototypes,
17211     which can conflict with char $ac_func (); below.
17212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17213     <limits.h> exists even on freestanding compilers.  */
17214 #ifdef __STDC__
17215 # include <limits.h>
17216 #else
17217 # include <assert.h>
17218 #endif
17219 /* Override any gcc2 internal prototype to avoid an error.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 {
17223 #endif
17224 /* We use char because int might match the return type of a gcc2
17225    builtin and then its argument prototype would still apply.  */
17226 char $ac_func ();
17227 /* The GNU C library defines this for functions which it implements
17228     to always fail with ENOSYS.  Some functions are actually named
17229     something starting with __ and the normal name is an alias.  */
17230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17231 choke me
17232 #else
17233 char (*f) () = $ac_func;
17234 #endif
17235 #ifdef __cplusplus
17236 }
17237 #endif
17238
17239 int
17240 main ()
17241 {
17242 return f != $ac_func;
17243   ;
17244   return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249   (eval $ac_link) 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } &&
17253          { ac_try='test -s conftest$ac_exeext'
17254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255   (eval $ac_try) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; }; then
17259   eval "$as_ac_var=yes"
17260 else
17261   echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 eval "$as_ac_var=no"
17265 fi
17266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17267 fi
17268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17270 if test `eval echo '${'$as_ac_var'}'` = yes; then
17271   cat >>confdefs.h <<_ACEOF
17272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17273 _ACEOF
17274  cat >>confdefs.h <<\_ACEOF
17275 #define HAVE_INET_NTOP 1
17276 _ACEOF
17277
17278 fi
17279 done
17280
17281
17282 for ac_func in gethostbyname2
17283 do
17284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17285 echo "$as_me:$LINENO: checking for $ac_func" >&5
17286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17287 if eval "test \"\${$as_ac_var+set}\" = set"; then
17288   echo $ECHO_N "(cached) $ECHO_C" >&6
17289 else
17290   cat >conftest.$ac_ext <<_ACEOF
17291 #line $LINENO "configure"
17292 /* confdefs.h.  */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h.  */
17297 /* System header to define __stub macros and hopefully few prototypes,
17298     which can conflict with char $ac_func (); below.
17299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17300     <limits.h> exists even on freestanding compilers.  */
17301 #ifdef __STDC__
17302 # include <limits.h>
17303 #else
17304 # include <assert.h>
17305 #endif
17306 /* Override any gcc2 internal prototype to avoid an error.  */
17307 #ifdef __cplusplus
17308 extern "C"
17309 {
17310 #endif
17311 /* We use char because int might match the return type of a gcc2
17312    builtin and then its argument prototype would still apply.  */
17313 char $ac_func ();
17314 /* The GNU C library defines this for functions which it implements
17315     to always fail with ENOSYS.  Some functions are actually named
17316     something starting with __ and the normal name is an alias.  */
17317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17318 choke me
17319 #else
17320 char (*f) () = $ac_func;
17321 #endif
17322 #ifdef __cplusplus
17323 }
17324 #endif
17325
17326 int
17327 main ()
17328 {
17329 return f != $ac_func;
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17336   (eval $ac_link) 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } &&
17340          { ac_try='test -s conftest$ac_exeext'
17341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342   (eval $ac_try) 2>&5
17343   ac_status=$?
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); }; }; then
17346   eval "$as_ac_var=yes"
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351 eval "$as_ac_var=no"
17352 fi
17353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17354 fi
17355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17357 if test `eval echo '${'$as_ac_var'}'` = yes; then
17358   cat >>confdefs.h <<_ACEOF
17359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17360 _ACEOF
17361  cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_GETHOSTBYNAME2 1
17363 _ACEOF
17364
17365 fi
17366 done
17367
17368
17369 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17370 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17371 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17372   echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374   cat >conftest.$ac_ext <<_ACEOF
17375 #line $LINENO "configure"
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381 #include <sys/socket.h>
17382 int
17383 main ()
17384 {
17385 struct sockaddr s; s.sa_len;
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392   (eval $ac_compile) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } &&
17396          { ac_try='test -s conftest.$ac_objext'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; }; then
17402   ac_cv_struct_sockaddr_sa_len=yes
17403 else
17404   echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_cv_struct_sockaddr_sa_len=no
17408 fi
17409 rm -f conftest.$ac_objext conftest.$ac_ext
17410 fi
17411 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17412 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17413
17414  if test $ac_cv_struct_sockaddr_sa_len = yes; then
17415
17416 cat >>confdefs.h <<\_ACEOF
17417 #define HAVE_SA_LEN 1
17418 _ACEOF
17419
17420  fi
17421
17422
17423 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17424 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17425 if test "${ac_cv_ipv6_support+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   cat >conftest.$ac_ext <<_ACEOF
17429 #line $LINENO "configure"
17430 /* confdefs.h.  */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h.  */
17435  #include <sys/types.h>
17436 #include <sys/socket.h>
17437 #include <netinet/in.h>
17438 int
17439 main ()
17440 {
17441 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17442  0;
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449   (eval $ac_link) 2>&5
17450   ac_status=$?
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -s conftest$ac_exeext'
17454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455   (eval $ac_try) 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; }; then
17459   ac_cv_ipv6_support=yes
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 ac_cv_ipv6_support=no
17465 fi
17466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17467 fi
17468 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17469 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17470
17471 if test "$ac_cv_ipv6_support" = yes; then
17472
17473 cat >>confdefs.h <<\_ACEOF
17474 #define HAVE_IPV6 1
17475 _ACEOF
17476
17477 fi
17478
17479
17480
17481
17482 for ac_func in strftime
17483 do
17484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17485 echo "$as_me:$LINENO: checking for $ac_func" >&5
17486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17487 if eval "test \"\${$as_ac_var+set}\" = set"; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490   cat >conftest.$ac_ext <<_ACEOF
17491 #line $LINENO "configure"
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497 /* System header to define __stub macros and hopefully few prototypes,
17498     which can conflict with char $ac_func (); below.
17499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500     <limits.h> exists even on freestanding compilers.  */
17501 #ifdef __STDC__
17502 # include <limits.h>
17503 #else
17504 # include <assert.h>
17505 #endif
17506 /* Override any gcc2 internal prototype to avoid an error.  */
17507 #ifdef __cplusplus
17508 extern "C"
17509 {
17510 #endif
17511 /* We use char because int might match the return type of a gcc2
17512    builtin and then its argument prototype would still apply.  */
17513 char $ac_func ();
17514 /* The GNU C library defines this for functions which it implements
17515     to always fail with ENOSYS.  Some functions are actually named
17516     something starting with __ and the normal name is an alias.  */
17517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17518 choke me
17519 #else
17520 char (*f) () = $ac_func;
17521 #endif
17522 #ifdef __cplusplus
17523 }
17524 #endif
17525
17526 int
17527 main ()
17528 {
17529 return f != $ac_func;
17530   ;
17531   return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536   (eval $ac_link) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } &&
17540          { ac_try='test -s conftest$ac_exeext'
17541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542   (eval $ac_try) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; }; then
17546   eval "$as_ac_var=yes"
17547 else
17548   echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 eval "$as_ac_var=no"
17552 fi
17553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17554 fi
17555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17557 if test `eval echo '${'$as_ac_var'}'` = yes; then
17558   cat >>confdefs.h <<_ACEOF
17559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17560 _ACEOF
17561
17562 else
17563   # strftime is in -lintl on SCO UNIX.
17564 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17565 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17566 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   ac_check_lib_save_LIBS=$LIBS
17570 LIBS="-lintl  $LIBS"
17571 cat >conftest.$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578
17579 /* Override any gcc2 internal prototype to avoid an error.  */
17580 #ifdef __cplusplus
17581 extern "C"
17582 #endif
17583 /* We use char because int might match the return type of a gcc2
17584    builtin and then its argument prototype would still apply.  */
17585 char strftime ();
17586 int
17587 main ()
17588 {
17589 strftime ();
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596   (eval $ac_link) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } &&
17600          { ac_try='test -s conftest$ac_exeext'
17601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602   (eval $ac_try) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606   ac_cv_lib_intl_strftime=yes
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 ac_cv_lib_intl_strftime=no
17612 fi
17613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17615 fi
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17617 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17618 if test $ac_cv_lib_intl_strftime = yes; then
17619   cat >>confdefs.h <<\_ACEOF
17620 #define HAVE_STRFTIME 1
17621 _ACEOF
17622
17623 LIBS="-lintl $LIBS"
17624 fi
17625
17626 fi
17627 done
17628
17629
17630 for ac_func in vprintf
17631 do
17632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17633 echo "$as_me:$LINENO: checking for $ac_func" >&5
17634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17635 if eval "test \"\${$as_ac_var+set}\" = set"; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638   cat >conftest.$ac_ext <<_ACEOF
17639 #line $LINENO "configure"
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 /* System header to define __stub macros and hopefully few prototypes,
17646     which can conflict with char $ac_func (); below.
17647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648     <limits.h> exists even on freestanding compilers.  */
17649 #ifdef __STDC__
17650 # include <limits.h>
17651 #else
17652 # include <assert.h>
17653 #endif
17654 /* Override any gcc2 internal prototype to avoid an error.  */
17655 #ifdef __cplusplus
17656 extern "C"
17657 {
17658 #endif
17659 /* We use char because int might match the return type of a gcc2
17660    builtin and then its argument prototype would still apply.  */
17661 char $ac_func ();
17662 /* The GNU C library defines this for functions which it implements
17663     to always fail with ENOSYS.  Some functions are actually named
17664     something starting with __ and the normal name is an alias.  */
17665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17666 choke me
17667 #else
17668 char (*f) () = $ac_func;
17669 #endif
17670 #ifdef __cplusplus
17671 }
17672 #endif
17673
17674 int
17675 main ()
17676 {
17677 return f != $ac_func;
17678   ;
17679   return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684   (eval $ac_link) 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } &&
17688          { ac_try='test -s conftest$ac_exeext'
17689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690   (eval $ac_try) 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); }; }; then
17694   eval "$as_ac_var=yes"
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 eval "$as_ac_var=no"
17700 fi
17701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17702 fi
17703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17705 if test `eval echo '${'$as_ac_var'}'` = yes; then
17706   cat >>confdefs.h <<_ACEOF
17707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17708 _ACEOF
17709
17710 echo "$as_me:$LINENO: checking for _doprnt" >&5
17711 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17712 if test "${ac_cv_func__doprnt+set}" = set; then
17713   echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715   cat >conftest.$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722 /* System header to define __stub macros and hopefully few prototypes,
17723     which can conflict with char _doprnt (); below.
17724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17725     <limits.h> exists even on freestanding compilers.  */
17726 #ifdef __STDC__
17727 # include <limits.h>
17728 #else
17729 # include <assert.h>
17730 #endif
17731 /* Override any gcc2 internal prototype to avoid an error.  */
17732 #ifdef __cplusplus
17733 extern "C"
17734 {
17735 #endif
17736 /* We use char because int might match the return type of a gcc2
17737    builtin and then its argument prototype would still apply.  */
17738 char _doprnt ();
17739 /* The GNU C library defines this for functions which it implements
17740     to always fail with ENOSYS.  Some functions are actually named
17741     something starting with __ and the normal name is an alias.  */
17742 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17743 choke me
17744 #else
17745 char (*f) () = _doprnt;
17746 #endif
17747 #ifdef __cplusplus
17748 }
17749 #endif
17750
17751 int
17752 main ()
17753 {
17754 return f != _doprnt;
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761   (eval $ac_link) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } &&
17765          { ac_try='test -s conftest$ac_exeext'
17766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767   (eval $ac_try) 2>&5
17768   ac_status=$?
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); }; }; then
17771   ac_cv_func__doprnt=yes
17772 else
17773   echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 ac_cv_func__doprnt=no
17777 fi
17778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17779 fi
17780 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17781 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17782 if test $ac_cv_func__doprnt = yes; then
17783
17784 cat >>confdefs.h <<\_ACEOF
17785 #define HAVE_DOPRNT 1
17786 _ACEOF
17787
17788 fi
17789
17790 fi
17791 done
17792
17793
17794 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17795 # for constant arguments.  Useless!
17796 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17797 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17798 if test "${ac_cv_working_alloca_h+set}" = set; then
17799   echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801   cat >conftest.$ac_ext <<_ACEOF
17802 #line $LINENO "configure"
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808 #include <alloca.h>
17809 int
17810 main ()
17811 {
17812 char *p = (char *) alloca (2 * sizeof (int));
17813   ;
17814   return 0;
17815 }
17816 _ACEOF
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819   (eval $ac_link) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -s conftest$ac_exeext'
17824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825   (eval $ac_try) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; }; then
17829   ac_cv_working_alloca_h=yes
17830 else
17831   echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834 ac_cv_working_alloca_h=no
17835 fi
17836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17837 fi
17838 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17839 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17840 if test $ac_cv_working_alloca_h = yes; then
17841
17842 cat >>confdefs.h <<\_ACEOF
17843 #define HAVE_ALLOCA_H 1
17844 _ACEOF
17845
17846 fi
17847
17848 echo "$as_me:$LINENO: checking for alloca" >&5
17849 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17850 if test "${ac_cv_func_alloca_works+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854 #line $LINENO "configure"
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860 #ifdef __GNUC__
17861 # define alloca __builtin_alloca
17862 #else
17863 # ifdef _MSC_VER
17864 #  include <malloc.h>
17865 #  define alloca _alloca
17866 # else
17867 #  if HAVE_ALLOCA_H
17868 #   include <alloca.h>
17869 #  else
17870 #   ifdef _AIX
17871  #pragma alloca
17872 #   else
17873 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17874 char *alloca ();
17875 #    endif
17876 #   endif
17877 #  endif
17878 # endif
17879 #endif
17880
17881 int
17882 main ()
17883 {
17884 char *p = (char *) alloca (1);
17885   ;
17886   return 0;
17887 }
17888 _ACEOF
17889 rm -f conftest.$ac_objext conftest$ac_exeext
17890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17891   (eval $ac_link) 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } &&
17895          { ac_try='test -s conftest$ac_exeext'
17896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897   (eval $ac_try) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; }; then
17901   ac_cv_func_alloca_works=yes
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ac_cv_func_alloca_works=no
17907 fi
17908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17909 fi
17910 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17911 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17912
17913 if test $ac_cv_func_alloca_works = yes; then
17914
17915 cat >>confdefs.h <<\_ACEOF
17916 #define HAVE_ALLOCA 1
17917 _ACEOF
17918
17919 else
17920   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17921 # that cause trouble.  Some versions do not even contain alloca or
17922 # contain a buggy version.  If you still want to use their alloca,
17923 # use ar to extract alloca.o from them instead of compiling alloca.c.
17924
17925 ALLOCA=alloca.$ac_objext
17926
17927 cat >>confdefs.h <<\_ACEOF
17928 #define C_ALLOCA 1
17929 _ACEOF
17930
17931
17932 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17933 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17934 if test "${ac_cv_os_cray+set}" = set; then
17935   echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937   cat >conftest.$ac_ext <<_ACEOF
17938 #line $LINENO "configure"
17939 /* confdefs.h.  */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h.  */
17944 #if defined(CRAY) && ! defined(CRAY2)
17945 webecray
17946 #else
17947 wenotbecray
17948 #endif
17949
17950 _ACEOF
17951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17952   $EGREP "webecray" >/dev/null 2>&1; then
17953   ac_cv_os_cray=yes
17954 else
17955   ac_cv_os_cray=no
17956 fi
17957 rm -f conftest*
17958
17959 fi
17960 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17961 echo "${ECHO_T}$ac_cv_os_cray" >&6
17962 if test $ac_cv_os_cray = yes; then
17963   for ac_func in _getb67 GETB67 getb67; do
17964     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17965 echo "$as_me:$LINENO: checking for $ac_func" >&5
17966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17967 if eval "test \"\${$as_ac_var+set}\" = set"; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   cat >conftest.$ac_ext <<_ACEOF
17971 #line $LINENO "configure"
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977 /* System header to define __stub macros and hopefully few prototypes,
17978     which can conflict with char $ac_func (); below.
17979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17980     <limits.h> exists even on freestanding compilers.  */
17981 #ifdef __STDC__
17982 # include <limits.h>
17983 #else
17984 # include <assert.h>
17985 #endif
17986 /* Override any gcc2 internal prototype to avoid an error.  */
17987 #ifdef __cplusplus
17988 extern "C"
17989 {
17990 #endif
17991 /* We use char because int might match the return type of a gcc2
17992    builtin and then its argument prototype would still apply.  */
17993 char $ac_func ();
17994 /* The GNU C library defines this for functions which it implements
17995     to always fail with ENOSYS.  Some functions are actually named
17996     something starting with __ and the normal name is an alias.  */
17997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17998 choke me
17999 #else
18000 char (*f) () = $ac_func;
18001 #endif
18002 #ifdef __cplusplus
18003 }
18004 #endif
18005
18006 int
18007 main ()
18008 {
18009 return f != $ac_func;
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016   (eval $ac_link) 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -s conftest$ac_exeext'
18021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022   (eval $ac_try) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; }; then
18026   eval "$as_ac_var=yes"
18027 else
18028   echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18030
18031 eval "$as_ac_var=no"
18032 fi
18033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18034 fi
18035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18037 if test `eval echo '${'$as_ac_var'}'` = yes; then
18038
18039 cat >>confdefs.h <<_ACEOF
18040 #define CRAY_STACKSEG_END $ac_func
18041 _ACEOF
18042
18043     break
18044 fi
18045
18046   done
18047 fi
18048
18049 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18050 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18051 if test "${ac_cv_c_stack_direction+set}" = set; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054   if test "$cross_compiling" = yes; then
18055   ac_cv_c_stack_direction=0
18056 else
18057   cat >conftest.$ac_ext <<_ACEOF
18058 #line $LINENO "configure"
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064 int
18065 find_stack_direction ()
18066 {
18067   static char *addr = 0;
18068   auto char dummy;
18069   if (addr == 0)
18070     {
18071       addr = &dummy;
18072       return find_stack_direction ();
18073     }
18074   else
18075     return (&dummy > addr) ? 1 : -1;
18076 }
18077
18078 int
18079 main ()
18080 {
18081   exit (find_stack_direction () < 0);
18082 }
18083 _ACEOF
18084 rm -f conftest$ac_exeext
18085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18086   (eval $ac_link) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091   (eval $ac_try) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); }; }; then
18095   ac_cv_c_stack_direction=1
18096 else
18097   echo "$as_me: program exited with status $ac_status" >&5
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 ( exit $ac_status )
18102 ac_cv_c_stack_direction=-1
18103 fi
18104 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18105 fi
18106 fi
18107 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18108 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18109
18110 cat >>confdefs.h <<_ACEOF
18111 #define STACK_DIRECTION $ac_cv_c_stack_direction
18112 _ACEOF
18113
18114
18115 fi
18116
18117 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
18118 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
18119 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
18120 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123   ac_check_lib_save_LIBS=$LIBS
18124 LIBS="-lsun  $LIBS"
18125 cat >conftest.$ac_ext <<_ACEOF
18126 #line $LINENO "configure"
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132
18133 /* Override any gcc2 internal prototype to avoid an error.  */
18134 #ifdef __cplusplus
18135 extern "C"
18136 #endif
18137 /* We use char because int might match the return type of a gcc2
18138    builtin and then its argument prototype would still apply.  */
18139 char getmntent ();
18140 int
18141 main ()
18142 {
18143 getmntent ();
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18150   (eval $ac_link) 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); } &&
18154          { ac_try='test -s conftest$ac_exeext'
18155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156   (eval $ac_try) 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; }; then
18160   ac_cv_lib_sun_getmntent=yes
18161 else
18162   echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_cv_lib_sun_getmntent=no
18166 fi
18167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18168 LIBS=$ac_check_lib_save_LIBS
18169 fi
18170 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
18171 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
18172 if test $ac_cv_lib_sun_getmntent = yes; then
18173   LIBS="-lsun $LIBS"
18174 else
18175   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
18176 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
18177 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180   ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-lseq  $LIBS"
18182 cat >conftest.$ac_ext <<_ACEOF
18183 #line $LINENO "configure"
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189
18190 /* Override any gcc2 internal prototype to avoid an error.  */
18191 #ifdef __cplusplus
18192 extern "C"
18193 #endif
18194 /* We use char because int might match the return type of a gcc2
18195    builtin and then its argument prototype would still apply.  */
18196 char getmntent ();
18197 int
18198 main ()
18199 {
18200 getmntent ();
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>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -s conftest$ac_exeext'
18212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213   (eval $ac_try) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; }; then
18217   ac_cv_lib_seq_getmntent=yes
18218 else
18219   echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 ac_cv_lib_seq_getmntent=no
18223 fi
18224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18226 fi
18227 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
18228 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
18229 if test $ac_cv_lib_seq_getmntent = yes; then
18230   LIBS="-lseq $LIBS"
18231 else
18232   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
18233 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
18234 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
18235   echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237   ac_check_lib_save_LIBS=$LIBS
18238 LIBS="-lgen  $LIBS"
18239 cat >conftest.$ac_ext <<_ACEOF
18240 #line $LINENO "configure"
18241 /* confdefs.h.  */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h.  */
18246
18247 /* Override any gcc2 internal prototype to avoid an error.  */
18248 #ifdef __cplusplus
18249 extern "C"
18250 #endif
18251 /* We use char because int might match the return type of a gcc2
18252    builtin and then its argument prototype would still apply.  */
18253 char getmntent ();
18254 int
18255 main ()
18256 {
18257 getmntent ();
18258   ;
18259   return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264   (eval $ac_link) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); } &&
18268          { ac_try='test -s conftest$ac_exeext'
18269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270   (eval $ac_try) 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; }; then
18274   ac_cv_lib_gen_getmntent=yes
18275 else
18276   echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 ac_cv_lib_gen_getmntent=no
18280 fi
18281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18283 fi
18284 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
18285 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
18286 if test $ac_cv_lib_gen_getmntent = yes; then
18287   LIBS="-lgen $LIBS"
18288 fi
18289
18290 fi
18291
18292 fi
18293
18294
18295 for ac_func in getmntent
18296 do
18297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18298 echo "$as_me:$LINENO: checking for $ac_func" >&5
18299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18300 if eval "test \"\${$as_ac_var+set}\" = set"; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18305 /* confdefs.h.  */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h.  */
18310 /* System header to define __stub macros and hopefully few prototypes,
18311     which can conflict with char $ac_func (); below.
18312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18313     <limits.h> exists even on freestanding compilers.  */
18314 #ifdef __STDC__
18315 # include <limits.h>
18316 #else
18317 # include <assert.h>
18318 #endif
18319 /* Override any gcc2 internal prototype to avoid an error.  */
18320 #ifdef __cplusplus
18321 extern "C"
18322 {
18323 #endif
18324 /* We use char because int might match the return type of a gcc2
18325    builtin and then its argument prototype would still apply.  */
18326 char $ac_func ();
18327 /* The GNU C library defines this for functions which it implements
18328     to always fail with ENOSYS.  Some functions are actually named
18329     something starting with __ and the normal name is an alias.  */
18330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18331 choke me
18332 #else
18333 char (*f) () = $ac_func;
18334 #endif
18335 #ifdef __cplusplus
18336 }
18337 #endif
18338
18339 int
18340 main ()
18341 {
18342 return f != $ac_func;
18343   ;
18344   return 0;
18345 }
18346 _ACEOF
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18349   (eval $ac_link) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); } &&
18353          { ac_try='test -s conftest$ac_exeext'
18354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355   (eval $ac_try) 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; }; then
18359   eval "$as_ac_var=yes"
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 eval "$as_ac_var=no"
18365 fi
18366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18367 fi
18368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371   cat >>confdefs.h <<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18373 _ACEOF
18374
18375 fi
18376 done
18377
18378
18379 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18380 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18381 if test "${ac_cv_func_closedir_void+set}" = set; then
18382   echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384   if test "$cross_compiling" = yes; then
18385   ac_cv_func_closedir_void=yes
18386 else
18387   cat >conftest.$ac_ext <<_ACEOF
18388 #line $LINENO "configure"
18389 /* confdefs.h.  */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h.  */
18394 $ac_includes_default
18395 #include <$ac_header_dirent>
18396 #ifndef __cplusplus
18397 int closedir ();
18398 #endif
18399
18400 int
18401 main ()
18402 {
18403 exit (closedir (opendir (".")) != 0);
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 rm -f conftest$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410   (eval $ac_link) 2>&5
18411   ac_status=$?
18412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415   (eval $ac_try) 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); }; }; then
18419   ac_cv_func_closedir_void=no
18420 else
18421   echo "$as_me: program exited with status $ac_status" >&5
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18424
18425 ( exit $ac_status )
18426 ac_cv_func_closedir_void=yes
18427 fi
18428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18429 fi
18430 fi
18431 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18432 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18433 if test $ac_cv_func_closedir_void = yes; then
18434
18435 cat >>confdefs.h <<\_ACEOF
18436 #define CLOSEDIR_VOID 1
18437 _ACEOF
18438
18439 fi
18440
18441 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18442 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18443 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18444   echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446   if test "$cross_compiling" = yes; then
18447   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18448 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18449    { (exit 1); exit 1; }; }
18450 else
18451   cat >conftest.$ac_ext <<_ACEOF
18452 #line $LINENO "configure"
18453 /* confdefs.h.  */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h.  */
18458 #if HAVE_UNISTD_H
18459 # include <unistd.h>
18460 #endif
18461
18462 int
18463 main ()
18464 {
18465 /* If this system has a BSD-style setpgrp which takes arguments,
18466   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18467   exit successfully. */
18468   exit (setpgrp (1,1) == -1 ? 0 : 1);
18469   ;
18470   return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest$ac_exeext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475   (eval $ac_link) 2>&5
18476   ac_status=$?
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480   (eval $ac_try) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; }; then
18484   ac_cv_func_setpgrp_void=no
18485 else
18486   echo "$as_me: program exited with status $ac_status" >&5
18487 echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490 ( exit $ac_status )
18491 ac_cv_func_setpgrp_void=yes
18492 fi
18493 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18494 fi
18495 fi
18496 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18497 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18498 if test $ac_cv_func_setpgrp_void = yes; then
18499
18500 cat >>confdefs.h <<\_ACEOF
18501 #define SETPGRP_VOID 1
18502 _ACEOF
18503
18504 fi
18505                       # AC_FUNC_FNMATCH    dnl use local version
18506
18507
18508 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18509 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18510 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   ac_check_lib_save_LIBS=$LIBS
18514 LIBS="-lxpg4  $LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18516 #line $LINENO "configure"
18517 /* confdefs.h.  */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h.  */
18522
18523 /* Override any gcc2 internal prototype to avoid an error.  */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 /* We use char because int might match the return type of a gcc2
18528    builtin and then its argument prototype would still apply.  */
18529 char setlocale ();
18530 int
18531 main ()
18532 {
18533 setlocale ();
18534   ;
18535   return 0;
18536 }
18537 _ACEOF
18538 rm -f conftest.$ac_objext conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540   (eval $ac_link) 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } &&
18544          { ac_try='test -s conftest$ac_exeext'
18545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546   (eval $ac_try) 2>&5
18547   ac_status=$?
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); }; }; then
18550   ac_cv_lib_xpg4_setlocale=yes
18551 else
18552   echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18554
18555 ac_cv_lib_xpg4_setlocale=no
18556 fi
18557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18559 fi
18560 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18561 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18562 if test $ac_cv_lib_xpg4_setlocale = yes; then
18563   LIBS="$LIBS -lxpg4"
18564 fi
18565
18566
18567
18568
18569 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18570 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18571 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lsun  $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18577 #line $LINENO "configure"
18578 /* confdefs.h.  */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h.  */
18583
18584 /* Override any gcc2 internal prototype to avoid an error.  */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 /* We use char because int might match the return type of a gcc2
18589    builtin and then its argument prototype would still apply.  */
18590 char getpwnam ();
18591 int
18592 main ()
18593 {
18594 getpwnam ();
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601   (eval $ac_link) 2>&5
18602   ac_status=$?
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); } &&
18605          { ac_try='test -s conftest$ac_exeext'
18606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607   (eval $ac_try) 2>&5
18608   ac_status=$?
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); }; }; then
18611   ac_cv_lib_sun_getpwnam=yes
18612 else
18613   echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616 ac_cv_lib_sun_getpwnam=no
18617 fi
18618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_lib_save_LIBS
18620 fi
18621 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18622 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18623 if test $ac_cv_lib_sun_getpwnam = yes; then
18624   cat >>confdefs.h <<_ACEOF
18625 #define HAVE_LIBSUN 1
18626 _ACEOF
18627
18628   LIBS="-lsun $LIBS"
18629
18630 fi
18631
18632
18633
18634 for ac_header in zlib.h
18635 do
18636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18638   echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 fi
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18645 else
18646   # Is the header compilable?
18647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18649 cat >conftest.$ac_ext <<_ACEOF
18650 #line $LINENO "configure"
18651 /* confdefs.h.  */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h.  */
18656 $ac_includes_default
18657 #include <$ac_header>
18658 _ACEOF
18659 rm -f conftest.$ac_objext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661   (eval $ac_compile) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); } &&
18665          { ac_try='test -s conftest.$ac_objext'
18666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667   (eval $ac_try) 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; }; then
18671   ac_header_compiler=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_header_compiler=no
18677 fi
18678 rm -f conftest.$ac_objext conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18680 echo "${ECHO_T}$ac_header_compiler" >&6
18681
18682 # Is the header present?
18683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18685 cat >conftest.$ac_ext <<_ACEOF
18686 #line $LINENO "configure"
18687 /* confdefs.h.  */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h.  */
18692 #include <$ac_header>
18693 _ACEOF
18694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } >/dev/null; then
18702   if test -s conftest.err; then
18703     ac_cpp_err=$ac_c_preproc_warn_flag
18704   else
18705     ac_cpp_err=
18706   fi
18707 else
18708   ac_cpp_err=yes
18709 fi
18710 if test -z "$ac_cpp_err"; then
18711   ac_header_preproc=yes
18712 else
18713   echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716   ac_header_preproc=no
18717 fi
18718 rm -f conftest.err conftest.$ac_ext
18719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18720 echo "${ECHO_T}$ac_header_preproc" >&6
18721
18722 # So?  What about this header?
18723 case $ac_header_compiler:$ac_header_preproc in
18724   yes:no )
18725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18729     (
18730       cat <<\_ASBOX
18731 ## ------------------------------------ ##
18732 ## Report this to bug-autoconf@gnu.org. ##
18733 ## ------------------------------------ ##
18734 _ASBOX
18735     ) |
18736       sed "s/^/$as_me: WARNING:     /" >&2
18737     ;;
18738   no:yes )
18739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18741     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18745     (
18746       cat <<\_ASBOX
18747 ## ------------------------------------ ##
18748 ## Report this to bug-autoconf@gnu.org. ##
18749 ## ------------------------------------ ##
18750 _ASBOX
18751     ) |
18752       sed "s/^/$as_me: WARNING:     /" >&2
18753     ;;
18754 esac
18755 echo "$as_me:$LINENO: checking for $ac_header" >&5
18756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18758   echo $ECHO_N "(cached) $ECHO_C" >&6
18759 else
18760   eval "$as_ac_Header=$ac_header_preproc"
18761 fi
18762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18764
18765 fi
18766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18767   cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18769 _ACEOF
18770
18771 fi
18772
18773 done
18774
18775 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18776 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18777 if test "${ac_cv_lib_z_deflate+set}" = set; then
18778   echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780   ac_check_lib_save_LIBS=$LIBS
18781 LIBS="-lz  $LIBS"
18782 cat >conftest.$ac_ext <<_ACEOF
18783 #line $LINENO "configure"
18784 /* confdefs.h.  */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h.  */
18789
18790 /* Override any gcc2 internal prototype to avoid an error.  */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 /* We use char because int might match the return type of a gcc2
18795    builtin and then its argument prototype would still apply.  */
18796 char deflate ();
18797 int
18798 main ()
18799 {
18800 deflate ();
18801   ;
18802   return 0;
18803 }
18804 _ACEOF
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807   (eval $ac_link) 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); } &&
18811          { ac_try='test -s conftest$ac_exeext'
18812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813   (eval $ac_try) 2>&5
18814   ac_status=$?
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); }; }; then
18817   ac_cv_lib_z_deflate=yes
18818 else
18819   echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822 ac_cv_lib_z_deflate=no
18823 fi
18824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18825 LIBS=$ac_check_lib_save_LIBS
18826 fi
18827 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18828 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18829 if test $ac_cv_lib_z_deflate = yes; then
18830   FDLIBS="-lz"
18831 fi
18832
18833 have_zlib=no
18834 if test x$FDLIBS = x-lz; then
18835   cat >>confdefs.h <<\_ACEOF
18836 #define HAVE_LIBZ 1
18837 _ACEOF
18838
18839   have_zlib=yes
18840 fi
18841
18842 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18843   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18844 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18845 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18846   echo $ECHO_N "(cached) $ECHO_C" >&6
18847 fi
18848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18849 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18850 else
18851   # Is the header compilable?
18852 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18853 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18855 #line $LINENO "configure"
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861 $ac_includes_default
18862 #include <sys/acl.h>
18863 _ACEOF
18864 rm -f conftest.$ac_objext
18865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18866   (eval $ac_compile) 2>&5
18867   ac_status=$?
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } &&
18870          { ac_try='test -s conftest.$ac_objext'
18871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872   (eval $ac_try) 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; }; then
18876   ac_header_compiler=yes
18877 else
18878   echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881 ac_header_compiler=no
18882 fi
18883 rm -f conftest.$ac_objext conftest.$ac_ext
18884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18885 echo "${ECHO_T}$ac_header_compiler" >&6
18886
18887 # Is the header present?
18888 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18889 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18890 cat >conftest.$ac_ext <<_ACEOF
18891 #line $LINENO "configure"
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897 #include <sys/acl.h>
18898 _ACEOF
18899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } >/dev/null; then
18907   if test -s conftest.err; then
18908     ac_cpp_err=$ac_c_preproc_warn_flag
18909   else
18910     ac_cpp_err=
18911   fi
18912 else
18913   ac_cpp_err=yes
18914 fi
18915 if test -z "$ac_cpp_err"; then
18916   ac_header_preproc=yes
18917 else
18918   echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921   ac_header_preproc=no
18922 fi
18923 rm -f conftest.err conftest.$ac_ext
18924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18925 echo "${ECHO_T}$ac_header_preproc" >&6
18926
18927 # So?  What about this header?
18928 case $ac_header_compiler:$ac_header_preproc in
18929   yes:no )
18930     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18931 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18932     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18933 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18934     (
18935       cat <<\_ASBOX
18936 ## ------------------------------------ ##
18937 ## Report this to bug-autoconf@gnu.org. ##
18938 ## ------------------------------------ ##
18939 _ASBOX
18940     ) |
18941       sed "s/^/$as_me: WARNING:     /" >&2
18942     ;;
18943   no:yes )
18944     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18945 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18946     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18947 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18948     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18949 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18950     (
18951       cat <<\_ASBOX
18952 ## ------------------------------------ ##
18953 ## Report this to bug-autoconf@gnu.org. ##
18954 ## ------------------------------------ ##
18955 _ASBOX
18956     ) |
18957       sed "s/^/$as_me: WARNING:     /" >&2
18958     ;;
18959 esac
18960 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18961 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18962 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18963   echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965   ac_cv_header_sys_acl_h=$ac_header_preproc
18966 fi
18967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18968 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18969
18970 fi
18971
18972
18973 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18974 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18975 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   ac_check_lib_save_LIBS=$LIBS
18979 LIBS="-lacl  $LIBS"
18980 cat >conftest.$ac_ext <<_ACEOF
18981 #line $LINENO "configure"
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987
18988 /* Override any gcc2 internal prototype to avoid an error.  */
18989 #ifdef __cplusplus
18990 extern "C"
18991 #endif
18992 /* We use char because int might match the return type of a gcc2
18993    builtin and then its argument prototype would still apply.  */
18994 char acl_get_file ();
18995 int
18996 main ()
18997 {
18998 acl_get_file ();
18999   ;
19000   return 0;
19001 }
19002 _ACEOF
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19005   (eval $ac_link) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } &&
19009          { ac_try='test -s conftest$ac_exeext'
19010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011   (eval $ac_try) 2>&5
19012   ac_status=$?
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); }; }; then
19015   ac_cv_lib_acl_acl_get_file=yes
19016 else
19017   echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020 ac_cv_lib_acl_acl_get_file=no
19021 fi
19022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19023 LIBS=$ac_check_lib_save_LIBS
19024 fi
19025 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
19026 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
19027 if test $ac_cv_lib_acl_acl_get_file = yes; then
19028   FDLIBS="-lacl $FDLIBS"
19029 fi
19030
19031 have_acl=no
19032 if test $ac_cv_lib_acl_acl_get_file = yes; then
19033    cat >>confdefs.h <<\_ACEOF
19034 #define HAVE_ACL 1
19035 _ACEOF
19036
19037    have_acl=yes
19038 fi
19039
19040 PTHREAD_LIB=""
19041 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19042 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19043 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19044   echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046   ac_check_lib_save_LIBS=$LIBS
19047 LIBS="-lpthread  $LIBS"
19048 cat >conftest.$ac_ext <<_ACEOF
19049 #line $LINENO "configure"
19050 /* confdefs.h.  */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h.  */
19055
19056 /* Override any gcc2 internal prototype to avoid an error.  */
19057 #ifdef __cplusplus
19058 extern "C"
19059 #endif
19060 /* We use char because int might match the return type of a gcc2
19061    builtin and then its argument prototype would still apply.  */
19062 char pthread_create ();
19063 int
19064 main ()
19065 {
19066 pthread_create ();
19067   ;
19068   return 0;
19069 }
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073   (eval $ac_link) 2>&5
19074   ac_status=$?
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); } &&
19077          { ac_try='test -s conftest$ac_exeext'
19078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079   (eval $ac_try) 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; }; then
19083   ac_cv_lib_pthread_pthread_create=yes
19084 else
19085   echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_cv_lib_pthread_pthread_create=no
19089 fi
19090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19092 fi
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19094 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19095 if test $ac_cv_lib_pthread_pthread_create = yes; then
19096   PTHREAD_LIB="-lpthread"
19097 else
19098   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19099 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19100 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103   ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-lpthreads  $LIBS"
19105 cat >conftest.$ac_ext <<_ACEOF
19106 #line $LINENO "configure"
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112
19113 /* Override any gcc2 internal prototype to avoid an error.  */
19114 #ifdef __cplusplus
19115 extern "C"
19116 #endif
19117 /* We use char because int might match the return type of a gcc2
19118    builtin and then its argument prototype would still apply.  */
19119 char pthread_create ();
19120 int
19121 main ()
19122 {
19123 pthread_create ();
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130   (eval $ac_link) 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } &&
19134          { ac_try='test -s conftest$ac_exeext'
19135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136   (eval $ac_try) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_cv_lib_pthreads_pthread_create=yes
19141 else
19142   echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 ac_cv_lib_pthreads_pthread_create=no
19146 fi
19147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19149 fi
19150 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19151 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19152 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19153   PTHREAD_LIB="-lpthreads"
19154 else
19155   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19156 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19157 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160   ac_check_lib_save_LIBS=$LIBS
19161 LIBS="-lc_r  $LIBS"
19162 cat >conftest.$ac_ext <<_ACEOF
19163 #line $LINENO "configure"
19164 /* confdefs.h.  */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h.  */
19169
19170 /* Override any gcc2 internal prototype to avoid an error.  */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 /* We use char because int might match the return type of a gcc2
19175    builtin and then its argument prototype would still apply.  */
19176 char pthread_create ();
19177 int
19178 main ()
19179 {
19180 pthread_create ();
19181   ;
19182   return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187   (eval $ac_link) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); } &&
19191          { ac_try='test -s conftest$ac_exeext'
19192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193   (eval $ac_try) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; }; then
19197   ac_cv_lib_c_r_pthread_create=yes
19198 else
19199   echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 ac_cv_lib_c_r_pthread_create=no
19203 fi
19204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19205 LIBS=$ac_check_lib_save_LIBS
19206 fi
19207 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19208 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19209 if test $ac_cv_lib_c_r_pthread_create = yes; then
19210   PTHREAD_LIB="-lc_r"
19211 else
19212   echo "$as_me:$LINENO: checking for pthread_create" >&5
19213 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
19214 if test "${ac_cv_func_pthread_create+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   cat >conftest.$ac_ext <<_ACEOF
19218 #line $LINENO "configure"
19219 /* confdefs.h.  */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h.  */
19224 /* System header to define __stub macros and hopefully few prototypes,
19225     which can conflict with char pthread_create (); below.
19226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19227     <limits.h> exists even on freestanding compilers.  */
19228 #ifdef __STDC__
19229 # include <limits.h>
19230 #else
19231 # include <assert.h>
19232 #endif
19233 /* Override any gcc2 internal prototype to avoid an error.  */
19234 #ifdef __cplusplus
19235 extern "C"
19236 {
19237 #endif
19238 /* We use char because int might match the return type of a gcc2
19239    builtin and then its argument prototype would still apply.  */
19240 char pthread_create ();
19241 /* The GNU C library defines this for functions which it implements
19242     to always fail with ENOSYS.  Some functions are actually named
19243     something starting with __ and the normal name is an alias.  */
19244 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
19245 choke me
19246 #else
19247 char (*f) () = pthread_create;
19248 #endif
19249 #ifdef __cplusplus
19250 }
19251 #endif
19252
19253 int
19254 main ()
19255 {
19256 return f != pthread_create;
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 rm -f conftest.$ac_objext conftest$ac_exeext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263   (eval $ac_link) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } &&
19267          { ac_try='test -s conftest$ac_exeext'
19268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269   (eval $ac_try) 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; }; then
19273   ac_cv_func_pthread_create=yes
19274 else
19275   echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278 ac_cv_func_pthread_create=no
19279 fi
19280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19281 fi
19282 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19283 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19284
19285
19286 fi
19287
19288
19289 fi
19290
19291
19292 fi
19293
19294
19295
19296 cat >>confdefs.h <<\_ACEOF
19297 #define FDLIBS 1
19298 _ACEOF
19299
19300
19301
19302 CFLAGS=${CFLAGS--O}
19303 LDFLAGS=${LDFLAGS--O}
19304 DB_LIBS="${SQL_LFLAGS}"
19305
19306 CPPFLAGS="$CPPFLAGS"
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321 OBJLIST=
19322
19323
19324 lld="lld"
19325 llu="llu"
19326
19327 WCFLAGS=
19328 WLDFLAGS=
19329
19330 #
19331 # Finally we set appropriate distribution specific
19332 #  variables and defaults
19333 #
19334 # PFILES are platform specific files
19335 PFILES="platforms/Makefile"
19336 PSCMD="ps -e"
19337 WIN32=
19338 MACOSX=
19339 hostname=`uname -n | cut -d '.' -f 1`
19340 case "$DISTNAME" in
19341 aix)
19342         DISTVER=`uname -r`
19343         PSCMD="ps -e -o pid,comm"
19344         PFILES="${PFILES} \
19345            platforms/aix/Makefile"
19346         TAPEDRIVE="/dev/rmt0.1"
19347   ;;
19348 alpha)
19349         DISTVER=`uname -r`
19350         PTHREAD_LIB="-lpthread -lexc"
19351         if test "${CC}" = "gcc" ; then
19352            lld="lld"
19353            llu="llu"
19354         else
19355            lld="ld"
19356            llu="lu"
19357         fi
19358         TAPEDRIVE="/dev/nrmt0"
19359   ;;
19360 bsdi)
19361         DISTVER=`uname -a |awk '{print $3}'`
19362         TAPEDRIVE="/dev/nrmt0"
19363         PTHREAD_LIB="-pthread"
19364         CFLAGS="${CFLAGS} -pthread"
19365         PSCMD="ps -x -o pid,command"
19366         lld="qd"
19367         llu="qu"
19368         PFILES="${PFILES} \
19369             platforms/bsdi/Makefile \
19370             platforms/bsdi/bacula-fd \
19371             platforms/bsdi/bacula-sd \
19372             platforms/bsdi/bacula-dir"
19373         largefile_support="yes"
19374   ;;
19375 cygwin)
19376         DISTVER=`uname -a |awk '{print $3}'`
19377         TAPEDRIVE="/dev/nrst0"
19378         WIN32=win32
19379         WCFLAGS="-mwindows"
19380         WLDFLAGS="-mwindows"
19381   ;;
19382 darwin)
19383         DISTVER=`uname -r`
19384         TAPEDRIVE="/dev/nst0"
19385         PSCMD="ps -e -o pid,command"
19386         MACOSX=macosx
19387         PFILES="${PFILES} \
19388            platforms/darwin/Makefile"
19389   ;;
19390 debian)
19391         DISTVER=`cat /etc/debian_version`
19392         TAPEDRIVE="/dev/nrst0"
19393         PSCMD="ps -e -o pid,command"
19394   ;;
19395 freebsd)
19396         DISTVER=`uname -a |awk '{print $3}'`
19397         VER=`echo $DISTVER | cut -c 1`
19398         if test x$VER = x4 ; then
19399            PTHREAD_LIB="-pthread"
19400            CFLAGS="${CFLAGS} -pthread"
19401         fi
19402         lld="qd"
19403         llu="qu"
19404         TAPEDRIVE="/dev/nrsa0"
19405         PSCMD="ps -x -o pid,command"
19406         PFILES="${PFILES} \
19407             platforms/freebsd/Makefile \
19408             platforms/freebsd/bacula-fd \
19409             platforms/freebsd/bacula-sd \
19410             platforms/freebsd/bacula-dir"
19411         largefile_support="yes"
19412   ;;
19413 hpux)
19414         PSCMD="UNIX95=1 ps -e -o pid,comm"
19415         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19416         DISTVER=`uname -r`
19417         TAPEDRIVE="/dev/rmt/0hnb"
19418         PTHREAD_LIB="-lpthread"
19419         cat >>confdefs.h <<\_ACEOF
19420 #define _INCLUDE_LONGLONG 1
19421 _ACEOF
19422
19423   ;;
19424 irix)
19425         DISTVER=`uname -r`
19426         TAPEDRIVE="/dev/rmt/0cbn"
19427         PSCMD="ps -e -o pid,comm"
19428         PFILES="${PFILES} \
19429             platforms/irix/Makefile \
19430             platforms/irix/bacula-fd \
19431             platforms/irix/bacula-sd \
19432             platforms/irix/bacula-dir"
19433   ;;
19434 netbsd)
19435         DISTVER=`uname -a |awk '{print $3}'`
19436         lld="qd"
19437         llu="qu"
19438         TAPEDRIVE="/dev/nrst0"
19439         PSCMD="ps -a -o pid,command"
19440         PTHREAD_LIB="-pthread"
19441         CFLAGS="${CFLAGS} -pthread"
19442   ;;
19443 openbsd)
19444         DISTVER=`uname -a |awk '{print $3}'`
19445         lld="qd"
19446         llu="qu"
19447         TAPEDRIVE="/dev/nrst0"
19448         PSCMD="ps -ax -o pid,command"
19449         PTHREAD_LIB="-pthread"
19450         CFLAGS="${CFLAGS} -pthread"
19451         PFILES="${PFILES} \
19452             platforms/openbsd/Makefile \
19453             platforms/openbsd/bacula-fd \
19454             platforms/openbsd/bacula-sd \
19455             platforms/openbsd/bacula-dir"
19456   ;;
19457 redhat)
19458         if test -f /etc/whitebox-release ; then
19459            f=/etc/whitebox-release
19460         else
19461            f=/etc/redhat-release
19462         fi
19463         if test `cat $f | grep release |\
19464                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19465            DISTVER="Enterprise "`cat $f | grep release |\
19466                     cut -f 6 -d ' '`
19467         else
19468             DISTVER=`cat /etc/redhat-release | grep release |\
19469                      cut -f 5 -d ' '`
19470         fi
19471         TAPEDRIVE="/dev/nst0"
19472         PSCMD="ps -e -o pid,command"
19473         PFILES="${PFILES} \
19474             platforms/redhat/Makefile \
19475             platforms/redhat/bacula-fd \
19476             platforms/redhat/bacula-sd \
19477             platforms/redhat/bacula-dir \
19478             platforms/redhat/bacula.spec \
19479             "
19480         hostname=`hostname -s`
19481   ;;
19482 mandrake)
19483         DISTVER=`cat /etc/mandrake-release | grep release |\
19484            cut -f 5 -d ' '`
19485         TAPEDRIVE="/dev/nst0"
19486         PSCMD="ps -e -o pid,command"
19487         PFILES="${PFILES} \
19488             platforms/mandrake/Makefile \
19489             platforms/mandrake/bacula-fd \
19490             platforms/mandrake/bacula-sd \
19491             platforms/mandrake/bacula-dir \
19492             platforms/mandrake/bacula.spec \
19493             "
19494   ;;
19495 gentoo)
19496         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19497         TAPEDRIVE="/dev/nst0"
19498         PSCMD="ps -e -o pid,command"
19499         PFILES="${PFILES} \
19500             platforms/gentoo/Makefile \
19501          platforms/gentoo/bacula-init \
19502             platforms/gentoo/bacula-fd \
19503             platforms/gentoo/bacula-sd \
19504             platforms/gentoo/bacula-dir"
19505   ;;
19506 slackware)
19507         DISTVER=`cat /etc/slackware-version`
19508         TAPEDRIVE="/dev/nst0"
19509         PSCMD="ps -e -o pid,command"
19510         PFILES="${PFILES} \
19511             platforms/slackware/Makefile \
19512             platforms/slackware/rc.bacula-fd \
19513             platforms/slackware/rc.bacula-sd \
19514             platforms/slackware/rc.bacula-dir\
19515             platforms/slackware/functions.bacula"
19516   ;;
19517 solaris)
19518         DISTVER=`uname -r`
19519         TAPEDRIVE="/dev/rmt/0cbn"
19520         PSCMD="ps -e -o pid,comm"
19521         PFILES="${PFILES} \
19522             platforms/solaris/Makefile \
19523             platforms/solaris/bacula-fd \
19524             platforms/solaris/bacula-sd \
19525             platforms/solaris/bacula-dir"
19526         if test x$DISTVER = x5.6 ; then
19527             cat >>confdefs.h <<\_ACEOF
19528 #define HAVE_OLD_SOCKOPT 1
19529 _ACEOF
19530
19531         fi
19532         LIBS="$LIBS -lresolv"
19533   ;;
19534 suse)
19535         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19536             cut -f 3 -d ' '`
19537         TAPEDRIVE="/dev/nst0"
19538         PSCMD="ps -e -o pid,command"
19539         PFILES="${PFILES} \
19540             platforms/suse/Makefile \
19541             platforms/suse/bacula-fd \
19542             platforms/suse/bacula-sd \
19543             platforms/suse/bacula-dir \
19544             platforms/suse/bacula \
19545             platforms/suse/bacula.spec"
19546   ;;
19547 suse5)
19548         DISTNAME=suse
19549         DISTVER=5.x
19550         TAPEDRIVE="/dev/nst0"
19551         PSCMD="ps -e -o pid,command"
19552         PFILES="${PFILES} \
19553             platforms/suse/Makefile \
19554             platforms/suse/bacula-fd \
19555             platforms/suse/bacula-sd \
19556             platforms/suse/bacula-dir"
19557   ;;
19558 unknown)
19559         DISTVER=unknown
19560         TAPEDRIVE="/dev/nst0"
19561   ;;
19562 *)
19563   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19564   ;;
19565 esac
19566
19567
19568
19569 LIBS="$PTHREAD_LIB $LIBS"
19570
19571 cat >>confdefs.h <<_ACEOF
19572 #define lld "$lld"
19573 _ACEOF
19574
19575 cat >>confdefs.h <<_ACEOF
19576 #define llu "$llu"
19577 _ACEOF
19578
19579
19580
19581
19582
19583
19584
19585
19586 MCOMMON=./autoconf/Make.common
19587
19588
19589 if test "x${subsysdir}" = "x${sbindir}" ; then
19590    echo " "
19591    echo " "
19592    echo "You have set both --sbindir and --with-subsys-dir"
19593    echo "  equal to: ${subsysdir} "
19594    echo "This is not permitted. Please reconfigure."
19595    echo " "
19596    echo "Aborting configuration ..."
19597    echo " "
19598    echo " "
19599    exit 1
19600 fi
19601
19602                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               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/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.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 src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
19603           ac_config_commands="$ac_config_commands default"
19604 cat >confcache <<\_ACEOF
19605 # This file is a shell script that caches the results of configure
19606 # tests run on this system so they can be shared between configure
19607 # scripts and configure runs, see configure's option --config-cache.
19608 # It is not useful on other systems.  If it contains results you don't
19609 # want to keep, you may remove or edit it.
19610 #
19611 # config.status only pays attention to the cache file if you give it
19612 # the --recheck option to rerun configure.
19613 #
19614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19616 # following values.
19617
19618 _ACEOF
19619
19620 # The following way of writing the cache mishandles newlines in values,
19621 # but we know of no workaround that is simple, portable, and efficient.
19622 # So, don't put newlines in cache variables' values.
19623 # Ultrix sh set writes to stderr and can't be redirected directly,
19624 # and sets the high bit in the cache file unless we assign to the vars.
19625 {
19626   (set) 2>&1 |
19627     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19628     *ac_space=\ *)
19629       # `set' does not quote correctly, so add quotes (double-quote
19630       # substitution turns \\\\ into \\, and sed turns \\ into \).
19631       sed -n \
19632         "s/'/'\\\\''/g;
19633           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19634       ;;
19635     *)
19636       # `set' quotes correctly as required by POSIX, so do not add quotes.
19637       sed -n \
19638         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19639       ;;
19640     esac;
19641 } |
19642   sed '
19643      t clear
19644      : clear
19645      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19646      t end
19647      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19648      : end' >>confcache
19649 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19650   if test -w $cache_file; then
19651     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19652     cat confcache >$cache_file
19653   else
19654     echo "not updating unwritable cache $cache_file"
19655   fi
19656 fi
19657 rm -f confcache
19658
19659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19660 # Let make expand exec_prefix.
19661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19662
19663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19665 # trailing colons and then remove the whole line if VPATH becomes empty
19666 # (actually we leave an empty line to preserve line numbers).
19667 if test "x$srcdir" = x.; then
19668   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19669 s/:*\$(srcdir):*/:/;
19670 s/:*\${srcdir}:*/:/;
19671 s/:*@srcdir@:*/:/;
19672 s/^\([^=]*=[    ]*\):*/\1/;
19673 s/:*$//;
19674 s/^[^=]*=[      ]*$//;
19675 }'
19676 fi
19677
19678 DEFS=-DHAVE_CONFIG_H
19679
19680 ac_libobjs=
19681 ac_ltlibobjs=
19682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19683   # 1. Remove the extension, and $U if already installed.
19684   ac_i=`echo "$ac_i" |
19685          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19686   # 2. Add them.
19687   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19688   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19689 done
19690 LIBOBJS=$ac_libobjs
19691
19692 LTLIBOBJS=$ac_ltlibobjs
19693
19694
19695
19696 : ${CONFIG_STATUS=./config.status}
19697 ac_clean_files_save=$ac_clean_files
19698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19699 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19700 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19701 cat >$CONFIG_STATUS <<_ACEOF
19702 #! $SHELL
19703 # Generated by $as_me.
19704 # Run this file to recreate the current configuration.
19705 # Compiler output produced by configure, useful for debugging
19706 # configure, is in config.log if it exists.
19707
19708 debug=false
19709 ac_cs_recheck=false
19710 ac_cs_silent=false
19711 SHELL=\${CONFIG_SHELL-$SHELL}
19712 _ACEOF
19713
19714 cat >>$CONFIG_STATUS <<\_ACEOF
19715 ## --------------------- ##
19716 ## M4sh Initialization.  ##
19717 ## --------------------- ##
19718
19719 # Be Bourne compatible
19720 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19721   emulate sh
19722   NULLCMD=:
19723   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19724   # is contrary to our usage.  Disable this feature.
19725   alias -g '${1+"$@"}'='"$@"'
19726 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19727   set -o posix
19728 fi
19729
19730 # Support unset when possible.
19731 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19732   as_unset=unset
19733 else
19734   as_unset=false
19735 fi
19736
19737
19738 # Work around bugs in pre-3.0 UWIN ksh.
19739 $as_unset ENV MAIL MAILPATH
19740 PS1='$ '
19741 PS2='> '
19742 PS4='+ '
19743
19744 # NLS nuisances.
19745 for as_var in \
19746   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19747   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19748   LC_TELEPHONE LC_TIME
19749 do
19750   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19751     eval $as_var=C; export $as_var
19752   else
19753     $as_unset $as_var
19754   fi
19755 done
19756
19757 # Required to use basename.
19758 if expr a : '\(a\)' >/dev/null 2>&1; then
19759   as_expr=expr
19760 else
19761   as_expr=false
19762 fi
19763
19764 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19765   as_basename=basename
19766 else
19767   as_basename=false
19768 fi
19769
19770
19771 # Name of the executable.
19772 as_me=`$as_basename "$0" ||
19773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19774          X"$0" : 'X\(//\)$' \| \
19775          X"$0" : 'X\(/\)$' \| \
19776          .     : '\(.\)' 2>/dev/null ||
19777 echo X/"$0" |
19778     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19779           /^X\/\(\/\/\)$/{ s//\1/; q; }
19780           /^X\/\(\/\).*/{ s//\1/; q; }
19781           s/.*/./; q'`
19782
19783
19784 # PATH needs CR, and LINENO needs CR and PATH.
19785 # Avoid depending upon Character Ranges.
19786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19789 as_cr_digits='0123456789'
19790 as_cr_alnum=$as_cr_Letters$as_cr_digits
19791
19792 # The user is always right.
19793 if test "${PATH_SEPARATOR+set}" != set; then
19794   echo "#! /bin/sh" >conf$$.sh
19795   echo  "exit 0"   >>conf$$.sh
19796   chmod +x conf$$.sh
19797   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19798     PATH_SEPARATOR=';'
19799   else
19800     PATH_SEPARATOR=:
19801   fi
19802   rm -f conf$$.sh
19803 fi
19804
19805
19806   as_lineno_1=$LINENO
19807   as_lineno_2=$LINENO
19808   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19809   test "x$as_lineno_1" != "x$as_lineno_2" &&
19810   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19811   # Find who we are.  Look in the path if we contain no path at all
19812   # relative or not.
19813   case $0 in
19814     *[\\/]* ) as_myself=$0 ;;
19815     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19816 for as_dir in $PATH
19817 do
19818   IFS=$as_save_IFS
19819   test -z "$as_dir" && as_dir=.
19820   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19821 done
19822
19823        ;;
19824   esac
19825   # We did not find ourselves, most probably we were run as `sh COMMAND'
19826   # in which case we are not to be found in the path.
19827   if test "x$as_myself" = x; then
19828     as_myself=$0
19829   fi
19830   if test ! -f "$as_myself"; then
19831     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19832 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19833    { (exit 1); exit 1; }; }
19834   fi
19835   case $CONFIG_SHELL in
19836   '')
19837     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19838 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19839 do
19840   IFS=$as_save_IFS
19841   test -z "$as_dir" && as_dir=.
19842   for as_base in sh bash ksh sh5; do
19843          case $as_dir in
19844          /*)
19845            if ("$as_dir/$as_base" -c '
19846   as_lineno_1=$LINENO
19847   as_lineno_2=$LINENO
19848   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19849   test "x$as_lineno_1" != "x$as_lineno_2" &&
19850   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19851              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19852              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19853              CONFIG_SHELL=$as_dir/$as_base
19854              export CONFIG_SHELL
19855              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19856            fi;;
19857          esac
19858        done
19859 done
19860 ;;
19861   esac
19862
19863   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19864   # uniformly replaced by the line number.  The first 'sed' inserts a
19865   # line-number line before each line; the second 'sed' does the real
19866   # work.  The second script uses 'N' to pair each line-number line
19867   # with the numbered line, and appends trailing '-' during
19868   # substitution so that $LINENO is not a special case at line end.
19869   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19870   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19871   sed '=' <$as_myself |
19872     sed '
19873       N
19874       s,$,-,
19875       : loop
19876       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19877       t loop
19878       s,-$,,
19879       s,^['$as_cr_digits']*\n,,
19880     ' >$as_me.lineno &&
19881   chmod +x $as_me.lineno ||
19882     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19883 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19884    { (exit 1); exit 1; }; }
19885
19886   # Don't try to exec as it changes $[0], causing all sort of problems
19887   # (the dirname of $[0] is not the place where we might find the
19888   # original and so on.  Autoconf is especially sensible to this).
19889   . ./$as_me.lineno
19890   # Exit status is that of the last command.
19891   exit
19892 }
19893
19894
19895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19896   *c*,-n*) ECHO_N= ECHO_C='
19897 ' ECHO_T='      ' ;;
19898   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19899   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19900 esac
19901
19902 if expr a : '\(a\)' >/dev/null 2>&1; then
19903   as_expr=expr
19904 else
19905   as_expr=false
19906 fi
19907
19908 rm -f conf$$ conf$$.exe conf$$.file
19909 echo >conf$$.file
19910 if ln -s conf$$.file conf$$ 2>/dev/null; then
19911   # We could just check for DJGPP; but this test a) works b) is more generic
19912   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19913   if test -f conf$$.exe; then
19914     # Don't use ln at all; we don't have any links
19915     as_ln_s='cp -p'
19916   else
19917     as_ln_s='ln -s'
19918   fi
19919 elif ln conf$$.file conf$$ 2>/dev/null; then
19920   as_ln_s=ln
19921 else
19922   as_ln_s='cp -p'
19923 fi
19924 rm -f conf$$ conf$$.exe conf$$.file
19925
19926 if mkdir -p . 2>/dev/null; then
19927   as_mkdir_p=:
19928 else
19929   as_mkdir_p=false
19930 fi
19931
19932 as_executable_p="test -f"
19933
19934 # Sed expression to map a string onto a valid CPP name.
19935 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19936
19937 # Sed expression to map a string onto a valid variable name.
19938 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19939
19940
19941 # IFS
19942 # We need space, tab and new line, in precisely that order.
19943 as_nl='
19944 '
19945 IFS="   $as_nl"
19946
19947 # CDPATH.
19948 $as_unset CDPATH
19949
19950 exec 6>&1
19951
19952 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19953 # report actual input values of CONFIG_FILES etc. instead of their
19954 # values after options handling.  Logging --version etc. is OK.
19955 exec 5>>config.log
19956 {
19957   echo
19958   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19959 ## Running $as_me. ##
19960 _ASBOX
19961 } >&5
19962 cat >&5 <<_CSEOF
19963
19964 This file was extended by $as_me, which was
19965 generated by GNU Autoconf 2.57.  Invocation command line was
19966
19967   CONFIG_FILES    = $CONFIG_FILES
19968   CONFIG_HEADERS  = $CONFIG_HEADERS
19969   CONFIG_LINKS    = $CONFIG_LINKS
19970   CONFIG_COMMANDS = $CONFIG_COMMANDS
19971   $ $0 $@
19972
19973 _CSEOF
19974 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19975 echo >&5
19976 _ACEOF
19977
19978 # Files that config.status was made for.
19979 if test -n "$ac_config_files"; then
19980   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19981 fi
19982
19983 if test -n "$ac_config_headers"; then
19984   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19985 fi
19986
19987 if test -n "$ac_config_links"; then
19988   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19989 fi
19990
19991 if test -n "$ac_config_commands"; then
19992   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19993 fi
19994
19995 cat >>$CONFIG_STATUS <<\_ACEOF
19996
19997 ac_cs_usage="\
19998 \`$as_me' instantiates files from templates according to the
19999 current configuration.
20000
20001 Usage: $0 [OPTIONS] [FILE]...
20002
20003   -h, --help       print this help, then exit
20004   -V, --version    print version number, then exit
20005   -q, --quiet      do not print progress messages
20006   -d, --debug      don't remove temporary files
20007       --recheck    update $as_me by reconfiguring in the same conditions
20008   --file=FILE[:TEMPLATE]
20009                    instantiate the configuration file FILE
20010   --header=FILE[:TEMPLATE]
20011                    instantiate the configuration header FILE
20012
20013 Configuration files:
20014 $config_files
20015
20016 Configuration headers:
20017 $config_headers
20018
20019 Configuration commands:
20020 $config_commands
20021
20022 Report bugs to <bug-autoconf@gnu.org>."
20023 _ACEOF
20024
20025 cat >>$CONFIG_STATUS <<_ACEOF
20026 ac_cs_version="\\
20027 config.status
20028 configured by $0, generated by GNU Autoconf 2.57,
20029   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20030
20031 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20032 Free Software Foundation, Inc.
20033 This config.status script is free software; the Free Software Foundation
20034 gives unlimited permission to copy, distribute and modify it."
20035 srcdir=$srcdir
20036 INSTALL="$INSTALL"
20037 _ACEOF
20038
20039 cat >>$CONFIG_STATUS <<\_ACEOF
20040 # If no file are specified by the user, then we need to provide default
20041 # value.  By we need to know if files were specified by the user.
20042 ac_need_defaults=:
20043 while test $# != 0
20044 do
20045   case $1 in
20046   --*=*)
20047     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20048     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20049     ac_shift=:
20050     ;;
20051   -*)
20052     ac_option=$1
20053     ac_optarg=$2
20054     ac_shift=shift
20055     ;;
20056   *) # This is not an option, so the user has probably given explicit
20057      # arguments.
20058      ac_option=$1
20059      ac_need_defaults=false;;
20060   esac
20061
20062   case $ac_option in
20063   # Handling of the options.
20064 _ACEOF
20065 cat >>$CONFIG_STATUS <<\_ACEOF
20066   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20067     ac_cs_recheck=: ;;
20068   --version | --vers* | -V )
20069     echo "$ac_cs_version"; exit 0 ;;
20070   --he | --h)
20071     # Conflict between --help and --header
20072     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20073 Try \`$0 --help' for more information." >&5
20074 echo "$as_me: error: ambiguous option: $1
20075 Try \`$0 --help' for more information." >&2;}
20076    { (exit 1); exit 1; }; };;
20077   --help | --hel | -h )
20078     echo "$ac_cs_usage"; exit 0 ;;
20079   --debug | --d* | -d )
20080     debug=: ;;
20081   --file | --fil | --fi | --f )
20082     $ac_shift
20083     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20084     ac_need_defaults=false;;
20085   --header | --heade | --head | --hea )
20086     $ac_shift
20087     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20088     ac_need_defaults=false;;
20089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20090   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20091     ac_cs_silent=: ;;
20092
20093   # This is an error.
20094   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20095 Try \`$0 --help' for more information." >&5
20096 echo "$as_me: error: unrecognized option: $1
20097 Try \`$0 --help' for more information." >&2;}
20098    { (exit 1); exit 1; }; } ;;
20099
20100   *) ac_config_targets="$ac_config_targets $1" ;;
20101
20102   esac
20103   shift
20104 done
20105
20106 ac_configure_extra_args=
20107
20108 if $ac_cs_silent; then
20109   exec 6>/dev/null
20110   ac_configure_extra_args="$ac_configure_extra_args --silent"
20111 fi
20112
20113 _ACEOF
20114 cat >>$CONFIG_STATUS <<_ACEOF
20115 if \$ac_cs_recheck; then
20116   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20117   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20118 fi
20119
20120 _ACEOF
20121
20122
20123
20124
20125
20126 cat >>$CONFIG_STATUS <<\_ACEOF
20127 for ac_config_target in $ac_config_targets
20128 do
20129   case "$ac_config_target" in
20130   # Handling of arguments.
20131   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
20132   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20133   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
20134   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
20135   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
20136   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
20137   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
20138   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
20139   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
20140   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
20141   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
20142   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20143   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
20144   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
20145   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
20146   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
20147   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
20148   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
20149   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
20150   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
20151   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
20152   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
20153   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
20154   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
20155   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
20156   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
20157   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20158   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20159   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
20160   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
20161   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
20162   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
20163   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
20164   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
20165   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
20166   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
20167   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
20168   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
20169   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
20170   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
20171   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
20172   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20173   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
20174   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
20175   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
20176   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
20177   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
20178   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
20179   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
20180   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
20181   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
20182   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
20183   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
20184   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
20185   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
20186   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
20187   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
20188   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
20189   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
20190   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
20191   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
20192   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
20193   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
20194   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
20195   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
20196   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
20197   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
20198   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
20199   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
20200   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
20201   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
20202   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
20203   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
20204   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
20205   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
20206   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
20207   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
20208   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
20209   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
20210   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
20211   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
20212   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
20213   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
20214   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
20215   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
20216   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
20217   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
20218   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
20219   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
20220   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
20221   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
20222   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
20223   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
20224   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
20225   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
20226   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
20227   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
20228   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
20229   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
20230   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20231   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
20232   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20233 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20234    { (exit 1); exit 1; }; };;
20235   esac
20236 done
20237
20238 # If the user did not use the arguments to specify the items to instantiate,
20239 # then the envvar interface is used.  Set only those that are not.
20240 # We use the long form for the default assignment because of an extremely
20241 # bizarre bug on SunOS 4.1.3.
20242 if $ac_need_defaults; then
20243   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20244   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20245   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20246 fi
20247
20248 # Have a temporary directory for convenience.  Make it in the build tree
20249 # simply because there is no reason to put it here, and in addition,
20250 # creating and moving files from /tmp can sometimes cause problems.
20251 # Create a temporary directory, and hook for its removal unless debugging.
20252 $debug ||
20253 {
20254   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20255   trap '{ (exit 1); exit 1; }' 1 2 13 15
20256 }
20257
20258 # Create a (secure) tmp directory for tmp files.
20259
20260 {
20261   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20262   test -n "$tmp" && test -d "$tmp"
20263 }  ||
20264 {
20265   tmp=./confstat$$-$RANDOM
20266   (umask 077 && mkdir $tmp)
20267 } ||
20268 {
20269    echo "$me: cannot create a temporary directory in ." >&2
20270    { (exit 1); exit 1; }
20271 }
20272
20273 _ACEOF
20274
20275 cat >>$CONFIG_STATUS <<_ACEOF
20276
20277 #
20278 # CONFIG_FILES section.
20279 #
20280
20281 # No need to generate the scripts if there are no CONFIG_FILES.
20282 # This happens for instance when ./config.status config.h
20283 if test -n "\$CONFIG_FILES"; then
20284   # Protect against being on the right side of a sed subst in config.status.
20285   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20286    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20287 s,@SHELL@,$SHELL,;t t
20288 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20289 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20290 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20291 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20292 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20293 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20294 s,@exec_prefix@,$exec_prefix,;t t
20295 s,@prefix@,$prefix,;t t
20296 s,@program_transform_name@,$program_transform_name,;t t
20297 s,@bindir@,$bindir,;t t
20298 s,@sbindir@,$sbindir,;t t
20299 s,@libexecdir@,$libexecdir,;t t
20300 s,@datadir@,$datadir,;t t
20301 s,@sysconfdir@,$sysconfdir,;t t
20302 s,@sharedstatedir@,$sharedstatedir,;t t
20303 s,@localstatedir@,$localstatedir,;t t
20304 s,@libdir@,$libdir,;t t
20305 s,@includedir@,$includedir,;t t
20306 s,@oldincludedir@,$oldincludedir,;t t
20307 s,@infodir@,$infodir,;t t
20308 s,@mandir@,$mandir,;t t
20309 s,@build_alias@,$build_alias,;t t
20310 s,@host_alias@,$host_alias,;t t
20311 s,@target_alias@,$target_alias,;t t
20312 s,@DEFS@,$DEFS,;t t
20313 s,@ECHO_C@,$ECHO_C,;t t
20314 s,@ECHO_N@,$ECHO_N,;t t
20315 s,@ECHO_T@,$ECHO_T,;t t
20316 s,@LIBS@,$LIBS,;t t
20317 s,@BUILD_DIR@,$BUILD_DIR,;t t
20318 s,@TRUEPRG@,$TRUEPRG,;t t
20319 s,@FALSEPRG@,$FALSEPRG,;t t
20320 s,@VERSION@,$VERSION,;t t
20321 s,@DATE@,$DATE,;t t
20322 s,@LSMDATE@,$LSMDATE,;t t
20323 s,@CC@,$CC,;t t
20324 s,@CFLAGS@,$CFLAGS,;t t
20325 s,@LDFLAGS@,$LDFLAGS,;t t
20326 s,@CPPFLAGS@,$CPPFLAGS,;t t
20327 s,@ac_ct_CC@,$ac_ct_CC,;t t
20328 s,@EXEEXT@,$EXEEXT,;t t
20329 s,@OBJEXT@,$OBJEXT,;t t
20330 s,@CXX@,$CXX,;t t
20331 s,@CXXFLAGS@,$CXXFLAGS,;t t
20332 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20333 s,@CPP@,$CPP,;t t
20334 s,@EGREP@,$EGREP,;t t
20335 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20336 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20337 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20338 s,@RANLIB@,$RANLIB,;t t
20339 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20340 s,@MV@,$MV,;t t
20341 s,@RM@,$RM,;t t
20342 s,@CP@,$CP,;t t
20343 s,@SED@,$SED,;t t
20344 s,@ECHO@,$ECHO,;t t
20345 s,@CMP@,$CMP,;t t
20346 s,@TBL@,$TBL,;t t
20347 s,@AR@,$AR,;t t
20348 s,@OPENSSL@,$OPENSSL,;t t
20349 s,@MTX@,$MTX,;t t
20350 s,@MKISOFS@,$MKISOFS,;t t
20351 s,@PYTHON@,$PYTHON,;t t
20352 s,@GROWISOFS@,$GROWISOFS,;t t
20353 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
20354 s,@PKGCONFIG@,$PKGCONFIG,;t t
20355 s,@WXCONFIG@,$WXCONFIG,;t t
20356 s,@CDRECORD@,$CDRECORD,;t t
20357 s,@PIDOF@,$PIDOF,;t t
20358 s,@AWK@,$AWK,;t t
20359 s,@ARFLAGS@,$ARFLAGS,;t t
20360 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20361 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20362 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20363 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20364 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20365 s,@build@,$build,;t t
20366 s,@build_cpu@,$build_cpu,;t t
20367 s,@build_vendor@,$build_vendor,;t t
20368 s,@build_os@,$build_os,;t t
20369 s,@host@,$host,;t t
20370 s,@host_cpu@,$host_cpu,;t t
20371 s,@host_vendor@,$host_vendor,;t t
20372 s,@host_os@,$host_os,;t t
20373 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20374 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20375 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20376 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20377 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20378 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20379 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20380 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20381 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20382 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20383 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20384 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20385 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20386 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20387 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20388 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20389 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20390 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20391 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20392 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20393 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20394 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20395 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20396 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20397 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20398 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20399 s,@MSGFMT@,$MSGFMT,;t t
20400 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20401 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20402 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20403 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20404 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20405 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20406 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20407 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20408 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20409 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20410 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20411 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20412 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20413 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20414 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20415 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20416 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20417 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20418 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20419 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20420 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20421 s,@GNOME_DIR@,$GNOME_DIR,;t t
20422 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20423 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20424 s,@WX_DIR@,$WX_DIR,;t t
20425 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20426 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20427 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20428 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20429 s,@STATIC_FD@,$STATIC_FD,;t t
20430 s,@STATIC_SD@,$STATIC_SD,;t t
20431 s,@STATIC_DIR@,$STATIC_DIR,;t t
20432 s,@STATIC_CONS@,$STATIC_CONS,;t t
20433 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20434 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20435 s,@ALL_DIRS@,$ALL_DIRS,;t t
20436 s,@CONS_INC@,$CONS_INC,;t t
20437 s,@CONS_OBJ@,$CONS_OBJ,;t t
20438 s,@CONS_SRC@,$CONS_SRC,;t t
20439 s,@CONS_LIBS@,$CONS_LIBS,;t t
20440 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20441 s,@READLINE_SRC@,$READLINE_SRC,;t t
20442 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20443 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20444 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
20445 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
20446 s,@working_dir@,$working_dir,;t t
20447 s,@scriptdir@,$scriptdir,;t t
20448 s,@dump_email@,$dump_email,;t t
20449 s,@job_email@,$job_email,;t t
20450 s,@smtp_host@,$smtp_host,;t t
20451 s,@piddir@,$piddir,;t t
20452 s,@subsysdir@,$subsysdir,;t t
20453 s,@baseport@,$baseport,;t t
20454 s,@dir_port@,$dir_port,;t t
20455 s,@fd_port@,$fd_port,;t t
20456 s,@sd_port@,$sd_port,;t t
20457 s,@dir_password@,$dir_password,;t t
20458 s,@fd_password@,$fd_password,;t t
20459 s,@sd_password@,$sd_password,;t t
20460 s,@mon_dir_password@,$mon_dir_password,;t t
20461 s,@mon_fd_password@,$mon_fd_password,;t t
20462 s,@mon_sd_password@,$mon_sd_password,;t t
20463 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20464 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20465 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20466 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20467 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20468 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20469 s,@dir_user@,$dir_user,;t t
20470 s,@dir_group@,$dir_group,;t t
20471 s,@sd_user@,$sd_user,;t t
20472 s,@sd_group@,$sd_group,;t t
20473 s,@fd_user@,$fd_user,;t t
20474 s,@fd_group@,$fd_group,;t t
20475 s,@SBINPERM@,$SBINPERM,;t t
20476 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20477 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20478 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20479 s,@cats@,$cats,;t t
20480 s,@DB_NAME@,$DB_NAME,;t t
20481 s,@GETCONF@,$GETCONF,;t t
20482 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20483 s,@X_CFLAGS@,$X_CFLAGS,;t t
20484 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20485 s,@X_LIBS@,$X_LIBS,;t t
20486 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20487 s,@LIBOBJS@,$LIBOBJS,;t t
20488 s,@ALLOCA@,$ALLOCA,;t t
20489 s,@FDLIBS@,$FDLIBS,;t t
20490 s,@DEBUG@,$DEBUG,;t t
20491 s,@DINCLUDE@,$DINCLUDE,;t t
20492 s,@DLIB@,$DLIB,;t t
20493 s,@DB_LIBS@,$DB_LIBS,;t t
20494 s,@WCFLAGS@,$WCFLAGS,;t t
20495 s,@WLDFLAGS@,$WLDFLAGS,;t t
20496 s,@OBJLIST@,$OBJLIST,;t t
20497 s,@hostname@,$hostname,;t t
20498 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20499 s,@PSCMD@,$PSCMD,;t t
20500 s,@WIN32@,$WIN32,;t t
20501 s,@MACOSX@,$MACOSX,;t t
20502 s,@DISTNAME@,$DISTNAME,;t t
20503 s,@DISTVER@,$DISTVER,;t t
20504 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20505 /@MCOMMON@/r $MCOMMON
20506 s,@MCOMMON@,,;t t
20507 CEOF
20508
20509 _ACEOF
20510
20511   cat >>$CONFIG_STATUS <<\_ACEOF
20512   # Split the substitutions into bite-sized pieces for seds with
20513   # small command number limits, like on Digital OSF/1 and HP-UX.
20514   ac_max_sed_lines=48
20515   ac_sed_frag=1 # Number of current file.
20516   ac_beg=1 # First line for current file.
20517   ac_end=$ac_max_sed_lines # Line after last line for current file.
20518   ac_more_lines=:
20519   ac_sed_cmds=
20520   while $ac_more_lines; do
20521     if test $ac_beg -gt 1; then
20522       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20523     else
20524       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20525     fi
20526     if test ! -s $tmp/subs.frag; then
20527       ac_more_lines=false
20528     else
20529       # The purpose of the label and of the branching condition is to
20530       # speed up the sed processing (if there are no `@' at all, there
20531       # is no need to browse any of the substitutions).
20532       # These are the two extra sed commands mentioned above.
20533       (echo ':t
20534   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20535       if test -z "$ac_sed_cmds"; then
20536         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20537       else
20538         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20539       fi
20540       ac_sed_frag=`expr $ac_sed_frag + 1`
20541       ac_beg=$ac_end
20542       ac_end=`expr $ac_end + $ac_max_sed_lines`
20543     fi
20544   done
20545   if test -z "$ac_sed_cmds"; then
20546     ac_sed_cmds=cat
20547   fi
20548 fi # test -n "$CONFIG_FILES"
20549
20550 _ACEOF
20551 cat >>$CONFIG_STATUS <<\_ACEOF
20552 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20553   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20554   case $ac_file in
20555   - | *:- | *:-:* ) # input from stdin
20556         cat >$tmp/stdin
20557         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20558         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20559   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20560         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20561   * )   ac_file_in=$ac_file.in ;;
20562   esac
20563
20564   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20565   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20567          X"$ac_file" : 'X\(//\)[^/]' \| \
20568          X"$ac_file" : 'X\(//\)$' \| \
20569          X"$ac_file" : 'X\(/\)' \| \
20570          .     : '\(.\)' 2>/dev/null ||
20571 echo X"$ac_file" |
20572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20573           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20574           /^X\(\/\/\)$/{ s//\1/; q; }
20575           /^X\(\/\).*/{ s//\1/; q; }
20576           s/.*/./; q'`
20577   { if $as_mkdir_p; then
20578     mkdir -p "$ac_dir"
20579   else
20580     as_dir="$ac_dir"
20581     as_dirs=
20582     while test ! -d "$as_dir"; do
20583       as_dirs="$as_dir $as_dirs"
20584       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20586          X"$as_dir" : 'X\(//\)[^/]' \| \
20587          X"$as_dir" : 'X\(//\)$' \| \
20588          X"$as_dir" : 'X\(/\)' \| \
20589          .     : '\(.\)' 2>/dev/null ||
20590 echo X"$as_dir" |
20591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20593           /^X\(\/\/\)$/{ s//\1/; q; }
20594           /^X\(\/\).*/{ s//\1/; q; }
20595           s/.*/./; q'`
20596     done
20597     test ! -n "$as_dirs" || mkdir $as_dirs
20598   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20600    { (exit 1); exit 1; }; }; }
20601
20602   ac_builddir=.
20603
20604 if test "$ac_dir" != .; then
20605   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20606   # A "../" for each directory in $ac_dir_suffix.
20607   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20608 else
20609   ac_dir_suffix= ac_top_builddir=
20610 fi
20611
20612 case $srcdir in
20613   .)  # No --srcdir option.  We are building in place.
20614     ac_srcdir=.
20615     if test -z "$ac_top_builddir"; then
20616        ac_top_srcdir=.
20617     else
20618        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20619     fi ;;
20620   [\\/]* | ?:[\\/]* )  # Absolute path.
20621     ac_srcdir=$srcdir$ac_dir_suffix;
20622     ac_top_srcdir=$srcdir ;;
20623   *) # Relative path.
20624     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20625     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20626 esac
20627 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20628 # absolute.
20629 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20630 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20631 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20632 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20633
20634
20635   case $INSTALL in
20636   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20637   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20638   esac
20639
20640   if test x"$ac_file" != x-; then
20641     { echo "$as_me:$LINENO: creating $ac_file" >&5
20642 echo "$as_me: creating $ac_file" >&6;}
20643     rm -f "$ac_file"
20644   fi
20645   # Let's still pretend it is `configure' which instantiates (i.e., don't
20646   # use $as_me), people would be surprised to read:
20647   #    /* config.h.  Generated by config.status.  */
20648   if test x"$ac_file" = x-; then
20649     configure_input=
20650   else
20651     configure_input="$ac_file.  "
20652   fi
20653   configure_input=$configure_input"Generated from `echo $ac_file_in |
20654                                      sed 's,.*/,,'` by configure."
20655
20656   # First look for the input files in the build tree, otherwise in the
20657   # src tree.
20658   ac_file_inputs=`IFS=:
20659     for f in $ac_file_in; do
20660       case $f in
20661       -) echo $tmp/stdin ;;
20662       [\\/$]*)
20663          # Absolute (can't be DOS-style, as IFS=:)
20664          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20665 echo "$as_me: error: cannot find input file: $f" >&2;}
20666    { (exit 1); exit 1; }; }
20667          echo $f;;
20668       *) # Relative
20669          if test -f "$f"; then
20670            # Build tree
20671            echo $f
20672          elif test -f "$srcdir/$f"; then
20673            # Source tree
20674            echo $srcdir/$f
20675          else
20676            # /dev/null tree
20677            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20678 echo "$as_me: error: cannot find input file: $f" >&2;}
20679    { (exit 1); exit 1; }; }
20680          fi;;
20681       esac
20682     done` || { (exit 1); exit 1; }
20683 _ACEOF
20684 cat >>$CONFIG_STATUS <<_ACEOF
20685   sed "$ac_vpsub
20686 $extrasub
20687 _ACEOF
20688 cat >>$CONFIG_STATUS <<\_ACEOF
20689 :t
20690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20691 s,@configure_input@,$configure_input,;t t
20692 s,@srcdir@,$ac_srcdir,;t t
20693 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20694 s,@top_srcdir@,$ac_top_srcdir,;t t
20695 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20696 s,@builddir@,$ac_builddir,;t t
20697 s,@abs_builddir@,$ac_abs_builddir,;t t
20698 s,@top_builddir@,$ac_top_builddir,;t t
20699 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20700 s,@INSTALL@,$ac_INSTALL,;t t
20701 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20702   rm -f $tmp/stdin
20703   if test x"$ac_file" != x-; then
20704     mv $tmp/out $ac_file
20705   else
20706     cat $tmp/out
20707     rm -f $tmp/out
20708   fi
20709
20710 done
20711 _ACEOF
20712 cat >>$CONFIG_STATUS <<\_ACEOF
20713
20714 #
20715 # CONFIG_HEADER section.
20716 #
20717
20718 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20719 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20720 #
20721 # ac_d sets the value in "#define NAME VALUE" lines.
20722 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20723 ac_dB='[        ].*$,\1#\2'
20724 ac_dC=' '
20725 ac_dD=',;t'
20726 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20727 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20728 ac_uB='$,\1#\2define\3'
20729 ac_uC=' '
20730 ac_uD=',;t'
20731
20732 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20733   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20734   case $ac_file in
20735   - | *:- | *:-:* ) # input from stdin
20736         cat >$tmp/stdin
20737         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20738         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20739   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20740         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20741   * )   ac_file_in=$ac_file.in ;;
20742   esac
20743
20744   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20745 echo "$as_me: creating $ac_file" >&6;}
20746
20747   # First look for the input files in the build tree, otherwise in the
20748   # src tree.
20749   ac_file_inputs=`IFS=:
20750     for f in $ac_file_in; do
20751       case $f in
20752       -) echo $tmp/stdin ;;
20753       [\\/$]*)
20754          # Absolute (can't be DOS-style, as IFS=:)
20755          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20756 echo "$as_me: error: cannot find input file: $f" >&2;}
20757    { (exit 1); exit 1; }; }
20758          echo $f;;
20759       *) # Relative
20760          if test -f "$f"; then
20761            # Build tree
20762            echo $f
20763          elif test -f "$srcdir/$f"; then
20764            # Source tree
20765            echo $srcdir/$f
20766          else
20767            # /dev/null tree
20768            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20769 echo "$as_me: error: cannot find input file: $f" >&2;}
20770    { (exit 1); exit 1; }; }
20771          fi;;
20772       esac
20773     done` || { (exit 1); exit 1; }
20774   # Remove the trailing spaces.
20775   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20776
20777 _ACEOF
20778
20779 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20780 # `conftest.undefs', that substitutes the proper values into
20781 # config.h.in to produce config.h.  The first handles `#define'
20782 # templates, and the second `#undef' templates.
20783 # And first: Protect against being on the right side of a sed subst in
20784 # config.status.  Protect against being in an unquoted here document
20785 # in config.status.
20786 rm -f conftest.defines conftest.undefs
20787 # Using a here document instead of a string reduces the quoting nightmare.
20788 # Putting comments in sed scripts is not portable.
20789 #
20790 # `end' is used to avoid that the second main sed command (meant for
20791 # 0-ary CPP macros) applies to n-ary macro definitions.
20792 # See the Autoconf documentation for `clear'.
20793 cat >confdef2sed.sed <<\_ACEOF
20794 s/[\\&,]/\\&/g
20795 s,[\\$`],\\&,g
20796 t clear
20797 : clear
20798 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20799 t end
20800 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20801 : end
20802 _ACEOF
20803 # If some macros were called several times there might be several times
20804 # the same #defines, which is useless.  Nevertheless, we may not want to
20805 # sort them, since we want the *last* AC-DEFINE to be honored.
20806 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20807 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20808 rm -f confdef2sed.sed
20809
20810 # This sed command replaces #undef with comments.  This is necessary, for
20811 # example, in the case of _POSIX_SOURCE, which is predefined and required
20812 # on some systems where configure will not decide to define it.
20813 cat >>conftest.undefs <<\_ACEOF
20814 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20815 _ACEOF
20816
20817 # Break up conftest.defines because some shells have a limit on the size
20818 # of here documents, and old seds have small limits too (100 cmds).
20819 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20820 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20821 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20822 echo '  :' >>$CONFIG_STATUS
20823 rm -f conftest.tail
20824 while grep . conftest.defines >/dev/null
20825 do
20826   # Write a limited-size here document to $tmp/defines.sed.
20827   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20828   # Speed up: don't consider the non `#define' lines.
20829   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20830   # Work around the forget-to-reset-the-flag bug.
20831   echo 't clr' >>$CONFIG_STATUS
20832   echo ': clr' >>$CONFIG_STATUS
20833   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20834   echo 'CEOF
20835   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20836   rm -f $tmp/in
20837   mv $tmp/out $tmp/in
20838 ' >>$CONFIG_STATUS
20839   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20840   rm -f conftest.defines
20841   mv conftest.tail conftest.defines
20842 done
20843 rm -f conftest.defines
20844 echo '  fi # grep' >>$CONFIG_STATUS
20845 echo >>$CONFIG_STATUS
20846
20847 # Break up conftest.undefs because some shells have a limit on the size
20848 # of here documents, and old seds have small limits too (100 cmds).
20849 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20850 rm -f conftest.tail
20851 while grep . conftest.undefs >/dev/null
20852 do
20853   # Write a limited-size here document to $tmp/undefs.sed.
20854   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20855   # Speed up: don't consider the non `#undef'
20856   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20857   # Work around the forget-to-reset-the-flag bug.
20858   echo 't clr' >>$CONFIG_STATUS
20859   echo ': clr' >>$CONFIG_STATUS
20860   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20861   echo 'CEOF
20862   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20863   rm -f $tmp/in
20864   mv $tmp/out $tmp/in
20865 ' >>$CONFIG_STATUS
20866   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20867   rm -f conftest.undefs
20868   mv conftest.tail conftest.undefs
20869 done
20870 rm -f conftest.undefs
20871
20872 cat >>$CONFIG_STATUS <<\_ACEOF
20873   # Let's still pretend it is `configure' which instantiates (i.e., don't
20874   # use $as_me), people would be surprised to read:
20875   #    /* config.h.  Generated by config.status.  */
20876   if test x"$ac_file" = x-; then
20877     echo "/* Generated by configure.  */" >$tmp/config.h
20878   else
20879     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20880   fi
20881   cat $tmp/in >>$tmp/config.h
20882   rm -f $tmp/in
20883   if test x"$ac_file" != x-; then
20884     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20885       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20886 echo "$as_me: $ac_file is unchanged" >&6;}
20887     else
20888       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20890          X"$ac_file" : 'X\(//\)[^/]' \| \
20891          X"$ac_file" : 'X\(//\)$' \| \
20892          X"$ac_file" : 'X\(/\)' \| \
20893          .     : '\(.\)' 2>/dev/null ||
20894 echo X"$ac_file" |
20895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20896           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20897           /^X\(\/\/\)$/{ s//\1/; q; }
20898           /^X\(\/\).*/{ s//\1/; q; }
20899           s/.*/./; q'`
20900       { if $as_mkdir_p; then
20901     mkdir -p "$ac_dir"
20902   else
20903     as_dir="$ac_dir"
20904     as_dirs=
20905     while test ! -d "$as_dir"; do
20906       as_dirs="$as_dir $as_dirs"
20907       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20909          X"$as_dir" : 'X\(//\)[^/]' \| \
20910          X"$as_dir" : 'X\(//\)$' \| \
20911          X"$as_dir" : 'X\(/\)' \| \
20912          .     : '\(.\)' 2>/dev/null ||
20913 echo X"$as_dir" |
20914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20915           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20916           /^X\(\/\/\)$/{ s//\1/; q; }
20917           /^X\(\/\).*/{ s//\1/; q; }
20918           s/.*/./; q'`
20919     done
20920     test ! -n "$as_dirs" || mkdir $as_dirs
20921   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20922 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20923    { (exit 1); exit 1; }; }; }
20924
20925       rm -f $ac_file
20926       mv $tmp/config.h $ac_file
20927     fi
20928   else
20929     cat $tmp/config.h
20930     rm -f $tmp/config.h
20931   fi
20932 done
20933 _ACEOF
20934 cat >>$CONFIG_STATUS <<\_ACEOF
20935
20936 #
20937 # CONFIG_COMMANDS section.
20938 #
20939 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20940   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20941   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20942   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20943 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20944          X"$ac_dest" : 'X\(//\)[^/]' \| \
20945          X"$ac_dest" : 'X\(//\)$' \| \
20946          X"$ac_dest" : 'X\(/\)' \| \
20947          .     : '\(.\)' 2>/dev/null ||
20948 echo X"$ac_dest" |
20949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20951           /^X\(\/\/\)$/{ s//\1/; q; }
20952           /^X\(\/\).*/{ s//\1/; q; }
20953           s/.*/./; q'`
20954   ac_builddir=.
20955
20956 if test "$ac_dir" != .; then
20957   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20958   # A "../" for each directory in $ac_dir_suffix.
20959   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20960 else
20961   ac_dir_suffix= ac_top_builddir=
20962 fi
20963
20964 case $srcdir in
20965   .)  # No --srcdir option.  We are building in place.
20966     ac_srcdir=.
20967     if test -z "$ac_top_builddir"; then
20968        ac_top_srcdir=.
20969     else
20970        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20971     fi ;;
20972   [\\/]* | ?:[\\/]* )  # Absolute path.
20973     ac_srcdir=$srcdir$ac_dir_suffix;
20974     ac_top_srcdir=$srcdir ;;
20975   *) # Relative path.
20976     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20977     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20978 esac
20979 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20980 # absolute.
20981 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20982 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20983 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20984 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20985
20986
20987   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20988 echo "$as_me: executing $ac_dest commands" >&6;}
20989   case $ac_dest in
20990     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20991  ;;
20992   esac
20993 done
20994 _ACEOF
20995
20996 cat >>$CONFIG_STATUS <<\_ACEOF
20997
20998 { (exit 0); exit 0; }
20999 _ACEOF
21000 chmod +x $CONFIG_STATUS
21001 ac_clean_files=$ac_clean_files_save
21002
21003
21004 # configure is writing to config.log, and then calls config.status.
21005 # config.status does its own redirection, appending to config.log.
21006 # Unfortunately, on DOS this fails, as config.log is still kept open
21007 # by configure, so config.status won't be able to write to it; its
21008 # output is simply discarded.  So we exec the FD to /dev/null,
21009 # effectively closing config.log, so it can be properly (re)opened and
21010 # appended to by config.status.  When coming back to configure, we
21011 # need to make the FD available again.
21012 if test "$no_create" != yes; then
21013   ac_cs_success=:
21014   ac_config_status_args=
21015   test "$silent" = yes &&
21016     ac_config_status_args="$ac_config_status_args --quiet"
21017   exec 5>/dev/null
21018   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21019   exec 5>>config.log
21020   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21021   # would make configure fail if this is the last instruction.
21022   $ac_cs_success || { (exit 1); exit 1; }
21023 fi
21024
21025
21026 cd scripts
21027 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
21028 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
21029 cd ..
21030
21031 c=src/cats
21032
21033 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
21034 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
21035
21036 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
21037 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
21038
21039 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
21040 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
21041
21042 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
21043 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
21044
21045 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
21046 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
21047
21048 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
21049 chmod 755 $c/sqlite
21050 chmod 755 $c/mysql
21051
21052 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
21053    largefile_support="yes"
21054 fi
21055
21056 #
21057 # A whole lot of hand springs to get the compiler version.
21058 #  This is because gcc changed the output in version 3.0
21059 #
21060 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
21061 if test "x${CCVERSION}" = "x" ; then
21062   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
21063 fi
21064 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
21065 if test x"${CXXVERSION}" = x ; then
21066   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
21067 fi
21068
21069 if test "x${subsysdir}" = "x${sbindir}" ; then
21070    echo " "
21071    echo " "
21072    echo "You have set --sbindir and --with-subsys-dir"
21073    echo "  both equal to: ${subsysdir} "
21074    echo "  This is not permitted. Please reconfigure."
21075    echo " "
21076    echo "Aborting configuration ..."
21077    echo " "
21078    echo " "
21079    exit 1
21080 fi
21081
21082 if test "x${db_name}" = "xInternal" ; then
21083    echo " "
21084    echo " "
21085    echo "You have not specified either --enable-client-only or one of the"
21086    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
21087    echo "  This is not permitted. Please reconfigure."
21088    echo " "
21089    echo "Aborting the configuration ..."
21090    echo " "
21091    echo " "
21092    exit 1
21093 fi
21094
21095 echo "
21096 Configuration on `date`:
21097
21098   Host:                       $host -- ${DISTNAME} ${DISTVER}
21099   Bacula version:             ${VERSION} (${DATE})
21100   Source code location:       ${srcdir}
21101   Install binaries:           ${sbindir}
21102   Install config files:       ${sysconfdir}
21103   Scripts directory:          ${scriptdir}
21104   Working directory:          ${working_dir}
21105   PID directory:              ${piddir}
21106   Subsys directory:           ${subsysdir}
21107   C Compiler:                 ${CC} ${CCVERSION}
21108   C++ Compiler:               ${CXX} ${CXXVERSION}
21109   Compiler flags:             ${WCFLAGS} ${CFLAGS}
21110   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
21111   Libraries:                  ${LIBS}
21112   Statically Linked Tools:    ${support_static_tools}
21113   Statically Linked FD:       ${support_static_fd}
21114   Statically Linked SD:       ${support_static_sd}
21115   Statically Linked DIR:      ${support_static_dir}
21116   Statically Linked CONS:     ${support_static_cons}
21117   Database type:              ${db_name}
21118   Database lib:               ${DB_LIBS}
21119
21120   Job Output Email:           ${job_email}
21121   Traceback Email:            ${dump_email}
21122   SMTP Host Address:          ${smtp_host}
21123
21124   Director Port:              ${dir_port}
21125   File daemon Port:           ${fd_port}
21126   Storage daemon Port:        ${sd_port}
21127
21128   Director User:              ${dir_user}
21129   Director Group:             ${dir_group}
21130   Storage Daemon User:        ${sd_user}
21131   Storage DaemonGroup:        ${sd_group}
21132   File Daemon User:           ${fd_user}
21133   File Daemon Group:          ${fd_group}
21134
21135   SQL binaries Directory      ${SQL_BINDIR}
21136
21137   Large file support:         $largefile_support
21138   Bacula conio support:       ${got_conio} ${CONS_LIBS}
21139   readline support:           ${got_readline} ${PRTREADLINE_SRC}
21140   TCP Wrappers support:       ${TCPW_MSG}
21141   TLS support:                ${support_tls}
21142   ZLIB support:               ${have_zlib}
21143   enable-smartalloc:          ${support_smartalloc}
21144   enable-gnome:               ${support_gnome} ${gnome_version}
21145   enable-wx-console:          ${support_wx_console}
21146   enable-tray-monitor:        ${support_tray_monitor}
21147   client-only:                ${build_client_only}
21148   ACL support:                ${have_acl}
21149   Python support:             ${support_python} ${PYTHON_LIBS}
21150
21151   " > config.out
21152
21153 cat config.out
21154