]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Doc updates
[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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS 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 TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group 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 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-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-conio            disable conio support enabled
867
868   --disable-readline      disable readline support disable
869
870   --disable-largefile     omit support for large files
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-gnome-includes   Specify location of GNOME headers
876   --with-gnome-libs       Specify location of GNOME libs
877   --with-gnome            Specify prefix for GNOME files
878  --with-readline=DIR             specify readline library directory
879   --with-tcp-wrappers=DIR        enable tcpwrappers support
880   --with-working-dir=PATH        specify path of Bacula working directory
881   --with-scriptdir=PATH    specify path of Bacula scripts directory
882   --with-dump-email=EMAIL        dump email address
883   --with-job-email=EMAIL         job output email address
884   --with-smtp-host=HOST          SMTP mail host address
885   --with-pid-dir=PATH            specify location of Bacula pid files
886   --with-subsys-dir=PATH         specify location of Bacula subsys file
887   --with-baseport=PORT           specify base port address for daemons
888   --with-dir-password=PASSWORD   specify Director's password
889   --with-fd-password=PASSWORD    specify Client's password
890   --with-sd-password=PASSWORD    specify Storage daemon's password
891   --with-dir-user=USER           specify user for Director daemon
892   --with-dir-group=GROUP                 specify group for Director daemon
893   --with-sd-user=USER            specify user for Storage daemon
894   --with-sd-group=GROUP          specify group for Storage daemon
895   --with-fd-user=USER            specify user for File daemon
896   --with-fd-group=GROUP          specify group for File daemon
897   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
898                           base install directory, defaults to /usr/local/pgsql
899
900   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
901                           install directory, default is to search through
902                           a number of common places for the MySQL files.
903
904   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
905                           install directory, default is to search through
906                           a number of common places for the MySQL files.
907
908   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
909                           install directory, default is to search through
910                           a number of common places for the SQLite files.
911   --with-x                use the X Window System
912
913 Some influential environment variables:
914   CC          C compiler command
915   CFLAGS      C compiler flags
916   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
917               nonstandard directory <lib dir>
918   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
919               headers in a nonstandard directory <include dir>
920   CXX         C++ compiler command
921   CXXFLAGS    C++ compiler flags
922   CPP         C preprocessor
923
924 Use these variables to override the choices made by `configure' or to help
925 it to find libraries and programs with nonstandard names/locations.
926
927 _ACEOF
928 fi
929
930 if test "$ac_init_help" = "recursive"; then
931   # If there are subdirs, report their specific --help.
932   ac_popdir=`pwd`
933   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
934     test -d $ac_dir || continue
935     ac_builddir=.
936
937 if test "$ac_dir" != .; then
938   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
939   # A "../" for each directory in $ac_dir_suffix.
940   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 else
942   ac_dir_suffix= ac_top_builddir=
943 fi
944
945 case $srcdir in
946   .)  # No --srcdir option.  We are building in place.
947     ac_srcdir=.
948     if test -z "$ac_top_builddir"; then
949        ac_top_srcdir=.
950     else
951        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952     fi ;;
953   [\\/]* | ?:[\\/]* )  # Absolute path.
954     ac_srcdir=$srcdir$ac_dir_suffix;
955     ac_top_srcdir=$srcdir ;;
956   *) # Relative path.
957     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
958     ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 esac
960 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 # absolute.
962 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
963 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
964 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
965 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
966
967     cd $ac_dir
968     # Check for guested configure; otherwise get Cygnus style configure.
969     if test -f $ac_srcdir/configure.gnu; then
970       echo
971       $SHELL $ac_srcdir/configure.gnu  --help=recursive
972     elif test -f $ac_srcdir/configure; then
973       echo
974       $SHELL $ac_srcdir/configure  --help=recursive
975     elif test -f $ac_srcdir/configure.ac ||
976            test -f $ac_srcdir/configure.in; then
977       echo
978       $ac_configure --help
979     else
980       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981     fi
982     cd $ac_popdir
983   done
984 fi
985
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988   cat <<\_ACEOF
989
990 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
991 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995   exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.57.  Invocation command line was
1004
1005   $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036   IFS=$as_save_IFS
1037   test -z "$as_dir" && as_dir=.
1038   echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065   for ac_arg
1066   do
1067     case $ac_arg in
1068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070     | -silent | --silent | --silen | --sile | --sil)
1071       continue ;;
1072     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074     esac
1075     case $ac_pass in
1076     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077     2)
1078       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079       if test $ac_must_keep_next = true; then
1080         ac_must_keep_next=false # Got value, back to normal.
1081       else
1082         case $ac_arg in
1083           *=* | --config-cache | -C | -disable-* | --disable-* \
1084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086           | -with-* | --with-* | -without-* | --without-* | --x)
1087             case "$ac_configure_args0 " in
1088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089             esac
1090             ;;
1091           -* ) ac_must_keep_next=true ;;
1092         esac
1093       fi
1094       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095       # Get rid of the leading space.
1096       ac_sep=" "
1097       ;;
1098     esac
1099   done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log.  We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110   # Save into config.log some information that might help in debugging.
1111   {
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119     echo
1120     # The following way of writing the cache mishandles newlines in values,
1121 {
1122   (set) 2>&1 |
1123     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124     *ac_space=\ *)
1125       sed -n \
1126         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128       ;;
1129     *)
1130       sed -n \
1131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132       ;;
1133     esac;
1134 }
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142     echo
1143     for ac_var in $ac_subst_vars
1144     do
1145       eval ac_val=$`echo $ac_var`
1146       echo "$ac_var='"'"'$ac_val'"'"'"
1147     done | sort
1148     echo
1149
1150     if test -n "$ac_subst_files"; then
1151       cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156       echo
1157       for ac_var in $ac_subst_files
1158       do
1159         eval ac_val=$`echo $ac_var`
1160         echo "$ac_var='"'"'$ac_val'"'"'"
1161       done | sort
1162       echo
1163     fi
1164
1165     if test -s confdefs.h; then
1166       cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171       echo
1172       sed "/^$/d" confdefs.h | sort
1173       echo
1174     fi
1175     test "$ac_signal" != 0 &&
1176       echo "$as_me: caught signal $ac_signal"
1177     echo "$as_me: exit $exit_status"
1178   } >&5
1179   rm -f core core.* *.core &&
1180   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181     exit $exit_status
1182      ' 0
1183 for ac_signal in 1 2 13 15; do
1184   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223   if test "x$prefix" != xNONE; then
1224     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225   else
1226     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227   fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230   if test -r "$ac_site_file"; then
1231     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233     sed 's/^/| /' "$ac_site_file" >&5
1234     . "$ac_site_file"
1235   fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239   # Some versions of bash will fail to source /dev/null (special
1240   # files actually), so we avoid doing that.
1241   if test -f "$cache_file"; then
1242     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244     case $cache_file in
1245       [\\/]* | ?:[\\/]* ) . $cache_file;;
1246       *)                      . ./$cache_file;;
1247     esac
1248   fi
1249 else
1250   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252   >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261   eval ac_new_set=\$ac_env_${ac_var}_set
1262   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263   eval ac_new_val="\$ac_env_${ac_var}_value"
1264   case $ac_old_set,$ac_new_set in
1265     set,)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,set)
1270       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272       ac_cache_corrupted=: ;;
1273     ,);;
1274     *)
1275       if test "x$ac_old_val" != "x$ac_new_val"; then
1276         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279 echo "$as_me:   former value:  $ac_old_val" >&2;}
1280         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281 echo "$as_me:   current value: $ac_new_val" >&2;}
1282         ac_cache_corrupted=:
1283       fi;;
1284   esac
1285   # Pass precious variables to config.status.
1286   if test "$ac_new_set" = set; then
1287     case $ac_new_val in
1288     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290     *) ac_arg=$ac_var=$ac_new_val ;;
1291     esac
1292     case " $ac_configure_args " in
1293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295     esac
1296   fi
1297 done
1298 if $ac_cache_corrupted; then
1299   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 BUILD_DIR=`pwd`
1331 cd ..
1332 TOP_DIR=`pwd`
1333 cd ${BUILD_DIR}
1334
1335 ac_aux_dir=
1336 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1337   if test -f $ac_dir/install-sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install-sh -c"
1340     break
1341   elif test -f $ac_dir/install.sh; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/install.sh -c"
1344     break
1345   elif test -f $ac_dir/shtool; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/shtool install -c"
1348     break
1349   fi
1350 done
1351 if test -z "$ac_aux_dir"; then
1352   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1353 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1354    { (exit 1); exit 1; }; }
1355 fi
1356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359
1360           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1361
1362
1363
1364
1365
1366 for ac_prog in true
1367 do
1368   # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:$LINENO: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1373   echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375   case $TRUEPRG in
1376   [\\/]* | ?:[\\/]*)
1377   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1378   ;;
1379   *)
1380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 for as_dir in $PATH
1382 do
1383   IFS=$as_save_IFS
1384   test -z "$as_dir" && as_dir=.
1385   for ac_exec_ext in '' $ac_executable_extensions; do
1386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1389     break 2
1390   fi
1391 done
1392 done
1393
1394   ;;
1395 esac
1396 fi
1397 TRUEPRG=$ac_cv_path_TRUEPRG
1398
1399 if test -n "$TRUEPRG"; then
1400   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1401 echo "${ECHO_T}$TRUEPRG" >&6
1402 else
1403   echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1405 fi
1406
1407   test -n "$TRUEPRG" && break
1408 done
1409 test -n "$TRUEPRG" || TRUEPRG=":"
1410
1411 for ac_prog in false
1412 do
1413   # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   case $FALSEPRG in
1421   [\\/]* | ?:[\\/]*)
1422   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1423   ;;
1424   *)
1425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   for ac_exec_ext in '' $ac_executable_extensions; do
1431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434     break 2
1435   fi
1436 done
1437 done
1438
1439   ;;
1440 esac
1441 fi
1442 FALSEPRG=$ac_cv_path_FALSEPRG
1443
1444 if test -n "$FALSEPRG"; then
1445   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1446 echo "${ECHO_T}$FALSEPRG" >&6
1447 else
1448   echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452   test -n "$FALSEPRG" && break
1453 done
1454 test -n "$FALSEPRG" || FALSEPRG=":"
1455
1456
1457 # Make sure we can run config.sub.
1458 $ac_config_sub sun4 >/dev/null 2>&1 ||
1459   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1460 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 echo "$as_me:$LINENO: checking build system type" >&5
1464 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1465 if test "${ac_cv_build+set}" = set; then
1466   echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468   ac_cv_build_alias=$build_alias
1469 test -z "$ac_cv_build_alias" &&
1470   ac_cv_build_alias=`$ac_config_guess`
1471 test -z "$ac_cv_build_alias" &&
1472   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1473 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1474    { (exit 1); exit 1; }; }
1475 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1476   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1478    { (exit 1); exit 1; }; }
1479
1480 fi
1481 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1482 echo "${ECHO_T}$ac_cv_build" >&6
1483 build=$ac_cv_build
1484 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487
1488
1489 echo "$as_me:$LINENO: checking host system type" >&5
1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1491 if test "${ac_cv_host+set}" = set; then
1492   echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494   ac_cv_host_alias=$host_alias
1495 test -z "$ac_cv_host_alias" &&
1496   ac_cv_host_alias=$ac_cv_build_alias
1497 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1498   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1499 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 fi
1503 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1504 echo "${ECHO_T}$ac_cv_host" >&6
1505 host=$ac_cv_host
1506 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1509
1510
1511
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1516
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1856 /* confdefs.h.  */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h.  */
1861
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1874 # of exeext.
1875 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1876 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879   (eval $ac_link_default) 2>&5
1880   ac_status=$?
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); }; then
1883   # Find the output, starting from the most likely.  This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # resort.
1886
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 ac_cv_exeext=
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896         ;;
1897     conftest.$ac_ext )
1898         # This is the source file.
1899         ;;
1900     [ab].out )
1901         # We found the default executable, but exeext='' is most
1902         # certainly right.
1903         break;;
1904     *.* )
1905         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906         # FIXME: I believe we export ac_cv_exeext for Libtool,
1907         # but it would be cool to find out if it's true.  Does anybody
1908         # maintain Libtool? --akim.
1909         export ac_cv_exeext
1910         break;;
1911     * )
1912         break;;
1913   esac
1914 done
1915 else
1916   echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923    { (exit 77); exit 77; }; }
1924 fi
1925
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1929
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937   if { ac_try='./$ac_file'
1938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939   (eval $ac_try) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; }; then
1943     cross_compiling=no
1944   else
1945     if test "$cross_compiling" = maybe; then
1946         cross_compiling=yes
1947     else
1948         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955     fi
1956   fi
1957 fi
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1960
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run.  If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1969
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973   (eval $ac_link) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }; then
1977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 # `rm'.
1981 for ac_file in conftest.exe conftest conftest.*; do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986           export ac_cv_exeext
1987           break;;
1988     * ) break;;
1989   esac
1990 done
1991 else
1992   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2002
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2005 ac_exeext=$EXEEXT
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; then
2033   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034   case $ac_file in
2035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037        break;;
2038   esac
2039 done
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2056 ac_objext=$OBJEXT
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   cat >conftest.$ac_ext <<_ACEOF
2063 #line $LINENO "configure"
2064 /* confdefs.h.  */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h.  */
2069
2070 int
2071 main ()
2072 {
2073 #ifndef __GNUC__
2074        choke me
2075 #endif
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_compiler_gnu=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_compiler_gnu=no
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2102
2103 fi
2104 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2105 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2106 GCC=`test $ac_compiler_gnu = yes && echo yes`
2107 ac_test_CFLAGS=${CFLAGS+set}
2108 ac_save_CFLAGS=$CFLAGS
2109 CFLAGS="-g"
2110 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_g+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   cat >conftest.$ac_ext <<_ACEOF
2116 #line $LINENO "configure"
2117 /* confdefs.h.  */
2118 _ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h.  */
2122
2123 int
2124 main ()
2125 {
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133   (eval $ac_compile) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); } &&
2137          { ac_try='test -s conftest.$ac_objext'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; }; then
2143   ac_cv_prog_cc_g=yes
2144 else
2145   echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2147
2148 ac_cv_prog_cc_g=no
2149 fi
2150 rm -f conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2153 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2154 if test "$ac_test_CFLAGS" = set; then
2155   CFLAGS=$ac_save_CFLAGS
2156 elif test $ac_cv_prog_cc_g = yes; then
2157   if test "$GCC" = yes; then
2158     CFLAGS="-g -O2"
2159   else
2160     CFLAGS="-g"
2161   fi
2162 else
2163   if test "$GCC" = yes; then
2164     CFLAGS="-O2"
2165   else
2166     CFLAGS=
2167   fi
2168 fi
2169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   ac_cv_prog_cc_stdc=no
2175 ac_save_CC=$CC
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2178 /* confdefs.h.  */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h.  */
2183 #include <stdarg.h>
2184 #include <stdio.h>
2185 #include <sys/types.h>
2186 #include <sys/stat.h>
2187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2188 struct buf { int x; };
2189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2190 static char *e (p, i)
2191      char **p;
2192      int i;
2193 {
2194   return p[i];
2195 }
2196 static char *f (char * (*g) (char **, int), char **p, ...)
2197 {
2198   char *s;
2199   va_list v;
2200   va_start (v,p);
2201   s = g (p, va_arg (v,int));
2202   va_end (v);
2203   return s;
2204 }
2205 int test (int i, double x);
2206 struct s1 {int (*f) (int a);};
2207 struct s2 {int (*f) (double a);};
2208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2209 int argc;
2210 char **argv;
2211 int
2212 main ()
2213 {
2214 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 # Don't try gcc -ansi; that turns off useful extensions and
2220 # breaks some systems' header files.
2221 # AIX                   -qlanglvl=ansi
2222 # Ultrix and OSF/1      -std1
2223 # HP-UX 10.20 and later -Ae
2224 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2225 # SVR4                  -Xc -D__EXTENSIONS__
2226 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2227 do
2228   CC="$ac_save_CC $ac_arg"
2229   rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231   (eval $ac_compile) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); } &&
2235          { ac_try='test -s conftest.$ac_objext'
2236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237   (eval $ac_try) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241   ac_cv_prog_cc_stdc=$ac_arg
2242 break
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 fi
2248 rm -f conftest.$ac_objext
2249 done
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2251 CC=$ac_save_CC
2252
2253 fi
2254
2255 case "x$ac_cv_prog_cc_stdc" in
2256   x|xno)
2257     echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2259   *)
2260     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262     CC="$CC $ac_cv_prog_cc_stdc" ;;
2263 esac
2264
2265 # Some people use a C++ compiler to compile C.  Since we use `exit',
2266 # in C++ we need to declare it.  In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #ifndef __cplusplus
2271   choke me
2272 #endif
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   for ac_declaration in \
2287    ''\
2288    '#include <stdlib.h>' \
2289    'extern "C" void std::exit (int) throw (); using std::exit;' \
2290    'extern "C" void std::exit (int); using std::exit;' \
2291    'extern "C" void exit (int) throw ();' \
2292    'extern "C" void exit (int);' \
2293    'void exit (int);'
2294 do
2295   cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302 #include <stdlib.h>
2303 $ac_declaration
2304 int
2305 main ()
2306 {
2307 exit (42);
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -s conftest.$ac_objext'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324   :
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 continue
2330 fi
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2332   cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339 $ac_declaration
2340 int
2341 main ()
2342 {
2343 exit (42);
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350   (eval $ac_compile) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); } &&
2354          { ac_try='test -s conftest.$ac_objext'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360   break
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 fi
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 done
2368 rm -f conftest*
2369 if test -n "$ac_declaration"; then
2370   echo '#ifdef __cplusplus' >>confdefs.h
2371   echo $ac_declaration      >>confdefs.h
2372   echo '#endif'             >>confdefs.h
2373 fi
2374
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 fi
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_ext=c
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386
2387 ac_ext=cc
2388 ac_cpp='$CXXCPP $CPPFLAGS'
2389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2394   do
2395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CXX+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$CXX"; then
2403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418
2419 fi
2420 fi
2421 CXX=$ac_cv_prog_CXX
2422 if test -n "$CXX"; then
2423   echo "$as_me:$LINENO: result: $CXX" >&5
2424 echo "${ECHO_T}$CXX" >&6
2425 else
2426   echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428 fi
2429
2430     test -n "$CXX" && break
2431   done
2432 fi
2433 if test -z "$CXX"; then
2434   ac_ct_CXX=$CXX
2435   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2436 do
2437   # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   if test -n "$ac_ct_CXX"; then
2445   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452   for ac_exec_ext in '' $ac_executable_extensions; do
2453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454     ac_cv_prog_ac_ct_CXX="$ac_prog"
2455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456     break 2
2457   fi
2458 done
2459 done
2460
2461 fi
2462 fi
2463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2464 if test -n "$ac_ct_CXX"; then
2465   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2466 echo "${ECHO_T}$ac_ct_CXX" >&6
2467 else
2468   echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2470 fi
2471
2472   test -n "$ac_ct_CXX" && break
2473 done
2474 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2475
2476   CXX=$ac_ct_CXX
2477 fi
2478
2479
2480 # Provide some information about the compiler.
2481 echo "$as_me:$LINENO:" \
2482      "checking for C++ compiler version" >&5
2483 ac_compiler=`set X $ac_compile; echo $2`
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2485   (eval $ac_compiler --version </dev/null >&5) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2490   (eval $ac_compiler -v </dev/null >&5) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }
2494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2495   (eval $ac_compiler -V </dev/null >&5) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }
2499
2500 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2501 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2502 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512
2513 int
2514 main ()
2515 {
2516 #ifndef __GNUC__
2517        choke me
2518 #endif
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_compiler_gnu=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_compiler_gnu=no
2542 fi
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2545
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2549 GXX=`test $ac_compiler_gnu = yes && echo yes`
2550 ac_test_CXXFLAGS=${CXXFLAGS+set}
2551 ac_save_CXXFLAGS=$CXXFLAGS
2552 CXXFLAGS="-g"
2553 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2554 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2555 if test "${ac_cv_prog_cxx_g+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); } &&
2580          { ac_try='test -s conftest.$ac_objext'
2581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582   (eval $ac_try) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_cv_prog_cxx_g=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 ac_cv_prog_cxx_g=no
2592 fi
2593 rm -f conftest.$ac_objext conftest.$ac_ext
2594 fi
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2597 if test "$ac_test_CXXFLAGS" = set; then
2598   CXXFLAGS=$ac_save_CXXFLAGS
2599 elif test $ac_cv_prog_cxx_g = yes; then
2600   if test "$GXX" = yes; then
2601     CXXFLAGS="-g -O2"
2602   else
2603     CXXFLAGS="-g"
2604   fi
2605 else
2606   if test "$GXX" = yes; then
2607     CXXFLAGS="-O2"
2608   else
2609     CXXFLAGS=
2610   fi
2611 fi
2612 for ac_declaration in \
2613    ''\
2614    '#include <stdlib.h>' \
2615    'extern "C" void std::exit (int) throw (); using std::exit;' \
2616    'extern "C" void std::exit (int); using std::exit;' \
2617    'extern "C" void exit (int) throw ();' \
2618    'extern "C" void exit (int);' \
2619    'void exit (int);'
2620 do
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 #include <stdlib.h>
2629 $ac_declaration
2630 int
2631 main ()
2632 {
2633 exit (42);
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640   (eval $ac_compile) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } &&
2644          { ac_try='test -s conftest.$ac_objext'
2645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); }; }; then
2650   :
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 continue
2656 fi
2657 rm -f conftest.$ac_objext conftest.$ac_ext
2658   cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665 $ac_declaration
2666 int
2667 main ()
2668 {
2669 exit (42);
2670   ;
2671   return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676   (eval $ac_compile) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); } &&
2680          { ac_try='test -s conftest.$ac_objext'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; }; then
2686   break
2687 else
2688   echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 fi
2692 rm -f conftest.$ac_objext conftest.$ac_ext
2693 done
2694 rm -f conftest*
2695 if test -n "$ac_declaration"; then
2696   echo '#ifdef __cplusplus' >>confdefs.h
2697   echo $ac_declaration      >>confdefs.h
2698   echo '#endif'             >>confdefs.h
2699 fi
2700
2701 ac_ext=c
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706
2707 if test "x$CC" != xcc; then
2708   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2709 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2710 else
2711   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2712 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2713 fi
2714 set dummy $CC; ac_cc=`echo $2 |
2715                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2716 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   cat >conftest.$ac_ext <<_ACEOF
2720 #line $LINENO "configure"
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 # Make sure it works both with $CC and with simple cc.
2736 # We do the test twice because some compilers refuse to overwrite an
2737 # existing .o file with -o, though they will create one.
2738 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2739 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } &&
2744    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); };
2749 then
2750   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2751   if test "x$CC" != xcc; then
2752     # Test first that cc exists at all.
2753     if { ac_try='cc -c conftest.$ac_ext >&5'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2760       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); };
2770       then
2771         # cc works too.
2772         :
2773       else
2774         # cc exists but doesn't like -o.
2775         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2776       fi
2777     fi
2778   fi
2779 else
2780   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2781 fi
2782 rm -f conftest*
2783
2784 fi
2785 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2786   echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788 else
2789   echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2791
2792 cat >>confdefs.h <<\_ACEOF
2793 #define NO_MINUS_C_MINUS_O 1
2794 _ACEOF
2795
2796 fi
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2805 # On Suns, sometimes $CPP names a directory.
2806 if test -n "$CPP" && test -d "$CPP"; then
2807   CPP=
2808 fi
2809 if test -z "$CPP"; then
2810   if test "${ac_cv_prog_CPP+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813       # Double quotes because CPP needs to be expanded
2814     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2815     do
2816       ac_preproc_ok=false
2817 for ac_c_preproc_warn_flag in '' yes
2818 do
2819   # Use a header file that comes with gcc, so configuring glibc
2820   # with a fresh cross-compiler works.
2821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822   # <limits.h> exists even on freestanding compilers.
2823   # On the NeXT, cc -E runs the code through the compiler's parser,
2824   # not just through cpp. "Syntax error" is here to catch this case.
2825   cat >conftest.$ac_ext <<_ACEOF
2826 #line $LINENO "configure"
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 #ifdef __STDC__
2833 # include <limits.h>
2834 #else
2835 # include <assert.h>
2836 #endif
2837                      Syntax error
2838 _ACEOF
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } >/dev/null; then
2847   if test -s conftest.err; then
2848     ac_cpp_err=$ac_c_preproc_warn_flag
2849   else
2850     ac_cpp_err=
2851   fi
2852 else
2853   ac_cpp_err=yes
2854 fi
2855 if test -z "$ac_cpp_err"; then
2856   :
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861   # Broken: fails on valid input.
2862 continue
2863 fi
2864 rm -f conftest.err conftest.$ac_ext
2865
2866   # OK, works on sane cases.  Now check whether non-existent headers
2867   # can be detected and how.
2868   cat >conftest.$ac_ext <<_ACEOF
2869 #line $LINENO "configure"
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875 #include <ac_nonexistent.h>
2876 _ACEOF
2877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } >/dev/null; then
2885   if test -s conftest.err; then
2886     ac_cpp_err=$ac_c_preproc_warn_flag
2887   else
2888     ac_cpp_err=
2889   fi
2890 else
2891   ac_cpp_err=yes
2892 fi
2893 if test -z "$ac_cpp_err"; then
2894   # Broken: success on invalid input.
2895 continue
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900   # Passes both tests.
2901 ac_preproc_ok=:
2902 break
2903 fi
2904 rm -f conftest.err conftest.$ac_ext
2905
2906 done
2907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2908 rm -f conftest.err conftest.$ac_ext
2909 if $ac_preproc_ok; then
2910   break
2911 fi
2912
2913     done
2914     ac_cv_prog_CPP=$CPP
2915
2916 fi
2917   CPP=$ac_cv_prog_CPP
2918 else
2919   ac_cv_prog_CPP=$CPP
2920 fi
2921 echo "$as_me:$LINENO: result: $CPP" >&5
2922 echo "${ECHO_T}$CPP" >&6
2923 ac_preproc_ok=false
2924 for ac_c_preproc_warn_flag in '' yes
2925 do
2926   # Use a header file that comes with gcc, so configuring glibc
2927   # with a fresh cross-compiler works.
2928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929   # <limits.h> exists even on freestanding compilers.
2930   # On the NeXT, cc -E runs the code through the compiler's parser,
2931   # not just through cpp. "Syntax error" is here to catch this case.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939 #ifdef __STDC__
2940 # include <limits.h>
2941 #else
2942 # include <assert.h>
2943 #endif
2944                      Syntax error
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } >/dev/null; then
2954   if test -s conftest.err; then
2955     ac_cpp_err=$ac_c_preproc_warn_flag
2956   else
2957     ac_cpp_err=
2958   fi
2959 else
2960   ac_cpp_err=yes
2961 fi
2962 if test -z "$ac_cpp_err"; then
2963   :
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Broken: fails on valid input.
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_ext
2972
2973   # OK, works on sane cases.  Now check whether non-existent headers
2974   # can be detected and how.
2975   cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982 #include <ac_nonexistent.h>
2983 _ACEOF
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } >/dev/null; then
2992   if test -s conftest.err; then
2993     ac_cpp_err=$ac_c_preproc_warn_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   # Broken: success on invalid input.
3002 continue
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Passes both tests.
3008 ac_preproc_ok=:
3009 break
3010 fi
3011 rm -f conftest.err conftest.$ac_ext
3012
3013 done
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3017   :
3018 else
3019   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3022 See \`config.log' for more details." >&2;}
3023    { (exit 1); exit 1; }; }
3024 fi
3025
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
3032
3033 echo "$as_me:$LINENO: checking for egrep" >&5
3034 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3035 if test "${ac_cv_prog_egrep+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3039     then ac_cv_prog_egrep='grep -E'
3040     else ac_cv_prog_egrep='egrep'
3041     fi
3042 fi
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3044 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3045  EGREP=$ac_cv_prog_egrep
3046
3047
3048 if test $ac_cv_c_compiler_gnu = yes; then
3049     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3050 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3051 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3052   echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054     ac_pattern="Autoconf.*'x'"
3055   cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <sgtty.h>
3063 Autoconf TIOCGETP
3064 _ACEOF
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3066   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3067   ac_cv_prog_gcc_traditional=yes
3068 else
3069   ac_cv_prog_gcc_traditional=no
3070 fi
3071 rm -f conftest*
3072
3073
3074   if test $ac_cv_prog_gcc_traditional = no; then
3075     cat >conftest.$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 #include <termio.h>
3083 Autoconf TCGETA
3084 _ACEOF
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3087   ac_cv_prog_gcc_traditional=yes
3088 fi
3089 rm -f conftest*
3090
3091   fi
3092 fi
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3094 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3095   if test $ac_cv_prog_gcc_traditional = yes; then
3096     CC="$CC -traditional"
3097   fi
3098 fi
3099
3100 if test x$CC = xgcc
3101 then
3102    cat >>confdefs.h <<\_ACEOF
3103 #define HAVE_GCC 1
3104 _ACEOF
3105
3106 fi
3107
3108 # Find a good install program.  We prefer a C program (faster),
3109 # so one script is as good as another.  But avoid the broken or
3110 # incompatible versions:
3111 # SysV /etc/install, /usr/sbin/install
3112 # SunOS /usr/etc/install
3113 # IRIX /sbin/install
3114 # AIX /bin/install
3115 # AmigaOS /C/install, which installs bootblocks on floppy discs
3116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3122 if test -z "$INSTALL"; then
3123 if test "${ac_cv_path_install+set}" = set; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   # Account for people who put trailing slashes in PATH elements.
3132 case $as_dir/ in
3133   ./ | .// | /cC/* | \
3134   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3135   /usr/ucb/* ) ;;
3136   *)
3137     # OSF1 and SCO ODT 3.0 have their own names for install.
3138     # Don't use installbsd from OSF since it installs stuff as root
3139     # by default.
3140     for ac_prog in ginstall scoinst install; do
3141       for ac_exec_ext in '' $ac_executable_extensions; do
3142         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3143           if test $ac_prog = install &&
3144             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3145             # AIX install.  It has an incompatible calling convention.
3146             :
3147           elif test $ac_prog = install &&
3148             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3149             # program-specific install script used by HP pwplus--don't use.
3150             :
3151           else
3152             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3153             break 3
3154           fi
3155         fi
3156       done
3157     done
3158     ;;
3159 esac
3160 done
3161
3162
3163 fi
3164   if test "${ac_cv_path_install+set}" = set; then
3165     INSTALL=$ac_cv_path_install
3166   else
3167     # As a last resort, use the slow shell script.  We don't cache a
3168     # path for INSTALL within a source directory, because that will
3169     # break other packages using the cache if that directory is
3170     # removed, or if the path is relative.
3171     INSTALL=$ac_install_sh
3172   fi
3173 fi
3174 echo "$as_me:$LINENO: result: $INSTALL" >&5
3175 echo "${ECHO_T}$INSTALL" >&6
3176
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3180
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3182
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3184
3185 if test -n "$ac_tool_prefix"; then
3186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if test -n "$RANLIB"; then
3194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201   for ac_exec_ext in '' $ac_executable_extensions; do
3202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208 done
3209
3210 fi
3211 fi
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214   echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3216 else
3217   echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 fi
3220
3221 fi
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223   ac_ct_RANLIB=$RANLIB
3224   # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -n "$ac_ct_RANLIB"; then
3232   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_ac_ct_RANLIB="ranlib"
3242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246 done
3247
3248   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3249 fi
3250 fi
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3255 else
3256   echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 fi
3259
3260   RANLIB=$ac_ct_RANLIB
3261 else
3262   RANLIB="$ac_cv_prog_RANLIB"
3263 fi
3264
3265 # Extract the first word of "mv", so it can be a program name with args.
3266 set dummy mv; ac_word=$2
3267 echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_path_MV+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   case $MV in
3273   [\\/]* | ?:[\\/]*)
3274   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3275   ;;
3276   *)
3277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282   for ac_exec_ext in '' $ac_executable_extensions; do
3283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289 done
3290
3291   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3292   ;;
3293 esac
3294 fi
3295 MV=$ac_cv_path_MV
3296
3297 if test -n "$MV"; then
3298   echo "$as_me:$LINENO: result: $MV" >&5
3299 echo "${ECHO_T}$MV" >&6
3300 else
3301   echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303 fi
3304
3305 # Extract the first word of "rm", so it can be a program name with args.
3306 set dummy rm; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_path_RM+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   case $RM in
3313   [\\/]* | ?:[\\/]*)
3314   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3315   ;;
3316   *)
3317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322   for ac_exec_ext in '' $ac_executable_extensions; do
3323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329 done
3330
3331   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3332   ;;
3333 esac
3334 fi
3335 RM=$ac_cv_path_RM
3336
3337 if test -n "$RM"; then
3338   echo "$as_me:$LINENO: result: $RM" >&5
3339 echo "${ECHO_T}$RM" >&6
3340 else
3341   echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345 # Extract the first word of "cp", so it can be a program name with args.
3346 set dummy cp; ac_word=$2
3347 echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_path_CP+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352   case $CP in
3353   [\\/]* | ?:[\\/]*)
3354   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3355   ;;
3356   *)
3357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362   for ac_exec_ext in '' $ac_executable_extensions; do
3363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369 done
3370
3371   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3372   ;;
3373 esac
3374 fi
3375 CP=$ac_cv_path_CP
3376
3377 if test -n "$CP"; then
3378   echo "$as_me:$LINENO: result: $CP" >&5
3379 echo "${ECHO_T}$CP" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 # Extract the first word of "sed", so it can be a program name with args.
3386 set dummy sed; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_path_SED+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   case $SED in
3393   [\\/]* | ?:[\\/]*)
3394   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3395   ;;
3396   *)
3397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402   for ac_exec_ext in '' $ac_executable_extensions; do
3403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409 done
3410
3411   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3412   ;;
3413 esac
3414 fi
3415 SED=$ac_cv_path_SED
3416
3417 if test -n "$SED"; then
3418   echo "$as_me:$LINENO: result: $SED" >&5
3419 echo "${ECHO_T}$SED" >&6
3420 else
3421   echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3423 fi
3424
3425 # Extract the first word of "awk", so it can be a program name with args.
3426 set dummy awk; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_path_AWK+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   case $AWK in
3433   [\\/]* | ?:[\\/]*)
3434   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3435   ;;
3436   *)
3437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442   for ac_exec_ext in '' $ac_executable_extensions; do
3443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446     break 2
3447   fi
3448 done
3449 done
3450
3451   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3452   ;;
3453 esac
3454 fi
3455 AWK=$ac_cv_path_AWK
3456
3457 if test -n "$AWK"; then
3458   echo "$as_me:$LINENO: result: $AWK" >&5
3459 echo "${ECHO_T}$AWK" >&6
3460 else
3461   echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465 # Extract the first word of "echo", so it can be a program name with args.
3466 set dummy echo; ac_word=$2
3467 echo "$as_me:$LINENO: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_path_ECHO+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   case $ECHO in
3473   [\\/]* | ?:[\\/]*)
3474   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3475   ;;
3476   *)
3477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482   for ac_exec_ext in '' $ac_executable_extensions; do
3483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489 done
3490
3491   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3492   ;;
3493 esac
3494 fi
3495 ECHO=$ac_cv_path_ECHO
3496
3497 if test -n "$ECHO"; then
3498   echo "$as_me:$LINENO: result: $ECHO" >&5
3499 echo "${ECHO_T}$ECHO" >&6
3500 else
3501   echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503 fi
3504
3505 # Extract the first word of "cmp", so it can be a program name with args.
3506 set dummy cmp; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_path_CMP+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   case $CMP in
3513   [\\/]* | ?:[\\/]*)
3514   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3515   ;;
3516   *)
3517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522   for ac_exec_ext in '' $ac_executable_extensions; do
3523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529 done
3530
3531   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3532   ;;
3533 esac
3534 fi
3535 CMP=$ac_cv_path_CMP
3536
3537 if test -n "$CMP"; then
3538   echo "$as_me:$LINENO: result: $CMP" >&5
3539 echo "${ECHO_T}$CMP" >&6
3540 else
3541   echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3543 fi
3544
3545 # Extract the first word of "tbl", so it can be a program name with args.
3546 set dummy tbl; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_path_TBL+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   case $TBL in
3553   [\\/]* | ?:[\\/]*)
3554   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3555   ;;
3556   *)
3557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562   for ac_exec_ext in '' $ac_executable_extensions; do
3563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569 done
3570
3571   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3572   ;;
3573 esac
3574 fi
3575 TBL=$ac_cv_path_TBL
3576
3577 if test -n "$TBL"; then
3578   echo "$as_me:$LINENO: result: $TBL" >&5
3579 echo "${ECHO_T}$TBL" >&6
3580 else
3581   echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3583 fi
3584
3585 # Extract the first word of "ar", so it can be a program name with args.
3586 set dummy ar; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_path_AR+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   case $AR in
3593   [\\/]* | ?:[\\/]*)
3594   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3595   ;;
3596   *)
3597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602   for ac_exec_ext in '' $ac_executable_extensions; do
3603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606     break 2
3607   fi
3608 done
3609 done
3610
3611   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3612   ;;
3613 esac
3614 fi
3615 AR=$ac_cv_path_AR
3616
3617 if test -n "$AR"; then
3618   echo "$as_me:$LINENO: result: $AR" >&5
3619 echo "${ECHO_T}$AR" >&6
3620 else
3621   echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624
3625 # Extract the first word of "ranlib", so it can be a program name with args.
3626 set dummy ranlib; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_path_RANLIB+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   case $RANLIB in
3633   [\\/]* | ?:[\\/]*)
3634   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3635   ;;
3636   *)
3637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642   for ac_exec_ext in '' $ac_executable_extensions; do
3643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649 done
3650
3651   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3652   ;;
3653 esac
3654 fi
3655 RANLIB=$ac_cv_path_RANLIB
3656
3657 if test -n "$RANLIB"; then
3658   echo "$as_me:$LINENO: result: $RANLIB" >&5
3659 echo "${ECHO_T}$RANLIB" >&6
3660 else
3661   echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3663 fi
3664
3665 # Extract the first word of "openssl", so it can be a program name with args.
3666 set dummy openssl; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_path_OPENSSL+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   case $OPENSSL in
3673   [\\/]* | ?:[\\/]*)
3674   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3675   ;;
3676   *)
3677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682   for ac_exec_ext in '' $ac_executable_extensions; do
3683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689 done
3690
3691   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3692   ;;
3693 esac
3694 fi
3695 OPENSSL=$ac_cv_path_OPENSSL
3696
3697 if test -n "$OPENSSL"; then
3698   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3699 echo "${ECHO_T}$OPENSSL" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705 # Extract the first word of "mtx", so it can be a program name with args.
3706 set dummy mtx; ac_word=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_path_MTX+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   case $MTX in
3713   [\\/]* | ?:[\\/]*)
3714   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3715   ;;
3716   *)
3717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729 done
3730
3731   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3732   ;;
3733 esac
3734 fi
3735 MTX=$ac_cv_path_MTX
3736
3737 if test -n "$MTX"; then
3738   echo "$as_me:$LINENO: result: $MTX" >&5
3739 echo "${ECHO_T}$MTX" >&6
3740 else
3741   echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3743 fi
3744
3745 # Extract the first word of "pkg-config", so it can be a program name with args.
3746 set dummy pkg-config; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3750   echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752   case $PKGCONFIG in
3753   [\\/]* | ?:[\\/]*)
3754   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3755   ;;
3756   *)
3757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770
3771   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3772   ;;
3773 esac
3774 fi
3775 PKGCONFIG=$ac_cv_path_PKGCONFIG
3776
3777 if test -n "$PKGCONFIG"; then
3778   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3779 echo "${ECHO_T}$PKGCONFIG" >&6
3780 else
3781   echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 test -n "$ARFLAG" || ARFLAGS="cr"
3787
3788
3789 MAKE_SHELL=/bin/sh
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799 echo "$as_me:$LINENO: checking for Operating System" >&5
3800 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3801
3802 case $host_os in
3803   *cygwin* ) CYGWIN=yes;;
3804          * ) CYGWIN=no;;
3805 esac
3806
3807 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3808 then
3809
3810
3811 if $TRUEPRG; then
3812   HAVE_SUN_OS_TRUE=
3813   HAVE_SUN_OS_FALSE='#'
3814 else
3815   HAVE_SUN_OS_TRUE='#'
3816   HAVE_SUN_OS_FALSE=
3817 fi
3818         cat >>confdefs.h <<\_ACEOF
3819 #define HAVE_SUN_OS 1
3820 _ACEOF
3821
3822 else
3823
3824
3825 if $FALSEPRG; then
3826   HAVE_SUN_OS_TRUE=
3827   HAVE_SUN_OS_FALSE='#'
3828 else
3829   HAVE_SUN_OS_TRUE='#'
3830   HAVE_SUN_OS_FALSE=
3831 fi
3832 fi
3833
3834 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3835 then
3836
3837
3838 if $TRUEPRG; then
3839   HAVE_OSF1_OS_TRUE=
3840   HAVE_OSF1_OS_FALSE='#'
3841 else
3842   HAVE_OSF1_OS_TRUE='#'
3843   HAVE_OSF1_OS_FALSE=
3844 fi
3845         cat >>confdefs.h <<\_ACEOF
3846 #define HAVE_OSF1_OS 1
3847 _ACEOF
3848
3849 else
3850
3851
3852 if $FALSEPRG; then
3853   HAVE_OSF1_OS_TRUE=
3854   HAVE_OSF1_OS_FALSE='#'
3855 else
3856   HAVE_OSF1_OS_TRUE='#'
3857   HAVE_OSF1_OS_FALSE=
3858 fi
3859 fi
3860
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3862 then
3863
3864
3865 if $TRUEPRG; then
3866   HAVE_AIX_OS_TRUE=
3867   HAVE_AIX_OS_FALSE='#'
3868 else
3869   HAVE_AIX_OS_TRUE='#'
3870   HAVE_AIX_OS_FALSE=
3871 fi
3872         cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_AIX_OS 1
3874 _ACEOF
3875
3876 else
3877
3878
3879 if $FALSEPRG; then
3880   HAVE_AIX_OS_TRUE=
3881   HAVE_AIX_OS_FALSE='#'
3882 else
3883   HAVE_AIX_OS_TRUE='#'
3884   HAVE_AIX_OS_FALSE=
3885 fi
3886 fi
3887
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3889 then
3890
3891
3892 if $TRUEPRG; then
3893   HAVE_HPUX_OS_TRUE=
3894   HAVE_HPUX_OS_FALSE='#'
3895 else
3896   HAVE_HPUX_OS_TRUE='#'
3897   HAVE_HPUX_OS_FALSE=
3898 fi
3899         cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_HPUX_OS 1
3901 _ACEOF
3902
3903 else
3904
3905
3906 if $FALSEPRG; then
3907   HAVE_HPUX_OS_TRUE=
3908   HAVE_HPUX_OS_FALSE='#'
3909 else
3910   HAVE_HPUX_OS_TRUE='#'
3911   HAVE_HPUX_OS_FALSE=
3912 fi
3913 fi
3914
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3916 then
3917
3918
3919 if $TRUEPRG; then
3920   HAVE_LINUX_OS_TRUE=
3921   HAVE_LINUX_OS_FALSE='#'
3922 else
3923   HAVE_LINUX_OS_TRUE='#'
3924   HAVE_LINUX_OS_FALSE=
3925 fi
3926         cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_LINUX_OS 1
3928 _ACEOF
3929
3930 else
3931
3932
3933 if $FALSEPRG; then
3934   HAVE_LINUX_OS_TRUE=
3935   HAVE_LINUX_OS_FALSE='#'
3936 else
3937   HAVE_LINUX_OS_TRUE='#'
3938   HAVE_LINUX_OS_FALSE=
3939 fi
3940 fi
3941
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3943 then
3944
3945
3946 if $TRUEPRG; then
3947   HAVE_FREEBSD_OS_TRUE=
3948   HAVE_FREEBSD_OS_FALSE='#'
3949 else
3950   HAVE_FREEBSD_OS_TRUE='#'
3951   HAVE_FREEBSD_OS_FALSE=
3952 fi
3953         cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_FREEBSD_OS 1
3955 _ACEOF
3956
3957 else
3958
3959
3960 if $FALSEPRG; then
3961   HAVE_FREEBSD_OS_TRUE=
3962   HAVE_FREEBSD_OS_FALSE='#'
3963 else
3964   HAVE_FREEBSD_OS_TRUE='#'
3965   HAVE_FREEBSD_OS_FALSE=
3966 fi
3967 fi
3968
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3970 then
3971
3972
3973 if $TRUEPRG; then
3974   HAVE_NETBSD_OS_TRUE=
3975   HAVE_NETBSD_OS_FALSE='#'
3976 else
3977   HAVE_NETBSD_OS_TRUE='#'
3978   HAVE_NETBSD_OS_FALSE=
3979 fi
3980         cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_NETBSD_OS 1
3982 _ACEOF
3983
3984 else
3985
3986
3987 if $FALSEPRG; then
3988   HAVE_NETBSD_OS_TRUE=
3989   HAVE_NETBSD_OS_FALSE='#'
3990 else
3991   HAVE_NETBSD_OS_TRUE='#'
3992   HAVE_NETBSD_OS_FALSE=
3993 fi
3994 fi
3995
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3997 then
3998
3999
4000 if $TRUEPRG; then
4001   HAVE_OPENBSD_OS_TRUE=
4002   HAVE_OPENBSD_OS_FALSE='#'
4003 else
4004   HAVE_OPENBSD_OS_TRUE='#'
4005   HAVE_OPENBSD_OS_FALSE=
4006 fi
4007         cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_OPENBSD_OS 1
4009 _ACEOF
4010
4011 else
4012
4013
4014 if $FALSEPRG; then
4015   HAVE_OPENBSD_OS_TRUE=
4016   HAVE_OPENBSD_OS_FALSE='#'
4017 else
4018   HAVE_OPENBSD_OS_TRUE='#'
4019   HAVE_OPENBSD_OS_FALSE=
4020 fi
4021 fi
4022
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4024 then
4025
4026
4027 if $TRUEPRG; then
4028   HAVE_BSDI_OS_TRUE=
4029   HAVE_BSDI_OS_FALSE='#'
4030 else
4031   HAVE_BSDI_OS_TRUE='#'
4032   HAVE_BSDI_OS_FALSE=
4033 fi
4034         cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_BSDI_OS 1
4036 _ACEOF
4037
4038 else
4039
4040
4041 if $FALSEPRG; then
4042   HAVE_BSDI_OS_TRUE=
4043   HAVE_BSDI_OS_FALSE='#'
4044 else
4045   HAVE_BSDI_OS_TRUE='#'
4046   HAVE_BSDI_OS_FALSE=
4047 fi
4048 fi
4049
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4051 then
4052
4053
4054 if $TRUEPRG; then
4055   HAVE_SGI_OS_TRUE=
4056   HAVE_SGI_OS_FALSE='#'
4057 else
4058   HAVE_SGI_OS_TRUE='#'
4059   HAVE_SGI_OS_FALSE=
4060 fi
4061         cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_SGI_OS 1
4063 _ACEOF
4064
4065 else
4066
4067
4068 if $FALSEPRG; then
4069   HAVE_SGI_OS_TRUE=
4070   HAVE_SGI_OS_FALSE='#'
4071 else
4072   HAVE_SGI_OS_TRUE='#'
4073   HAVE_SGI_OS_FALSE=
4074 fi
4075 fi
4076
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4078 then
4079
4080
4081 if $TRUEPRG; then
4082   HAVE_IRIX_OS_TRUE=
4083   HAVE_IRIX_OS_FALSE='#'
4084 else
4085   HAVE_IRIX_OS_TRUE='#'
4086   HAVE_IRIX_OS_FALSE=
4087 fi
4088         cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_IRIX_OS 1
4090 _ACEOF
4091
4092 else
4093
4094
4095 if $FALSEPRG; then
4096   HAVE_IRIX_OS_TRUE=
4097   HAVE_IRIX_OS_FALSE='#'
4098 else
4099   HAVE_IRIX_OS_TRUE='#'
4100   HAVE_IRIX_OS_FALSE=
4101 fi
4102 fi
4103
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4105 then
4106
4107
4108 if $TRUEPRG; then
4109   HAVE_DARWIN_OS_TRUE=
4110   HAVE_DARWIN_OS_FALSE='#'
4111 else
4112   HAVE_DARWIN_OS_TRUE='#'
4113   HAVE_DARWIN_OS_FALSE=
4114 fi
4115     cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_DARWIN_OS 1
4117 _ACEOF
4118
4119 else
4120
4121
4122 if $FALSEPRG; then
4123   HAVE_DARWIN_OS_TRUE=
4124   HAVE_DARWIN_OS_FALSE='#'
4125 else
4126   HAVE_DARWIN_OS_TRUE='#'
4127   HAVE_DARWIN_OS_FALSE=
4128 fi
4129 fi
4130
4131 echo "$as_me:$LINENO: result: \" \"" >&5
4132 echo "${ECHO_T}\" \"" >&6
4133
4134
4135 # -----------------------------------------------------------
4136 # ----------------------------------------------------------
4137 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4138 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4139 if test "x$DISTNAME" != "x"
4140 then
4141         echo "distname set to $DISTNAME"
4142 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4143 then
4144         DISTNAME=alpha
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4146 then
4147         DISTNAME=aix
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4149 then
4150         DISTNAME=hpux
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4152 then
4153         DISTNAME=solaris
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4155 then
4156         DISTNAME=freebsd
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4158 then
4159         DISTNAME=netbsd
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4161 then
4162         DISTNAME=openbsd
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4164 then
4165         DISTNAME=irix
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4167 then
4168         DISTNAME=bsdi
4169 elif test -f /etc/SuSE-release
4170 then
4171         DISTNAME=suse
4172 elif test -d /etc/SuSEconfig
4173 then
4174         DISTNAME=suse5
4175 elif test -f /etc/mandrake-release
4176 then
4177         DISTNAME=mandrake
4178 elif test -f /etc/redhat-release
4179 then
4180         DISTNAME=redhat
4181 elif test -f /etc/gentoo-release
4182 then
4183         DISTNAME=gentoo
4184 elif test -f /etc/debian_version
4185 then
4186         DISTNAME=debian
4187 elif test -f /etc/slackware-version
4188 then
4189         DISTNAME=slackware
4190 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4191 then
4192     DISTNAME=darwin
4193 elif test -f /etc/engarde-version
4194 then
4195         DISTNAME=engarde
4196 elif test "$CYGWIN" = yes
4197 then
4198         DISTNAME=cygwin
4199         cat >>confdefs.h <<\_ACEOF
4200 #define HAVE_CYGWIN 1
4201 _ACEOF
4202
4203 else
4204         DISTNAME=unknown
4205 fi
4206 echo "$as_me:$LINENO: result: \" \"" >&5
4207 echo "${ECHO_T}\" \"" >&6
4208
4209
4210 # -----------------------------------------------------------
4211 # ----------------------------------------------------------
4212
4213
4214
4215 if false; then
4216   INSIDE_GNOME_COMMON_TRUE=
4217   INSIDE_GNOME_COMMON_FALSE='#'
4218 else
4219   INSIDE_GNOME_COMMON_TRUE='#'
4220   INSIDE_GNOME_COMMON_FALSE=
4221 fi
4222
4223         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4224
4225         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4226
4227
4228 # ------------------------------------------------------------------
4229 #  If the user has not set --prefix, we set our default to nothing.
4230 #  In this case, if the user has not set --sysconfdir, we set it
4231 #  to the package default of /etc/bacula.  If either --prefix or
4232 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4233 # ------------------------------------------------------------------
4234 if test x${prefix} = xNONE ; then
4235     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4236         sysconfdir=/etc/bacula
4237     fi
4238     prefix=
4239 fi
4240 sysconfdir=`eval echo ${sysconfdir}`
4241
4242 # -------------------------------------------------------------------------
4243 #  If the user has not set --exec-prefix, we default to ${prefix}
4244 # -------------------------------------------------------------------------
4245 if test x${exec_prefix} = xNONE ; then
4246     exec_prefix=${prefix}
4247 fi
4248
4249 # ------------------------------------------------------------------
4250 # If the user has not set --sbindir, we set our default as /sbin
4251 # ------------------------------------------------------------------
4252 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4253     sbindir=${exec_prefix}/sbin
4254 fi
4255 sbindir=`eval echo ${sbindir}`
4256
4257 # ------------------------------------------------------------------
4258 # All list of languages for which a translation exist. Each
4259 #  language is separated by a space.
4260 # ------------------------------------------------------------------
4261 ALL_LINGUAS=""
4262
4263 for ac_prog in msgfmt
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_MSGFMT+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   case $MSGFMT in
4273   [\\/]* | ?:[\\/]*)
4274   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4275   ;;
4276   *)
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282   for ac_exec_ext in '' $ac_executable_extensions; do
4283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289 done
4290
4291   ;;
4292 esac
4293 fi
4294 MSGFMT=$ac_cv_path_MSGFMT
4295
4296 if test -n "$MSGFMT"; then
4297   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4298 echo "${ECHO_T}$MSGFMT" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$MSGFMT" && break
4305 done
4306 test -n "$MSGFMT" || MSGFMT="no"
4307
4308 if test "$MSGFMT" = "no"
4309 then
4310    echo 'msgfmt program not found, disabling NLS !'
4311    USE_NLS=no
4312    USE_INCLUDED_LIBINTL=no
4313 #else
4314 #   AM_GNU_GETTEXT
4315 fi
4316
4317
4318 support_mysql=no
4319 support_sqlite=no
4320 support_postgresql=no
4321 support_smartalloc=yes
4322 support_readline=yes
4323 support_conio=yes
4324 support_gnome=no
4325 gnome_version=
4326 support_static_tools=no
4327 support_static_fd=no
4328 support_static_sd=no
4329 support_static_dir=no
4330 support_static_cons=no
4331 build_client_only=no
4332 cats=
4333 db_name=Internal
4334 DB_NAME=bdb
4335
4336
4337 # -------------------------------------------
4338 # gnome (default off)
4339 # -------------------------------------------
4340 # Check whether --enable-gnome or --disable-gnome was given.
4341 if test "${enable_gnome+set}" = set; then
4342   enableval="$enable_gnome"
4343   if test x$enableval = xyes; then
4344     support_gnome=yes
4345   fi
4346 fi;
4347
4348 GNOME_DIR=
4349 if test x$support_gnome = xyes; then
4350   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4351   pkg=$?
4352   if test $pkg = 0; then
4353      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4354      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4355      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4356      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4357
4358
4359
4360
4361      GNOME_DIR=src/gnome2-console
4362      gnome_version="Version 2.x"
4363   else
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4376 if test "${with_gnome_includes+set}" = set; then
4377   withval="$with_gnome_includes"
4378
4379         CFLAGS="$CFLAGS -I$withval"
4380
4381 fi;
4382
4383
4384 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4385 if test "${with_gnome_libs+set}" = set; then
4386   withval="$with_gnome_libs"
4387
4388         LDFLAGS="$LDFLAGS -L$withval"
4389         gnome_prefix=$withval
4390
4391 fi;
4392
4393
4394 # Check whether --with-gnome or --without-gnome was given.
4395 if test "${with_gnome+set}" = set; then
4396   withval="$with_gnome"
4397   if test x$withval = xyes; then
4398                         want_gnome=yes
4399                                                                         :
4400                 else
4401                         if test "x$withval" = xno; then
4402                                 want_gnome=no
4403                         else
4404                                 want_gnome=yes
4405                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4406                                 CFLAGS="$CFLAGS -I$withval/include"
4407                                 gnome_prefix=$withval/lib
4408                         fi
4409                 fi
4410 else
4411   want_gnome=yes
4412 fi;
4413
4414         if test "x$want_gnome" = xyes; then
4415
4416             # Extract the first word of "gnome-config", so it can be a program name with args.
4417 set dummy gnome-config; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   case $GNOME_CONFIG in
4424   [\\/]* | ?:[\\/]*)
4425   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4426   ;;
4427   *)
4428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441
4442   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4443   ;;
4444 esac
4445 fi
4446 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4447
4448 if test -n "$GNOME_CONFIG"; then
4449   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4450 echo "${ECHO_T}$GNOME_CONFIG" >&6
4451 else
4452   echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4454 fi
4455
4456             if test "$GNOME_CONFIG" = "no"; then
4457               no_gnome_config="yes"
4458             else
4459               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4460 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4461               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4462                 echo "$as_me:$LINENO: result: yes" >&5
4463 echo "${ECHO_T}yes" >&6
4464
4465
4466         # Extract the first word of "orbit-config", so it can be a program name with args.
4467 set dummy orbit-config; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   case $ORBIT_CONFIG in
4474   [\\/]* | ?:[\\/]*)
4475   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4476   ;;
4477   *)
4478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491
4492   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4493   ;;
4494 esac
4495 fi
4496 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4497
4498 if test -n "$ORBIT_CONFIG"; then
4499   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4500 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4501 else
4502   echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506         # Extract the first word of "orbit-idl", so it can be a program name with args.
4507 set dummy orbit-idl; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   case $ORBIT_IDL in
4514   [\\/]* | ?:[\\/]*)
4515   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4516   ;;
4517   *)
4518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531
4532   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4533   ;;
4534 esac
4535 fi
4536 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4537
4538 if test -n "$ORBIT_IDL"; then
4539   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4540 echo "${ECHO_T}$ORBIT_IDL" >&6
4541 else
4542   echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544 fi
4545
4546         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4547 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4548 if test "${gnome_cv_orbit_found+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551
4552                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4553                         gnome_cv_orbit_found=no
4554                 else
4555                         gnome_cv_orbit_found=yes
4556                 fi
4557
4558 fi
4559 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4560 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4561
4562
4563 if test x$gnome_cv_orbit_found = xyes; then
4564   HAVE_ORBIT_TRUE=
4565   HAVE_ORBIT_FALSE='#'
4566 else
4567   HAVE_ORBIT_TRUE='#'
4568   HAVE_ORBIT_FALSE=
4569 fi
4570         if test x$gnome_cv_orbit_found = xyes; then
4571
4572                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4573                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4574
4575
4576         else
4577                 if test xfail = xfailure; then
4578                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4579 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4580    { (exit 1); exit 1; }; }
4581                 fi
4582         fi
4583
4584         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4585 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4586 if test "${gnome_cv_gnorba_found+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589
4590                 gnome_cv_gnorba_found=no
4591                 if test x$gnome_cv_orbit_found = xyes; then
4592                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4593                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4594                         if test -n "$GNORBA_LIBS"; then
4595                                 gnome_cv_gnorba_found=yes
4596                         fi
4597                 fi
4598
4599 fi
4600 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4601 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4602
4603
4604 if test x$gnome_cv_gnorba_found = xyes; then
4605   HAVE_GNORBA_TRUE=
4606   HAVE_GNORBA_FALSE='#'
4607 else
4608   HAVE_GNORBA_TRUE='#'
4609   HAVE_GNORBA_FALSE=
4610 fi
4611         if test x$gnome_cv_orbit_found = xyes; then
4612
4613                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4614                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4615
4616
4617         else
4618                 if test xfail = xfailure; then
4619                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4620 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4621    { (exit 1); exit 1; }; }
4622                 fi
4623         fi
4624
4625                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4626                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4627                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4628                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4629                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4630                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4631                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4632
4633               else
4634                 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636                 no_gnome_config="yes"
4637               fi
4638             fi
4639
4640             if test x$exec_prefix = xNONE; then
4641                 if test x$prefix = xNONE; then
4642                     gnome_prefix=$ac_default_prefix/lib
4643                 else
4644                     gnome_prefix=$prefix/lib
4645                 fi
4646             else
4647                 gnome_prefix=`eval echo \`echo $libdir\``
4648             fi
4649
4650             if test "$no_gnome_config" = "yes"; then
4651               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4652 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4653               if test -f $gnome_prefix/gnomeConf.sh; then
4654                 echo "$as_me:$LINENO: result: found" >&5
4655 echo "${ECHO_T}found" >&6
4656                 echo "loading gnome configuration from" \
4657                      "$gnome_prefix/gnomeConf.sh"
4658                 . $gnome_prefix/gnomeConf.sh
4659
4660               else
4661                 echo "$as_me:$LINENO: result: not found" >&5
4662 echo "${ECHO_T}not found" >&6
4663                 if test xfail = xfail; then
4664                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4665 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4666    { (exit 1); exit 1; }; }
4667                 fi
4668               fi
4669             fi
4670         fi
4671
4672         if test -n ""; then
4673           n=""
4674           for i in $n; do
4675             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4676 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4677             case $i in
4678               applets)
4679
4680                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4681                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4682 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4683               docklets)
4684
4685                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4686                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4687 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4688               capplet)
4689
4690                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4691                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4692 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4693               *)
4694                 echo "$as_me:$LINENO: result: unknown library" >&5
4695 echo "${ECHO_T}unknown library" >&6
4696             esac
4697             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4698             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4699           done
4700         fi
4701
4702
4703      GNOME_DIR=src/gnome-console
4704      gnome_version="Version 1.4"
4705   fi
4706 fi
4707
4708
4709
4710 # -------------------------------------------
4711 # smartalloc (default off)
4712 # -------------------------------------------
4713 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4714 if test "${enable_smartalloc+set}" = set; then
4715   enableval="$enable_smartalloc"
4716   if test x$enableval = xno; then
4717     support_smartalloc=no
4718   fi
4719 fi;
4720
4721 if test x$support_smartalloc = xyes; then
4722    cat >>confdefs.h <<\_ACEOF
4723 #define SMARTALLOC 1
4724 _ACEOF
4725
4726 fi
4727
4728 # -------------------------------------------
4729 # static-tools (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-static-tools or --disable-static-tools was given.
4732 if test "${enable_static_tools+set}" = set; then
4733   enableval="$enable_static_tools"
4734   if test x$enableval = xyes; then
4735      support_static_tools=yes
4736    fi
4737 fi;
4738
4739 TTOOL_LDFLAGS=
4740 if test x$support_static_tools = xyes; then
4741    TTOOL_LDFLAGS="-static"
4742 fi
4743
4744
4745 # -------------------------------------------
4746 # static-fd    (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-static-fd or --disable-static-fd was given.
4749 if test "${enable_static_fd+set}" = set; then
4750   enableval="$enable_static_fd"
4751   if test x$enableval = xyes; then
4752      support_static_fd=yes
4753    fi
4754 fi;
4755
4756 STATIC_FD=
4757 if test x$support_static_fd = xyes; then
4758    STATIC_FD="static-bacula-fd"
4759 fi
4760
4761
4762 # -------------------------------------------
4763 # static-sd    (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-sd or --disable-static-sd was given.
4766 if test "${enable_static_sd+set}" = set; then
4767   enableval="$enable_static_sd"
4768   if test x$enableval = xyes; then
4769      support_static_sd=yes
4770    fi
4771 fi;
4772
4773 STATIC_SD=
4774 if test x$support_static_sd = xyes; then
4775    STATIC_SD="static-bacula-sd"
4776 fi
4777
4778
4779 # -------------------------------------------
4780 # static-dir   (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-dir or --disable-static-dir was given.
4783 if test "${enable_static_dir+set}" = set; then
4784   enableval="$enable_static_dir"
4785   if test x$enableval = xyes; then
4786      support_static_dir=yes
4787    fi
4788 fi;
4789
4790 STATIC_DIR=
4791 if test x$support_static_dir = xyes; then
4792    STATIC_DIR="static-bacula-dir"
4793 fi
4794
4795
4796 # -------------------------------------------
4797 # static-cons  (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-cons or --disable-static-cons was given.
4800 if test "${enable_static_cons+set}" = set; then
4801   enableval="$enable_static_cons"
4802   if test x$enableval = xyes; then
4803      support_static_cons=yes
4804    fi
4805 fi;
4806
4807 STATIC_CONS=
4808 STATIC_GNOME_CONS=
4809 if test x$support_static_cons = xyes; then
4810    STATIC_CONS="static-bconsole"
4811    STATIC_GNOME_CONS="static-gnome-console"
4812 fi
4813
4814
4815
4816 # -------------------------------------------
4817 # client_only  (default off)
4818 # -------------------------------------------
4819 # Check whether --enable-client-only or --disable-client-only was given.
4820 if test "${enable_client_only+set}" = set; then
4821   enableval="$enable_client_only"
4822   if test x$enableval = xyes; then
4823      build_client_only=yes
4824    fi
4825 fi;
4826 if test x$build_client_only = xno; then
4827    ALL_DIRS="subdirs"
4828 else
4829    ALL_DIRS=""
4830 fi
4831
4832
4833 # ---------------------------------------------------
4834 # Check for conio (Bacula readline substitute)(
4835 # ---------------------------------------------------
4836 # this allows you to turn it completely off
4837 # Check whether --enable-conio or --disable-conio was given.
4838 if test "${enable_conio+set}" = set; then
4839   enableval="$enable_conio"
4840   if test x$enableval = xno; then
4841     support_conio=no
4842   fi
4843 fi;
4844
4845 got_conio="no"
4846 if test x$support_conio = xyes; then
4847    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4849 if test "${ac_cv_header_stdc+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 #include <stdlib.h>
4860 #include <stdarg.h>
4861 #include <string.h>
4862 #include <float.h>
4863
4864 int
4865 main ()
4866 {
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874   (eval $ac_compile) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } &&
4878          { ac_try='test -s conftest.$ac_objext'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; }; then
4884   ac_cv_header_stdc=yes
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 ac_cv_header_stdc=no
4890 fi
4891 rm -f conftest.$ac_objext conftest.$ac_ext
4892
4893 if test $ac_cv_header_stdc = yes; then
4894   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4895   cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <string.h>
4903
4904 _ACEOF
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906   $EGREP "memchr" >/dev/null 2>&1; then
4907   :
4908 else
4909   ac_cv_header_stdc=no
4910 fi
4911 rm -f conftest*
4912
4913 fi
4914
4915 if test $ac_cv_header_stdc = yes; then
4916   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917   cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924 #include <stdlib.h>
4925
4926 _ACEOF
4927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4928   $EGREP "free" >/dev/null 2>&1; then
4929   :
4930 else
4931   ac_cv_header_stdc=no
4932 fi
4933 rm -f conftest*
4934
4935 fi
4936
4937 if test $ac_cv_header_stdc = yes; then
4938   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4939   if test "$cross_compiling" = yes; then
4940   :
4941 else
4942   cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #include <ctype.h>
4950 #if ((' ' & 0x0FF) == 0x020)
4951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4953 #else
4954 # define ISLOWER(c) \
4955                    (('a' <= (c) && (c) <= 'i') \
4956                      || ('j' <= (c) && (c) <= 'r') \
4957                      || ('s' <= (c) && (c) <= 'z'))
4958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4959 #endif
4960
4961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4962 int
4963 main ()
4964 {
4965   int i;
4966   for (i = 0; i < 256; i++)
4967     if (XOR (islower (i), ISLOWER (i))
4968         || toupper (i) != TOUPPER (i))
4969       exit(2);
4970   exit (0);
4971 }
4972 _ACEOF
4973 rm -f conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975   (eval $ac_link) 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; }; then
4984   :
4985 else
4986   echo "$as_me: program exited with status $ac_status" >&5
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 ( exit $ac_status )
4991 ac_cv_header_stdc=no
4992 fi
4993 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994 fi
4995 fi
4996 fi
4997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4999 if test $ac_cv_header_stdc = yes; then
5000
5001 cat >>confdefs.h <<\_ACEOF
5002 #define STDC_HEADERS 1
5003 _ACEOF
5004
5005 fi
5006
5007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5018                   inttypes.h stdint.h unistd.h
5019 do
5020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021 echo "$as_me:$LINENO: checking for $ac_header" >&5
5022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5028 /* confdefs.h.  */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h.  */
5033 $ac_includes_default
5034
5035 #include <$ac_header>
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -s conftest.$ac_objext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   eval "$as_ac_Header=yes"
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 eval "$as_ac_Header=no"
5055 fi
5056 rm -f conftest.$ac_objext conftest.$ac_ext
5057 fi
5058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5061   cat >>confdefs.h <<_ACEOF
5062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5063 _ACEOF
5064
5065 fi
5066
5067 done
5068
5069
5070 if test "${ac_cv_header_termcap_h+set}" = set; then
5071   echo "$as_me:$LINENO: checking for termcap.h" >&5
5072 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5073 if test "${ac_cv_header_termcap_h+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 fi
5076 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5077 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5078 else
5079   # Is the header compilable?
5080 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5081 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 $ac_includes_default
5090 #include <termcap.h>
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094   (eval $ac_compile) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } &&
5098          { ac_try='test -s conftest.$ac_objext'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; }; then
5104   ac_header_compiler=yes
5105 else
5106   echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 ac_header_compiler=no
5110 fi
5111 rm -f conftest.$ac_objext conftest.$ac_ext
5112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5113 echo "${ECHO_T}$ac_header_compiler" >&6
5114
5115 # Is the header present?
5116 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5117 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 #include <termcap.h>
5126 _ACEOF
5127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } >/dev/null; then
5135   if test -s conftest.err; then
5136     ac_cpp_err=$ac_c_preproc_warn_flag
5137   else
5138     ac_cpp_err=
5139   fi
5140 else
5141   ac_cpp_err=yes
5142 fi
5143 if test -z "$ac_cpp_err"; then
5144   ac_header_preproc=yes
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149   ac_header_preproc=no
5150 fi
5151 rm -f conftest.err conftest.$ac_ext
5152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153 echo "${ECHO_T}$ac_header_preproc" >&6
5154
5155 # So?  What about this header?
5156 case $ac_header_compiler:$ac_header_preproc in
5157   yes:no )
5158     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5159 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5162     (
5163       cat <<\_ASBOX
5164 ## ------------------------------------ ##
5165 ## Report this to bug-autoconf@gnu.org. ##
5166 ## ------------------------------------ ##
5167 _ASBOX
5168     ) |
5169       sed "s/^/$as_me: WARNING:     /" >&2
5170     ;;
5171   no:yes )
5172     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5173 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5174     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5175 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5176     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5177 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5178     (
5179       cat <<\_ASBOX
5180 ## ------------------------------------ ##
5181 ## Report this to bug-autoconf@gnu.org. ##
5182 ## ------------------------------------ ##
5183 _ASBOX
5184     ) |
5185       sed "s/^/$as_me: WARNING:     /" >&2
5186     ;;
5187 esac
5188 echo "$as_me:$LINENO: checking for termcap.h" >&5
5189 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_termcap_h+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   ac_cv_header_termcap_h=$ac_header_preproc
5194 fi
5195 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5196 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5197
5198 fi
5199 if test $ac_cv_header_termcap_h = yes; then
5200    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5201 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5202 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   ac_check_lib_save_LIBS=$LIBS
5206 LIBS="-ltermcap  $LIBS"
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214
5215 /* Override any gcc2 internal prototype to avoid an error.  */
5216 #ifdef __cplusplus
5217 extern "C"
5218 #endif
5219 /* We use char because int might match the return type of a gcc2
5220    builtin and then its argument prototype would still apply.  */
5221 char tgetent ();
5222 int
5223 main ()
5224 {
5225 tgetent ();
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232   (eval $ac_link) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } &&
5236          { ac_try='test -s conftest$ac_exeext'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   ac_cv_lib_termcap_tgetent=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_cv_lib_termcap_tgetent=no
5248 fi
5249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5250 LIBS=$ac_check_lib_save_LIBS
5251 fi
5252 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5253 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5254 if test $ac_cv_lib_termcap_tgetent = yes; then
5255    CONS_LIBS="-ltermcap"
5256          CONS_OBJ="conio.o"
5257          CONS_SRC="conio.c"
5258          got_conio="yes"
5259          support_readline=no
5260
5261 cat >>confdefs.h <<\_ACEOF
5262 #define HAVE_CONIO 1
5263 _ACEOF
5264
5265
5266 else
5267    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5268 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5269 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   ac_check_lib_save_LIBS=$LIBS
5273 LIBS="-lncurses  $LIBS"
5274 cat >conftest.$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5276 /* confdefs.h.  */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h.  */
5281
5282 /* Override any gcc2 internal prototype to avoid an error.  */
5283 #ifdef __cplusplus
5284 extern "C"
5285 #endif
5286 /* We use char because int might match the return type of a gcc2
5287    builtin and then its argument prototype would still apply.  */
5288 char tgetent ();
5289 int
5290 main ()
5291 {
5292 tgetent ();
5293   ;
5294   return 0;
5295 }
5296 _ACEOF
5297 rm -f conftest.$ac_objext conftest$ac_exeext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5299   (eval $ac_link) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); } &&
5303          { ac_try='test -s conftest$ac_exeext'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; }; then
5309   ac_cv_lib_ncurses_tgetent=yes
5310 else
5311   echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314 ac_cv_lib_ncurses_tgetent=no
5315 fi
5316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5317 LIBS=$ac_check_lib_save_LIBS
5318 fi
5319 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5320 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5321 if test $ac_cv_lib_ncurses_tgetent = yes; then
5322    CONS_LIBS="-lncurses"
5323            CONS_OBJ="conio.o"
5324            CONS_SRC="conio.c"
5325            got_conio="yes"
5326            support_readline=no
5327
5328 cat >>confdefs.h <<\_ACEOF
5329 #define HAVE_CONIO 1
5330 _ACEOF
5331
5332
5333 else
5334    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5335 fi
5336
5337
5338 fi
5339
5340
5341 else
5342   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5343 fi
5344
5345
5346 fi
5347
5348
5349 # ---------------------------------------------------
5350 # Check for readline support/directory (default off)
5351 # ---------------------------------------------------
5352 # this allows you to turn it completely off
5353 # Check whether --enable-readline or --disable-readline was given.
5354 if test "${enable_readline+set}" = set; then
5355   enableval="$enable_readline"
5356   if test x$enableval = xno; then
5357     support_readline=no
5358   fi
5359 fi;
5360
5361 got_readline="no"
5362 READLINE_SRC=
5363 if test x$support_readline = xyes; then
5364
5365 # Check whether --with-readline or --without-readline was given.
5366 if test "${with_readline+set}" = set; then
5367   withval="$with_readline"
5368
5369         case "$with_readline" in
5370         no) : ;;
5371         yes|*)
5372           if test "$with_readline" != "yes"; then
5373             CONS_INC="-I${with_readline}"
5374             CONS_LDFLAGS="-L$with_readline"
5375           else
5376              with_readline="/usr/include/readline"
5377           fi
5378           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5381 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 fi
5385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387 else
5388   # Is the header compilable?
5389 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5390 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 /* confdefs.h.  */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h.  */
5398 $ac_includes_default
5399 #include <${with_readline}/readline.h>
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403   (eval $ac_compile) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -s conftest.$ac_objext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   ac_header_compiler=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 ac_header_compiler=no
5419 fi
5420 rm -f conftest.$ac_objext conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 echo "${ECHO_T}$ac_header_compiler" >&6
5423
5424 # Is the header present?
5425 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5426 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 #include <${with_readline}/readline.h>
5435 _ACEOF
5436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5438   ac_status=$?
5439   grep -v '^ *+' conftest.er1 >conftest.err
5440   rm -f conftest.er1
5441   cat conftest.err >&5
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } >/dev/null; then
5444   if test -s conftest.err; then
5445     ac_cpp_err=$ac_c_preproc_warn_flag
5446   else
5447     ac_cpp_err=
5448   fi
5449 else
5450   ac_cpp_err=yes
5451 fi
5452 if test -z "$ac_cpp_err"; then
5453   ac_header_preproc=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458   ac_header_preproc=no
5459 fi
5460 rm -f conftest.err conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5462 echo "${ECHO_T}$ac_header_preproc" >&6
5463
5464 # So?  What about this header?
5465 case $ac_header_compiler:$ac_header_preproc in
5466   yes:no )
5467     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5468 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5469     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5470 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5471     (
5472       cat <<\_ASBOX
5473 ## ------------------------------------ ##
5474 ## Report this to bug-autoconf@gnu.org. ##
5475 ## ------------------------------------ ##
5476 _ASBOX
5477     ) |
5478       sed "s/^/$as_me: WARNING:     /" >&2
5479     ;;
5480   no:yes )
5481     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5482 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5483     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5484 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5485     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5486 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5487     (
5488       cat <<\_ASBOX
5489 ## ------------------------------------ ##
5490 ## Report this to bug-autoconf@gnu.org. ##
5491 ## ------------------------------------ ##
5492 _ASBOX
5493     ) |
5494       sed "s/^/$as_me: WARNING:     /" >&2
5495     ;;
5496 esac
5497 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5498 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   eval "$as_ac_Header=$ac_header_preproc"
5503 fi
5504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5506
5507 fi
5508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509    cat >>confdefs.h <<\_ACEOF
5510 #define HAVE_READLINE 1
5511 _ACEOF
5512
5513                CONS_LIBS="-lreadline -ltermcap"
5514                got_readline="yes"
5515
5516 else
5517    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5518 echo "$as_me: error: *** readline library missing" >&2;}
5519    { (exit 1); exit 1; }; }
5520
5521
5522 fi
5523
5524
5525           ;;
5526         esac
5527
5528 else
5529
5530        # check for standard readline library
5531        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5532   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5533 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5534 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 fi
5537 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5538 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5539 else
5540   # Is the header compilable?
5541 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5542 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550 $ac_includes_default
5551 #include </usr/include/readline/readline.h>
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555   (eval $ac_compile) 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); } &&
5559          { ac_try='test -s conftest.$ac_objext'
5560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561   (eval $ac_try) 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); }; }; then
5565   ac_header_compiler=yes
5566 else
5567   echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 ac_header_compiler=no
5571 fi
5572 rm -f conftest.$ac_objext conftest.$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574 echo "${ECHO_T}$ac_header_compiler" >&6
5575
5576 # Is the header present?
5577 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5578 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 #include </usr/include/readline/readline.h>
5587 _ACEOF
5588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5590   ac_status=$?
5591   grep -v '^ *+' conftest.er1 >conftest.err
5592   rm -f conftest.er1
5593   cat conftest.err >&5
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } >/dev/null; then
5596   if test -s conftest.err; then
5597     ac_cpp_err=$ac_c_preproc_warn_flag
5598   else
5599     ac_cpp_err=
5600   fi
5601 else
5602   ac_cpp_err=yes
5603 fi
5604 if test -z "$ac_cpp_err"; then
5605   ac_header_preproc=yes
5606 else
5607   echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610   ac_header_preproc=no
5611 fi
5612 rm -f conftest.err conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5614 echo "${ECHO_T}$ac_header_preproc" >&6
5615
5616 # So?  What about this header?
5617 case $ac_header_compiler:$ac_header_preproc in
5618   yes:no )
5619     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5620 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5621     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5622 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5623     (
5624       cat <<\_ASBOX
5625 ## ------------------------------------ ##
5626 ## Report this to bug-autoconf@gnu.org. ##
5627 ## ------------------------------------ ##
5628 _ASBOX
5629     ) |
5630       sed "s/^/$as_me: WARNING:     /" >&2
5631     ;;
5632   no:yes )
5633     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5634 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5635     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5636 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5637     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5638 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5639     (
5640       cat <<\_ASBOX
5641 ## ------------------------------------ ##
5642 ## Report this to bug-autoconf@gnu.org. ##
5643 ## ------------------------------------ ##
5644 _ASBOX
5645     ) |
5646       sed "s/^/$as_me: WARNING:     /" >&2
5647     ;;
5648 esac
5649 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5650 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5651 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5655 fi
5656 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5657 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5658
5659 fi
5660 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5661    cat >>confdefs.h <<\_ACEOF
5662 #define HAVE_READLINE 1
5663 _ACEOF
5664
5665            got_readline="yes"
5666            CONS_INC="-I/usr/include/readline"
5667            CONS_LIBS="-lreadline -ltermcap"
5668
5669 else
5670
5671            # Did not find standard library, so try Bacula's default
5672             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5674   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5675 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 fi
5679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5681 else
5682   # Is the header compilable?
5683 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5684 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 /* confdefs.h.  */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h.  */
5692 $ac_includes_default
5693 #include <${TOP_DIR}/depkgs/readline/readline.h>
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697   (eval $ac_compile) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } &&
5701          { ac_try='test -s conftest.$ac_objext'
5702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703   (eval $ac_try) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; }; then
5707   ac_header_compiler=yes
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ac_header_compiler=no
5713 fi
5714 rm -f conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5716 echo "${ECHO_T}$ac_header_compiler" >&6
5717
5718 # Is the header present?
5719 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5720 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5721 cat >conftest.$ac_ext <<_ACEOF
5722 #line $LINENO "configure"
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 #include <${TOP_DIR}/depkgs/readline/readline.h>
5729 _ACEOF
5730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5731   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5732   ac_status=$?
5733   grep -v '^ *+' conftest.er1 >conftest.err
5734   rm -f conftest.er1
5735   cat conftest.err >&5
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } >/dev/null; then
5738   if test -s conftest.err; then
5739     ac_cpp_err=$ac_c_preproc_warn_flag
5740   else
5741     ac_cpp_err=
5742   fi
5743 else
5744   ac_cpp_err=yes
5745 fi
5746 if test -z "$ac_cpp_err"; then
5747   ac_header_preproc=yes
5748 else
5749   echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5751
5752   ac_header_preproc=no
5753 fi
5754 rm -f conftest.err conftest.$ac_ext
5755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5756 echo "${ECHO_T}$ac_header_preproc" >&6
5757
5758 # So?  What about this header?
5759 case $ac_header_compiler:$ac_header_preproc in
5760   yes:no )
5761     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5762 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5763     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5764 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5765     (
5766       cat <<\_ASBOX
5767 ## ------------------------------------ ##
5768 ## Report this to bug-autoconf@gnu.org. ##
5769 ## ------------------------------------ ##
5770 _ASBOX
5771     ) |
5772       sed "s/^/$as_me: WARNING:     /" >&2
5773     ;;
5774   no:yes )
5775     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5776 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5777     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5778 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5779     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5780 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5781     (
5782       cat <<\_ASBOX
5783 ## ------------------------------------ ##
5784 ## Report this to bug-autoconf@gnu.org. ##
5785 ## ------------------------------------ ##
5786 _ASBOX
5787     ) |
5788       sed "s/^/$as_me: WARNING:     /" >&2
5789     ;;
5790 esac
5791 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5792 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   eval "$as_ac_Header=$ac_header_preproc"
5797 fi
5798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5800
5801 fi
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803    cat >>confdefs.h <<\_ACEOF
5804 #define HAVE_READLINE 1
5805 _ACEOF
5806
5807                  got_readline="yes"
5808                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5809                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5810                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5811                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5812
5813 else
5814    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5815 echo "$as_me: error: *** readline library missing" >&2;}
5816    { (exit 1); exit 1; }; }
5817
5818
5819 fi
5820
5821
5822
5823
5824 fi
5825
5826
5827
5828
5829 fi;
5830 fi
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 # Minimal stuff for readline Makefile configuration
5842 MAKE_SHELL=/bin/sh
5843
5844
5845 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5846 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5847 if test "${ac_cv_header_stat_broken+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857 #include <sys/types.h>
5858 #include <sys/stat.h>
5859
5860 #if defined(S_ISBLK) && defined(S_IFDIR)
5861 # if S_ISBLK (S_IFDIR)
5862 You lose.
5863 # endif
5864 #endif
5865
5866 #if defined(S_ISBLK) && defined(S_IFCHR)
5867 # if S_ISBLK (S_IFCHR)
5868 You lose.
5869 # endif
5870 #endif
5871
5872 #if defined(S_ISLNK) && defined(S_IFREG)
5873 # if S_ISLNK (S_IFREG)
5874 You lose.
5875 # endif
5876 #endif
5877
5878 #if defined(S_ISSOCK) && defined(S_IFREG)
5879 # if S_ISSOCK (S_IFREG)
5880 You lose.
5881 # endif
5882 #endif
5883
5884 _ACEOF
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886   $EGREP "You lose" >/dev/null 2>&1; then
5887   ac_cv_header_stat_broken=yes
5888 else
5889   ac_cv_header_stat_broken=no
5890 fi
5891 rm -f conftest*
5892
5893 fi
5894 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5895 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5896 if test $ac_cv_header_stat_broken = yes; then
5897
5898 cat >>confdefs.h <<\_ACEOF
5899 #define STAT_MACROS_BROKEN 1
5900 _ACEOF
5901
5902 fi
5903
5904
5905
5906
5907
5908
5909 ac_header_dirent=no
5910 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5911   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5912 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5913 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924 #include <sys/types.h>
5925 #include <$ac_hdr>
5926
5927 int
5928 main ()
5929 {
5930 if ((DIR *) 0)
5931 return 0;
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } &&
5942          { ac_try='test -s conftest.$ac_objext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   eval "$as_ac_Header=yes"
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 eval "$as_ac_Header=no"
5954 fi
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5956 fi
5957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5960   cat >>confdefs.h <<_ACEOF
5961 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5962 _ACEOF
5963
5964 ac_header_dirent=$ac_hdr; break
5965 fi
5966
5967 done
5968 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5969 if test $ac_header_dirent = dirent.h; then
5970   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5971 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5972 if test "${ac_cv_search_opendir+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   ac_func_search_save_LIBS=$LIBS
5976 ac_cv_search_opendir=no
5977 cat >conftest.$ac_ext <<_ACEOF
5978 #line $LINENO "configure"
5979 /* confdefs.h.  */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h.  */
5984
5985 /* Override any gcc2 internal prototype to avoid an error.  */
5986 #ifdef __cplusplus
5987 extern "C"
5988 #endif
5989 /* We use char because int might match the return type of a gcc2
5990    builtin and then its argument prototype would still apply.  */
5991 char opendir ();
5992 int
5993 main ()
5994 {
5995 opendir ();
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest.$ac_objext conftest$ac_exeext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002   (eval $ac_link) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -s conftest$ac_exeext'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; }; then
6012   ac_cv_search_opendir="none required"
6013 else
6014   echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 fi
6018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019 if test "$ac_cv_search_opendir" = no; then
6020   for ac_lib in dir; do
6021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6022     cat >conftest.$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029
6030 /* Override any gcc2 internal prototype to avoid an error.  */
6031 #ifdef __cplusplus
6032 extern "C"
6033 #endif
6034 /* We use char because int might match the return type of a gcc2
6035    builtin and then its argument prototype would still apply.  */
6036 char opendir ();
6037 int
6038 main ()
6039 {
6040 opendir ();
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047   (eval $ac_link) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } &&
6051          { ac_try='test -s conftest$ac_exeext'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; }; then
6057   ac_cv_search_opendir="-l$ac_lib"
6058 break
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 fi
6064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6065   done
6066 fi
6067 LIBS=$ac_func_search_save_LIBS
6068 fi
6069 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6070 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6071 if test "$ac_cv_search_opendir" != no; then
6072   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6073
6074 fi
6075
6076 else
6077   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6078 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6079 if test "${ac_cv_search_opendir+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   ac_func_search_save_LIBS=$LIBS
6083 ac_cv_search_opendir=no
6084 cat >conftest.$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6086 /* confdefs.h.  */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h.  */
6091
6092 /* Override any gcc2 internal prototype to avoid an error.  */
6093 #ifdef __cplusplus
6094 extern "C"
6095 #endif
6096 /* We use char because int might match the return type of a gcc2
6097    builtin and then its argument prototype would still apply.  */
6098 char opendir ();
6099 int
6100 main ()
6101 {
6102 opendir ();
6103   ;
6104   return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109   (eval $ac_link) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -s conftest$ac_exeext'
6114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115   (eval $ac_try) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; }; then
6119   ac_cv_search_opendir="none required"
6120 else
6121   echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 fi
6125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6126 if test "$ac_cv_search_opendir" = no; then
6127   for ac_lib in x; do
6128     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6129     cat >conftest.$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6131 /* confdefs.h.  */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h.  */
6136
6137 /* Override any gcc2 internal prototype to avoid an error.  */
6138 #ifdef __cplusplus
6139 extern "C"
6140 #endif
6141 /* We use char because int might match the return type of a gcc2
6142    builtin and then its argument prototype would still apply.  */
6143 char opendir ();
6144 int
6145 main ()
6146 {
6147 opendir ();
6148   ;
6149   return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154   (eval $ac_link) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); } &&
6158          { ac_try='test -s conftest$ac_exeext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_search_opendir="-l$ac_lib"
6165 break
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 fi
6171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6172   done
6173 fi
6174 LIBS=$ac_func_search_save_LIBS
6175 fi
6176 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6177 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6178 if test "$ac_cv_search_opendir" != no; then
6179   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6180
6181 fi
6182
6183 fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6195 do
6196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6197 echo "$as_me:$LINENO: checking for $ac_func" >&5
6198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6199 if eval "test \"\${$as_ac_var+set}\" = set"; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6204 /* confdefs.h.  */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h.  */
6209 /* System header to define __stub macros and hopefully few prototypes,
6210     which can conflict with char $ac_func (); below.
6211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6212     <limits.h> exists even on freestanding compilers.  */
6213 #ifdef __STDC__
6214 # include <limits.h>
6215 #else
6216 # include <assert.h>
6217 #endif
6218 /* Override any gcc2 internal prototype to avoid an error.  */
6219 #ifdef __cplusplus
6220 extern "C"
6221 {
6222 #endif
6223 /* We use char because int might match the return type of a gcc2
6224    builtin and then its argument prototype would still apply.  */
6225 char $ac_func ();
6226 /* The GNU C library defines this for functions which it implements
6227     to always fail with ENOSYS.  Some functions are actually named
6228     something starting with __ and the normal name is an alias.  */
6229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6230 choke me
6231 #else
6232 char (*f) () = $ac_func;
6233 #endif
6234 #ifdef __cplusplus
6235 }
6236 #endif
6237
6238 int
6239 main ()
6240 {
6241 return f != $ac_func;
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248   (eval $ac_link) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); } &&
6252          { ac_try='test -s conftest$ac_exeext'
6253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254   (eval $ac_try) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; }; then
6258   eval "$as_ac_var=yes"
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 eval "$as_ac_var=no"
6264 fi
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 fi
6267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6269 if test `eval echo '${'$as_ac_var'}'` = yes; then
6270   cat >>confdefs.h <<_ACEOF
6271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6272 _ACEOF
6273
6274 fi
6275 done
6276
6277
6278 for ac_func in nanosleep
6279 do
6280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6281 echo "$as_me:$LINENO: checking for $ac_func" >&5
6282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6283 if eval "test \"\${$as_ac_var+set}\" = set"; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 /* System header to define __stub macros and hopefully few prototypes,
6294     which can conflict with char $ac_func (); below.
6295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6296     <limits.h> exists even on freestanding compilers.  */
6297 #ifdef __STDC__
6298 # include <limits.h>
6299 #else
6300 # include <assert.h>
6301 #endif
6302 /* Override any gcc2 internal prototype to avoid an error.  */
6303 #ifdef __cplusplus
6304 extern "C"
6305 {
6306 #endif
6307 /* We use char because int might match the return type of a gcc2
6308    builtin and then its argument prototype would still apply.  */
6309 char $ac_func ();
6310 /* The GNU C library defines this for functions which it implements
6311     to always fail with ENOSYS.  Some functions are actually named
6312     something starting with __ and the normal name is an alias.  */
6313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6314 choke me
6315 #else
6316 char (*f) () = $ac_func;
6317 #endif
6318 #ifdef __cplusplus
6319 }
6320 #endif
6321
6322 int
6323 main ()
6324 {
6325 return f != $ac_func;
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330 rm -f conftest.$ac_objext conftest$ac_exeext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332   (eval $ac_link) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } &&
6336          { ac_try='test -s conftest$ac_exeext'
6337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338   (eval $ac_try) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); }; }; then
6342   eval "$as_ac_var=yes"
6343 else
6344   echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 eval "$as_ac_var=no"
6348 fi
6349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6350 fi
6351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6353 if test `eval echo '${'$as_ac_var'}'` = yes; then
6354   cat >>confdefs.h <<_ACEOF
6355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6356 _ACEOF
6357
6358 fi
6359 done
6360
6361
6362
6363 for ac_header in varargs.h
6364 do
6365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367   echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 fi
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6374 else
6375   # Is the header compilable?
6376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 $ac_includes_default
6386 #include <$ac_header>
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390   (eval $ac_compile) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } &&
6394          { ac_try='test -s conftest.$ac_objext'
6395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396   (eval $ac_try) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; }; then
6400   ac_header_compiler=yes
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_header_compiler=no
6406 fi
6407 rm -f conftest.$ac_objext conftest.$ac_ext
6408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6409 echo "${ECHO_T}$ac_header_compiler" >&6
6410
6411 # Is the header present?
6412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6415 #line $LINENO "configure"
6416 /* confdefs.h.  */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h.  */
6421 #include <$ac_header>
6422 _ACEOF
6423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } >/dev/null; then
6431   if test -s conftest.err; then
6432     ac_cpp_err=$ac_c_preproc_warn_flag
6433   else
6434     ac_cpp_err=
6435   fi
6436 else
6437   ac_cpp_err=yes
6438 fi
6439 if test -z "$ac_cpp_err"; then
6440   ac_header_preproc=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445   ac_header_preproc=no
6446 fi
6447 rm -f conftest.err conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6449 echo "${ECHO_T}$ac_header_preproc" >&6
6450
6451 # So?  What about this header?
6452 case $ac_header_compiler:$ac_header_preproc in
6453   yes:no )
6454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6458     (
6459       cat <<\_ASBOX
6460 ## ------------------------------------ ##
6461 ## Report this to bug-autoconf@gnu.org. ##
6462 ## ------------------------------------ ##
6463 _ASBOX
6464     ) |
6465       sed "s/^/$as_me: WARNING:     /" >&2
6466     ;;
6467   no:yes )
6468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6470     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6474     (
6475       cat <<\_ASBOX
6476 ## ------------------------------------ ##
6477 ## Report this to bug-autoconf@gnu.org. ##
6478 ## ------------------------------------ ##
6479 _ASBOX
6480     ) |
6481       sed "s/^/$as_me: WARNING:     /" >&2
6482     ;;
6483 esac
6484 echo "$as_me:$LINENO: checking for $ac_header" >&5
6485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   eval "$as_ac_Header=$ac_header_preproc"
6490 fi
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6493
6494 fi
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496   cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 _ACEOF
6499
6500 fi
6501
6502 done
6503
6504
6505 # End of readline/conio stuff
6506 # -----------------------------------------------------------------------
6507
6508
6509 # ---------------------------------------------------
6510 # Check for GMP support/directory
6511 # ---------------------------------------------------
6512 #GMP_SRC=
6513 #local_gmp="no"
6514 #AC_ARG_WITH(gmp,
6515 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6516 #  [
6517 #     case "$with_gmp" in
6518 #     no) : ;;
6519 #     yes|*)
6520 #       if test "$with_gmp" != "yes"; then
6521 #         GMP_INC="-I$with_gmp"
6522 #         GMP_LIBS="-lgmp"
6523 #         GMP_LDFLAGS="-L$with_gmp"
6524 #       else
6525 #          with_gmp="/usr/include"
6526 #       fi
6527 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6528 #          [ AC_MSG_RESULT(yes)
6529 #            AC_DEFINE(HAVE_GMP)
6530 #            GMP_LIBS="-lgmp"
6531 #            got_gmp="yes"
6532 #          ],
6533 #          [ AC_MSG_ERROR([*** gmp library missing])
6534 #          ]
6535 #       )
6536 #       ;;
6537 #     esac
6538 #  ],[
6539 #    # check for standard gmp library
6540 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6541 #    [ AC_MSG_RESULT(yes)
6542 #      AC_DEFINE(HAVE_GMP)
6543 #      got_gmp="yes"
6544 #      GMP_INC=
6545 #      GMP_LIBS="-lgmp"
6546 #    ], [
6547 #      # Did not find standard library, so use our own
6548 #      AC_MSG_RESULT(yes)
6549 #      AC_DEFINE(HAVE_GMP)
6550 #      got_gmp="yes"
6551 #      local_gmp="yes"
6552 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6553 #      GMP_LIBS="-lgmp"
6554 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6555 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6556 #    ])
6557 #  ]
6558 #)
6559 #AC_SUBST(GMP_INC)
6560 #AC_SUBST(GMP_LIBS)
6561 #AC_SUBST(GMP_LDFLAGS)
6562 #AC_SUBST(GMP_SRC)
6563
6564 # End of GMP stuff
6565 # -----------------------------------------------------------------------
6566
6567
6568 # ---------------------------------------------------
6569 # Check for CWEB support/directory
6570 # ---------------------------------------------------
6571 #CWEB_SRC=
6572 #CWEB=/bin
6573 #local_cweb="no"
6574 #AC_ARG_WITH(cweb,
6575 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6576 #  [
6577 #     case "$with_cweb" in
6578 #     no) : ;;
6579 #     yes|*)
6580 #       if test "$with_cweb" != "yes"; then
6581 #         CWEB_INC="-I$with_cweb"
6582 #         CWEB_LIBS="-lcweb"
6583 #         CWEB_LDFLAGS="-L$with_cweb"
6584 #       else
6585 #          with_cweb="/usr/include"
6586 #       fi
6587 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6588 #          [ AC_MSG_RESULT(yes)
6589 #            AC_DEFINE(HAVE_CWEB)
6590 #            CWEB_LIBS="-lcweb"
6591 #            got_cweb="yes"
6592 #          ],
6593 #          [ AC_MSG_ERROR([*** cweb library missing])
6594 #          ]
6595 #       )
6596 #       ;;
6597 #     esac
6598 #  ],[
6599 #    # check for standard cweb library
6600 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6601 #    [ AC_MSG_RESULT(yes)
6602 #      AC_DEFINE(HAVE_CWEB)
6603 #      got_cweb="yes"
6604 #      CWEB_INC=
6605 #      CWEB_LIBS="-lcweb"
6606 #    ], [
6607 #      # Did not find starndard library, so use our own
6608 #      AC_MSG_RESULT(yes)
6609 #      AC_DEFINE(HAVE_CWEB)
6610 #      got_cweb="yes"
6611 #      local_cweb="yes"
6612 #      CWEB=${TOP_DIR}/depkgs/cweb
6613 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6614 #      CWEB_LIBS="-lcweb"
6615 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6616 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6617 #    ])
6618 #  ]
6619 #)
6620 #AC_SUBST(CWEB)
6621 #AC_SUBST(CWEB_INC)
6622 #AC_SUBST(CWEB_LIBS)
6623 #AC_SUBST(CWEB_LDFLAGS)
6624 #AC_SUBST(CWEB_SRC)
6625
6626 # End of CWEB stuff
6627 # -----------------------------------------------------------------------
6628
6629
6630
6631 # -----------------------------------------------------------
6632 # Check whether user wants TCP wrappers support (default off)
6633 # -----------------------------------------------------------
6634 TCPW_MSG="no"
6635
6636 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6637 if test "${with_tcp_wrappers+set}" = set; then
6638   withval="$with_tcp_wrappers"
6639
6640     if test "x$withval" != "xno" ; then
6641        saved_LIBS="$LIBS"
6642        LIBS="$saved_LIBS -lwrap"
6643        echo "$as_me:$LINENO: checking for libwrap" >&5
6644 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6645        cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652  #include <tcpd.h>
6653              int deny_severity = 0;
6654              int allow_severity = 0;
6655              struct request_info *req;
6656 int
6657 main ()
6658 {
6659  hosts_access(req);
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666   (eval $ac_link) 2>&5
6667   ac_status=$?
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); } &&
6670          { ac_try='test -s conftest$ac_exeext'
6671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672   (eval $ac_try) 2>&5
6673   ac_status=$?
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); }; }; then
6676
6677             echo "$as_me:$LINENO: result: yes" >&5
6678 echo "${ECHO_T}yes" >&6
6679             cat >>confdefs.h <<\_ACEOF
6680 #define HAVE_LIBWRAP 1
6681 _ACEOF
6682
6683             TCPW_MSG="yes"
6684
6685 else
6686   echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6688
6689
6690             LIBS="$saved_LIBS -lwrap -lnsl"
6691             cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6693 /* confdefs.h.  */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h.  */
6698  #include <tcpd.h>
6699                  int deny_severity = 0;
6700                  int allow_severity = 0;
6701                  struct request_info *req;
6702 int
6703 main ()
6704 {
6705  hosts_access(req);
6706   ;
6707   return 0;
6708 }
6709 _ACEOF
6710 rm -f conftest.$ac_objext conftest$ac_exeext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712   (eval $ac_link) 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); } &&
6716          { ac_try='test -s conftest$ac_exeext'
6717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718   (eval $ac_try) 2>&5
6719   ac_status=$?
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); }; }; then
6722
6723                  echo "$as_me:$LINENO: result: yes" >&5
6724 echo "${ECHO_T}yes" >&6
6725                  cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_LIBWRAP 1
6727 _ACEOF
6728
6729                  TCPW_MSG="yes"
6730
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6736 echo "$as_me: error: *** libwrap missing" >&2;}
6737    { (exit 1); exit 1; }; }
6738
6739 fi
6740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6741
6742 fi
6743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6744     fi
6745
6746
6747 fi;
6748
6749 # ------------------------------------------
6750 # Where to place working dir
6751 # ------------------------------------------
6752 working_dir=`eval echo ${prefix}/var/bacula/working`
6753
6754 # Check whether --with-working-dir or --without-working-dir was given.
6755 if test "${with_working_dir+set}" = set; then
6756   withval="$with_working_dir"
6757
6758        if test "x$withval" != "xno" ; then
6759               working_dir=$withval
6760        fi
6761
6762
6763 fi;
6764
6765
6766
6767
6768 # ------------------------------------------
6769 # Where to place scriptdir (script files)
6770 # ------------------------------------------
6771 scriptdir=`eval echo ${sysconfdir}`
6772
6773 # Check whether --with-scriptdir or --without-scriptdir was given.
6774 if test "${with_scriptdir+set}" = set; then
6775   withval="$with_scriptdir"
6776
6777        if test "x$withval" != "xno" ; then
6778               scriptdir=$withval
6779        fi
6780
6781
6782 fi;
6783
6784
6785
6786
6787 # ------------------------------------------
6788 # Where to send dump email
6789 # ------------------------------------------
6790 dump_email=root@localhost
6791
6792 # Check whether --with-dump-email or --without-dump-email was given.
6793 if test "${with_dump_email+set}" = set; then
6794   withval="$with_dump_email"
6795
6796        if test "x$withval" != "xno" ; then
6797               dump_email=$withval
6798        fi
6799
6800
6801 fi;
6802
6803
6804
6805 # ------------------------------------------
6806 # Where to send job email
6807 # ------------------------------------------
6808 job_email=root@localhost
6809
6810 # Check whether --with-job-email or --without-job-email was given.
6811 if test "${with_job_email+set}" = set; then
6812   withval="$with_job_email"
6813
6814        if test "x$withval" != "xno" ; then
6815               job_email=$withval
6816        fi
6817
6818
6819 fi;
6820
6821
6822
6823 # ------------------------------------------
6824 # Where to find smtp host
6825 # ------------------------------------------
6826 smtp_host=localhost
6827
6828 # Check whether --with-smtp_host or --without-smtp_host was given.
6829 if test "${with_smtp_host+set}" = set; then
6830   withval="$with_smtp_host"
6831
6832        if test "x$withval" != "xno" ; then
6833               smtp_host=$withval
6834        fi
6835
6836
6837 fi;
6838
6839
6840
6841
6842 # ------------------------------------
6843 # Where to place pid files
6844 # ------------------------------------
6845 piddir=/var/run
6846
6847 # Check whether --with-pid-dir or --without-pid-dir was given.
6848 if test "${with_pid_dir+set}" = set; then
6849   withval="$with_pid_dir"
6850
6851         if test "x$withval" != "xno" ; then
6852             piddir=$withval
6853         fi
6854
6855
6856 fi;
6857
6858 cat >>confdefs.h <<_ACEOF
6859 #define _PATH_BACULA_PIDDIR "$piddir"
6860 _ACEOF
6861
6862
6863
6864
6865 # ------------------------------------
6866 # Where to place subsys "lock file"
6867 # ------------------------------------
6868 subsysdir=/var/run/subsys
6869
6870 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6871 if test "${with_subsys_dir+set}" = set; then
6872   withval="$with_subsys_dir"
6873
6874         if test "x$withval" != "xno" ; then
6875             subsysdir=$withval
6876         fi
6877
6878
6879 fi;
6880
6881
6882
6883
6884
6885 # ------------------------------------
6886 # Where to start assigning ports
6887 # ------------------------------------
6888 baseport=9101
6889
6890 # Check whether --with-baseport or --without-baseport was given.
6891 if test "${with_baseport+set}" = set; then
6892   withval="$with_baseport"
6893
6894         if test "x$withval" != "xno" ; then
6895              baseport=$withval
6896         fi
6897
6898
6899 fi;
6900
6901
6902 dir_port=`expr $baseport`
6903 fd_port=`expr $baseport + 1`
6904 sd_port=`expr $fd_port + 1`
6905
6906
6907
6908
6909
6910
6911 # ------------------------------------------
6912 # Generate passwords
6913 # ------------------------------------------
6914 dir_password=
6915
6916 # Check whether --with-dir-password or --without-dir-password was given.
6917 if test "${with_dir_password+set}" = set; then
6918   withval="$with_dir_password"
6919
6920        if test "x$withval" != "xno" ; then
6921            dir_password=$withval
6922        fi
6923
6924
6925 fi;
6926
6927 if test "x$dir_password" = "x" ; then
6928    if test "x$OPENSSL" = "xnone" ; then
6929 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6930       key=`autoconf/randpass 33`
6931    else
6932       key=`openssl rand -base64 33`
6933    fi
6934    dir_password=$key
6935 fi
6936
6937 fd_password=
6938
6939 # Check whether --with-fd-password or --without-fd-password was given.
6940 if test "${with_fd_password+set}" = set; then
6941   withval="$with_fd_password"
6942
6943        if test "x$withval" != "xno" ; then
6944            fd_password=$withval
6945        fi
6946
6947
6948 fi;
6949
6950 if test "x$fd_password" = "x" ; then
6951    if test "x$OPENSSL" = "xnone" ; then
6952 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6953       key=`autoconf/randpass 37`
6954    else
6955       key=`openssl rand -base64 33`
6956    fi
6957    fd_password=$key
6958 fi
6959
6960 sd_password=
6961
6962 # Check whether --with-sd-password or --without-sd-password was given.
6963 if test "${with_sd_password+set}" = set; then
6964   withval="$with_sd_password"
6965
6966        if test "x$withval" != "xno" ; then
6967            sd_password=$withval
6968        fi
6969
6970
6971 fi;
6972
6973 if test "x$sd_password" = "x" ; then
6974    if test "x$OPENSSL" = "xnone" ; then
6975 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6976       key=`autoconf/randpass 41`
6977    else
6978       key=`openssl rand -base64 33`
6979    fi
6980    sd_password=$key
6981 fi
6982
6983
6984
6985
6986
6987
6988
6989 #
6990 # Handle users and groups for each daemon
6991 #
6992 dir_user=
6993
6994 # Check whether --with-dir_user or --without-dir_user was given.
6995 if test "${with_dir_user+set}" = set; then
6996   withval="$with_dir_user"
6997
6998         if test "x$withval" != "x" ; then
6999              dir_user=$withval
7000         fi
7001
7002
7003 fi;
7004
7005 dir_group=
7006
7007 # Check whether --with-dir_group or --without-dir_group was given.
7008 if test "${with_dir_group+set}" = set; then
7009   withval="$with_dir_group"
7010
7011         if test "x$withval" != "x" ; then
7012              dir_group=$withval
7013         fi
7014
7015
7016 fi;
7017
7018 sd_user=
7019
7020 # Check whether --with-sd_user or --without-sd_user was given.
7021 if test "${with_sd_user+set}" = set; then
7022   withval="$with_sd_user"
7023
7024         if test "x$withval" != "x" ; then
7025              sd_user=$withval
7026         fi
7027
7028
7029 fi;
7030
7031 sd_group=
7032
7033 # Check whether --with-sd_group or --without-sd_group was given.
7034 if test "${with_sd_group+set}" = set; then
7035   withval="$with_sd_group"
7036
7037         if test "x$withval" != "x" ; then
7038              sd_group=$withval
7039         fi
7040
7041
7042 fi;
7043
7044 fd_user=
7045
7046 # Check whether --with-fd_user or --without-fd_user was given.
7047 if test "${with_fd_user+set}" = set; then
7048   withval="$with_fd_user"
7049
7050         if test "x$withval" != "x" ; then
7051              fd_user=$withval
7052         fi
7053
7054
7055 fi;
7056
7057 fd_group=
7058
7059 # Check whether --with-fd_group or --without-fd_group was given.
7060 if test "${with_fd_group+set}" = set; then
7061   withval="$with_fd_group"
7062
7063         if test "x$withval" != "x" ; then
7064              fd_group=$withval
7065         fi
7066
7067
7068 fi;
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 # ------------------------------------------------
7081 # Bacula check for various SQL database engines
7082 # ------------------------------------------------
7083
7084 db_found=no
7085 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7086 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7087
7088 # Check whether --with-postgresql or --without-postgresql was given.
7089 if test "${with_postgresql+set}" = set; then
7090   withval="$with_postgresql"
7091
7092   if test "$withval" != "no"; then
7093       if test "$db_found" = "yes"; then
7094           echo "$as_me:$LINENO: result: error" >&5
7095 echo "${ECHO_T}error" >&6
7096           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7097 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7098    { (exit 1); exit 1; }; };
7099       fi
7100       if test "$withval" = "yes"; then
7101           if test -f /usr/local/include/libpq-fe.h; then
7102               POSTGRESQL_INCDIR=/usr/local/include
7103               POSTGRESQL_LIBDIR=/usr/local/lib
7104               POSTGRESQL_BINDIR=/usr/local/bin
7105           elif test -f /usr/include/libpq-fe.h; then
7106               POSTGRESQL_INCDIR=/usr/include
7107               POSTGRESQL_LIBDIR=/usr/lib
7108               POSTGRESQL_BINDIR=/usr/bin
7109           elif test -f /usr/include/pgsql/libpq-fe.h; then
7110               POSTGRESQL_INCDIR=/usr/include/pgsql
7111               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7112               POSTGRESQL_BINDIR=/usr/bin
7113           else
7114               echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6
7116               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7117 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7118    { (exit 1); exit 1; }; }
7119           fi
7120       elif test -f $withval/libpq-fe.h; then
7121           POSTGRESQL_INCDIR=$withval
7122           POSTGRESQL_LIBDIR=$withval
7123           POSTGRESQL_BINDIR=$withval
7124       else
7125           echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7127           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7128 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7129    { (exit 1); exit 1; }; }
7130       fi
7131       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7132       echo "$as_me:$LINENO: checking for crypt" >&5
7133 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7134 if test "${ac_cv_func_crypt+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7139 /* confdefs.h.  */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h.  */
7144 /* System header to define __stub macros and hopefully few prototypes,
7145     which can conflict with char crypt (); below.
7146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7147     <limits.h> exists even on freestanding compilers.  */
7148 #ifdef __STDC__
7149 # include <limits.h>
7150 #else
7151 # include <assert.h>
7152 #endif
7153 /* Override any gcc2 internal prototype to avoid an error.  */
7154 #ifdef __cplusplus
7155 extern "C"
7156 {
7157 #endif
7158 /* We use char because int might match the return type of a gcc2
7159    builtin and then its argument prototype would still apply.  */
7160 char crypt ();
7161 /* The GNU C library defines this for functions which it implements
7162     to always fail with ENOSYS.  Some functions are actually named
7163     something starting with __ and the normal name is an alias.  */
7164 #if defined (__stub_crypt) || defined (__stub___crypt)
7165 choke me
7166 #else
7167 char (*f) () = crypt;
7168 #endif
7169 #ifdef __cplusplus
7170 }
7171 #endif
7172
7173 int
7174 main ()
7175 {
7176 return f != crypt;
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7183   (eval $ac_link) 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); } &&
7187          { ac_try='test -s conftest$ac_exeext'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; }; then
7193   ac_cv_func_crypt=yes
7194 else
7195   echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 ac_cv_func_crypt=no
7199 fi
7200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7201 fi
7202 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7203 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7204 if test $ac_cv_func_crypt = yes; then
7205   :
7206 else
7207   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7208 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7209 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   ac_check_lib_save_LIBS=$LIBS
7213 LIBS="-lcrypt  $LIBS"
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221
7222 /* Override any gcc2 internal prototype to avoid an error.  */
7223 #ifdef __cplusplus
7224 extern "C"
7225 #endif
7226 /* We use char because int might match the return type of a gcc2
7227    builtin and then its argument prototype would still apply.  */
7228 char crypt ();
7229 int
7230 main ()
7231 {
7232 crypt ();
7233   ;
7234   return 0;
7235 }
7236 _ACEOF
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239   (eval $ac_link) 2>&5
7240   ac_status=$?
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -s conftest$ac_exeext'
7244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245   (eval $ac_try) 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; }; then
7249   ac_cv_lib_crypt_crypt=yes
7250 else
7251   echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254 ac_cv_lib_crypt_crypt=no
7255 fi
7256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7257 LIBS=$ac_check_lib_save_LIBS
7258 fi
7259 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7260 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7261 if test $ac_cv_lib_crypt_crypt = yes; then
7262   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7263 fi
7264
7265 fi
7266
7267       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7268       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7269       SQL_BINDIR=$POSTGRESQL_BINDIR
7270       cat >>confdefs.h <<\_ACEOF
7271 #define HAVE_POSTGRESQL 1
7272 _ACEOF
7273
7274       echo "$as_me:$LINENO: result: yes" >&5
7275 echo "${ECHO_T}yes" >&6
7276       db_found=yes
7277       support_postgresql=yes
7278       db_name=PostgreSQL
7279       DB_NAME=postgresql
7280   else
7281       echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283   fi
7284
7285 else
7286
7287   echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7289
7290 fi;
7291
7292
7293
7294
7295
7296
7297
7298 db_found=no
7299 echo "$as_me:$LINENO: checking for MySQL support" >&5
7300 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7301
7302 # Check whether --with-mysql or --without-mysql was given.
7303 if test "${with_mysql+set}" = set; then
7304   withval="$with_mysql"
7305
7306   if test "$withval" != "no"; then
7307         if test "$withval" = "yes"; then
7308                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7309                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7310                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7311                         MYSQL_BINDIR=/usr/local/mysql/bin
7312                 elif test -f /usr/include/mysql/mysql.h; then
7313                         MYSQL_INCDIR=/usr/include/mysql
7314                         MYSQL_LIBDIR=/usr/lib/mysql
7315                         MYSQL_BINDIR=/usr/bin
7316                 elif test -f /usr/include/mysql.h; then
7317                         MYSQL_INCDIR=/usr/include
7318                         MYSQL_LIBDIR=/usr/lib
7319                         MYSQL_BINDIR=/usr/bin
7320                 elif test -f /usr/local/include/mysql/mysql.h; then
7321                         MYSQL_INCDIR=/usr/local/include/mysql
7322                         MYSQL_LIBDIR=/usr/local/lib/mysql
7323                         MYSQL_BINDIR=/usr/local/bin
7324                 elif test -f /usr/local/include/mysql.h; then
7325                         MYSQL_INCDIR=/usr/local/include
7326                         MYSQL_LIBDIR=/usr/local/lib
7327                         MYSQL_BINDIR=/usr/local/bin
7328                 else
7329                    echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6
7331                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7332 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7333    { (exit 1); exit 1; }; }
7334                 fi
7335         else
7336                 if test -f $withval/include/mysql/mysql.h; then
7337                         MYSQL_INCDIR=$withval/include/mysql
7338                         MYSQL_LIBDIR=$withval/lib/mysql
7339                         MYSQL_BINDIR=$withval/bin
7340                 elif test -f $withval/include/mysql.h; then
7341                         MYSQL_INCDIR=$withval/include
7342                         MYSQL_LIBDIR=$withval/lib
7343                         MYSQL_BINDIR=$withval/bin
7344                 else
7345                    echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6
7347                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7348 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7349    { (exit 1); exit 1; }; }
7350                 fi
7351         fi
7352     SQL_INCLUDE=-I$MYSQL_INCDIR
7353     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7354        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7355        cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_THREAD_SAFE_MYSQL 1
7357 _ACEOF
7358
7359     else
7360        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7361     fi
7362     SQL_BINDIR=$MYSQL_BINDIR
7363
7364     cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_MYSQL 1
7366 _ACEOF
7367
7368     echo "$as_me:$LINENO: result: yes" >&5
7369 echo "${ECHO_T}yes" >&6
7370     db_found=yes
7371     support_mysql=yes
7372     db_name=MySQL
7373     DB_NAME=mysql
7374
7375   else
7376         echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7378   fi
7379
7380 else
7381
7382     echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7384
7385 fi;
7386
7387
7388 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7389 if test "${with_embedded_mysql+set}" = set; then
7390   withval="$with_embedded_mysql"
7391
7392   if test "$withval" != "no"; then
7393         if test "$withval" = "yes"; then
7394                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7395                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7396                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7397                         MYSQL_BINDIR=/usr/local/mysql/bin
7398                 elif test -f /usr/include/mysql/mysql.h; then
7399                         MYSQL_INCDIR=/usr/include/mysql
7400                         MYSQL_LIBDIR=/usr/lib/mysql
7401                         MYSQL_BINDIR=/usr/bin
7402                 elif test -f /usr/include/mysql.h; then
7403                         MYSQL_INCDIR=/usr/include
7404                         MYSQL_LIBDIR=/usr/lib
7405                         MYSQL_BINDIR=/usr/bin
7406                 elif test -f /usr/local/include/mysql/mysql.h; then
7407                         MYSQL_INCDIR=/usr/local/include/mysql
7408                         MYSQL_LIBDIR=/usr/local/lib/mysql
7409                         MYSQL_BINDIR=/usr/local/bin
7410                 elif test -f /usr/local/include/mysql.h; then
7411                         MYSQL_INCDIR=/usr/local/include
7412                         MYSQL_LIBDIR=/usr/local/lib
7413                         MYSQL_BINDIR=/usr/local/bin
7414                 else
7415                    echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6
7417                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7418 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7419    { (exit 1); exit 1; }; }
7420                 fi
7421         else
7422                 if test -f $withval/include/mysql/mysql.h; then
7423                         MYSQL_INCDIR=$withval/include/mysql
7424                         MYSQL_LIBDIR=$withval/lib/mysql
7425                         MYSQL_BINDIR=$withval/bin
7426                 elif test -f $withval/include/mysql.h; then
7427                         MYSQL_INCDIR=$withval/include
7428                         MYSQL_LIBDIR=$withval/lib
7429                         MYSQL_BINDIR=$withval/bin
7430                 else
7431                    echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7433                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7434 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7435    { (exit 1); exit 1; }; }
7436                 fi
7437         fi
7438     SQL_INCLUDE=-I$MYSQL_INCDIR
7439     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7440     SQL_BINDIR=$MYSQL_BINDIR
7441
7442     cat >>confdefs.h <<\_ACEOF
7443 #define HAVE_MYSQL 1
7444 _ACEOF
7445
7446     cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_EMBEDDED_MYSQL 1
7448 _ACEOF
7449
7450     echo "$as_me:$LINENO: result: yes" >&5
7451 echo "${ECHO_T}yes" >&6
7452     db_found=yes
7453     support_mysql=yes
7454     db_name=MySQL
7455     DB_NAME=mysql
7456
7457   else
7458         echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7460   fi
7461
7462 else
7463
7464   echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7466
7467 fi;
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 db_found=no
7478 echo "$as_me:$LINENO: checking for SQLite support" >&5
7479 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7480
7481 # Check whether --with-sqlite or --without-sqlite was given.
7482 if test "${with_sqlite+set}" = set; then
7483   withval="$with_sqlite"
7484
7485   if test "$withval" != "no"; then
7486         if test "$withval" = "yes"; then
7487                 if test -f /usr/local/include/sqlite.h; then
7488                         SQLITE_INCDIR=/usr/local/include
7489                         SQLITE_LIBDIR=/usr/local/lib
7490                         SQLITE_BINDIR=/usr/local/bin
7491                 elif test -f /usr/include/sqlite.h; then
7492                         SQLITE_INCDIR=/usr/include
7493                         SQLITE_LIBDIR=/usr/lib
7494                         SQLITE_BINDIR=/usr/bin
7495                 else
7496                    echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7498                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7499 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7500    { (exit 1); exit 1; }; }
7501                 fi
7502         else
7503                 if test -f $withval/sqlite.h; then
7504                         SQLITE_INCDIR=$withval
7505                         SQLITE_LIBDIR=$withval
7506                         SQLITE_BINDIR=$withval
7507                 else
7508                    echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7511 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7512    { (exit 1); exit 1; }; }
7513                 fi
7514         fi
7515     SQL_INCLUDE=-I$SQLITE_INCDIR
7516     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7517     SQL_BINDIR=$SQLITE_BINDIR
7518
7519     cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_SQLITE 1
7521 _ACEOF
7522
7523     echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7525     db_found=yes
7526     support_sqlite=yes
7527     db_name=SQLite
7528     DB_NAME=sqlite
7529
7530   else
7531         echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533   fi
7534
7535 else
7536
7537   echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539
7540 fi;
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550 cat >>confdefs.h <<\_ACEOF
7551 #define PROTOTYPES 1
7552 _ACEOF
7553
7554
7555 if test -z "$CFLAGS"; then
7556     if test -z "$CCOPTS"; then
7557         CCOPTS='-g -O2'
7558     fi
7559     CFLAGS="$CCOPTS"
7560 fi
7561
7562
7563
7564
7565 largefile_support="no"
7566
7567    # Check whether --enable-largefile or --disable-largefile was given.
7568 if test "${enable_largefile+set}" = set; then
7569   enableval="$enable_largefile"
7570
7571 fi;
7572    if test "$enable_largefile" != no; then
7573      if test -n "$ac_tool_prefix"; then
7574   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7576 echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7578 if test "${ac_cv_prog_GETCONF+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   if test -n "$GETCONF"; then
7582   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597
7598 fi
7599 fi
7600 GETCONF=$ac_cv_prog_GETCONF
7601 if test -n "$GETCONF"; then
7602   echo "$as_me:$LINENO: result: $GETCONF" >&5
7603 echo "${ECHO_T}$GETCONF" >&6
7604 else
7605   echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6
7607 fi
7608
7609 fi
7610 if test -z "$ac_cv_prog_GETCONF"; then
7611   ac_ct_GETCONF=$GETCONF
7612   # Extract the first word of "getconf", so it can be a program name with args.
7613 set dummy getconf; ac_word=$2
7614 echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7616 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   if test -n "$ac_ct_GETCONF"; then
7620   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627   for ac_exec_ext in '' $ac_executable_extensions; do
7628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629     ac_cv_prog_ac_ct_GETCONF="getconf"
7630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634 done
7635
7636 fi
7637 fi
7638 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7639 if test -n "$ac_ct_GETCONF"; then
7640   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7641 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7642 else
7643   echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6
7645 fi
7646
7647   GETCONF=$ac_ct_GETCONF
7648 else
7649   GETCONF="$ac_cv_prog_GETCONF"
7650 fi
7651
7652      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7653 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7654 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7658         ac_cv_sys_largefile_CFLAGS=no
7659         case "$host_os" in
7660            # IRIX 6.2 and later require cc -n32.
7661            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7662              if test "$GCC" != yes; then
7663                ac_cv_sys_largefile_CFLAGS=-n32
7664              fi
7665              ac_save_CC="$CC"
7666              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7667              cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674
7675 int
7676 main ()
7677 {
7678
7679   ;
7680   return 0;
7681 }
7682 _ACEOF
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7685   (eval $ac_link) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } &&
7689          { ac_try='test -s conftest$ac_exeext'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; }; then
7695   :
7696 else
7697   echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 ac_cv_sys_largefile_CFLAGS=no
7701 fi
7702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7703              CC="$ac_save_CC"
7704            esac
7705       }
7706 fi
7707 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7708 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7709      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7710 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7711 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7715         ac_cv_sys_largefile_LDFLAGS=no
7716
7717       }
7718 fi
7719 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7720 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7721      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7722 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7723 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7727         ac_cv_sys_largefile_LIBS=no
7728
7729       }
7730 fi
7731 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7732 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7733
7734      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7735        case "$ac_flag" in
7736        no) ;;
7737        -D_FILE_OFFSET_BITS=*) ;;
7738        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7739        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7740        -D?* | -I?*)
7741          case "$ac_flag" in
7742    no) ;;
7743    ?*)
7744      case "$CPPFLAGS" in
7745      '') CPPFLAGS="$ac_flag" ;;
7746      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7747      esac ;;
7748    esac ;;
7749        *)
7750          case "$ac_flag" in
7751    no) ;;
7752    ?*)
7753      case "$CFLAGS" in
7754      '') CFLAGS="$ac_flag" ;;
7755      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7756      esac ;;
7757    esac ;;
7758        esac
7759      done
7760      case "$ac_cv_sys_largefile_LDFLAGS" in
7761    no) ;;
7762    ?*)
7763      case "$LDFLAGS" in
7764      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7765      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7766      esac ;;
7767    esac
7768      case "$ac_cv_sys_largefile_LIBS" in
7769    no) ;;
7770    ?*)
7771      case "$LIBS" in
7772      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7773      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7774      esac ;;
7775    esac
7776      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7777 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   ac_cv_sys_file_offset_bits=no
7782       case "$host_os" in
7783         # HP-UX 10.20 and later
7784         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7785           ac_cv_sys_file_offset_bits=64 ;;
7786         esac
7787       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7788         case "$ac_flag" in
7789         -D_FILE_OFFSET_BITS)
7790           ac_cv_sys_file_offset_bits=1 ;;
7791         -D_FILE_OFFSET_BITS=*)
7792           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7793         esac
7794       done
7795
7796 fi
7797 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7798 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7799    if test "$ac_cv_sys_file_offset_bits" != no; then
7800
7801 cat >>confdefs.h <<_ACEOF
7802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7803 _ACEOF
7804
7805    fi
7806      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7807 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7808 if test "${ac_cv_sys_largefile_source+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   ac_cv_sys_largefile_source=no
7812       case "$host_os" in
7813         # HP-UX 10.20 and later
7814         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7815           ac_cv_sys_largefile_source=1 ;;
7816         esac
7817       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7818         case "$ac_flag" in
7819         -D_LARGEFILE_SOURCE)
7820           ac_cv_sys_largefile_source=1 ;;
7821         -D_LARGEFILE_SOURCE=*)
7822           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7823         esac
7824       done
7825
7826 fi
7827 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7829    if test "$ac_cv_sys_largefile_source" != no; then
7830
7831 cat >>confdefs.h <<_ACEOF
7832 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7833 _ACEOF
7834
7835    fi
7836      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7837 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7838 if test "${ac_cv_sys_large_files+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   ac_cv_sys_large_files=no
7842       case "$host_os" in
7843         # AIX 4.2 and later
7844         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7845           ac_cv_sys_large_files=1 ;;
7846         esac
7847       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7848         case "$ac_flag" in
7849         -D_LARGE_FILES)
7850           ac_cv_sys_large_files=1 ;;
7851         -D_LARGE_FILES=*)
7852           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7853         esac
7854       done
7855
7856 fi
7857 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7858 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7859    if test "$ac_cv_sys_large_files" != no; then
7860
7861 cat >>confdefs.h <<_ACEOF
7862 #define _LARGE_FILES $ac_cv_sys_large_files
7863 _ACEOF
7864
7865    fi
7866    fi
7867
7868
7869
7870 echo "$as_me:$LINENO: checking for X" >&5
7871 echo $ECHO_N "checking for X... $ECHO_C" >&6
7872
7873
7874 # Check whether --with-x or --without-x was given.
7875 if test "${with_x+set}" = set; then
7876   withval="$with_x"
7877
7878 fi;
7879 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7880 if test "x$with_x" = xno; then
7881   # The user explicitly disabled X.
7882   have_x=disabled
7883 else
7884   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7885     # Both variables are already set.
7886     have_x=yes
7887   else
7888     if test "${ac_cv_have_x+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   # One or both of the vars are not set, and there is no cached value.
7892 ac_x_includes=no ac_x_libraries=no
7893 rm -fr conftest.dir
7894 if mkdir conftest.dir; then
7895   cd conftest.dir
7896   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7897   cat >Imakefile <<'_ACEOF'
7898 acfindx:
7899         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7900 _ACEOF
7901   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7902     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7903     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7904     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7905     for ac_extension in a so sl; do
7906       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7907          test -f $ac_im_libdir/libX11.$ac_extension; then
7908         ac_im_usrlibdir=$ac_im_libdir; break
7909       fi
7910     done
7911     # Screen out bogus values from the imake configuration.  They are
7912     # bogus both because they are the default anyway, and because
7913     # using them would break gcc on systems where it needs fixed includes.
7914     case $ac_im_incroot in
7915         /usr/include) ;;
7916         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7917     esac
7918     case $ac_im_usrlibdir in
7919         /usr/lib | /lib) ;;
7920         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7921     esac
7922   fi
7923   cd ..
7924   rm -fr conftest.dir
7925 fi
7926
7927 # Standard set of common directories for X headers.
7928 # Check X11 before X11Rn because it is often a symlink to the current release.
7929 ac_x_header_dirs='
7930 /usr/X11/include
7931 /usr/X11R6/include
7932 /usr/X11R5/include
7933 /usr/X11R4/include
7934
7935 /usr/include/X11
7936 /usr/include/X11R6
7937 /usr/include/X11R5
7938 /usr/include/X11R4
7939
7940 /usr/local/X11/include
7941 /usr/local/X11R6/include
7942 /usr/local/X11R5/include
7943 /usr/local/X11R4/include
7944
7945 /usr/local/include/X11
7946 /usr/local/include/X11R6
7947 /usr/local/include/X11R5
7948 /usr/local/include/X11R4
7949
7950 /usr/X386/include
7951 /usr/x386/include
7952 /usr/XFree86/include/X11
7953
7954 /usr/include
7955 /usr/local/include
7956 /usr/unsupported/include
7957 /usr/athena/include
7958 /usr/local/x11r5/include
7959 /usr/lpp/Xamples/include
7960
7961 /usr/openwin/include
7962 /usr/openwin/share/include'
7963
7964 if test "$ac_x_includes" = no; then
7965   # Guess where to find include files, by looking for Intrinsic.h.
7966   # First, try using that file with no special directory specified.
7967   cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974 #include <X11/Intrinsic.h>
7975 _ACEOF
7976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7978   ac_status=$?
7979   grep -v '^ *+' conftest.er1 >conftest.err
7980   rm -f conftest.er1
7981   cat conftest.err >&5
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } >/dev/null; then
7984   if test -s conftest.err; then
7985     ac_cpp_err=$ac_c_preproc_warn_flag
7986   else
7987     ac_cpp_err=
7988   fi
7989 else
7990   ac_cpp_err=yes
7991 fi
7992 if test -z "$ac_cpp_err"; then
7993   # We can compile using X headers with no special include directory.
7994 ac_x_includes=
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999   for ac_dir in $ac_x_header_dirs; do
8000   if test -r "$ac_dir/X11/Intrinsic.h"; then
8001     ac_x_includes=$ac_dir
8002     break
8003   fi
8004 done
8005 fi
8006 rm -f conftest.err conftest.$ac_ext
8007 fi # $ac_x_includes = no
8008
8009 if test "$ac_x_libraries" = no; then
8010   # Check for the libraries.
8011   # See if we find them without any special options.
8012   # Don't add to $LIBS permanently.
8013   ac_save_LIBS=$LIBS
8014   LIBS="-lXt $LIBS"
8015   cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022 #include <X11/Intrinsic.h>
8023 int
8024 main ()
8025 {
8026 XtMalloc (0)
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033   (eval $ac_link) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } &&
8037          { ac_try='test -s conftest$ac_exeext'
8038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039   (eval $ac_try) 2>&5
8040   ac_status=$?
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); }; }; then
8043   LIBS=$ac_save_LIBS
8044 # We can link X programs with no special library path.
8045 ac_x_libraries=
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 LIBS=$ac_save_LIBS
8051 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8052 do
8053   # Don't even attempt the hair of trying to link an X program!
8054   for ac_extension in a so sl; do
8055     if test -r $ac_dir/libXt.$ac_extension; then
8056       ac_x_libraries=$ac_dir
8057       break 2
8058     fi
8059   done
8060 done
8061 fi
8062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8063 fi # $ac_x_libraries = no
8064
8065 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8066   # Didn't find X anywhere.  Cache the known absence of X.
8067   ac_cv_have_x="have_x=no"
8068 else
8069   # Record where we found X for the cache.
8070   ac_cv_have_x="have_x=yes \
8071                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8072 fi
8073 fi
8074
8075   fi
8076   eval "$ac_cv_have_x"
8077 fi # $with_x != no
8078
8079 if test "$have_x" != yes; then
8080   echo "$as_me:$LINENO: result: $have_x" >&5
8081 echo "${ECHO_T}$have_x" >&6
8082   no_x=yes
8083 else
8084   # If each of the values was on the command line, it overrides each guess.
8085   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8086   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8087   # Update the cache value to reflect the command line values.
8088   ac_cv_have_x="have_x=yes \
8089                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8090   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8091 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8092 fi
8093
8094 if test "$no_x" = yes; then
8095   # Not all programs may use this symbol, but it does not hurt to define it.
8096
8097 cat >>confdefs.h <<\_ACEOF
8098 #define X_DISPLAY_MISSING 1
8099 _ACEOF
8100
8101   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8102 else
8103   if test -n "$x_includes"; then
8104     X_CFLAGS="$X_CFLAGS -I$x_includes"
8105   fi
8106
8107   # It would also be nice to do this for all -L options, not just this one.
8108   if test -n "$x_libraries"; then
8109     X_LIBS="$X_LIBS -L$x_libraries"
8110     # For Solaris; some versions of Sun CC require a space after -R and
8111     # others require no space.  Words are not sufficient . . . .
8112     case `(uname -sr) 2>/dev/null` in
8113     "SunOS 5"*)
8114       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8115 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8116       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8117       cat >conftest.$ac_ext <<_ACEOF
8118 #line $LINENO "configure"
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124
8125 int
8126 main ()
8127 {
8128
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135   (eval $ac_link) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } &&
8139          { ac_try='test -s conftest$ac_exeext'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   ac_R_nospace=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_R_nospace=no
8151 fi
8152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8153       if test $ac_R_nospace = yes; then
8154         echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8156         X_LIBS="$X_LIBS -R$x_libraries"
8157       else
8158         LIBS="$ac_xsave_LIBS -R $x_libraries"
8159         cat >conftest.$ac_ext <<_ACEOF
8160 #line $LINENO "configure"
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166
8167 int
8168 main ()
8169 {
8170
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177   (eval $ac_link) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -s conftest$ac_exeext'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   ac_R_space=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_R_space=no
8193 fi
8194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8195         if test $ac_R_space = yes; then
8196           echo "$as_me:$LINENO: result: yes" >&5
8197 echo "${ECHO_T}yes" >&6
8198           X_LIBS="$X_LIBS -R $x_libraries"
8199         else
8200           echo "$as_me:$LINENO: result: neither works" >&5
8201 echo "${ECHO_T}neither works" >&6
8202         fi
8203       fi
8204       LIBS=$ac_xsave_LIBS
8205     esac
8206   fi
8207
8208   # Check for system-dependent libraries X programs must link with.
8209   # Do this before checking for the system-independent R6 libraries
8210   # (-lICE), since we may need -lsocket or whatever for X linking.
8211
8212   if test "$ISC" = yes; then
8213     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8214   else
8215     # Martyn Johnson says this is needed for Ultrix, if the X
8216     # libraries were built with DECnet support.  And Karl Berry says
8217     # the Alpha needs dnet_stub (dnet does not exist).
8218     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8219     cat >conftest.$ac_ext <<_ACEOF
8220 #line $LINENO "configure"
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226
8227 /* Override any gcc2 internal prototype to avoid an error.  */
8228 #ifdef __cplusplus
8229 extern "C"
8230 #endif
8231 /* We use char because int might match the return type of a gcc2
8232    builtin and then its argument prototype would still apply.  */
8233 char XOpenDisplay ();
8234 int
8235 main ()
8236 {
8237 XOpenDisplay ();
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244   (eval $ac_link) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } &&
8248          { ac_try='test -s conftest$ac_exeext'
8249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250   (eval $ac_try) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); }; }; then
8254   :
8255 else
8256   echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8260 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8261 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   ac_check_lib_save_LIBS=$LIBS
8265 LIBS="-ldnet  $LIBS"
8266 cat >conftest.$ac_ext <<_ACEOF
8267 #line $LINENO "configure"
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273
8274 /* Override any gcc2 internal prototype to avoid an error.  */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 /* We use char because int might match the return type of a gcc2
8279    builtin and then its argument prototype would still apply.  */
8280 char dnet_ntoa ();
8281 int
8282 main ()
8283 {
8284 dnet_ntoa ();
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291   (eval $ac_link) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } &&
8295          { ac_try='test -s conftest$ac_exeext'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   ac_cv_lib_dnet_dnet_ntoa=yes
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 ac_cv_lib_dnet_dnet_ntoa=no
8307 fi
8308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8309 LIBS=$ac_check_lib_save_LIBS
8310 fi
8311 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8312 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8313 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8314   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8315 fi
8316
8317     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8318       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8319 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8320 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   ac_check_lib_save_LIBS=$LIBS
8324 LIBS="-ldnet_stub  $LIBS"
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 /* confdefs.h.  */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h.  */
8332
8333 /* Override any gcc2 internal prototype to avoid an error.  */
8334 #ifdef __cplusplus
8335 extern "C"
8336 #endif
8337 /* We use char because int might match the return type of a gcc2
8338    builtin and then its argument prototype would still apply.  */
8339 char dnet_ntoa ();
8340 int
8341 main ()
8342 {
8343 dnet_ntoa ();
8344   ;
8345   return 0;
8346 }
8347 _ACEOF
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350   (eval $ac_link) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); } &&
8354          { ac_try='test -s conftest$ac_exeext'
8355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356   (eval $ac_try) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365 ac_cv_lib_dnet_stub_dnet_ntoa=no
8366 fi
8367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8368 LIBS=$ac_check_lib_save_LIBS
8369 fi
8370 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8371 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8372 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8373   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8374 fi
8375
8376     fi
8377 fi
8378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379     LIBS="$ac_xsave_LIBS"
8380
8381     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8382     # to get the SysV transport functions.
8383     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8384     # needs -lnsl.
8385     # The nsl library prevents programs from opening the X display
8386     # on Irix 5.2, according to T.E. Dickey.
8387     # The functions gethostbyname, getservbyname, and inet_addr are
8388     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8389     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8390 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8391 if test "${ac_cv_func_gethostbyname+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   cat >conftest.$ac_ext <<_ACEOF
8395 #line $LINENO "configure"
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401 /* System header to define __stub macros and hopefully few prototypes,
8402     which can conflict with char gethostbyname (); below.
8403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404     <limits.h> exists even on freestanding compilers.  */
8405 #ifdef __STDC__
8406 # include <limits.h>
8407 #else
8408 # include <assert.h>
8409 #endif
8410 /* Override any gcc2 internal prototype to avoid an error.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 {
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416    builtin and then its argument prototype would still apply.  */
8417 char gethostbyname ();
8418 /* The GNU C library defines this for functions which it implements
8419     to always fail with ENOSYS.  Some functions are actually named
8420     something starting with __ and the normal name is an alias.  */
8421 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8422 choke me
8423 #else
8424 char (*f) () = gethostbyname;
8425 #endif
8426 #ifdef __cplusplus
8427 }
8428 #endif
8429
8430 int
8431 main ()
8432 {
8433 return f != gethostbyname;
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440   (eval $ac_link) 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); } &&
8444          { ac_try='test -s conftest$ac_exeext'
8445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446   (eval $ac_try) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); }; }; then
8450   ac_cv_func_gethostbyname=yes
8451 else
8452   echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8454
8455 ac_cv_func_gethostbyname=no
8456 fi
8457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8460 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8461
8462     if test $ac_cv_func_gethostbyname = no; then
8463       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8464 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8465 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8466   echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468   ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-lnsl  $LIBS"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8472 /* confdefs.h.  */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h.  */
8477
8478 /* Override any gcc2 internal prototype to avoid an error.  */
8479 #ifdef __cplusplus
8480 extern "C"
8481 #endif
8482 /* We use char because int might match the return type of a gcc2
8483    builtin and then its argument prototype would still apply.  */
8484 char gethostbyname ();
8485 int
8486 main ()
8487 {
8488 gethostbyname ();
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495   (eval $ac_link) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } &&
8499          { ac_try='test -s conftest$ac_exeext'
8500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501   (eval $ac_try) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; }; then
8505   ac_cv_lib_nsl_gethostbyname=yes
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 ac_cv_lib_nsl_gethostbyname=no
8511 fi
8512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8513 LIBS=$ac_check_lib_save_LIBS
8514 fi
8515 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8516 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8517 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8518   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8519 fi
8520
8521       if test $ac_cv_lib_nsl_gethostbyname = no; then
8522         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8523 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8524 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   ac_check_lib_save_LIBS=$LIBS
8528 LIBS="-lbsd  $LIBS"
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line $LINENO "configure"
8531 /* confdefs.h.  */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h.  */
8536
8537 /* Override any gcc2 internal prototype to avoid an error.  */
8538 #ifdef __cplusplus
8539 extern "C"
8540 #endif
8541 /* We use char because int might match the return type of a gcc2
8542    builtin and then its argument prototype would still apply.  */
8543 char gethostbyname ();
8544 int
8545 main ()
8546 {
8547 gethostbyname ();
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554   (eval $ac_link) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } &&
8558          { ac_try='test -s conftest$ac_exeext'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564   ac_cv_lib_bsd_gethostbyname=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 ac_cv_lib_bsd_gethostbyname=no
8570 fi
8571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8575 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8576 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8577   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8578 fi
8579
8580       fi
8581     fi
8582
8583     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8584     # socket/setsockopt and other routines are undefined under SCO ODT
8585     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8586     # on later versions), says Simon Leinen: it contains gethostby*
8587     # variants that don't use the name server (or something).  -lsocket
8588     # must be given before -lnsl if both are needed.  We assume that
8589     # if connect needs -lnsl, so does gethostbyname.
8590     echo "$as_me:$LINENO: checking for connect" >&5
8591 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8592 if test "${ac_cv_func_connect+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602 /* System header to define __stub macros and hopefully few prototypes,
8603     which can conflict with char connect (); below.
8604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8605     <limits.h> exists even on freestanding compilers.  */
8606 #ifdef __STDC__
8607 # include <limits.h>
8608 #else
8609 # include <assert.h>
8610 #endif
8611 /* Override any gcc2 internal prototype to avoid an error.  */
8612 #ifdef __cplusplus
8613 extern "C"
8614 {
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617    builtin and then its argument prototype would still apply.  */
8618 char connect ();
8619 /* The GNU C library defines this for functions which it implements
8620     to always fail with ENOSYS.  Some functions are actually named
8621     something starting with __ and the normal name is an alias.  */
8622 #if defined (__stub_connect) || defined (__stub___connect)
8623 choke me
8624 #else
8625 char (*f) () = connect;
8626 #endif
8627 #ifdef __cplusplus
8628 }
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 return f != connect;
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641   (eval $ac_link) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); } &&
8645          { ac_try='test -s conftest$ac_exeext'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   ac_cv_func_connect=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 ac_cv_func_connect=no
8657 fi
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8659 fi
8660 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8661 echo "${ECHO_T}$ac_cv_func_connect" >&6
8662
8663     if test $ac_cv_func_connect = no; then
8664       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8665 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8666 if test "${ac_cv_lib_socket_connect+set}" = set; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669   ac_check_lib_save_LIBS=$LIBS
8670 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 /* confdefs.h.  */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h.  */
8678
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 /* We use char because int might match the return type of a gcc2
8684    builtin and then its argument prototype would still apply.  */
8685 char connect ();
8686 int
8687 main ()
8688 {
8689 connect ();
8690   ;
8691   return 0;
8692 }
8693 _ACEOF
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696   (eval $ac_link) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } &&
8700          { ac_try='test -s conftest$ac_exeext'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; }; then
8706   ac_cv_lib_socket_connect=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_cv_lib_socket_connect=no
8712 fi
8713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8714 LIBS=$ac_check_lib_save_LIBS
8715 fi
8716 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8717 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8718 if test $ac_cv_lib_socket_connect = yes; then
8719   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8720 fi
8721
8722     fi
8723
8724     # Guillermo Gomez says -lposix is necessary on A/UX.
8725     echo "$as_me:$LINENO: checking for remove" >&5
8726 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8727 if test "${ac_cv_func_remove+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   cat >conftest.$ac_ext <<_ACEOF
8731 #line $LINENO "configure"
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8737 /* System header to define __stub macros and hopefully few prototypes,
8738     which can conflict with char remove (); below.
8739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8740     <limits.h> exists even on freestanding compilers.  */
8741 #ifdef __STDC__
8742 # include <limits.h>
8743 #else
8744 # include <assert.h>
8745 #endif
8746 /* Override any gcc2 internal prototype to avoid an error.  */
8747 #ifdef __cplusplus
8748 extern "C"
8749 {
8750 #endif
8751 /* We use char because int might match the return type of a gcc2
8752    builtin and then its argument prototype would still apply.  */
8753 char remove ();
8754 /* The GNU C library defines this for functions which it implements
8755     to always fail with ENOSYS.  Some functions are actually named
8756     something starting with __ and the normal name is an alias.  */
8757 #if defined (__stub_remove) || defined (__stub___remove)
8758 choke me
8759 #else
8760 char (*f) () = remove;
8761 #endif
8762 #ifdef __cplusplus
8763 }
8764 #endif
8765
8766 int
8767 main ()
8768 {
8769 return f != remove;
8770   ;
8771   return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776   (eval $ac_link) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } &&
8780          { ac_try='test -s conftest$ac_exeext'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; }; then
8786   ac_cv_func_remove=yes
8787 else
8788   echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ac_cv_func_remove=no
8792 fi
8793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8794 fi
8795 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8796 echo "${ECHO_T}$ac_cv_func_remove" >&6
8797
8798     if test $ac_cv_func_remove = no; then
8799       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8800 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8801 if test "${ac_cv_lib_posix_remove+set}" = set; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-lposix  $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813
8814 /* Override any gcc2 internal prototype to avoid an error.  */
8815 #ifdef __cplusplus
8816 extern "C"
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819    builtin and then its argument prototype would still apply.  */
8820 char remove ();
8821 int
8822 main ()
8823 {
8824 remove ();
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831   (eval $ac_link) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } &&
8835          { ac_try='test -s conftest$ac_exeext'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; }; then
8841   ac_cv_lib_posix_remove=yes
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 ac_cv_lib_posix_remove=no
8847 fi
8848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8849 LIBS=$ac_check_lib_save_LIBS
8850 fi
8851 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8852 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8853 if test $ac_cv_lib_posix_remove = yes; then
8854   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8855 fi
8856
8857     fi
8858
8859     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8860     echo "$as_me:$LINENO: checking for shmat" >&5
8861 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8862 if test "${ac_cv_func_shmat+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   cat >conftest.$ac_ext <<_ACEOF
8866 #line $LINENO "configure"
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872 /* System header to define __stub macros and hopefully few prototypes,
8873     which can conflict with char shmat (); below.
8874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8875     <limits.h> exists even on freestanding compilers.  */
8876 #ifdef __STDC__
8877 # include <limits.h>
8878 #else
8879 # include <assert.h>
8880 #endif
8881 /* Override any gcc2 internal prototype to avoid an error.  */
8882 #ifdef __cplusplus
8883 extern "C"
8884 {
8885 #endif
8886 /* We use char because int might match the return type of a gcc2
8887    builtin and then its argument prototype would still apply.  */
8888 char shmat ();
8889 /* The GNU C library defines this for functions which it implements
8890     to always fail with ENOSYS.  Some functions are actually named
8891     something starting with __ and the normal name is an alias.  */
8892 #if defined (__stub_shmat) || defined (__stub___shmat)
8893 choke me
8894 #else
8895 char (*f) () = shmat;
8896 #endif
8897 #ifdef __cplusplus
8898 }
8899 #endif
8900
8901 int
8902 main ()
8903 {
8904 return f != shmat;
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8911   (eval $ac_link) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } &&
8915          { ac_try='test -s conftest$ac_exeext'
8916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917   (eval $ac_try) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   ac_cv_func_shmat=yes
8922 else
8923   echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 ac_cv_func_shmat=no
8927 fi
8928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929 fi
8930 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8931 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8932
8933     if test $ac_cv_func_shmat = no; then
8934       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8935 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8936 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939   ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-lipc  $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948
8949 /* Override any gcc2 internal prototype to avoid an error.  */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 /* We use char because int might match the return type of a gcc2
8954    builtin and then its argument prototype would still apply.  */
8955 char shmat ();
8956 int
8957 main ()
8958 {
8959 shmat ();
8960   ;
8961   return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966   (eval $ac_link) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); } &&
8970          { ac_try='test -s conftest$ac_exeext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_cv_lib_ipc_shmat=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_lib_ipc_shmat=no
8982 fi
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8985 fi
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8987 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8988 if test $ac_cv_lib_ipc_shmat = yes; then
8989   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8990 fi
8991
8992     fi
8993   fi
8994
8995   # Check for libraries that X11R6 Xt/Xaw programs need.
8996   ac_save_LDFLAGS=$LDFLAGS
8997   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8998   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8999   # check for ICE first), but we must link in the order -lSM -lICE or
9000   # we get undefined symbols.  So assume we have SM if we have ICE.
9001   # These have to be linked with before -lX11, unlike the other
9002   # libraries we check for below, so use a different variable.
9003   # John Interrante, Karl Berry
9004   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9005 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9006 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9007   echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009   ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9011 cat >conftest.$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9013 /* confdefs.h.  */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h.  */
9018
9019 /* Override any gcc2 internal prototype to avoid an error.  */
9020 #ifdef __cplusplus
9021 extern "C"
9022 #endif
9023 /* We use char because int might match the return type of a gcc2
9024    builtin and then its argument prototype would still apply.  */
9025 char IceConnectionNumber ();
9026 int
9027 main ()
9028 {
9029 IceConnectionNumber ();
9030   ;
9031   return 0;
9032 }
9033 _ACEOF
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036   (eval $ac_link) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); } &&
9040          { ac_try='test -s conftest$ac_exeext'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; }; then
9046   ac_cv_lib_ICE_IceConnectionNumber=yes
9047 else
9048   echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ac_cv_lib_ICE_IceConnectionNumber=no
9052 fi
9053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9055 fi
9056 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9057 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9058 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9059   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9060 fi
9061
9062   LDFLAGS=$ac_save_LDFLAGS
9063
9064 fi
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 for ac_header in \
9090         assert.h \
9091         fcntl.h \
9092         grp.h \
9093         pwd.h \
9094         libc.h \
9095         limits.h \
9096         stdarg.h \
9097         stdlib.h \
9098         stdint.h \
9099         string.h \
9100         termios.h \
9101         unistd.h \
9102         sys/byteorder.h \
9103         sys/ioctl.h \
9104         sys/select.h \
9105         sys/sockio.h \
9106         sys/time.h \
9107         sys/socket.h \
9108         arpa/nameser.h \
9109         resolv.h \
9110         mtio.h \
9111         sys/mtio.h \
9112
9113 do
9114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116   echo "$as_me:$LINENO: checking for $ac_header" >&5
9117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9119   echo $ECHO_N "(cached) $ECHO_C" >&6
9120 fi
9121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9123 else
9124   # Is the header compilable?
9125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134 $ac_includes_default
9135 #include <$ac_header>
9136 _ACEOF
9137 rm -f conftest.$ac_objext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139   (eval $ac_compile) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -s conftest.$ac_objext'
9144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145   (eval $ac_try) 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; }; then
9149   ac_header_compiler=yes
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_header_compiler=no
9155 fi
9156 rm -f conftest.$ac_objext conftest.$ac_ext
9157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9158 echo "${ECHO_T}$ac_header_compiler" >&6
9159
9160 # Is the header present?
9161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9164 #line $LINENO "configure"
9165 /* confdefs.h.  */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h.  */
9170 #include <$ac_header>
9171 _ACEOF
9172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9174   ac_status=$?
9175   grep -v '^ *+' conftest.er1 >conftest.err
9176   rm -f conftest.er1
9177   cat conftest.err >&5
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } >/dev/null; then
9180   if test -s conftest.err; then
9181     ac_cpp_err=$ac_c_preproc_warn_flag
9182   else
9183     ac_cpp_err=
9184   fi
9185 else
9186   ac_cpp_err=yes
9187 fi
9188 if test -z "$ac_cpp_err"; then
9189   ac_header_preproc=yes
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194   ac_header_preproc=no
9195 fi
9196 rm -f conftest.err conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9198 echo "${ECHO_T}$ac_header_preproc" >&6
9199
9200 # So?  What about this header?
9201 case $ac_header_compiler:$ac_header_preproc in
9202   yes:no )
9203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9207     (
9208       cat <<\_ASBOX
9209 ## ------------------------------------ ##
9210 ## Report this to bug-autoconf@gnu.org. ##
9211 ## ------------------------------------ ##
9212 _ASBOX
9213     ) |
9214       sed "s/^/$as_me: WARNING:     /" >&2
9215     ;;
9216   no:yes )
9217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9219     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9223     (
9224       cat <<\_ASBOX
9225 ## ------------------------------------ ##
9226 ## Report this to bug-autoconf@gnu.org. ##
9227 ## ------------------------------------ ##
9228 _ASBOX
9229     ) |
9230       sed "s/^/$as_me: WARNING:     /" >&2
9231     ;;
9232 esac
9233 echo "$as_me:$LINENO: checking for $ac_header" >&5
9234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   eval "$as_ac_Header=$ac_header_preproc"
9239 fi
9240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9242
9243 fi
9244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9245   cat >>confdefs.h <<_ACEOF
9246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9247 _ACEOF
9248
9249 fi
9250
9251 done
9252
9253 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9254 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9255 if test "${ac_cv_header_stdc+set}" = set; then
9256   echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258   cat >conftest.$ac_ext <<_ACEOF
9259 #line $LINENO "configure"
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265 #include <stdlib.h>
9266 #include <stdarg.h>
9267 #include <string.h>
9268 #include <float.h>
9269
9270 int
9271 main ()
9272 {
9273
9274   ;
9275   return 0;
9276 }
9277 _ACEOF
9278 rm -f conftest.$ac_objext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9280   (eval $ac_compile) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -s conftest.$ac_objext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_cv_header_stdc=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_cv_header_stdc=no
9296 fi
9297 rm -f conftest.$ac_objext conftest.$ac_ext
9298
9299 if test $ac_cv_header_stdc = yes; then
9300   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9301   cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308 #include <string.h>
9309
9310 _ACEOF
9311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9312   $EGREP "memchr" >/dev/null 2>&1; then
9313   :
9314 else
9315   ac_cv_header_stdc=no
9316 fi
9317 rm -f conftest*
9318
9319 fi
9320
9321 if test $ac_cv_header_stdc = yes; then
9322   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9323   cat >conftest.$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9325 /* confdefs.h.  */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h.  */
9330 #include <stdlib.h>
9331
9332 _ACEOF
9333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9334   $EGREP "free" >/dev/null 2>&1; then
9335   :
9336 else
9337   ac_cv_header_stdc=no
9338 fi
9339 rm -f conftest*
9340
9341 fi
9342
9343 if test $ac_cv_header_stdc = yes; then
9344   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9345   if test "$cross_compiling" = yes; then
9346   :
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355 #include <ctype.h>
9356 #if ((' ' & 0x0FF) == 0x020)
9357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9359 #else
9360 # define ISLOWER(c) \
9361                    (('a' <= (c) && (c) <= 'i') \
9362                      || ('j' <= (c) && (c) <= 'r') \
9363                      || ('s' <= (c) && (c) <= 'z'))
9364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9365 #endif
9366
9367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9368 int
9369 main ()
9370 {
9371   int i;
9372   for (i = 0; i < 256; i++)
9373     if (XOR (islower (i), ISLOWER (i))
9374         || toupper (i) != TOUPPER (i))
9375       exit(2);
9376   exit (0);
9377 }
9378 _ACEOF
9379 rm -f conftest$ac_exeext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381   (eval $ac_link) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386   (eval $ac_try) 2>&5
9387   ac_status=$?
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); }; }; then
9390   :
9391 else
9392   echo "$as_me: program exited with status $ac_status" >&5
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ( exit $ac_status )
9397 ac_cv_header_stdc=no
9398 fi
9399 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9400 fi
9401 fi
9402 fi
9403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9405 if test $ac_cv_header_stdc = yes; then
9406
9407 cat >>confdefs.h <<\_ACEOF
9408 #define STDC_HEADERS 1
9409 _ACEOF
9410
9411 fi
9412
9413 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9414 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9415 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418   cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 /* confdefs.h.  */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h.  */
9425 #include <sys/types.h>
9426 int
9427 main ()
9428 {
9429 return makedev(0, 0);
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436   (eval $ac_link) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } &&
9440          { ac_try='test -s conftest$ac_exeext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   ac_cv_header_sys_types_h_makedev=yes
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ac_cv_header_sys_types_h_makedev=no
9452 fi
9453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9454
9455 fi
9456 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9457 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9458
9459 if test $ac_cv_header_sys_types_h_makedev = no; then
9460 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9461   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9462 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9463 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 fi
9466 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9467 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9468 else
9469   # Is the header compilable?
9470 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9471 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9473 #line $LINENO "configure"
9474 /* confdefs.h.  */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h.  */
9479 $ac_includes_default
9480 #include <sys/mkdev.h>
9481 _ACEOF
9482 rm -f conftest.$ac_objext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9484   (eval $ac_compile) 2>&5
9485   ac_status=$?
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -s conftest.$ac_objext'
9489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; }; then
9494   ac_header_compiler=yes
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 ac_header_compiler=no
9500 fi
9501 rm -f conftest.$ac_objext conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9503 echo "${ECHO_T}$ac_header_compiler" >&6
9504
9505 # Is the header present?
9506 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9507 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515 #include <sys/mkdev.h>
9516 _ACEOF
9517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9519   ac_status=$?
9520   grep -v '^ *+' conftest.er1 >conftest.err
9521   rm -f conftest.er1
9522   cat conftest.err >&5
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); } >/dev/null; then
9525   if test -s conftest.err; then
9526     ac_cpp_err=$ac_c_preproc_warn_flag
9527   else
9528     ac_cpp_err=
9529   fi
9530 else
9531   ac_cpp_err=yes
9532 fi
9533 if test -z "$ac_cpp_err"; then
9534   ac_header_preproc=yes
9535 else
9536   echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9538
9539   ac_header_preproc=no
9540 fi
9541 rm -f conftest.err conftest.$ac_ext
9542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543 echo "${ECHO_T}$ac_header_preproc" >&6
9544
9545 # So?  What about this header?
9546 case $ac_header_compiler:$ac_header_preproc in
9547   yes:no )
9548     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9549 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9551 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9552     (
9553       cat <<\_ASBOX
9554 ## ------------------------------------ ##
9555 ## Report this to bug-autoconf@gnu.org. ##
9556 ## ------------------------------------ ##
9557 _ASBOX
9558     ) |
9559       sed "s/^/$as_me: WARNING:     /" >&2
9560     ;;
9561   no:yes )
9562     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9563 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9564     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9565 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9566     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9567 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9568     (
9569       cat <<\_ASBOX
9570 ## ------------------------------------ ##
9571 ## Report this to bug-autoconf@gnu.org. ##
9572 ## ------------------------------------ ##
9573 _ASBOX
9574     ) |
9575       sed "s/^/$as_me: WARNING:     /" >&2
9576     ;;
9577 esac
9578 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9579 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9580 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9584 fi
9585 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9586 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9587
9588 fi
9589 if test $ac_cv_header_sys_mkdev_h = yes; then
9590
9591 cat >>confdefs.h <<\_ACEOF
9592 #define MAJOR_IN_MKDEV 1
9593 _ACEOF
9594
9595 fi
9596
9597
9598
9599   if test $ac_cv_header_sys_mkdev_h = no; then
9600     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9601   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9602 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9603 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 fi
9606 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9607 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9608 else
9609   # Is the header compilable?
9610 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9611 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 $ac_includes_default
9620 #include <sys/sysmacros.h>
9621 _ACEOF
9622 rm -f conftest.$ac_objext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624   (eval $ac_compile) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -s conftest.$ac_objext'
9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630   (eval $ac_try) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; }; then
9634   ac_header_compiler=yes
9635 else
9636   echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 ac_header_compiler=no
9640 fi
9641 rm -f conftest.$ac_objext conftest.$ac_ext
9642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9643 echo "${ECHO_T}$ac_header_compiler" >&6
9644
9645 # Is the header present?
9646 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9647 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9649 #line $LINENO "configure"
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655 #include <sys/sysmacros.h>
9656 _ACEOF
9657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } >/dev/null; then
9665   if test -s conftest.err; then
9666     ac_cpp_err=$ac_c_preproc_warn_flag
9667   else
9668     ac_cpp_err=
9669   fi
9670 else
9671   ac_cpp_err=yes
9672 fi
9673 if test -z "$ac_cpp_err"; then
9674   ac_header_preproc=yes
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679   ac_header_preproc=no
9680 fi
9681 rm -f conftest.err conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9683 echo "${ECHO_T}$ac_header_preproc" >&6
9684
9685 # So?  What about this header?
9686 case $ac_header_compiler:$ac_header_preproc in
9687   yes:no )
9688     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9689 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9690     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9691 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9692     (
9693       cat <<\_ASBOX
9694 ## ------------------------------------ ##
9695 ## Report this to bug-autoconf@gnu.org. ##
9696 ## ------------------------------------ ##
9697 _ASBOX
9698     ) |
9699       sed "s/^/$as_me: WARNING:     /" >&2
9700     ;;
9701   no:yes )
9702     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9703 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9704     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9705 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9706     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9707 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9708     (
9709       cat <<\_ASBOX
9710 ## ------------------------------------ ##
9711 ## Report this to bug-autoconf@gnu.org. ##
9712 ## ------------------------------------ ##
9713 _ASBOX
9714     ) |
9715       sed "s/^/$as_me: WARNING:     /" >&2
9716     ;;
9717 esac
9718 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9719 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9720 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9724 fi
9725 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9726 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9727
9728 fi
9729 if test $ac_cv_header_sys_sysmacros_h = yes; then
9730
9731 cat >>confdefs.h <<\_ACEOF
9732 #define MAJOR_IN_SYSMACROS 1
9733 _ACEOF
9734
9735 fi
9736
9737
9738   fi
9739 fi
9740
9741
9742
9743
9744
9745
9746 ac_header_dirent=no
9747 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9748   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9749 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9750 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   cat >conftest.$ac_ext <<_ACEOF
9755 #line $LINENO "configure"
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761 #include <sys/types.h>
9762 #include <$ac_hdr>
9763
9764 int
9765 main ()
9766 {
9767 if ((DIR *) 0)
9768 return 0;
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9775   (eval $ac_compile) 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -s conftest.$ac_objext'
9780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781   (eval $ac_try) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; }; then
9785   eval "$as_ac_Header=yes"
9786 else
9787   echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9789
9790 eval "$as_ac_Header=no"
9791 fi
9792 rm -f conftest.$ac_objext conftest.$ac_ext
9793 fi
9794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9797   cat >>confdefs.h <<_ACEOF
9798 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9799 _ACEOF
9800
9801 ac_header_dirent=$ac_hdr; break
9802 fi
9803
9804 done
9805 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9806 if test $ac_header_dirent = dirent.h; then
9807   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9809 if test "${ac_cv_search_opendir+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   ac_func_search_save_LIBS=$LIBS
9813 ac_cv_search_opendir=no
9814 cat >conftest.$ac_ext <<_ACEOF
9815 #line $LINENO "configure"
9816 /* confdefs.h.  */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h.  */
9821
9822 /* Override any gcc2 internal prototype to avoid an error.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827    builtin and then its argument prototype would still apply.  */
9828 char opendir ();
9829 int
9830 main ()
9831 {
9832 opendir ();
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } &&
9843          { ac_try='test -s conftest$ac_exeext'
9844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845   (eval $ac_try) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); }; }; then
9849   ac_cv_search_opendir="none required"
9850 else
9851   echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 fi
9855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9856 if test "$ac_cv_search_opendir" = no; then
9857   for ac_lib in dir; do
9858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9859     cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866
9867 /* Override any gcc2 internal prototype to avoid an error.  */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 /* We use char because int might match the return type of a gcc2
9872    builtin and then its argument prototype would still apply.  */
9873 char opendir ();
9874 int
9875 main ()
9876 {
9877 opendir ();
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884   (eval $ac_link) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } &&
9888          { ac_try='test -s conftest$ac_exeext'
9889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890   (eval $ac_try) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894   ac_cv_search_opendir="-l$ac_lib"
9895 break
9896 else
9897   echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900 fi
9901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9902   done
9903 fi
9904 LIBS=$ac_func_search_save_LIBS
9905 fi
9906 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9907 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9908 if test "$ac_cv_search_opendir" != no; then
9909   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9910
9911 fi
9912
9913 else
9914   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9915 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9916 if test "${ac_cv_search_opendir+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   ac_func_search_save_LIBS=$LIBS
9920 ac_cv_search_opendir=no
9921 cat >conftest.$ac_ext <<_ACEOF
9922 #line $LINENO "configure"
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928
9929 /* Override any gcc2 internal prototype to avoid an error.  */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 /* We use char because int might match the return type of a gcc2
9934    builtin and then its argument prototype would still apply.  */
9935 char opendir ();
9936 int
9937 main ()
9938 {
9939 opendir ();
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946   (eval $ac_link) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -s conftest$ac_exeext'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; }; then
9956   ac_cv_search_opendir="none required"
9957 else
9958   echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 fi
9962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9963 if test "$ac_cv_search_opendir" = no; then
9964   for ac_lib in x; do
9965     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9966     cat >conftest.$ac_ext <<_ACEOF
9967 #line $LINENO "configure"
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973
9974 /* Override any gcc2 internal prototype to avoid an error.  */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 /* We use char because int might match the return type of a gcc2
9979    builtin and then its argument prototype would still apply.  */
9980 char opendir ();
9981 int
9982 main ()
9983 {
9984 opendir ();
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_search_opendir="-l$ac_lib"
10002 break
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 fi
10008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10009   done
10010 fi
10011 LIBS=$ac_func_search_save_LIBS
10012 fi
10013 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10014 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10015 if test "$ac_cv_search_opendir" != no; then
10016   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10017
10018 fi
10019
10020 fi
10021
10022 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10023 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10024 if test "${ac_cv_header_stat_broken+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 /* confdefs.h.  */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h.  */
10034 #include <sys/types.h>
10035 #include <sys/stat.h>
10036
10037 #if defined(S_ISBLK) && defined(S_IFDIR)
10038 # if S_ISBLK (S_IFDIR)
10039 You lose.
10040 # endif
10041 #endif
10042
10043 #if defined(S_ISBLK) && defined(S_IFCHR)
10044 # if S_ISBLK (S_IFCHR)
10045 You lose.
10046 # endif
10047 #endif
10048
10049 #if defined(S_ISLNK) && defined(S_IFREG)
10050 # if S_ISLNK (S_IFREG)
10051 You lose.
10052 # endif
10053 #endif
10054
10055 #if defined(S_ISSOCK) && defined(S_IFREG)
10056 # if S_ISSOCK (S_IFREG)
10057 You lose.
10058 # endif
10059 #endif
10060
10061 _ACEOF
10062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10063   $EGREP "You lose" >/dev/null 2>&1; then
10064   ac_cv_header_stat_broken=yes
10065 else
10066   ac_cv_header_stat_broken=no
10067 fi
10068 rm -f conftest*
10069
10070 fi
10071 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10072 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10073 if test $ac_cv_header_stat_broken = yes; then
10074
10075 cat >>confdefs.h <<\_ACEOF
10076 #define STAT_MACROS_BROKEN 1
10077 _ACEOF
10078
10079 fi
10080
10081 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10082 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10083 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   cat >conftest.$ac_ext <<_ACEOF
10087 #line $LINENO "configure"
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093 #include <sys/types.h>
10094 #include <sys/wait.h>
10095 #ifndef WEXITSTATUS
10096 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10097 #endif
10098 #ifndef WIFEXITED
10099 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10100 #endif
10101
10102 int
10103 main ()
10104 {
10105   int s;
10106   wait (&s);
10107   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114   (eval $ac_compile) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -s conftest.$ac_objext'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; }; then
10124   ac_cv_header_sys_wait_h=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 ac_cv_header_sys_wait_h=no
10130 fi
10131 rm -f conftest.$ac_objext conftest.$ac_ext
10132 fi
10133 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10134 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10135 if test $ac_cv_header_sys_wait_h = yes; then
10136
10137 cat >>confdefs.h <<\_ACEOF
10138 #define HAVE_SYS_WAIT_H 1
10139 _ACEOF
10140
10141 fi
10142
10143 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10144 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10145 if test "${ac_cv_header_time+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155 #include <sys/types.h>
10156 #include <sys/time.h>
10157 #include <time.h>
10158
10159 int
10160 main ()
10161 {
10162 if ((struct tm *) 0)
10163 return 0;
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170   (eval $ac_compile) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -s conftest.$ac_objext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_header_time=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ac_cv_header_time=no
10186 fi
10187 rm -f conftest.$ac_objext conftest.$ac_ext
10188 fi
10189 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10190 echo "${ECHO_T}$ac_cv_header_time" >&6
10191 if test $ac_cv_header_time = yes; then
10192
10193 cat >>confdefs.h <<\_ACEOF
10194 #define TIME_WITH_SYS_TIME 1
10195 _ACEOF
10196
10197 fi
10198
10199
10200 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10201 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10202 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10207 /* confdefs.h.  */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h.  */
10212 $ac_includes_default
10213 int
10214 main ()
10215 {
10216 static struct stat ac_aggr;
10217 if (ac_aggr.st_blksize)
10218 return 0;
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225   (eval $ac_compile) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); } &&
10229          { ac_try='test -s conftest.$ac_objext'
10230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231   (eval $ac_try) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; }; then
10235   ac_cv_member_struct_stat_st_blksize=yes
10236 else
10237   echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 cat >conftest.$ac_ext <<_ACEOF
10241 #line $LINENO "configure"
10242 /* confdefs.h.  */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h.  */
10247 $ac_includes_default
10248 int
10249 main ()
10250 {
10251 static struct stat ac_aggr;
10252 if (sizeof ac_aggr.st_blksize)
10253 return 0;
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260   (eval $ac_compile) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } &&
10264          { ac_try='test -s conftest.$ac_objext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_cv_member_struct_stat_st_blksize=yes
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_cv_member_struct_stat_st_blksize=no
10276 fi
10277 rm -f conftest.$ac_objext conftest.$ac_ext
10278 fi
10279 rm -f conftest.$ac_objext conftest.$ac_ext
10280 fi
10281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10283 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10284
10285 cat >>confdefs.h <<_ACEOF
10286 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10287 _ACEOF
10288
10289
10290 cat >>confdefs.h <<\_ACEOF
10291 #define HAVE_ST_BLKSIZE 1
10292 _ACEOF
10293
10294 fi
10295
10296
10297 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10298 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10299 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309 $ac_includes_default
10310 int
10311 main ()
10312 {
10313 static struct stat ac_aggr;
10314 if (ac_aggr.st_blocks)
10315 return 0;
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322   (eval $ac_compile) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); } &&
10326          { ac_try='test -s conftest.$ac_objext'
10327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328   (eval $ac_try) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); }; }; then
10332   ac_cv_member_struct_stat_st_blocks=yes
10333 else
10334   echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344 $ac_includes_default
10345 int
10346 main ()
10347 {
10348 static struct stat ac_aggr;
10349 if (sizeof ac_aggr.st_blocks)
10350 return 0;
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -s conftest.$ac_objext'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; }; then
10367   ac_cv_member_struct_stat_st_blocks=yes
10368 else
10369   echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 ac_cv_member_struct_stat_st_blocks=no
10373 fi
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 rm -f conftest.$ac_objext conftest.$ac_ext
10377 fi
10378 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10379 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10380 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10381
10382 cat >>confdefs.h <<_ACEOF
10383 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10384 _ACEOF
10385
10386
10387 cat >>confdefs.h <<\_ACEOF
10388 #define HAVE_ST_BLOCKS 1
10389 _ACEOF
10390
10391 else
10392   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10393 fi
10394
10395
10396 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10397 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10398 if test "${ac_cv_struct_tm+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   cat >conftest.$ac_ext <<_ACEOF
10402 #line $LINENO "configure"
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408 #include <sys/types.h>
10409 #include <time.h>
10410
10411 int
10412 main ()
10413 {
10414 struct tm *tp; tp->tm_sec;
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421   (eval $ac_compile) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -s conftest.$ac_objext'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; }; then
10431   ac_cv_struct_tm=time.h
10432 else
10433   echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 ac_cv_struct_tm=sys/time.h
10437 fi
10438 rm -f conftest.$ac_objext conftest.$ac_ext
10439 fi
10440 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10441 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10442 if test $ac_cv_struct_tm = sys/time.h; then
10443
10444 cat >>confdefs.h <<\_ACEOF
10445 #define TM_IN_SYS_TIME 1
10446 _ACEOF
10447
10448 fi
10449
10450 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10451 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10452 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455   cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 /* confdefs.h.  */
10458 _ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h.  */
10462 #include <sys/types.h>
10463 #include <$ac_cv_struct_tm>
10464
10465
10466 int
10467 main ()
10468 {
10469 static struct tm ac_aggr;
10470 if (ac_aggr.tm_zone)
10471 return 0;
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478   (eval $ac_compile) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -s conftest.$ac_objext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   ac_cv_member_struct_tm_tm_zone=yes
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 cat >conftest.$ac_ext <<_ACEOF
10494 #line $LINENO "configure"
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500 #include <sys/types.h>
10501 #include <$ac_cv_struct_tm>
10502
10503
10504 int
10505 main ()
10506 {
10507 static struct tm ac_aggr;
10508 if (sizeof ac_aggr.tm_zone)
10509 return 0;
10510   ;
10511   return 0;
10512 }
10513 _ACEOF
10514 rm -f conftest.$ac_objext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10516   (eval $ac_compile) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } &&
10520          { ac_try='test -s conftest.$ac_objext'
10521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522   (eval $ac_try) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }; }; then
10526   ac_cv_member_struct_tm_tm_zone=yes
10527 else
10528   echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10530
10531 ac_cv_member_struct_tm_tm_zone=no
10532 fi
10533 rm -f conftest.$ac_objext conftest.$ac_ext
10534 fi
10535 rm -f conftest.$ac_objext conftest.$ac_ext
10536 fi
10537 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10538 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10539 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10540
10541 cat >>confdefs.h <<_ACEOF
10542 #define HAVE_STRUCT_TM_TM_ZONE 1
10543 _ACEOF
10544
10545
10546 fi
10547
10548 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10549
10550 cat >>confdefs.h <<\_ACEOF
10551 #define HAVE_TM_ZONE 1
10552 _ACEOF
10553
10554 else
10555   echo "$as_me:$LINENO: checking for tzname" >&5
10556 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10557 if test "${ac_cv_var_tzname+set}" = set; then
10558   echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560   cat >conftest.$ac_ext <<_ACEOF
10561 #line $LINENO "configure"
10562 /* confdefs.h.  */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h.  */
10567 #include <time.h>
10568 #ifndef tzname /* For SGI.  */
10569 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10570 #endif
10571
10572 int
10573 main ()
10574 {
10575 atoi(*tzname);
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582   (eval $ac_link) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -s conftest$ac_exeext'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; }; then
10592   ac_cv_var_tzname=yes
10593 else
10594   echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 ac_cv_var_tzname=no
10598 fi
10599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10600 fi
10601 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10602 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10603   if test $ac_cv_var_tzname = yes; then
10604
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_TZNAME 1
10607 _ACEOF
10608
10609   fi
10610 fi
10611
10612
10613 echo "$as_me:$LINENO: checking for utime.h" >&5
10614 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10615 if test "${ba_cv_header_utime_h+set}" = set; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   cat >conftest.$ac_ext <<_ACEOF
10619 #line $LINENO "configure"
10620 /* confdefs.h.  */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h.  */
10625
10626 #include <sys/types.h>
10627 #include <utime.h>
10628 int
10629 main ()
10630 {
10631 struct utimbuf foo
10632   ;
10633   return 0;
10634 }
10635 _ACEOF
10636 rm -f conftest.$ac_objext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638   (eval $ac_compile) 2>&5
10639   ac_status=$?
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -s conftest.$ac_objext'
10643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644   (eval $ac_try) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; }; then
10648   ba_cv_header_utime_h=yes
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 ba_cv_header_utime_h=no
10654 fi
10655 rm -f conftest.$ac_objext conftest.$ac_ext
10656 fi
10657 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10658 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10659 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_UTIME_H 1
10661 _ACEOF
10662
10663
10664 echo "$as_me:$LINENO: checking for socklen_t" >&5
10665 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10666 if test "${ba_cv_header_socklen_t+set}" = set; then
10667   echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669   cat >conftest.$ac_ext <<_ACEOF
10670 #line $LINENO "configure"
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676
10677 #include <sys/types.h>
10678 #include <sys/socket.h>
10679 int
10680 main ()
10681 {
10682 socklen_t x
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689   (eval $ac_compile) 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } &&
10693          { ac_try='test -s conftest.$ac_objext'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   ba_cv_header_socklen_t=yes
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704 ba_cv_header_socklen_t=no
10705 fi
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10707 fi
10708 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10709 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10710 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10711 #define HAVE_SOCKLEN_T 1
10712 _ACEOF
10713
10714
10715 echo "$as_me:$LINENO: checking for bigendian" >&5
10716 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10717 if test "${ba_cv_bigendian+set}" = set; then
10718   echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720   if test "$cross_compiling" = yes; then
10721   ba_cv_bigendian=no
10722 else
10723   cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10725 /* confdefs.h.  */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h.  */
10730 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10731 _ACEOF
10732 rm -f conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734   (eval $ac_link) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739   (eval $ac_try) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; }; then
10743   ba_cv_bigendian=yes
10744 else
10745   echo "$as_me: program exited with status $ac_status" >&5
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 ( exit $ac_status )
10750 ba_cv_bigendian=no
10751 fi
10752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10753 fi
10754 fi
10755 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10756 echo "${ECHO_T}$ba_cv_bigendian" >&6
10757 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_BIGENDIAN 1
10759 _ACEOF
10760
10761
10762
10763 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10765 if test "${ac_cv_c_const+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   cat >conftest.$ac_ext <<_ACEOF
10769 #line $LINENO "configure"
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775
10776 int
10777 main ()
10778 {
10779 /* FIXME: Include the comments suggested by Paul. */
10780 #ifndef __cplusplus
10781   /* Ultrix mips cc rejects this.  */
10782   typedef int charset[2];
10783   const charset x;
10784   /* SunOS 4.1.1 cc rejects this.  */
10785   char const *const *ccp;
10786   char **p;
10787   /* NEC SVR4.0.2 mips cc rejects this.  */
10788   struct point {int x, y;};
10789   static struct point const zero = {0,0};
10790   /* AIX XL C 1.02.0.0 rejects this.
10791      It does not let you subtract one const X* pointer from another in
10792      an arm of an if-expression whose if-part is not a constant
10793      expression */
10794   const char *g = "string";
10795   ccp = &g + (g ? g-g : 0);
10796   /* HPUX 7.0 cc rejects these. */
10797   ++ccp;
10798   p = (char**) ccp;
10799   ccp = (char const *const *) p;
10800   { /* SCO 3.2v4 cc rejects this.  */
10801     char *t;
10802     char const *s = 0 ? (char *) 0 : (char const *) 0;
10803
10804     *t++ = 0;
10805   }
10806   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10807     int x[] = {25, 17};
10808     const int *foo = &x[0];
10809     ++foo;
10810   }
10811   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10812     typedef const int *iptr;
10813     iptr p = 0;
10814     ++p;
10815   }
10816   { /* AIX XL C 1.02.0.0 rejects this saying
10817        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10818     struct s { int j; const int *ap[3]; };
10819     struct s *b; b->j = 5;
10820   }
10821   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10822     const int foo = 10;
10823   }
10824 #endif
10825
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832   (eval $ac_compile) 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } &&
10836          { ac_try='test -s conftest.$ac_objext'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; }; then
10842   ac_cv_c_const=yes
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_c_const=no
10848 fi
10849 rm -f conftest.$ac_objext conftest.$ac_ext
10850 fi
10851 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10852 echo "${ECHO_T}$ac_cv_c_const" >&6
10853 if test $ac_cv_c_const = no; then
10854
10855 cat >>confdefs.h <<\_ACEOF
10856 #define const
10857 _ACEOF
10858
10859 fi
10860
10861
10862
10863 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10864 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10865 fstype=no
10866 # The order of these tests is important.
10867 cat >conftest.$ac_ext <<_ACEOF
10868 #line $LINENO "configure"
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 #include <sys/statvfs.h>
10875 #include <sys/fstyp.h>
10876 _ACEOF
10877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } >/dev/null; then
10885   if test -s conftest.err; then
10886     ac_cpp_err=$ac_c_preproc_warn_flag
10887   else
10888     ac_cpp_err=
10889   fi
10890 else
10891   ac_cpp_err=yes
10892 fi
10893 if test -z "$ac_cpp_err"; then
10894   cat >>confdefs.h <<\_ACEOF
10895 #define FSTYPE_STATVFS 1
10896 _ACEOF
10897  fstype=SVR4
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902
10903 fi
10904 rm -f conftest.err conftest.$ac_ext
10905 if test $fstype = no; then
10906 cat >conftest.$ac_ext <<_ACEOF
10907 #line $LINENO "configure"
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <sys/statfs.h>
10914 #include <sys/fstyp.h>
10915 _ACEOF
10916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10918   ac_status=$?
10919   grep -v '^ *+' conftest.er1 >conftest.err
10920   rm -f conftest.er1
10921   cat conftest.err >&5
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); } >/dev/null; then
10924   if test -s conftest.err; then
10925     ac_cpp_err=$ac_c_preproc_warn_flag
10926   else
10927     ac_cpp_err=
10928   fi
10929 else
10930   ac_cpp_err=yes
10931 fi
10932 if test -z "$ac_cpp_err"; then
10933   cat >>confdefs.h <<\_ACEOF
10934 #define FSTYPE_USG_STATFS 1
10935 _ACEOF
10936  fstype=SVR3
10937 else
10938   echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10940
10941
10942 fi
10943 rm -f conftest.err conftest.$ac_ext
10944 fi
10945 if test $fstype = no; then
10946 cat >conftest.$ac_ext <<_ACEOF
10947 #line $LINENO "configure"
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953 #include <sys/statfs.h>
10954 #include <sys/vmount.h>
10955 _ACEOF
10956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10958   ac_status=$?
10959   grep -v '^ *+' conftest.er1 >conftest.err
10960   rm -f conftest.er1
10961   cat conftest.err >&5
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } >/dev/null; then
10964   if test -s conftest.err; then
10965     ac_cpp_err=$ac_c_preproc_warn_flag
10966   else
10967     ac_cpp_err=
10968   fi
10969 else
10970   ac_cpp_err=yes
10971 fi
10972 if test -z "$ac_cpp_err"; then
10973   cat >>confdefs.h <<\_ACEOF
10974 #define FSTYPE_AIX_STATFS 1
10975 _ACEOF
10976  fstype=AIX
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981
10982 fi
10983 rm -f conftest.err conftest.$ac_ext
10984 fi
10985 if test $fstype = no; then
10986 cat >conftest.$ac_ext <<_ACEOF
10987 #line $LINENO "configure"
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993 #include <mntent.h>
10994 _ACEOF
10995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } >/dev/null; then
11003   if test -s conftest.err; then
11004     ac_cpp_err=$ac_c_preproc_warn_flag
11005   else
11006     ac_cpp_err=
11007   fi
11008 else
11009   ac_cpp_err=yes
11010 fi
11011 if test -z "$ac_cpp_err"; then
11012   cat >>confdefs.h <<\_ACEOF
11013 #define FSTYPE_MNTENT 1
11014 _ACEOF
11015  fstype=4.3BSD
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020
11021 fi
11022 rm -f conftest.err conftest.$ac_ext
11023 fi
11024 if test $fstype = no; then
11025 cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 #include <sys/mount.h>
11033
11034 _ACEOF
11035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11036   $EGREP "f_type;" >/dev/null 2>&1; then
11037   cat >>confdefs.h <<\_ACEOF
11038 #define FSTYPE_STATFS 1
11039 _ACEOF
11040  fstype=4.4BSD/OSF1
11041 fi
11042 rm -f conftest*
11043
11044 fi
11045 if test $fstype = no; then
11046 cat >conftest.$ac_ext <<_ACEOF
11047 #line $LINENO "configure"
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053 #include <sys/mount.h>
11054 #include <sys/fs_types.h>
11055 _ACEOF
11056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } >/dev/null; then
11064   if test -s conftest.err; then
11065     ac_cpp_err=$ac_c_preproc_warn_flag
11066   else
11067     ac_cpp_err=
11068   fi
11069 else
11070   ac_cpp_err=yes
11071 fi
11072 if test -z "$ac_cpp_err"; then
11073   cat >>confdefs.h <<\_ACEOF
11074 #define FSTYPE_GETMNT 1
11075 _ACEOF
11076  fstype=Ultrix
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081
11082 fi
11083 rm -f conftest.err conftest.$ac_ext
11084 fi
11085 echo "$as_me:$LINENO: result: $fstype" >&5
11086 echo "${ECHO_T}$fstype" >&6
11087
11088 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11089 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11090 if test "${ac_cv_type_signal+set}" = set; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   cat >conftest.$ac_ext <<_ACEOF
11094 #line $LINENO "configure"
11095 /* confdefs.h.  */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h.  */
11100 #include <sys/types.h>
11101 #include <signal.h>
11102 #ifdef signal
11103 # undef signal
11104 #endif
11105 #ifdef __cplusplus
11106 extern "C" void (*signal (int, void (*)(int)))(int);
11107 #else
11108 void (*signal ()) ();
11109 #endif
11110
11111 int
11112 main ()
11113 {
11114 int i;
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121   (eval $ac_compile) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } &&
11125          { ac_try='test -s conftest.$ac_objext'
11126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127   (eval $ac_try) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; }; then
11131   ac_cv_type_signal=void
11132 else
11133   echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 ac_cv_type_signal=int
11137 fi
11138 rm -f conftest.$ac_objext conftest.$ac_ext
11139 fi
11140 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11141 echo "${ECHO_T}$ac_cv_type_signal" >&6
11142
11143 cat >>confdefs.h <<_ACEOF
11144 #define RETSIGTYPE $ac_cv_type_signal
11145 _ACEOF
11146
11147
11148
11149 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11150 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11151 if test "${bash_cv_signal_vintage+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154
11155   cat >conftest.$ac_ext <<_ACEOF
11156 #line $LINENO "configure"
11157 /* confdefs.h.  */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h.  */
11162 #include <signal.h>
11163 int
11164 main ()
11165 {
11166
11167     sigset_t ss;
11168     struct sigaction sa;
11169     sigemptyset(&ss); sigsuspend(&ss);
11170     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11171     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11172
11173   ;
11174   return 0;
11175 }
11176 _ACEOF
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179   (eval $ac_link) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } &&
11183          { ac_try='test -s conftest$ac_exeext'
11184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185   (eval $ac_try) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   bash_cv_signal_vintage=posix
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194
11195     cat >conftest.$ac_ext <<_ACEOF
11196 #line $LINENO "configure"
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 #include <signal.h>
11203 int
11204 main ()
11205 {
11206
11207         int mask = sigmask(SIGINT);
11208         sigsetmask(mask); sigblock(mask); sigpause(mask);
11209
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   bash_cv_signal_vintage=4.2bsd
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231
11232       cat >conftest.$ac_ext <<_ACEOF
11233 #line $LINENO "configure"
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239
11240         #include <signal.h>
11241         RETSIGTYPE foo() { }
11242 int
11243 main ()
11244 {
11245
11246                 int mask = sigmask(SIGINT);
11247                 sigset(SIGINT, foo); sigrelse(SIGINT);
11248                 sighold(SIGINT); sigpause(SIGINT);
11249
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256   (eval $ac_link) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); } &&
11260          { ac_try='test -s conftest$ac_exeext'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; }; then
11266   bash_cv_signal_vintage=svr3
11267 else
11268   echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 bash_cv_signal_vintage=v7
11272
11273 fi
11274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11275
11276 fi
11277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11278
11279 fi
11280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11281
11282 fi
11283
11284 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11285 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11286 if test "$bash_cv_signal_vintage" = posix; then
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_POSIX_SIGNALS 1
11289 _ACEOF
11290
11291 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_BSD_SIGNALS 1
11294 _ACEOF
11295
11296 elif test "$bash_cv_signal_vintage" = svr3; then
11297 cat >>confdefs.h <<\_ACEOF
11298 #define HAVE_USG_SIGHOLD 1
11299 _ACEOF
11300
11301 fi
11302
11303 echo "$as_me:$LINENO: checking for mode_t" >&5
11304 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11305 if test "${ac_cv_type_mode_t+set}" = set; then
11306   echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308   cat >conftest.$ac_ext <<_ACEOF
11309 #line $LINENO "configure"
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315 $ac_includes_default
11316 int
11317 main ()
11318 {
11319 if ((mode_t *) 0)
11320   return 0;
11321 if (sizeof (mode_t))
11322   return 0;
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329   (eval $ac_compile) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -s conftest.$ac_objext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   ac_cv_type_mode_t=yes
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 ac_cv_type_mode_t=no
11345 fi
11346 rm -f conftest.$ac_objext conftest.$ac_ext
11347 fi
11348 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11349 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11350 if test $ac_cv_type_mode_t = yes; then
11351   :
11352 else
11353
11354 cat >>confdefs.h <<_ACEOF
11355 #define mode_t int
11356 _ACEOF
11357
11358 fi
11359
11360 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11361 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11362 if test "${ac_cv_type_uid_t+set}" = set; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   cat >conftest.$ac_ext <<_ACEOF
11366 #line $LINENO "configure"
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <sys/types.h>
11373
11374 _ACEOF
11375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11376   $EGREP "uid_t" >/dev/null 2>&1; then
11377   ac_cv_type_uid_t=yes
11378 else
11379   ac_cv_type_uid_t=no
11380 fi
11381 rm -f conftest*
11382
11383 fi
11384 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11385 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11386 if test $ac_cv_type_uid_t = no; then
11387
11388 cat >>confdefs.h <<\_ACEOF
11389 #define uid_t int
11390 _ACEOF
11391
11392
11393 cat >>confdefs.h <<\_ACEOF
11394 #define gid_t int
11395 _ACEOF
11396
11397 fi
11398
11399 echo "$as_me:$LINENO: checking for size_t" >&5
11400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11401 if test "${ac_cv_type_size_t+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   cat >conftest.$ac_ext <<_ACEOF
11405 #line $LINENO "configure"
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411 $ac_includes_default
11412 int
11413 main ()
11414 {
11415 if ((size_t *) 0)
11416   return 0;
11417 if (sizeof (size_t))
11418   return 0;
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425   (eval $ac_compile) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); } &&
11429          { ac_try='test -s conftest.$ac_objext'
11430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431   (eval $ac_try) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   ac_cv_type_size_t=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 ac_cv_type_size_t=no
11441 fi
11442 rm -f conftest.$ac_objext conftest.$ac_ext
11443 fi
11444 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11445 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11446 if test $ac_cv_type_size_t = yes; then
11447   :
11448 else
11449
11450 cat >>confdefs.h <<_ACEOF
11451 #define size_t unsigned
11452 _ACEOF
11453
11454 fi
11455
11456 echo "$as_me:$LINENO: checking for pid_t" >&5
11457 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11458 if test "${ac_cv_type_pid_t+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 $ac_includes_default
11469 int
11470 main ()
11471 {
11472 if ((pid_t *) 0)
11473   return 0;
11474 if (sizeof (pid_t))
11475   return 0;
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482   (eval $ac_compile) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -s conftest.$ac_objext'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   ac_cv_type_pid_t=yes
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497 ac_cv_type_pid_t=no
11498 fi
11499 rm -f conftest.$ac_objext conftest.$ac_ext
11500 fi
11501 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11502 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11503 if test $ac_cv_type_pid_t = yes; then
11504   :
11505 else
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define pid_t int
11509 _ACEOF
11510
11511 fi
11512
11513 echo "$as_me:$LINENO: checking for off_t" >&5
11514 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11515 if test "${ac_cv_type_off_t+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525 $ac_includes_default
11526 int
11527 main ()
11528 {
11529 if ((off_t *) 0)
11530   return 0;
11531 if (sizeof (off_t))
11532   return 0;
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539   (eval $ac_compile) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -s conftest.$ac_objext'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; }; then
11549   ac_cv_type_off_t=yes
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 ac_cv_type_off_t=no
11555 fi
11556 rm -f conftest.$ac_objext conftest.$ac_ext
11557 fi
11558 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11559 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11560 if test $ac_cv_type_off_t = yes; then
11561   :
11562 else
11563
11564 cat >>confdefs.h <<_ACEOF
11565 #define off_t long
11566 _ACEOF
11567
11568 fi
11569
11570 echo "$as_me:$LINENO: checking for ino_t" >&5
11571 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11572 if test "${ac_cv_type_ino_t+set}" = set; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 $ac_includes_default
11583 int
11584 main ()
11585 {
11586 if ((ino_t *) 0)
11587   return 0;
11588 if (sizeof (ino_t))
11589   return 0;
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11596   (eval $ac_compile) 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } &&
11600          { ac_try='test -s conftest.$ac_objext'
11601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602   (eval $ac_try) 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); }; }; then
11606   ac_cv_type_ino_t=yes
11607 else
11608   echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11610
11611 ac_cv_type_ino_t=no
11612 fi
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11614 fi
11615 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11616 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11617 if test $ac_cv_type_ino_t = yes; then
11618   :
11619 else
11620
11621 cat >>confdefs.h <<_ACEOF
11622 #define ino_t unsigned long
11623 _ACEOF
11624
11625 fi
11626
11627 echo "$as_me:$LINENO: checking for dev_t" >&5
11628 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11629 if test "${ac_cv_type_dev_t+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11634 /* confdefs.h.  */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h.  */
11639 $ac_includes_default
11640 int
11641 main ()
11642 {
11643 if ((dev_t *) 0)
11644   return 0;
11645 if (sizeof (dev_t))
11646   return 0;
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653   (eval $ac_compile) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -s conftest.$ac_objext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   ac_cv_type_dev_t=yes
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_cv_type_dev_t=no
11669 fi
11670 rm -f conftest.$ac_objext conftest.$ac_ext
11671 fi
11672 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11674 if test $ac_cv_type_dev_t = yes; then
11675   :
11676 else
11677
11678 cat >>confdefs.h <<_ACEOF
11679 #define dev_t unsigned long
11680 _ACEOF
11681
11682 fi
11683
11684 echo "$as_me:$LINENO: checking for daddr_t" >&5
11685 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11686 if test "${ac_cv_type_daddr_t+set}" = set; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 #line $LINENO "configure"
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 $ac_includes_default
11697 int
11698 main ()
11699 {
11700 if ((daddr_t *) 0)
11701   return 0;
11702 if (sizeof (daddr_t))
11703   return 0;
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710   (eval $ac_compile) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); } &&
11714          { ac_try='test -s conftest.$ac_objext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   ac_cv_type_daddr_t=yes
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ac_cv_type_daddr_t=no
11726 fi
11727 rm -f conftest.$ac_objext conftest.$ac_ext
11728 fi
11729 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11730 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11731 if test $ac_cv_type_daddr_t = yes; then
11732   :
11733 else
11734
11735 cat >>confdefs.h <<_ACEOF
11736 #define daddr_t long
11737 _ACEOF
11738
11739 fi
11740
11741 echo "$as_me:$LINENO: checking for major_t" >&5
11742 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11743 if test "${ac_cv_type_major_t+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 $ac_includes_default
11754 int
11755 main ()
11756 {
11757 if ((major_t *) 0)
11758   return 0;
11759 if (sizeof (major_t))
11760   return 0;
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767   (eval $ac_compile) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -s conftest.$ac_objext'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; }; then
11777   ac_cv_type_major_t=yes
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782 ac_cv_type_major_t=no
11783 fi
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11785 fi
11786 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11787 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11788 if test $ac_cv_type_major_t = yes; then
11789   :
11790 else
11791
11792 cat >>confdefs.h <<_ACEOF
11793 #define major_t int
11794 _ACEOF
11795
11796 fi
11797
11798 echo "$as_me:$LINENO: checking for minor_t" >&5
11799 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11800 if test "${ac_cv_type_minor_t+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 $ac_includes_default
11811 int
11812 main ()
11813 {
11814 if ((minor_t *) 0)
11815   return 0;
11816 if (sizeof (minor_t))
11817   return 0;
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824   (eval $ac_compile) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -s conftest.$ac_objext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   ac_cv_type_minor_t=yes
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_type_minor_t=no
11840 fi
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11842 fi
11843 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11844 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11845 if test $ac_cv_type_minor_t = yes; then
11846   :
11847 else
11848
11849 cat >>confdefs.h <<_ACEOF
11850 #define minor_t int
11851 _ACEOF
11852
11853 fi
11854
11855 echo "$as_me:$LINENO: checking for ssize_t" >&5
11856 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11857 if test "${ac_cv_type_ssize_t+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 $ac_includes_default
11868 int
11869 main ()
11870 {
11871 if ((ssize_t *) 0)
11872   return 0;
11873 if (sizeof (ssize_t))
11874   return 0;
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881   (eval $ac_compile) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -s conftest.$ac_objext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_type_ssize_t=yes
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_type_ssize_t=no
11897 fi
11898 rm -f conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11901 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11902 if test $ac_cv_type_ssize_t = yes; then
11903   :
11904 else
11905
11906 cat >>confdefs.h <<_ACEOF
11907 #define ssize_t int
11908 _ACEOF
11909
11910 fi
11911
11912 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11913 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11914 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   cat >conftest.$ac_ext <<_ACEOF
11918 #line $LINENO "configure"
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 $ac_includes_default
11925 int
11926 main ()
11927 {
11928 static struct stat ac_aggr;
11929 if (ac_aggr.st_blocks)
11930 return 0;
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11937   (eval $ac_compile) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); } &&
11941          { ac_try='test -s conftest.$ac_objext'
11942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943   (eval $ac_try) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; }; then
11947   ac_cv_member_struct_stat_st_blocks=yes
11948 else
11949   echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line $LINENO "configure"
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959 $ac_includes_default
11960 int
11961 main ()
11962 {
11963 static struct stat ac_aggr;
11964 if (sizeof ac_aggr.st_blocks)
11965 return 0;
11966   ;
11967   return 0;
11968 }
11969 _ACEOF
11970 rm -f conftest.$ac_objext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972   (eval $ac_compile) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -s conftest.$ac_objext'
11977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978   (eval $ac_try) 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); }; }; then
11982   ac_cv_member_struct_stat_st_blocks=yes
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 ac_cv_member_struct_stat_st_blocks=no
11988 fi
11989 rm -f conftest.$ac_objext conftest.$ac_ext
11990 fi
11991 rm -f conftest.$ac_objext conftest.$ac_ext
11992 fi
11993 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11994 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11995 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11996
11997 cat >>confdefs.h <<_ACEOF
11998 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11999 _ACEOF
12000
12001
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_ST_BLOCKS 1
12004 _ACEOF
12005
12006 else
12007   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12008 fi
12009
12010
12011
12012 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12013 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12014 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 $ac_includes_default
12025 int
12026 main ()
12027 {
12028 static struct stat ac_aggr;
12029 if (ac_aggr.st_rdev)
12030 return 0;
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037   (eval $ac_compile) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -s conftest.$ac_objext'
12042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043   (eval $ac_try) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_cv_member_struct_stat_st_rdev=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059 $ac_includes_default
12060 int
12061 main ()
12062 {
12063 static struct stat ac_aggr;
12064 if (sizeof ac_aggr.st_rdev)
12065 return 0;
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072   (eval $ac_compile) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -s conftest.$ac_objext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   ac_cv_member_struct_stat_st_rdev=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_cv_member_struct_stat_st_rdev=no
12088 fi
12089 rm -f conftest.$ac_objext conftest.$ac_ext
12090 fi
12091 rm -f conftest.$ac_objext conftest.$ac_ext
12092 fi
12093 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12094 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12095 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12096
12097 cat >>confdefs.h <<_ACEOF
12098 #define HAVE_STRUCT_STAT_ST_RDEV 1
12099 _ACEOF
12100
12101
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_ST_RDEV 1
12104 _ACEOF
12105
12106 fi
12107
12108
12109 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12110 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12111 if test "${ac_cv_struct_tm+set}" = set; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   cat >conftest.$ac_ext <<_ACEOF
12115 #line $LINENO "configure"
12116 /* confdefs.h.  */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h.  */
12121 #include <sys/types.h>
12122 #include <time.h>
12123
12124 int
12125 main ()
12126 {
12127 struct tm *tp; tp->tm_sec;
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134   (eval $ac_compile) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } &&
12138          { ac_try='test -s conftest.$ac_objext'
12139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140   (eval $ac_try) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; }; then
12144   ac_cv_struct_tm=time.h
12145 else
12146   echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ac_cv_struct_tm=sys/time.h
12150 fi
12151 rm -f conftest.$ac_objext conftest.$ac_ext
12152 fi
12153 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12154 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12155 if test $ac_cv_struct_tm = sys/time.h; then
12156
12157 cat >>confdefs.h <<\_ACEOF
12158 #define TM_IN_SYS_TIME 1
12159 _ACEOF
12160
12161 fi
12162
12163 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12164 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12165 if test "${ac_cv_c_const+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   cat >conftest.$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175
12176 int
12177 main ()
12178 {
12179 /* FIXME: Include the comments suggested by Paul. */
12180 #ifndef __cplusplus
12181   /* Ultrix mips cc rejects this.  */
12182   typedef int charset[2];
12183   const charset x;
12184   /* SunOS 4.1.1 cc rejects this.  */
12185   char const *const *ccp;
12186   char **p;
12187   /* NEC SVR4.0.2 mips cc rejects this.  */
12188   struct point {int x, y;};
12189   static struct point const zero = {0,0};
12190   /* AIX XL C 1.02.0.0 rejects this.
12191      It does not let you subtract one const X* pointer from another in
12192      an arm of an if-expression whose if-part is not a constant
12193      expression */
12194   const char *g = "string";
12195   ccp = &g + (g ? g-g : 0);
12196   /* HPUX 7.0 cc rejects these. */
12197   ++ccp;
12198   p = (char**) ccp;
12199   ccp = (char const *const *) p;
12200   { /* SCO 3.2v4 cc rejects this.  */
12201     char *t;
12202     char const *s = 0 ? (char *) 0 : (char const *) 0;
12203
12204     *t++ = 0;
12205   }
12206   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12207     int x[] = {25, 17};
12208     const int *foo = &x[0];
12209     ++foo;
12210   }
12211   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12212     typedef const int *iptr;
12213     iptr p = 0;
12214     ++p;
12215   }
12216   { /* AIX XL C 1.02.0.0 rejects this saying
12217        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12218     struct s { int j; const int *ap[3]; };
12219     struct s *b; b->j = 5;
12220   }
12221   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12222     const int foo = 10;
12223   }
12224 #endif
12225
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232   (eval $ac_compile) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); } &&
12236          { ac_try='test -s conftest.$ac_objext'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; }; then
12242   ac_cv_c_const=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 ac_cv_c_const=no
12248 fi
12249 rm -f conftest.$ac_objext conftest.$ac_ext
12250 fi
12251 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12252 echo "${ECHO_T}$ac_cv_c_const" >&6
12253 if test $ac_cv_c_const = no; then
12254
12255 cat >>confdefs.h <<\_ACEOF
12256 #define const
12257 _ACEOF
12258
12259 fi
12260
12261
12262
12263 echo "$as_me:$LINENO: checking for char" >&5
12264 echo $ECHO_N "checking for char... $ECHO_C" >&6
12265 if test "${ac_cv_type_char+set}" = set; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275 $ac_includes_default
12276 int
12277 main ()
12278 {
12279 if ((char *) 0)
12280   return 0;
12281 if (sizeof (char))
12282   return 0;
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289   (eval $ac_compile) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293          { ac_try='test -s conftest.$ac_objext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   ac_cv_type_char=yes
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_type_char=no
12305 fi
12306 rm -f conftest.$ac_objext conftest.$ac_ext
12307 fi
12308 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12309 echo "${ECHO_T}$ac_cv_type_char" >&6
12310
12311 echo "$as_me:$LINENO: checking size of char" >&5
12312 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12313 if test "${ac_cv_sizeof_char+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   if test "$ac_cv_type_char" = yes; then
12317   # The cast to unsigned long works around a bug in the HP C Compiler
12318   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12319   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12320   # This bug is HP SR number 8606223364.
12321   if test "$cross_compiling" = yes; then
12322   # Depending upon the size, compute the lo and hi bounds.
12323 cat >conftest.$ac_ext <<_ACEOF
12324 #line $LINENO "configure"
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 $ac_includes_default
12331 int
12332 main ()
12333 {
12334 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12335 test_array [0] = 0
12336
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343   (eval $ac_compile) 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } &&
12347          { ac_try='test -s conftest.$ac_objext'
12348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349   (eval $ac_try) 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; }; then
12353   ac_lo=0 ac_mid=0
12354   while :; do
12355     cat >conftest.$ac_ext <<_ACEOF
12356 #line $LINENO "configure"
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362 $ac_includes_default
12363 int
12364 main ()
12365 {
12366 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12367 test_array [0] = 0
12368
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375   (eval $ac_compile) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -s conftest.$ac_objext'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; }; then
12385   ac_hi=$ac_mid; break
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_lo=`expr $ac_mid + 1`
12391                     if test $ac_lo -le $ac_mid; then
12392                       ac_lo= ac_hi=
12393                       break
12394                     fi
12395                     ac_mid=`expr 2 '*' $ac_mid + 1`
12396 fi
12397 rm -f conftest.$ac_objext conftest.$ac_ext
12398   done
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 $ac_includes_default
12411 int
12412 main ()
12413 {
12414 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12415 test_array [0] = 0
12416
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423   (eval $ac_compile) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   ac_hi=-1 ac_mid=-1
12434   while :; do
12435     cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442 $ac_includes_default
12443 int
12444 main ()
12445 {
12446 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12447 test_array [0] = 0
12448
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455   (eval $ac_compile) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); } &&
12459          { ac_try='test -s conftest.$ac_objext'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; }; then
12465   ac_lo=$ac_mid; break
12466 else
12467   echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 ac_hi=`expr '(' $ac_mid ')' - 1`
12471                        if test $ac_mid -le $ac_hi; then
12472                          ac_lo= ac_hi=
12473                          break
12474                        fi
12475                        ac_mid=`expr 2 '*' $ac_mid`
12476 fi
12477 rm -f conftest.$ac_objext conftest.$ac_ext
12478   done
12479 else
12480   echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 ac_lo= ac_hi=
12484 fi
12485 rm -f conftest.$ac_objext conftest.$ac_ext
12486 fi
12487 rm -f conftest.$ac_objext conftest.$ac_ext
12488 # Binary search between lo and hi bounds.
12489 while test "x$ac_lo" != "x$ac_hi"; do
12490   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12491   cat >conftest.$ac_ext <<_ACEOF
12492 #line $LINENO "configure"
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 $ac_includes_default
12499 int
12500 main ()
12501 {
12502 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12503 test_array [0] = 0
12504
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511   (eval $ac_compile) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -s conftest.$ac_objext'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521   ac_hi=$ac_mid
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 ac_lo=`expr '(' $ac_mid ')' + 1`
12527 fi
12528 rm -f conftest.$ac_objext conftest.$ac_ext
12529 done
12530 case $ac_lo in
12531 ?*) ac_cv_sizeof_char=$ac_lo;;
12532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12533 See \`config.log' for more details." >&5
12534 echo "$as_me: error: cannot compute sizeof (char), 77
12535 See \`config.log' for more details." >&2;}
12536    { (exit 1); exit 1; }; } ;;
12537 esac
12538 else
12539   if test "$cross_compiling" = yes; then
12540   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12541 See \`config.log' for more details." >&5
12542 echo "$as_me: error: cannot run test program while cross compiling
12543 See \`config.log' for more details." >&2;}
12544    { (exit 1); exit 1; }; }
12545 else
12546   cat >conftest.$ac_ext <<_ACEOF
12547 #line $LINENO "configure"
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553 $ac_includes_default
12554 long longval () { return (long) (sizeof (char)); }
12555 unsigned long ulongval () { return (long) (sizeof (char)); }
12556 #include <stdio.h>
12557 #include <stdlib.h>
12558 int
12559 main ()
12560 {
12561
12562   FILE *f = fopen ("conftest.val", "w");
12563   if (! f)
12564     exit (1);
12565   if (((long) (sizeof (char))) < 0)
12566     {
12567       long i = longval ();
12568       if (i != ((long) (sizeof (char))))
12569         exit (1);
12570       fprintf (f, "%ld\n", i);
12571     }
12572   else
12573     {
12574       unsigned long i = ulongval ();
12575       if (i != ((long) (sizeof (char))))
12576         exit (1);
12577       fprintf (f, "%lu\n", i);
12578     }
12579   exit (ferror (f) || fclose (f) != 0);
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587   (eval $ac_link) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   ac_cv_sizeof_char=`cat conftest.val`
12597 else
12598   echo "$as_me: program exited with status $ac_status" >&5
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602 ( exit $ac_status )
12603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12604 See \`config.log' for more details." >&5
12605 echo "$as_me: error: cannot compute sizeof (char), 77
12606 See \`config.log' for more details." >&2;}
12607    { (exit 1); exit 1; }; }
12608 fi
12609 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12610 fi
12611 fi
12612 rm -f conftest.val
12613 else
12614   ac_cv_sizeof_char=0
12615 fi
12616 fi
12617 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12618 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12619 cat >>confdefs.h <<_ACEOF
12620 #define SIZEOF_CHAR $ac_cv_sizeof_char
12621 _ACEOF
12622
12623
12624 echo "$as_me:$LINENO: checking for short int" >&5
12625 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12626 if test "${ac_cv_type_short_int+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 ((short int *) 0)
12641   return 0;
12642 if (sizeof (short int))
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_short_int=yes
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 ac_cv_type_short_int=no
12666 fi
12667 rm -f conftest.$ac_objext conftest.$ac_ext
12668 fi
12669 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12670 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12671
12672 echo "$as_me:$LINENO: checking size of short int" >&5
12673 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12674 if test "${ac_cv_sizeof_short_int+set}" = set; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677   if test "$ac_cv_type_short_int" = yes; then
12678   # The cast to unsigned long works around a bug in the HP C Compiler
12679   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12680   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12681   # This bug is HP SR number 8606223364.
12682   if test "$cross_compiling" = yes; then
12683   # Depending upon the size, compute the lo and hi bounds.
12684 cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691 $ac_includes_default
12692 int
12693 main ()
12694 {
12695 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12696 test_array [0] = 0
12697
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704   (eval $ac_compile) 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } &&
12708          { ac_try='test -s conftest.$ac_objext'
12709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710   (eval $ac_try) 2>&5
12711   ac_status=$?
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); }; }; then
12714   ac_lo=0 ac_mid=0
12715   while :; do
12716     cat >conftest.$ac_ext <<_ACEOF
12717 #line $LINENO "configure"
12718 /* confdefs.h.  */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h.  */
12723 $ac_includes_default
12724 int
12725 main ()
12726 {
12727 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12728 test_array [0] = 0
12729
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12736   (eval $ac_compile) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); } &&
12740          { ac_try='test -s conftest.$ac_objext'
12741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742   (eval $ac_try) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; }; then
12746   ac_hi=$ac_mid; break
12747 else
12748   echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ac_lo=`expr $ac_mid + 1`
12752                     if test $ac_lo -le $ac_mid; then
12753                       ac_lo= ac_hi=
12754                       break
12755                     fi
12756                     ac_mid=`expr 2 '*' $ac_mid + 1`
12757 fi
12758 rm -f conftest.$ac_objext conftest.$ac_ext
12759   done
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 cat >conftest.$ac_ext <<_ACEOF
12765 #line $LINENO "configure"
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771 $ac_includes_default
12772 int
12773 main ()
12774 {
12775 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12776 test_array [0] = 0
12777
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 rm -f conftest.$ac_objext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12784   (eval $ac_compile) 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } &&
12788          { ac_try='test -s conftest.$ac_objext'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794   ac_hi=-1 ac_mid=-1
12795   while :; do
12796     cat >conftest.$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803 $ac_includes_default
12804 int
12805 main ()
12806 {
12807 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12808 test_array [0] = 0
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816   (eval $ac_compile) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -s conftest.$ac_objext'
12821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822   (eval $ac_try) 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; }; then
12826   ac_lo=$ac_mid; break
12827 else
12828   echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12830
12831 ac_hi=`expr '(' $ac_mid ')' - 1`
12832                        if test $ac_mid -le $ac_hi; then
12833                          ac_lo= ac_hi=
12834                          break
12835                        fi
12836                        ac_mid=`expr 2 '*' $ac_mid`
12837 fi
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12839   done
12840 else
12841   echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844 ac_lo= ac_hi=
12845 fi
12846 rm -f conftest.$ac_objext conftest.$ac_ext
12847 fi
12848 rm -f conftest.$ac_objext conftest.$ac_ext
12849 # Binary search between lo and hi bounds.
12850 while test "x$ac_lo" != "x$ac_hi"; do
12851   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12852   cat >conftest.$ac_ext <<_ACEOF
12853 #line $LINENO "configure"
12854 /* confdefs.h.  */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h.  */
12859 $ac_includes_default
12860 int
12861 main ()
12862 {
12863 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12864 test_array [0] = 0
12865
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872   (eval $ac_compile) 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); } &&
12876          { ac_try='test -s conftest.$ac_objext'
12877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878   (eval $ac_try) 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); }; }; then
12882   ac_hi=$ac_mid
12883 else
12884   echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 ac_lo=`expr '(' $ac_mid ')' + 1`
12888 fi
12889 rm -f conftest.$ac_objext conftest.$ac_ext
12890 done
12891 case $ac_lo in
12892 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12893 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: cannot compute sizeof (short int), 77
12896 See \`config.log' for more details." >&2;}
12897    { (exit 1); exit 1; }; } ;;
12898 esac
12899 else
12900   if test "$cross_compiling" = yes; then
12901   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12902 See \`config.log' for more details." >&5
12903 echo "$as_me: error: cannot run test program while cross compiling
12904 See \`config.log' for more details." >&2;}
12905    { (exit 1); exit 1; }; }
12906 else
12907   cat >conftest.$ac_ext <<_ACEOF
12908 #line $LINENO "configure"
12909 /* confdefs.h.  */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h.  */
12914 $ac_includes_default
12915 long longval () { return (long) (sizeof (short int)); }
12916 unsigned long ulongval () { return (long) (sizeof (short int)); }
12917 #include <stdio.h>
12918 #include <stdlib.h>
12919 int
12920 main ()
12921 {
12922
12923   FILE *f = fopen ("conftest.val", "w");
12924   if (! f)
12925     exit (1);
12926   if (((long) (sizeof (short int))) < 0)
12927     {
12928       long i = longval ();
12929       if (i != ((long) (sizeof (short int))))
12930         exit (1);
12931       fprintf (f, "%ld\n", i);
12932     }
12933   else
12934     {
12935       unsigned long i = ulongval ();
12936       if (i != ((long) (sizeof (short int))))
12937         exit (1);
12938       fprintf (f, "%lu\n", i);
12939     }
12940   exit (ferror (f) || fclose (f) != 0);
12941
12942   ;
12943   return 0;
12944 }
12945 _ACEOF
12946 rm -f conftest$ac_exeext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948   (eval $ac_link) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   ac_cv_sizeof_short_int=`cat conftest.val`
12958 else
12959   echo "$as_me: program exited with status $ac_status" >&5
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 ( exit $ac_status )
12964 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12965 See \`config.log' for more details." >&5
12966 echo "$as_me: error: cannot compute sizeof (short int), 77
12967 See \`config.log' for more details." >&2;}
12968    { (exit 1); exit 1; }; }
12969 fi
12970 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12971 fi
12972 fi
12973 rm -f conftest.val
12974 else
12975   ac_cv_sizeof_short_int=0
12976 fi
12977 fi
12978 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12979 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12980 cat >>confdefs.h <<_ACEOF
12981 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12982 _ACEOF
12983
12984
12985 echo "$as_me:$LINENO: checking for int" >&5
12986 echo $ECHO_N "checking for int... $ECHO_C" >&6
12987 if test "${ac_cv_type_int+set}" = set; then
12988   echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990   cat >conftest.$ac_ext <<_ACEOF
12991 #line $LINENO "configure"
12992 /* confdefs.h.  */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h.  */
12997 $ac_includes_default
12998 int
12999 main ()
13000 {
13001 if ((int *) 0)
13002   return 0;
13003 if (sizeof (int))
13004   return 0;
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 rm -f conftest.$ac_objext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011   (eval $ac_compile) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } &&
13015          { ac_try='test -s conftest.$ac_objext'
13016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017   (eval $ac_try) 2>&5
13018   ac_status=$?
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); }; }; then
13021   ac_cv_type_int=yes
13022 else
13023   echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 ac_cv_type_int=no
13027 fi
13028 rm -f conftest.$ac_objext conftest.$ac_ext
13029 fi
13030 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13031 echo "${ECHO_T}$ac_cv_type_int" >&6
13032
13033 echo "$as_me:$LINENO: checking size of int" >&5
13034 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13035 if test "${ac_cv_sizeof_int+set}" = set; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038   if test "$ac_cv_type_int" = yes; then
13039   # The cast to unsigned long works around a bug in the HP C Compiler
13040   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13041   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13042   # This bug is HP SR number 8606223364.
13043   if test "$cross_compiling" = yes; then
13044   # Depending upon the size, compute the lo and hi bounds.
13045 cat >conftest.$ac_ext <<_ACEOF
13046 #line $LINENO "configure"
13047 /* confdefs.h.  */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h.  */
13052 $ac_includes_default
13053 int
13054 main ()
13055 {
13056 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13057 test_array [0] = 0
13058
13059   ;
13060   return 0;
13061 }
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065   (eval $ac_compile) 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } &&
13069          { ac_try='test -s conftest.$ac_objext'
13070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071   (eval $ac_try) 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); }; }; then
13075   ac_lo=0 ac_mid=0
13076   while :; do
13077     cat >conftest.$ac_ext <<_ACEOF
13078 #line $LINENO "configure"
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084 $ac_includes_default
13085 int
13086 main ()
13087 {
13088 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13089 test_array [0] = 0
13090
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } &&
13101          { ac_try='test -s conftest.$ac_objext'
13102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103   (eval $ac_try) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; }; then
13107   ac_hi=$ac_mid; break
13108 else
13109   echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112 ac_lo=`expr $ac_mid + 1`
13113                     if test $ac_lo -le $ac_mid; then
13114                       ac_lo= ac_hi=
13115                       break
13116                     fi
13117                     ac_mid=`expr 2 '*' $ac_mid + 1`
13118 fi
13119 rm -f conftest.$ac_objext conftest.$ac_ext
13120   done
13121 else
13122   echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13124
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132 $ac_includes_default
13133 int
13134 main ()
13135 {
13136 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13137 test_array [0] = 0
13138
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145   (eval $ac_compile) 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); } &&
13149          { ac_try='test -s conftest.$ac_objext'
13150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151   (eval $ac_try) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; }; then
13155   ac_hi=-1 ac_mid=-1
13156   while :; do
13157     cat >conftest.$ac_ext <<_ACEOF
13158 #line $LINENO "configure"
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164 $ac_includes_default
13165 int
13166 main ()
13167 {
13168 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13169 test_array [0] = 0
13170
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177   (eval $ac_compile) 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } &&
13181          { ac_try='test -s conftest.$ac_objext'
13182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183   (eval $ac_try) 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }; }; then
13187   ac_lo=$ac_mid; break
13188 else
13189   echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 ac_hi=`expr '(' $ac_mid ')' - 1`
13193                        if test $ac_mid -le $ac_hi; then
13194                          ac_lo= ac_hi=
13195                          break
13196                        fi
13197                        ac_mid=`expr 2 '*' $ac_mid`
13198 fi
13199 rm -f conftest.$ac_objext conftest.$ac_ext
13200   done
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_lo= ac_hi=
13206 fi
13207 rm -f conftest.$ac_objext conftest.$ac_ext
13208 fi
13209 rm -f conftest.$ac_objext conftest.$ac_ext
13210 # Binary search between lo and hi bounds.
13211 while test "x$ac_lo" != "x$ac_hi"; do
13212   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13213   cat >conftest.$ac_ext <<_ACEOF
13214 #line $LINENO "configure"
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220 $ac_includes_default
13221 int
13222 main ()
13223 {
13224 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13225 test_array [0] = 0
13226
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233   (eval $ac_compile) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -s conftest.$ac_objext'
13238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239   (eval $ac_try) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; }; then
13243   ac_hi=$ac_mid
13244 else
13245   echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13247
13248 ac_lo=`expr '(' $ac_mid ')' + 1`
13249 fi
13250 rm -f conftest.$ac_objext conftest.$ac_ext
13251 done
13252 case $ac_lo in
13253 ?*) ac_cv_sizeof_int=$ac_lo;;
13254 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13255 See \`config.log' for more details." >&5
13256 echo "$as_me: error: cannot compute sizeof (int), 77
13257 See \`config.log' for more details." >&2;}
13258    { (exit 1); exit 1; }; } ;;
13259 esac
13260 else
13261   if test "$cross_compiling" = yes; then
13262   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13263 See \`config.log' for more details." >&5
13264 echo "$as_me: error: cannot run test program while cross compiling
13265 See \`config.log' for more details." >&2;}
13266    { (exit 1); exit 1; }; }
13267 else
13268   cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13270 /* confdefs.h.  */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h.  */
13275 $ac_includes_default
13276 long longval () { return (long) (sizeof (int)); }
13277 unsigned long ulongval () { return (long) (sizeof (int)); }
13278 #include <stdio.h>
13279 #include <stdlib.h>
13280 int
13281 main ()
13282 {
13283
13284   FILE *f = fopen ("conftest.val", "w");
13285   if (! f)
13286     exit (1);
13287   if (((long) (sizeof (int))) < 0)
13288     {
13289       long i = longval ();
13290       if (i != ((long) (sizeof (int))))
13291         exit (1);
13292       fprintf (f, "%ld\n", i);
13293     }
13294   else
13295     {
13296       unsigned long i = ulongval ();
13297       if (i != ((long) (sizeof (int))))
13298         exit (1);
13299       fprintf (f, "%lu\n", i);
13300     }
13301   exit (ferror (f) || fclose (f) != 0);
13302
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 rm -f conftest$ac_exeext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13309   (eval $ac_link) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314   (eval $ac_try) 2>&5
13315   ac_status=$?
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); }; }; then
13318   ac_cv_sizeof_int=`cat conftest.val`
13319 else
13320   echo "$as_me: program exited with status $ac_status" >&5
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ( exit $ac_status )
13325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13326 See \`config.log' for more details." >&5
13327 echo "$as_me: error: cannot compute sizeof (int), 77
13328 See \`config.log' for more details." >&2;}
13329    { (exit 1); exit 1; }; }
13330 fi
13331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13332 fi
13333 fi
13334 rm -f conftest.val
13335 else
13336   ac_cv_sizeof_int=0
13337 fi
13338 fi
13339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13340 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13341 cat >>confdefs.h <<_ACEOF
13342 #define SIZEOF_INT $ac_cv_sizeof_int
13343 _ACEOF
13344
13345
13346 echo "$as_me:$LINENO: checking for long int" >&5
13347 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13348 if test "${ac_cv_type_long_int+set}" = set; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351   cat >conftest.$ac_ext <<_ACEOF
13352 #line $LINENO "configure"
13353 /* confdefs.h.  */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h.  */
13358 $ac_includes_default
13359 int
13360 main ()
13361 {
13362 if ((long int *) 0)
13363   return 0;
13364 if (sizeof (long int))
13365   return 0;
13366   ;
13367   return 0;
13368 }
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372   (eval $ac_compile) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } &&
13376          { ac_try='test -s conftest.$ac_objext'
13377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378   (eval $ac_try) 2>&5
13379   ac_status=$?
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); }; }; then
13382   ac_cv_type_long_int=yes
13383 else
13384   echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 ac_cv_type_long_int=no
13388 fi
13389 rm -f conftest.$ac_objext conftest.$ac_ext
13390 fi
13391 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13392 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13393
13394 echo "$as_me:$LINENO: checking size of long int" >&5
13395 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13396 if test "${ac_cv_sizeof_long_int+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   if test "$ac_cv_type_long_int" = yes; then
13400   # The cast to unsigned long works around a bug in the HP C Compiler
13401   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13402   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13403   # This bug is HP SR number 8606223364.
13404   if test "$cross_compiling" = yes; then
13405   # Depending upon the size, compute the lo and hi bounds.
13406 cat >conftest.$ac_ext <<_ACEOF
13407 #line $LINENO "configure"
13408 /* confdefs.h.  */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h.  */
13413 $ac_includes_default
13414 int
13415 main ()
13416 {
13417 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13418 test_array [0] = 0
13419
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426   (eval $ac_compile) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); } &&
13430          { ac_try='test -s conftest.$ac_objext'
13431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432   (eval $ac_try) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; }; then
13436   ac_lo=0 ac_mid=0
13437   while :; do
13438     cat >conftest.$ac_ext <<_ACEOF
13439 #line $LINENO "configure"
13440 /* confdefs.h.  */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h.  */
13445 $ac_includes_default
13446 int
13447 main ()
13448 {
13449 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13450 test_array [0] = 0
13451
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458   (eval $ac_compile) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); } &&
13462          { ac_try='test -s conftest.$ac_objext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_hi=$ac_mid; break
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_lo=`expr $ac_mid + 1`
13474                     if test $ac_lo -le $ac_mid; then
13475                       ac_lo= ac_hi=
13476                       break
13477                     fi
13478                     ac_mid=`expr 2 '*' $ac_mid + 1`
13479 fi
13480 rm -f conftest.$ac_objext conftest.$ac_ext
13481   done
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 /* confdefs.h.  */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h.  */
13493 $ac_includes_default
13494 int
13495 main ()
13496 {
13497 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13498 test_array [0] = 0
13499
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506   (eval $ac_compile) 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } &&
13510          { ac_try='test -s conftest.$ac_objext'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516   ac_hi=-1 ac_mid=-1
13517   while :; do
13518     cat >conftest.$ac_ext <<_ACEOF
13519 #line $LINENO "configure"
13520 /* confdefs.h.  */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h.  */
13525 $ac_includes_default
13526 int
13527 main ()
13528 {
13529 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13530 test_array [0] = 0
13531
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538   (eval $ac_compile) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); } &&
13542          { ac_try='test -s conftest.$ac_objext'
13543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544   (eval $ac_try) 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; }; then
13548   ac_lo=$ac_mid; break
13549 else
13550   echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_hi=`expr '(' $ac_mid ')' - 1`
13554                        if test $ac_mid -le $ac_hi; then
13555                          ac_lo= ac_hi=
13556                          break
13557                        fi
13558                        ac_mid=`expr 2 '*' $ac_mid`
13559 fi
13560 rm -f conftest.$ac_objext conftest.$ac_ext
13561   done
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 ac_lo= ac_hi=
13567 fi
13568 rm -f conftest.$ac_objext conftest.$ac_ext
13569 fi
13570 rm -f conftest.$ac_objext conftest.$ac_ext
13571 # Binary search between lo and hi bounds.
13572 while test "x$ac_lo" != "x$ac_hi"; do
13573   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13574   cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 /* confdefs.h.  */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h.  */
13581 $ac_includes_default
13582 int
13583 main ()
13584 {
13585 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13586 test_array [0] = 0
13587
13588   ;
13589   return 0;
13590 }
13591 _ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594   (eval $ac_compile) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } &&
13598          { ac_try='test -s conftest.$ac_objext'
13599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600   (eval $ac_try) 2>&5
13601   ac_status=$?
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); }; }; then
13604   ac_hi=$ac_mid
13605 else
13606   echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13608
13609 ac_lo=`expr '(' $ac_mid ')' + 1`
13610 fi
13611 rm -f conftest.$ac_objext conftest.$ac_ext
13612 done
13613 case $ac_lo in
13614 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13615 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13616 See \`config.log' for more details." >&5
13617 echo "$as_me: error: cannot compute sizeof (long int), 77
13618 See \`config.log' for more details." >&2;}
13619    { (exit 1); exit 1; }; } ;;
13620 esac
13621 else
13622   if test "$cross_compiling" = yes; then
13623   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13624 See \`config.log' for more details." >&5
13625 echo "$as_me: error: cannot run test program while cross compiling
13626 See \`config.log' for more details." >&2;}
13627    { (exit 1); exit 1; }; }
13628 else
13629   cat >conftest.$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13631 /* confdefs.h.  */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h.  */
13636 $ac_includes_default
13637 long longval () { return (long) (sizeof (long int)); }
13638 unsigned long ulongval () { return (long) (sizeof (long int)); }
13639 #include <stdio.h>
13640 #include <stdlib.h>
13641 int
13642 main ()
13643 {
13644
13645   FILE *f = fopen ("conftest.val", "w");
13646   if (! f)
13647     exit (1);
13648   if (((long) (sizeof (long int))) < 0)
13649     {
13650       long i = longval ();
13651       if (i != ((long) (sizeof (long int))))
13652         exit (1);
13653       fprintf (f, "%ld\n", i);
13654     }
13655   else
13656     {
13657       unsigned long i = ulongval ();
13658       if (i != ((long) (sizeof (long int))))
13659         exit (1);
13660       fprintf (f, "%lu\n", i);
13661     }
13662   exit (ferror (f) || fclose (f) != 0);
13663
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest$ac_exeext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670   (eval $ac_link) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; }; then
13679   ac_cv_sizeof_long_int=`cat conftest.val`
13680 else
13681   echo "$as_me: program exited with status $ac_status" >&5
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ( exit $ac_status )
13686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13687 See \`config.log' for more details." >&5
13688 echo "$as_me: error: cannot compute sizeof (long int), 77
13689 See \`config.log' for more details." >&2;}
13690    { (exit 1); exit 1; }; }
13691 fi
13692 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 fi
13695 rm -f conftest.val
13696 else
13697   ac_cv_sizeof_long_int=0
13698 fi
13699 fi
13700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13701 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13702 cat >>confdefs.h <<_ACEOF
13703 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13704 _ACEOF
13705
13706
13707 echo "$as_me:$LINENO: checking for long long int" >&5
13708 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13709 if test "${ac_cv_type_long_long_int+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   cat >conftest.$ac_ext <<_ACEOF
13713 #line $LINENO "configure"
13714 /* confdefs.h.  */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h.  */
13719 $ac_includes_default
13720 int
13721 main ()
13722 {
13723 if ((long long int *) 0)
13724   return 0;
13725 if (sizeof (long long int))
13726   return 0;
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_cv_type_long_long_int=yes
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_cv_type_long_long_int=no
13749 fi
13750 rm -f conftest.$ac_objext conftest.$ac_ext
13751 fi
13752 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13753 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13754
13755 echo "$as_me:$LINENO: checking size of long long int" >&5
13756 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13757 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13758   echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760   if test "$ac_cv_type_long_long_int" = yes; then
13761   # The cast to unsigned long works around a bug in the HP C Compiler
13762   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13763   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13764   # This bug is HP SR number 8606223364.
13765   if test "$cross_compiling" = yes; then
13766   # Depending upon the size, compute the lo and hi bounds.
13767 cat >conftest.$ac_ext <<_ACEOF
13768 #line $LINENO "configure"
13769 /* confdefs.h.  */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h.  */
13774 $ac_includes_default
13775 int
13776 main ()
13777 {
13778 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13779 test_array [0] = 0
13780
13781   ;
13782   return 0;
13783 }
13784 _ACEOF
13785 rm -f conftest.$ac_objext
13786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13787   (eval $ac_compile) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } &&
13791          { ac_try='test -s conftest.$ac_objext'
13792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793   (eval $ac_try) 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; }; then
13797   ac_lo=0 ac_mid=0
13798   while :; do
13799     cat >conftest.$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13801 /* confdefs.h.  */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h.  */
13806 $ac_includes_default
13807 int
13808 main ()
13809 {
13810 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13811 test_array [0] = 0
13812
13813   ;
13814   return 0;
13815 }
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819   (eval $ac_compile) 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -s conftest.$ac_objext'
13824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825   (eval $ac_try) 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }; }; then
13829   ac_hi=$ac_mid; break
13830 else
13831   echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13833
13834 ac_lo=`expr $ac_mid + 1`
13835                     if test $ac_lo -le $ac_mid; then
13836                       ac_lo= ac_hi=
13837                       break
13838                     fi
13839                     ac_mid=`expr 2 '*' $ac_mid + 1`
13840 fi
13841 rm -f conftest.$ac_objext conftest.$ac_ext
13842   done
13843 else
13844   echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 cat >conftest.$ac_ext <<_ACEOF
13848 #line $LINENO "configure"
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854 $ac_includes_default
13855 int
13856 main ()
13857 {
13858 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13859 test_array [0] = 0
13860
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867   (eval $ac_compile) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } &&
13871          { ac_try='test -s conftest.$ac_objext'
13872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873   (eval $ac_try) 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; }; then
13877   ac_hi=-1 ac_mid=-1
13878   while :; do
13879     cat >conftest.$ac_ext <<_ACEOF
13880 #line $LINENO "configure"
13881 /* confdefs.h.  */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h.  */
13886 $ac_includes_default
13887 int
13888 main ()
13889 {
13890 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13891 test_array [0] = 0
13892
13893   ;
13894   return 0;
13895 }
13896 _ACEOF
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899   (eval $ac_compile) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); } &&
13903          { ac_try='test -s conftest.$ac_objext'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   ac_lo=$ac_mid; break
13910 else
13911   echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914 ac_hi=`expr '(' $ac_mid ')' - 1`
13915                        if test $ac_mid -le $ac_hi; then
13916                          ac_lo= ac_hi=
13917                          break
13918                        fi
13919                        ac_mid=`expr 2 '*' $ac_mid`
13920 fi
13921 rm -f conftest.$ac_objext conftest.$ac_ext
13922   done
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_lo= ac_hi=
13928 fi
13929 rm -f conftest.$ac_objext conftest.$ac_ext
13930 fi
13931 rm -f conftest.$ac_objext conftest.$ac_ext
13932 # Binary search between lo and hi bounds.
13933 while test "x$ac_lo" != "x$ac_hi"; do
13934   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13935   cat >conftest.$ac_ext <<_ACEOF
13936 #line $LINENO "configure"
13937 /* confdefs.h.  */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h.  */
13942 $ac_includes_default
13943 int
13944 main ()
13945 {
13946 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13947 test_array [0] = 0
13948
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 rm -f conftest.$ac_objext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13955   (eval $ac_compile) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); } &&
13959          { ac_try='test -s conftest.$ac_objext'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   ac_hi=$ac_mid
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_lo=`expr '(' $ac_mid ')' + 1`
13971 fi
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13973 done
13974 case $ac_lo in
13975 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13976 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13977 See \`config.log' for more details." >&5
13978 echo "$as_me: error: cannot compute sizeof (long long int), 77
13979 See \`config.log' for more details." >&2;}
13980    { (exit 1); exit 1; }; } ;;
13981 esac
13982 else
13983   if test "$cross_compiling" = yes; then
13984   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13985 See \`config.log' for more details." >&5
13986 echo "$as_me: error: cannot run test program while cross compiling
13987 See \`config.log' for more details." >&2;}
13988    { (exit 1); exit 1; }; }
13989 else
13990   cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997 $ac_includes_default
13998 long longval () { return (long) (sizeof (long long int)); }
13999 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14000 #include <stdio.h>
14001 #include <stdlib.h>
14002 int
14003 main ()
14004 {
14005
14006   FILE *f = fopen ("conftest.val", "w");
14007   if (! f)
14008     exit (1);
14009   if (((long) (sizeof (long long int))) < 0)
14010     {
14011       long i = longval ();
14012       if (i != ((long) (sizeof (long long int))))
14013         exit (1);
14014       fprintf (f, "%ld\n", i);
14015     }
14016   else
14017     {
14018       unsigned long i = ulongval ();
14019       if (i != ((long) (sizeof (long long int))))
14020         exit (1);
14021       fprintf (f, "%lu\n", i);
14022     }
14023   exit (ferror (f) || fclose (f) != 0);
14024
14025   ;
14026   return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest$ac_exeext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031   (eval $ac_link) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_cv_sizeof_long_long_int=`cat conftest.val`
14041 else
14042   echo "$as_me: program exited with status $ac_status" >&5
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 ( exit $ac_status )
14047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14048 See \`config.log' for more details." >&5
14049 echo "$as_me: error: cannot compute sizeof (long long int), 77
14050 See \`config.log' for more details." >&2;}
14051    { (exit 1); exit 1; }; }
14052 fi
14053 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14054 fi
14055 fi
14056 rm -f conftest.val
14057 else
14058   ac_cv_sizeof_long_long_int=0
14059 fi
14060 fi
14061 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14062 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14063 cat >>confdefs.h <<_ACEOF
14064 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14065 _ACEOF
14066
14067
14068 echo "$as_me:$LINENO: checking for int *" >&5
14069 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14070 if test "${ac_cv_type_int_p+set}" = set; then
14071   echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073   cat >conftest.$ac_ext <<_ACEOF
14074 #line $LINENO "configure"
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080 $ac_includes_default
14081 int
14082 main ()
14083 {
14084 if ((int * *) 0)
14085   return 0;
14086 if (sizeof (int *))
14087   return 0;
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094   (eval $ac_compile) 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } &&
14098          { ac_try='test -s conftest.$ac_objext'
14099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100   (eval $ac_try) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; }; then
14104   ac_cv_type_int_p=yes
14105 else
14106   echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 ac_cv_type_int_p=no
14110 fi
14111 rm -f conftest.$ac_objext conftest.$ac_ext
14112 fi
14113 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14114 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14115
14116 echo "$as_me:$LINENO: checking size of int *" >&5
14117 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14118 if test "${ac_cv_sizeof_int_p+set}" = set; then
14119   echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121   if test "$ac_cv_type_int_p" = yes; then
14122   # The cast to unsigned long works around a bug in the HP C Compiler
14123   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14124   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14125   # This bug is HP SR number 8606223364.
14126   if test "$cross_compiling" = yes; then
14127   # Depending upon the size, compute the lo and hi bounds.
14128 cat >conftest.$ac_ext <<_ACEOF
14129 #line $LINENO "configure"
14130 /* confdefs.h.  */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h.  */
14135 $ac_includes_default
14136 int
14137 main ()
14138 {
14139 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14140 test_array [0] = 0
14141
14142   ;
14143   return 0;
14144 }
14145 _ACEOF
14146 rm -f conftest.$ac_objext
14147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14148   (eval $ac_compile) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); } &&
14152          { ac_try='test -s conftest.$ac_objext'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   ac_lo=0 ac_mid=0
14159   while :; do
14160     cat >conftest.$ac_ext <<_ACEOF
14161 #line $LINENO "configure"
14162 /* confdefs.h.  */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h.  */
14167 $ac_includes_default
14168 int
14169 main ()
14170 {
14171 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14172 test_array [0] = 0
14173
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180   (eval $ac_compile) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); } &&
14184          { ac_try='test -s conftest.$ac_objext'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190   ac_hi=$ac_mid; break
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 ac_lo=`expr $ac_mid + 1`
14196                     if test $ac_lo -le $ac_mid; then
14197                       ac_lo= ac_hi=
14198                       break
14199                     fi
14200                     ac_mid=`expr 2 '*' $ac_mid + 1`
14201 fi
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14203   done
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 cat >conftest.$ac_ext <<_ACEOF
14209 #line $LINENO "configure"
14210 /* confdefs.h.  */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h.  */
14215 $ac_includes_default
14216 int
14217 main ()
14218 {
14219 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14220 test_array [0] = 0
14221
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 rm -f conftest.$ac_objext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228   (eval $ac_compile) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } &&
14232          { ac_try='test -s conftest.$ac_objext'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   ac_hi=-1 ac_mid=-1
14239   while :; do
14240     cat >conftest.$ac_ext <<_ACEOF
14241 #line $LINENO "configure"
14242 /* confdefs.h.  */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h.  */
14247 $ac_includes_default
14248 int
14249 main ()
14250 {
14251 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14252 test_array [0] = 0
14253
14254   ;
14255   return 0;
14256 }
14257 _ACEOF
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260   (eval $ac_compile) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); } &&
14264          { ac_try='test -s conftest.$ac_objext'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; }; then
14270   ac_lo=$ac_mid; break
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275 ac_hi=`expr '(' $ac_mid ')' - 1`
14276                        if test $ac_mid -le $ac_hi; then
14277                          ac_lo= ac_hi=
14278                          break
14279                        fi
14280                        ac_mid=`expr 2 '*' $ac_mid`
14281 fi
14282 rm -f conftest.$ac_objext conftest.$ac_ext
14283   done
14284 else
14285   echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288 ac_lo= ac_hi=
14289 fi
14290 rm -f conftest.$ac_objext conftest.$ac_ext
14291 fi
14292 rm -f conftest.$ac_objext conftest.$ac_ext
14293 # Binary search between lo and hi bounds.
14294 while test "x$ac_lo" != "x$ac_hi"; do
14295   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14296   cat >conftest.$ac_ext <<_ACEOF
14297 #line $LINENO "configure"
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 $ac_includes_default
14304 int
14305 main ()
14306 {
14307 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14308 test_array [0] = 0
14309
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14316   (eval $ac_compile) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -s conftest.$ac_objext'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; }; then
14326   ac_hi=$ac_mid
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 ac_lo=`expr '(' $ac_mid ')' + 1`
14332 fi
14333 rm -f conftest.$ac_objext conftest.$ac_ext
14334 done
14335 case $ac_lo in
14336 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14337 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot compute sizeof (int *), 77
14340 See \`config.log' for more details." >&2;}
14341    { (exit 1); exit 1; }; } ;;
14342 esac
14343 else
14344   if test "$cross_compiling" = yes; then
14345   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14346 See \`config.log' for more details." >&5
14347 echo "$as_me: error: cannot run test program while cross compiling
14348 See \`config.log' for more details." >&2;}
14349    { (exit 1); exit 1; }; }
14350 else
14351   cat >conftest.$ac_ext <<_ACEOF
14352 #line $LINENO "configure"
14353 /* confdefs.h.  */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h.  */
14358 $ac_includes_default
14359 long longval () { return (long) (sizeof (int *)); }
14360 unsigned long ulongval () { return (long) (sizeof (int *)); }
14361 #include <stdio.h>
14362 #include <stdlib.h>
14363 int
14364 main ()
14365 {
14366
14367   FILE *f = fopen ("conftest.val", "w");
14368   if (! f)
14369     exit (1);
14370   if (((long) (sizeof (int *))) < 0)
14371     {
14372       long i = longval ();
14373       if (i != ((long) (sizeof (int *))))
14374         exit (1);
14375       fprintf (f, "%ld\n", i);
14376     }
14377   else
14378     {
14379       unsigned long i = ulongval ();
14380       if (i != ((long) (sizeof (int *))))
14381         exit (1);
14382       fprintf (f, "%lu\n", i);
14383     }
14384   exit (ferror (f) || fclose (f) != 0);
14385
14386   ;
14387   return 0;
14388 }
14389 _ACEOF
14390 rm -f conftest$ac_exeext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14392   (eval $ac_link) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; }; then
14401   ac_cv_sizeof_int_p=`cat conftest.val`
14402 else
14403   echo "$as_me: program exited with status $ac_status" >&5
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 ( exit $ac_status )
14408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14409 See \`config.log' for more details." >&5
14410 echo "$as_me: error: cannot compute sizeof (int *), 77
14411 See \`config.log' for more details." >&2;}
14412    { (exit 1); exit 1; }; }
14413 fi
14414 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14415 fi
14416 fi
14417 rm -f conftest.val
14418 else
14419   ac_cv_sizeof_int_p=0
14420 fi
14421 fi
14422 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14423 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14424 cat >>confdefs.h <<_ACEOF
14425 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14426 _ACEOF
14427
14428
14429
14430 # Check for sys/types.h types
14431 echo "$as_me:$LINENO: checking for u_int type" >&5
14432 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14433 if test "${ac_cv_have_u_int+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436
14437     cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444  #include <sys/types.h>
14445 int
14446 main ()
14447 {
14448  u_int a; a = 1;
14449   ;
14450   return 0;
14451 }
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14455   (eval $ac_compile) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } &&
14459          { ac_try='test -s conftest.$ac_objext'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; }; then
14465    ac_cv_have_u_int="yes"
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470  ac_cv_have_u_int="no"
14471
14472 fi
14473 rm -f conftest.$ac_objext conftest.$ac_ext
14474
14475 fi
14476 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14477 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14478 if test "x$ac_cv_have_u_int" = "xyes" ; then
14479    cat >>confdefs.h <<\_ACEOF
14480 #define HAVE_U_INT 1
14481 _ACEOF
14482
14483    have_u_int=1
14484 fi
14485
14486 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14487 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14488 if test "${ac_cv_have_intmax_t+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491
14492    cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499  #include <sys/types.h>
14500 int
14501 main ()
14502 {
14503  intmax_t a; a = 1;
14504   ;
14505   return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510   (eval $ac_compile) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } &&
14514          { ac_try='test -s conftest.$ac_objext'
14515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516   (eval $ac_try) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); }; }; then
14520    ac_cv_have_intmax_t="yes"
14521 else
14522   echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14524
14525
14526          cat >conftest.$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533  #include <stdint.h>
14534 int
14535 main ()
14536 {
14537  intmax_t a; a = 1;
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14544   (eval $ac_compile) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); } &&
14548          { ac_try='test -s conftest.$ac_objext'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554    ac_cv_have_intmax_t="yes"
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559  ac_cv_have_intmax_t="no"
14560
14561 fi
14562 rm -f conftest.$ac_objext conftest.$ac_ext
14563
14564
14565 fi
14566 rm -f conftest.$ac_objext conftest.$ac_ext
14567
14568
14569 fi
14570 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14571 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14572 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14573    cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_INTMAX_T 1
14575 _ACEOF
14576
14577    have_intmax_t=1
14578 fi
14579
14580
14581 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14582 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14583 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14584   echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586
14587    cat >conftest.$ac_ext <<_ACEOF
14588 #line $LINENO "configure"
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594  #include <sys/types.h>
14595 int
14596 main ()
14597 {
14598  u_intmax_t a; a = 1;
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14605   (eval $ac_compile) 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } &&
14609          { ac_try='test -s conftest.$ac_objext'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; }; then
14615    ac_cv_have_u_intmax_t="yes"
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620
14621          cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628  #include <stdint.h>
14629 int
14630 main ()
14631 {
14632  u_intmax_t a; a = 1;
14633   ;
14634   return 0;
14635 }
14636 _ACEOF
14637 rm -f conftest.$ac_objext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639   (eval $ac_compile) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } &&
14643          { ac_try='test -s conftest.$ac_objext'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649    ac_cv_have_u_intmax_t="yes"
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654  ac_cv_have_u_intmax_t="no"
14655
14656 fi
14657 rm -f conftest.$ac_objext conftest.$ac_ext
14658
14659
14660 fi
14661 rm -f conftest.$ac_objext conftest.$ac_ext
14662
14663 fi
14664 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14665 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14666 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14667    cat >>confdefs.h <<\_ACEOF
14668 #define HAVE_U_INTMAX_T 1
14669 _ACEOF
14670
14671    have_u_intmax_t=1
14672 fi
14673
14674
14675 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14676 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14677 if test "${ac_cv_have_intxx_t+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680
14681    cat >conftest.$ac_ext <<_ACEOF
14682 #line $LINENO "configure"
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688  #include <sys/types.h>
14689 int
14690 main ()
14691 {
14692  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14699   (eval $ac_compile) 2>&5
14700   ac_status=$?
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); } &&
14703          { ac_try='test -s conftest.$ac_objext'
14704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705   (eval $ac_try) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; }; then
14709    ac_cv_have_intxx_t="yes"
14710 else
14711   echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14713
14714  ac_cv_have_intxx_t="no"
14715
14716 fi
14717 rm -f conftest.$ac_objext conftest.$ac_ext
14718
14719 fi
14720 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14721 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14722 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14723    cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_INTXX_T 1
14725 _ACEOF
14726
14727    have_intxx_t=1
14728 fi
14729
14730 echo "$as_me:$LINENO: checking for int64_t type" >&5
14731 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14732 if test "${ac_cv_have_int64_t+set}" = set; then
14733   echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735
14736    cat >conftest.$ac_ext <<_ACEOF
14737 #line $LINENO "configure"
14738 /* confdefs.h.  */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h.  */
14743  #include <sys/types.h>
14744 int
14745 main ()
14746 {
14747  int64_t a; a = 1;
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754   (eval $ac_compile) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -s conftest.$ac_objext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764    ac_cv_have_int64_t="yes"
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769  ac_cv_have_int64_t="no"
14770
14771 fi
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14773
14774 fi
14775 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14776 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14777 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14778    cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_INT64_T 1
14780 _ACEOF
14781
14782    have_int64_t=1
14783 fi
14784
14785 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14786 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14787 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14788   echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790
14791    cat >conftest.$ac_ext <<_ACEOF
14792 #line $LINENO "configure"
14793 /* confdefs.h.  */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h.  */
14798  #include <sys/types.h>
14799 int
14800 main ()
14801 {
14802  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809   (eval $ac_compile) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); } &&
14813          { ac_try='test -s conftest.$ac_objext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819    ac_cv_have_u_intxx_t="yes"
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824  ac_cv_have_u_intxx_t="no"
14825
14826 fi
14827 rm -f conftest.$ac_objext conftest.$ac_ext
14828
14829 fi
14830 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14831 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14832 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14833    cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_U_INTXX_T 1
14835 _ACEOF
14836
14837    have_u_intxx_t=1
14838 fi
14839
14840 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14841 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14842 if test "${ac_cv_have_u_int64_t+set}" = set; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845
14846    cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853  #include <sys/types.h>
14854 int
14855 main ()
14856 {
14857  u_int64_t a; a = 1;
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864   (eval $ac_compile) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -s conftest.$ac_objext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874    ac_cv_have_u_int64_t="yes"
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879  ac_cv_have_u_int64_t="no"
14880
14881 fi
14882 rm -f conftest.$ac_objext conftest.$ac_ext
14883
14884 fi
14885 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14886 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14887 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14888    cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_U_INT64_T 1
14890 _ACEOF
14891
14892    have_u_int64_t=1
14893 fi
14894
14895 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14896            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14897 then
14898    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14899 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14900    cat >conftest.$ac_ext <<_ACEOF
14901 #line $LINENO "configure"
14902 /* confdefs.h.  */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h.  */
14907  #include <sys/bitypes.h>
14908 int
14909 main ()
14910 {
14911  int8_t a; int16_t b; int32_t c;
14912         u_int8_t e; u_int16_t f; u_int32_t g;
14913         a = b = c = e = f = g = 1;
14914   ;
14915   return 0;
14916 }
14917 _ACEOF
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920   (eval $ac_compile) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } &&
14924          { ac_try='test -s conftest.$ac_objext'
14925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926   (eval $ac_try) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930    cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_U_INTXX_T 1
14932 _ACEOF
14933
14934         cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_INTXX_T 1
14936 _ACEOF
14937
14938         cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_SYS_BITYPES_H 1
14940 _ACEOF
14941
14942         echo "$as_me:$LINENO: result: yes" >&5
14943 echo "${ECHO_T}yes" >&6
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948  echo "$as_me:$LINENO: result: no" >&5
14949 echo "${ECHO_T}no" >&6
14950
14951 fi
14952 rm -f conftest.$ac_objext conftest.$ac_ext
14953 fi
14954
14955 if test -z "$have_u_intxx_t" ; then
14956    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14957 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14958 if test "${ac_cv_have_uintxx_t+set}" = set; then
14959   echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961
14962       cat >conftest.$ac_ext <<_ACEOF
14963 #line $LINENO "configure"
14964 /* confdefs.h.  */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h.  */
14969  #include <sys/types.h>
14970 int
14971 main ()
14972 {
14973  uint8_t a; uint16_t b;
14974            uint32_t c; a = b = c = 1;
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest.$ac_objext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981   (eval $ac_compile) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } &&
14985          { ac_try='test -s conftest.$ac_objext'
14986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987   (eval $ac_try) 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; }; then
14991    ac_cv_have_uintxx_t="yes"
14992 else
14993   echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996  ac_cv_have_uintxx_t="no"
14997
14998 fi
14999 rm -f conftest.$ac_objext conftest.$ac_ext
15000
15001 fi
15002 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15003 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15004    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15005       cat >>confdefs.h <<\_ACEOF
15006 #define HAVE_UINTXX_T 1
15007 _ACEOF
15008
15009    fi
15010 fi
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026 for ac_func in \
15027         fork \
15028         getcwd \
15029         gethostname \
15030         getpid \
15031         gettimeofday \
15032         setpgid \
15033         setpgrp \
15034         setsid \
15035         signal \
15036         strerror \
15037         strncmp \
15038         strncpy \
15039         vfprintf \
15040
15041 do
15042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15043 echo "$as_me:$LINENO: checking for $ac_func" >&5
15044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15045 if eval "test \"\${$as_ac_var+set}\" = set"; then
15046   echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048   cat >conftest.$ac_ext <<_ACEOF
15049 #line $LINENO "configure"
15050 /* confdefs.h.  */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h.  */
15055 /* System header to define __stub macros and hopefully few prototypes,
15056     which can conflict with char $ac_func (); below.
15057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058     <limits.h> exists even on freestanding compilers.  */
15059 #ifdef __STDC__
15060 # include <limits.h>
15061 #else
15062 # include <assert.h>
15063 #endif
15064 /* Override any gcc2 internal prototype to avoid an error.  */
15065 #ifdef __cplusplus
15066 extern "C"
15067 {
15068 #endif
15069 /* We use char because int might match the return type of a gcc2
15070    builtin and then its argument prototype would still apply.  */
15071 char $ac_func ();
15072 /* The GNU C library defines this for functions which it implements
15073     to always fail with ENOSYS.  Some functions are actually named
15074     something starting with __ and the normal name is an alias.  */
15075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15076 choke me
15077 #else
15078 char (*f) () = $ac_func;
15079 #endif
15080 #ifdef __cplusplus
15081 }
15082 #endif
15083
15084 int
15085 main ()
15086 {
15087 return f != $ac_func;
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094   (eval $ac_link) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); } &&
15098          { ac_try='test -s conftest$ac_exeext'
15099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100   (eval $ac_try) 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); }; }; then
15104   eval "$as_ac_var=yes"
15105 else
15106   echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15108
15109 eval "$as_ac_var=no"
15110 fi
15111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15112 fi
15113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15115 if test `eval echo '${'$as_ac_var'}'` = yes; then
15116   cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15118 _ACEOF
15119
15120 else
15121   echo 'configure: cannot find needed function.'; exit 1
15122
15123 fi
15124 done
15125
15126
15127
15128 for ac_func in fchdir
15129 do
15130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15131 echo "$as_me:$LINENO: checking for $ac_func" >&5
15132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15133 if eval "test \"\${$as_ac_var+set}\" = set"; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136   cat >conftest.$ac_ext <<_ACEOF
15137 #line $LINENO "configure"
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143 /* System header to define __stub macros and hopefully few prototypes,
15144     which can conflict with char $ac_func (); below.
15145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15146     <limits.h> exists even on freestanding compilers.  */
15147 #ifdef __STDC__
15148 # include <limits.h>
15149 #else
15150 # include <assert.h>
15151 #endif
15152 /* Override any gcc2 internal prototype to avoid an error.  */
15153 #ifdef __cplusplus
15154 extern "C"
15155 {
15156 #endif
15157 /* We use char because int might match the return type of a gcc2
15158    builtin and then its argument prototype would still apply.  */
15159 char $ac_func ();
15160 /* The GNU C library defines this for functions which it implements
15161     to always fail with ENOSYS.  Some functions are actually named
15162     something starting with __ and the normal name is an alias.  */
15163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15164 choke me
15165 #else
15166 char (*f) () = $ac_func;
15167 #endif
15168 #ifdef __cplusplus
15169 }
15170 #endif
15171
15172 int
15173 main ()
15174 {
15175 return f != $ac_func;
15176   ;
15177   return 0;
15178 }
15179 _ACEOF
15180 rm -f conftest.$ac_objext conftest$ac_exeext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15182   (eval $ac_link) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); } &&
15186          { ac_try='test -s conftest$ac_exeext'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; }; then
15192   eval "$as_ac_var=yes"
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 eval "$as_ac_var=no"
15198 fi
15199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15200 fi
15201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15203 if test `eval echo '${'$as_ac_var'}'` = yes; then
15204   cat >>confdefs.h <<_ACEOF
15205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15206 _ACEOF
15207  cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_FCHDIR 1
15209 _ACEOF
15210
15211 fi
15212 done
15213
15214
15215 for ac_func in strtoll
15216 do
15217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15218 echo "$as_me:$LINENO: checking for $ac_func" >&5
15219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15220 if eval "test \"\${$as_ac_var+set}\" = set"; then
15221   echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223   cat >conftest.$ac_ext <<_ACEOF
15224 #line $LINENO "configure"
15225 /* confdefs.h.  */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h.  */
15230 /* System header to define __stub macros and hopefully few prototypes,
15231     which can conflict with char $ac_func (); below.
15232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15233     <limits.h> exists even on freestanding compilers.  */
15234 #ifdef __STDC__
15235 # include <limits.h>
15236 #else
15237 # include <assert.h>
15238 #endif
15239 /* Override any gcc2 internal prototype to avoid an error.  */
15240 #ifdef __cplusplus
15241 extern "C"
15242 {
15243 #endif
15244 /* We use char because int might match the return type of a gcc2
15245    builtin and then its argument prototype would still apply.  */
15246 char $ac_func ();
15247 /* The GNU C library defines this for functions which it implements
15248     to always fail with ENOSYS.  Some functions are actually named
15249     something starting with __ and the normal name is an alias.  */
15250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15251 choke me
15252 #else
15253 char (*f) () = $ac_func;
15254 #endif
15255 #ifdef __cplusplus
15256 }
15257 #endif
15258
15259 int
15260 main ()
15261 {
15262 return f != $ac_func;
15263   ;
15264   return 0;
15265 }
15266 _ACEOF
15267 rm -f conftest.$ac_objext conftest$ac_exeext
15268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15269   (eval $ac_link) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); } &&
15273          { ac_try='test -s conftest$ac_exeext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   eval "$as_ac_var=yes"
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 eval "$as_ac_var=no"
15285 fi
15286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15287 fi
15288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15290 if test `eval echo '${'$as_ac_var'}'` = yes; then
15291   cat >>confdefs.h <<_ACEOF
15292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15293 _ACEOF
15294  cat >>confdefs.h <<\_ACEOF
15295 #define HAVE_STRTOLL 1
15296 _ACEOF
15297
15298 fi
15299 done
15300
15301
15302
15303 for ac_func in chflags
15304 do
15305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15306 echo "$as_me:$LINENO: checking for $ac_func" >&5
15307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15308 if eval "test \"\${$as_ac_var+set}\" = set"; then
15309   echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311   cat >conftest.$ac_ext <<_ACEOF
15312 #line $LINENO "configure"
15313 /* confdefs.h.  */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h.  */
15318 /* System header to define __stub macros and hopefully few prototypes,
15319     which can conflict with char $ac_func (); below.
15320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15321     <limits.h> exists even on freestanding compilers.  */
15322 #ifdef __STDC__
15323 # include <limits.h>
15324 #else
15325 # include <assert.h>
15326 #endif
15327 /* Override any gcc2 internal prototype to avoid an error.  */
15328 #ifdef __cplusplus
15329 extern "C"
15330 {
15331 #endif
15332 /* We use char because int might match the return type of a gcc2
15333    builtin and then its argument prototype would still apply.  */
15334 char $ac_func ();
15335 /* The GNU C library defines this for functions which it implements
15336     to always fail with ENOSYS.  Some functions are actually named
15337     something starting with __ and the normal name is an alias.  */
15338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15339 choke me
15340 #else
15341 char (*f) () = $ac_func;
15342 #endif
15343 #ifdef __cplusplus
15344 }
15345 #endif
15346
15347 int
15348 main ()
15349 {
15350 return f != $ac_func;
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15357   (eval $ac_link) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); } &&
15361          { ac_try='test -s conftest$ac_exeext'
15362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363   (eval $ac_try) 2>&5
15364   ac_status=$?
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); }; }; then
15367   eval "$as_ac_var=yes"
15368 else
15369   echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15371
15372 eval "$as_ac_var=no"
15373 fi
15374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15375 fi
15376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15378 if test `eval echo '${'$as_ac_var'}'` = yes; then
15379   cat >>confdefs.h <<_ACEOF
15380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15381 _ACEOF
15382
15383 fi
15384 done
15385
15386
15387
15388
15389
15390
15391 for ac_func in snprintf vsnprintf gethostid getdomainname
15392 do
15393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15394 echo "$as_me:$LINENO: checking for $ac_func" >&5
15395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15396 if eval "test \"\${$as_ac_var+set}\" = set"; then
15397   echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399   cat >conftest.$ac_ext <<_ACEOF
15400 #line $LINENO "configure"
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 /* System header to define __stub macros and hopefully few prototypes,
15407     which can conflict with char $ac_func (); below.
15408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409     <limits.h> exists even on freestanding compilers.  */
15410 #ifdef __STDC__
15411 # include <limits.h>
15412 #else
15413 # include <assert.h>
15414 #endif
15415 /* Override any gcc2 internal prototype to avoid an error.  */
15416 #ifdef __cplusplus
15417 extern "C"
15418 {
15419 #endif
15420 /* We use char because int might match the return type of a gcc2
15421    builtin and then its argument prototype would still apply.  */
15422 char $ac_func ();
15423 /* The GNU C library defines this for functions which it implements
15424     to always fail with ENOSYS.  Some functions are actually named
15425     something starting with __ and the normal name is an alias.  */
15426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15427 choke me
15428 #else
15429 char (*f) () = $ac_func;
15430 #endif
15431 #ifdef __cplusplus
15432 }
15433 #endif
15434
15435 int
15436 main ()
15437 {
15438 return f != $ac_func;
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15445   (eval $ac_link) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); } &&
15449          { ac_try='test -s conftest$ac_exeext'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455   eval "$as_ac_var=yes"
15456 else
15457   echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15459
15460 eval "$as_ac_var=no"
15461 fi
15462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15463 fi
15464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15466 if test `eval echo '${'$as_ac_var'}'` = yes; then
15467   cat >>confdefs.h <<_ACEOF
15468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15469 _ACEOF
15470
15471 fi
15472 done
15473
15474
15475
15476
15477
15478
15479 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15480 do
15481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15482 echo "$as_me:$LINENO: checking for $ac_func" >&5
15483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15484 if eval "test \"\${$as_ac_var+set}\" = set"; then
15485   echo $ECHO_N "(cached) $ECHO_C" >&6
15486 else
15487   cat >conftest.$ac_ext <<_ACEOF
15488 #line $LINENO "configure"
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 /* System header to define __stub macros and hopefully few prototypes,
15495     which can conflict with char $ac_func (); below.
15496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15497     <limits.h> exists even on freestanding compilers.  */
15498 #ifdef __STDC__
15499 # include <limits.h>
15500 #else
15501 # include <assert.h>
15502 #endif
15503 /* Override any gcc2 internal prototype to avoid an error.  */
15504 #ifdef __cplusplus
15505 extern "C"
15506 {
15507 #endif
15508 /* We use char because int might match the return type of a gcc2
15509    builtin and then its argument prototype would still apply.  */
15510 char $ac_func ();
15511 /* The GNU C library defines this for functions which it implements
15512     to always fail with ENOSYS.  Some functions are actually named
15513     something starting with __ and the normal name is an alias.  */
15514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15515 choke me
15516 #else
15517 char (*f) () = $ac_func;
15518 #endif
15519 #ifdef __cplusplus
15520 }
15521 #endif
15522
15523 int
15524 main ()
15525 {
15526 return f != $ac_func;
15527   ;
15528   return 0;
15529 }
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533   (eval $ac_link) 2>&5
15534   ac_status=$?
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); } &&
15537          { ac_try='test -s conftest$ac_exeext'
15538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539   (eval $ac_try) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; }; then
15543   eval "$as_ac_var=yes"
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548 eval "$as_ac_var=no"
15549 fi
15550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15551 fi
15552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15554 if test `eval echo '${'$as_ac_var'}'` = yes; then
15555   cat >>confdefs.h <<_ACEOF
15556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15557 _ACEOF
15558
15559 fi
15560 done
15561
15562
15563 # If resolver functions are not in libc check for -lnsl or -lresolv.
15564 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15565 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15566 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15567   echo $ECHO_N "(cached) $ECHO_C" >&6
15568 else
15569   cat >conftest.$ac_ext <<_ACEOF
15570 #line $LINENO "configure"
15571 /* confdefs.h.  */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h.  */
15576 /* System header to define __stub macros and hopefully few prototypes,
15577     which can conflict with char gethostbyname_r (); below.
15578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15579     <limits.h> exists even on freestanding compilers.  */
15580 #ifdef __STDC__
15581 # include <limits.h>
15582 #else
15583 # include <assert.h>
15584 #endif
15585 /* Override any gcc2 internal prototype to avoid an error.  */
15586 #ifdef __cplusplus
15587 extern "C"
15588 {
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591    builtin and then its argument prototype would still apply.  */
15592 char gethostbyname_r ();
15593 /* The GNU C library defines this for functions which it implements
15594     to always fail with ENOSYS.  Some functions are actually named
15595     something starting with __ and the normal name is an alias.  */
15596 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15597 choke me
15598 #else
15599 char (*f) () = gethostbyname_r;
15600 #endif
15601 #ifdef __cplusplus
15602 }
15603 #endif
15604
15605 int
15606 main ()
15607 {
15608 return f != gethostbyname_r;
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615   (eval $ac_link) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } &&
15619          { ac_try='test -s conftest$ac_exeext'
15620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621   (eval $ac_try) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); }; }; then
15625   ac_cv_func_gethostbyname_r=yes
15626 else
15627   echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15629
15630 ac_cv_func_gethostbyname_r=no
15631 fi
15632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15633 fi
15634 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15635 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15636 if test $ac_cv_func_gethostbyname_r = yes; then
15637   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15638 echo "${ECHO_T}using libc's resolver" >&6
15639 else
15640
15641 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15642 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15643 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lnsl  $LIBS"
15648 cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655
15656 /* Override any gcc2 internal prototype to avoid an error.  */
15657 #ifdef __cplusplus
15658 extern "C"
15659 #endif
15660 /* We use char because int might match the return type of a gcc2
15661    builtin and then its argument prototype would still apply.  */
15662 char gethostbyname_r ();
15663 int
15664 main ()
15665 {
15666 gethostbyname_r ();
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673   (eval $ac_link) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -s conftest$ac_exeext'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683   ac_cv_lib_nsl_gethostbyname_r=yes
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688 ac_cv_lib_nsl_gethostbyname_r=no
15689 fi
15690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15691 LIBS=$ac_check_lib_save_LIBS
15692 fi
15693 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15694 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15695 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15696   cat >>confdefs.h <<_ACEOF
15697 #define HAVE_LIBNSL 1
15698 _ACEOF
15699
15700   LIBS="-lnsl $LIBS"
15701
15702 fi
15703
15704
15705 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15706 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15707 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   ac_check_lib_save_LIBS=$LIBS
15711 LIBS="-lresolv  $LIBS"
15712 cat >conftest.$ac_ext <<_ACEOF
15713 #line $LINENO "configure"
15714 /* confdefs.h.  */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h.  */
15719
15720 /* Override any gcc2 internal prototype to avoid an error.  */
15721 #ifdef __cplusplus
15722 extern "C"
15723 #endif
15724 /* We use char because int might match the return type of a gcc2
15725    builtin and then its argument prototype would still apply.  */
15726 char gethostbyname_r ();
15727 int
15728 main ()
15729 {
15730 gethostbyname_r ();
15731   ;
15732   return 0;
15733 }
15734 _ACEOF
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15737   (eval $ac_link) 2>&5
15738   ac_status=$?
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); } &&
15741          { ac_try='test -s conftest$ac_exeext'
15742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743   (eval $ac_try) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; }; then
15747   ac_cv_lib_resolv_gethostbyname_r=yes
15748 else
15749   echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15751
15752 ac_cv_lib_resolv_gethostbyname_r=no
15753 fi
15754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15755 LIBS=$ac_check_lib_save_LIBS
15756 fi
15757 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15758 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15759 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15760   cat >>confdefs.h <<_ACEOF
15761 #define HAVE_LIBRESOLV 1
15762 _ACEOF
15763
15764   LIBS="-lresolv $LIBS"
15765
15766 fi
15767
15768 fi
15769
15770
15771
15772 # Find where sockets are (especially for Solaris)
15773 echo "$as_me:$LINENO: checking for socket" >&5
15774 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15775 if test "${ac_cv_func_socket+set}" = set; then
15776   echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778   cat >conftest.$ac_ext <<_ACEOF
15779 #line $LINENO "configure"
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785 /* System header to define __stub macros and hopefully few prototypes,
15786     which can conflict with char socket (); below.
15787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15788     <limits.h> exists even on freestanding compilers.  */
15789 #ifdef __STDC__
15790 # include <limits.h>
15791 #else
15792 # include <assert.h>
15793 #endif
15794 /* Override any gcc2 internal prototype to avoid an error.  */
15795 #ifdef __cplusplus
15796 extern "C"
15797 {
15798 #endif
15799 /* We use char because int might match the return type of a gcc2
15800    builtin and then its argument prototype would still apply.  */
15801 char socket ();
15802 /* The GNU C library defines this for functions which it implements
15803     to always fail with ENOSYS.  Some functions are actually named
15804     something starting with __ and the normal name is an alias.  */
15805 #if defined (__stub_socket) || defined (__stub___socket)
15806 choke me
15807 #else
15808 char (*f) () = socket;
15809 #endif
15810 #ifdef __cplusplus
15811 }
15812 #endif
15813
15814 int
15815 main ()
15816 {
15817 return f != socket;
15818   ;
15819   return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824   (eval $ac_link) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } &&
15828          { ac_try='test -s conftest$ac_exeext'
15829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830   (eval $ac_try) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; }; then
15834   ac_cv_func_socket=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839 ac_cv_func_socket=no
15840 fi
15841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15842 fi
15843 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15844 echo "${ECHO_T}$ac_cv_func_socket" >&6
15845 if test $ac_cv_func_socket = yes; then
15846   echo "$as_me:$LINENO: result: using libc's socket" >&5
15847 echo "${ECHO_T}using libc's socket" >&6
15848 else
15849
15850 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15851 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15852 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   ac_check_lib_save_LIBS=$LIBS
15856 LIBS="-lxnet  $LIBS"
15857 cat >conftest.$ac_ext <<_ACEOF
15858 #line $LINENO "configure"
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864
15865 /* Override any gcc2 internal prototype to avoid an error.  */
15866 #ifdef __cplusplus
15867 extern "C"
15868 #endif
15869 /* We use char because int might match the return type of a gcc2
15870    builtin and then its argument prototype would still apply.  */
15871 char socket ();
15872 int
15873 main ()
15874 {
15875 socket ();
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882   (eval $ac_link) 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } &&
15886          { ac_try='test -s conftest$ac_exeext'
15887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888   (eval $ac_try) 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; }; then
15892   ac_cv_lib_xnet_socket=yes
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897 ac_cv_lib_xnet_socket=no
15898 fi
15899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15900 LIBS=$ac_check_lib_save_LIBS
15901 fi
15902 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15903 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15904 if test $ac_cv_lib_xnet_socket = yes; then
15905   cat >>confdefs.h <<_ACEOF
15906 #define HAVE_LIBXNET 1
15907 _ACEOF
15908
15909   LIBS="-lxnet $LIBS"
15910
15911 fi
15912
15913
15914 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15915 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15916 if test "${ac_cv_lib_socket_socket+set}" = set; then
15917   echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919   ac_check_lib_save_LIBS=$LIBS
15920 LIBS="-lsocket  $LIBS"
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15923 /* confdefs.h.  */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h.  */
15928
15929 /* Override any gcc2 internal prototype to avoid an error.  */
15930 #ifdef __cplusplus
15931 extern "C"
15932 #endif
15933 /* We use char because int might match the return type of a gcc2
15934    builtin and then its argument prototype would still apply.  */
15935 char socket ();
15936 int
15937 main ()
15938 {
15939 socket ();
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946   (eval $ac_link) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } &&
15950          { ac_try='test -s conftest$ac_exeext'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956   ac_cv_lib_socket_socket=yes
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_cv_lib_socket_socket=no
15962 fi
15963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15964 LIBS=$ac_check_lib_save_LIBS
15965 fi
15966 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15967 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15968 if test $ac_cv_lib_socket_socket = yes; then
15969   cat >>confdefs.h <<_ACEOF
15970 #define HAVE_LIBSOCKET 1
15971 _ACEOF
15972
15973   LIBS="-lsocket $LIBS"
15974
15975 fi
15976
15977
15978 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15979 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15980 if test "${ac_cv_lib_inet_socket+set}" = set; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   ac_check_lib_save_LIBS=$LIBS
15984 LIBS="-linet  $LIBS"
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992
15993 /* Override any gcc2 internal prototype to avoid an error.  */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 /* We use char because int might match the return type of a gcc2
15998    builtin and then its argument prototype would still apply.  */
15999 char socket ();
16000 int
16001 main ()
16002 {
16003 socket ();
16004   ;
16005   return 0;
16006 }
16007 _ACEOF
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010   (eval $ac_link) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); } &&
16014          { ac_try='test -s conftest$ac_exeext'
16015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016   (eval $ac_try) 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; }; then
16020   ac_cv_lib_inet_socket=yes
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 ac_cv_lib_inet_socket=no
16026 fi
16027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16029 fi
16030 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16031 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16032 if test $ac_cv_lib_inet_socket = yes; then
16033   cat >>confdefs.h <<_ACEOF
16034 #define HAVE_LIBINET 1
16035 _ACEOF
16036
16037   LIBS="-linet $LIBS"
16038
16039 fi
16040
16041 fi
16042
16043
16044
16045 for ac_func in inet_pton
16046 do
16047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16048 echo "$as_me:$LINENO: checking for $ac_func" >&5
16049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16050 if eval "test \"\${$as_ac_var+set}\" = set"; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053   cat >conftest.$ac_ext <<_ACEOF
16054 #line $LINENO "configure"
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 /* System header to define __stub macros and hopefully few prototypes,
16061     which can conflict with char $ac_func (); below.
16062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16063     <limits.h> exists even on freestanding compilers.  */
16064 #ifdef __STDC__
16065 # include <limits.h>
16066 #else
16067 # include <assert.h>
16068 #endif
16069 /* Override any gcc2 internal prototype to avoid an error.  */
16070 #ifdef __cplusplus
16071 extern "C"
16072 {
16073 #endif
16074 /* We use char because int might match the return type of a gcc2
16075    builtin and then its argument prototype would still apply.  */
16076 char $ac_func ();
16077 /* The GNU C library defines this for functions which it implements
16078     to always fail with ENOSYS.  Some functions are actually named
16079     something starting with __ and the normal name is an alias.  */
16080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16081 choke me
16082 #else
16083 char (*f) () = $ac_func;
16084 #endif
16085 #ifdef __cplusplus
16086 }
16087 #endif
16088
16089 int
16090 main ()
16091 {
16092 return f != $ac_func;
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099   (eval $ac_link) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -s conftest$ac_exeext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   eval "$as_ac_var=yes"
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 eval "$as_ac_var=no"
16115 fi
16116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16117 fi
16118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16120 if test `eval echo '${'$as_ac_var'}'` = yes; then
16121   cat >>confdefs.h <<_ACEOF
16122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16123 _ACEOF
16124  cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_INET_PTON 1
16126 _ACEOF
16127
16128 fi
16129 done
16130
16131
16132
16133 for ac_func in strftime
16134 do
16135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16136 echo "$as_me:$LINENO: checking for $ac_func" >&5
16137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16138 if eval "test \"\${$as_ac_var+set}\" = set"; then
16139   echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141   cat >conftest.$ac_ext <<_ACEOF
16142 #line $LINENO "configure"
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 /* System header to define __stub macros and hopefully few prototypes,
16149     which can conflict with char $ac_func (); below.
16150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16151     <limits.h> exists even on freestanding compilers.  */
16152 #ifdef __STDC__
16153 # include <limits.h>
16154 #else
16155 # include <assert.h>
16156 #endif
16157 /* Override any gcc2 internal prototype to avoid an error.  */
16158 #ifdef __cplusplus
16159 extern "C"
16160 {
16161 #endif
16162 /* We use char because int might match the return type of a gcc2
16163    builtin and then its argument prototype would still apply.  */
16164 char $ac_func ();
16165 /* The GNU C library defines this for functions which it implements
16166     to always fail with ENOSYS.  Some functions are actually named
16167     something starting with __ and the normal name is an alias.  */
16168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16169 choke me
16170 #else
16171 char (*f) () = $ac_func;
16172 #endif
16173 #ifdef __cplusplus
16174 }
16175 #endif
16176
16177 int
16178 main ()
16179 {
16180 return f != $ac_func;
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16187   (eval $ac_link) 2>&5
16188   ac_status=$?
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); } &&
16191          { ac_try='test -s conftest$ac_exeext'
16192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193   (eval $ac_try) 2>&5
16194   ac_status=$?
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); }; }; then
16197   eval "$as_ac_var=yes"
16198 else
16199   echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16201
16202 eval "$as_ac_var=no"
16203 fi
16204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16205 fi
16206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16208 if test `eval echo '${'$as_ac_var'}'` = yes; then
16209   cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16211 _ACEOF
16212
16213 else
16214   # strftime is in -lintl on SCO UNIX.
16215 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16216 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16217 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16218   echo $ECHO_N "(cached) $ECHO_C" >&6
16219 else
16220   ac_check_lib_save_LIBS=$LIBS
16221 LIBS="-lintl  $LIBS"
16222 cat >conftest.$ac_ext <<_ACEOF
16223 #line $LINENO "configure"
16224 /* confdefs.h.  */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h.  */
16229
16230 /* Override any gcc2 internal prototype to avoid an error.  */
16231 #ifdef __cplusplus
16232 extern "C"
16233 #endif
16234 /* We use char because int might match the return type of a gcc2
16235    builtin and then its argument prototype would still apply.  */
16236 char strftime ();
16237 int
16238 main ()
16239 {
16240 strftime ();
16241   ;
16242   return 0;
16243 }
16244 _ACEOF
16245 rm -f conftest.$ac_objext conftest$ac_exeext
16246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16247   (eval $ac_link) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } &&
16251          { ac_try='test -s conftest$ac_exeext'
16252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253   (eval $ac_try) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; }; then
16257   ac_cv_lib_intl_strftime=yes
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262 ac_cv_lib_intl_strftime=no
16263 fi
16264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16265 LIBS=$ac_check_lib_save_LIBS
16266 fi
16267 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16268 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16269 if test $ac_cv_lib_intl_strftime = yes; then
16270   cat >>confdefs.h <<\_ACEOF
16271 #define HAVE_STRFTIME 1
16272 _ACEOF
16273
16274 LIBS="-lintl $LIBS"
16275 fi
16276
16277 fi
16278 done
16279
16280
16281 for ac_func in vprintf
16282 do
16283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16284 echo "$as_me:$LINENO: checking for $ac_func" >&5
16285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16286 if eval "test \"\${$as_ac_var+set}\" = set"; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   cat >conftest.$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 /* System header to define __stub macros and hopefully few prototypes,
16297     which can conflict with char $ac_func (); below.
16298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16299     <limits.h> exists even on freestanding compilers.  */
16300 #ifdef __STDC__
16301 # include <limits.h>
16302 #else
16303 # include <assert.h>
16304 #endif
16305 /* Override any gcc2 internal prototype to avoid an error.  */
16306 #ifdef __cplusplus
16307 extern "C"
16308 {
16309 #endif
16310 /* We use char because int might match the return type of a gcc2
16311    builtin and then its argument prototype would still apply.  */
16312 char $ac_func ();
16313 /* The GNU C library defines this for functions which it implements
16314     to always fail with ENOSYS.  Some functions are actually named
16315     something starting with __ and the normal name is an alias.  */
16316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16317 choke me
16318 #else
16319 char (*f) () = $ac_func;
16320 #endif
16321 #ifdef __cplusplus
16322 }
16323 #endif
16324
16325 int
16326 main ()
16327 {
16328 return f != $ac_func;
16329   ;
16330   return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335   (eval $ac_link) 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } &&
16339          { ac_try='test -s conftest$ac_exeext'
16340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341   (eval $ac_try) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; }; then
16345   eval "$as_ac_var=yes"
16346 else
16347   echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16349
16350 eval "$as_ac_var=no"
16351 fi
16352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16353 fi
16354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16356 if test `eval echo '${'$as_ac_var'}'` = yes; then
16357   cat >>confdefs.h <<_ACEOF
16358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16359 _ACEOF
16360
16361 echo "$as_me:$LINENO: checking for _doprnt" >&5
16362 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16363 if test "${ac_cv_func__doprnt+set}" = set; then
16364   echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366   cat >conftest.$ac_ext <<_ACEOF
16367 #line $LINENO "configure"
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 /* System header to define __stub macros and hopefully few prototypes,
16374     which can conflict with char _doprnt (); below.
16375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16376     <limits.h> exists even on freestanding compilers.  */
16377 #ifdef __STDC__
16378 # include <limits.h>
16379 #else
16380 # include <assert.h>
16381 #endif
16382 /* Override any gcc2 internal prototype to avoid an error.  */
16383 #ifdef __cplusplus
16384 extern "C"
16385 {
16386 #endif
16387 /* We use char because int might match the return type of a gcc2
16388    builtin and then its argument prototype would still apply.  */
16389 char _doprnt ();
16390 /* The GNU C library defines this for functions which it implements
16391     to always fail with ENOSYS.  Some functions are actually named
16392     something starting with __ and the normal name is an alias.  */
16393 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16394 choke me
16395 #else
16396 char (*f) () = _doprnt;
16397 #endif
16398 #ifdef __cplusplus
16399 }
16400 #endif
16401
16402 int
16403 main ()
16404 {
16405 return f != _doprnt;
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16412   (eval $ac_link) 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } &&
16416          { ac_try='test -s conftest$ac_exeext'
16417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418   (eval $ac_try) 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; }; then
16422   ac_cv_func__doprnt=yes
16423 else
16424   echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 ac_cv_func__doprnt=no
16428 fi
16429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16430 fi
16431 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16432 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16433 if test $ac_cv_func__doprnt = yes; then
16434
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE_DOPRNT 1
16437 _ACEOF
16438
16439 fi
16440
16441 fi
16442 done
16443
16444
16445 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16446 # for constant arguments.  Useless!
16447 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16448 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16449 if test "${ac_cv_working_alloca_h+set}" = set; then
16450   echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452   cat >conftest.$ac_ext <<_ACEOF
16453 #line $LINENO "configure"
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 #include <alloca.h>
16460 int
16461 main ()
16462 {
16463 char *p = (char *) alloca (2 * sizeof (int));
16464   ;
16465   return 0;
16466 }
16467 _ACEOF
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16470   (eval $ac_link) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); } &&
16474          { ac_try='test -s conftest$ac_exeext'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; }; then
16480   ac_cv_working_alloca_h=yes
16481 else
16482   echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16484
16485 ac_cv_working_alloca_h=no
16486 fi
16487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16488 fi
16489 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16490 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16491 if test $ac_cv_working_alloca_h = yes; then
16492
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_ALLOCA_H 1
16495 _ACEOF
16496
16497 fi
16498
16499 echo "$as_me:$LINENO: checking for alloca" >&5
16500 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16501 if test "${ac_cv_func_alloca_works+set}" = set; then
16502   echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504   cat >conftest.$ac_ext <<_ACEOF
16505 #line $LINENO "configure"
16506 /* confdefs.h.  */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h.  */
16511 #ifdef __GNUC__
16512 # define alloca __builtin_alloca
16513 #else
16514 # ifdef _MSC_VER
16515 #  include <malloc.h>
16516 #  define alloca _alloca
16517 # else
16518 #  if HAVE_ALLOCA_H
16519 #   include <alloca.h>
16520 #  else
16521 #   ifdef _AIX
16522  #pragma alloca
16523 #   else
16524 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16525 char *alloca ();
16526 #    endif
16527 #   endif
16528 #  endif
16529 # endif
16530 #endif
16531
16532 int
16533 main ()
16534 {
16535 char *p = (char *) alloca (1);
16536   ;
16537   return 0;
16538 }
16539 _ACEOF
16540 rm -f conftest.$ac_objext conftest$ac_exeext
16541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16542   (eval $ac_link) 2>&5
16543   ac_status=$?
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); } &&
16546          { ac_try='test -s conftest$ac_exeext'
16547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548   (eval $ac_try) 2>&5
16549   ac_status=$?
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); }; }; then
16552   ac_cv_func_alloca_works=yes
16553 else
16554   echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16556
16557 ac_cv_func_alloca_works=no
16558 fi
16559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16560 fi
16561 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16562 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16563
16564 if test $ac_cv_func_alloca_works = yes; then
16565
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_ALLOCA 1
16568 _ACEOF
16569
16570 else
16571   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16572 # that cause trouble.  Some versions do not even contain alloca or
16573 # contain a buggy version.  If you still want to use their alloca,
16574 # use ar to extract alloca.o from them instead of compiling alloca.c.
16575
16576 ALLOCA=alloca.$ac_objext
16577
16578 cat >>confdefs.h <<\_ACEOF
16579 #define C_ALLOCA 1
16580 _ACEOF
16581
16582
16583 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16584 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16585 if test "${ac_cv_os_cray+set}" = set; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   cat >conftest.$ac_ext <<_ACEOF
16589 #line $LINENO "configure"
16590 /* confdefs.h.  */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h.  */
16595 #if defined(CRAY) && ! defined(CRAY2)
16596 webecray
16597 #else
16598 wenotbecray
16599 #endif
16600
16601 _ACEOF
16602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16603   $EGREP "webecray" >/dev/null 2>&1; then
16604   ac_cv_os_cray=yes
16605 else
16606   ac_cv_os_cray=no
16607 fi
16608 rm -f conftest*
16609
16610 fi
16611 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16612 echo "${ECHO_T}$ac_cv_os_cray" >&6
16613 if test $ac_cv_os_cray = yes; then
16614   for ac_func in _getb67 GETB67 getb67; do
16615     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16616 echo "$as_me:$LINENO: checking for $ac_func" >&5
16617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16618 if eval "test \"\${$as_ac_var+set}\" = set"; then
16619   echo $ECHO_N "(cached) $ECHO_C" >&6
16620 else
16621   cat >conftest.$ac_ext <<_ACEOF
16622 #line $LINENO "configure"
16623 /* confdefs.h.  */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h.  */
16628 /* System header to define __stub macros and hopefully few prototypes,
16629     which can conflict with char $ac_func (); below.
16630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16631     <limits.h> exists even on freestanding compilers.  */
16632 #ifdef __STDC__
16633 # include <limits.h>
16634 #else
16635 # include <assert.h>
16636 #endif
16637 /* Override any gcc2 internal prototype to avoid an error.  */
16638 #ifdef __cplusplus
16639 extern "C"
16640 {
16641 #endif
16642 /* We use char because int might match the return type of a gcc2
16643    builtin and then its argument prototype would still apply.  */
16644 char $ac_func ();
16645 /* The GNU C library defines this for functions which it implements
16646     to always fail with ENOSYS.  Some functions are actually named
16647     something starting with __ and the normal name is an alias.  */
16648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16649 choke me
16650 #else
16651 char (*f) () = $ac_func;
16652 #endif
16653 #ifdef __cplusplus
16654 }
16655 #endif
16656
16657 int
16658 main ()
16659 {
16660 return f != $ac_func;
16661   ;
16662   return 0;
16663 }
16664 _ACEOF
16665 rm -f conftest.$ac_objext conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667   (eval $ac_link) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); } &&
16671          { ac_try='test -s conftest$ac_exeext'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677   eval "$as_ac_var=yes"
16678 else
16679   echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 eval "$as_ac_var=no"
16683 fi
16684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16685 fi
16686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16688 if test `eval echo '${'$as_ac_var'}'` = yes; then
16689
16690 cat >>confdefs.h <<_ACEOF
16691 #define CRAY_STACKSEG_END $ac_func
16692 _ACEOF
16693
16694     break
16695 fi
16696
16697   done
16698 fi
16699
16700 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16701 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16702 if test "${ac_cv_c_stack_direction+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   if test "$cross_compiling" = yes; then
16706   ac_cv_c_stack_direction=0
16707 else
16708   cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715 int
16716 find_stack_direction ()
16717 {
16718   static char *addr = 0;
16719   auto char dummy;
16720   if (addr == 0)
16721     {
16722       addr = &dummy;
16723       return find_stack_direction ();
16724     }
16725   else
16726     return (&dummy > addr) ? 1 : -1;
16727 }
16728
16729 int
16730 main ()
16731 {
16732   exit (find_stack_direction () < 0);
16733 }
16734 _ACEOF
16735 rm -f conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737   (eval $ac_link) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_c_stack_direction=1
16747 else
16748   echo "$as_me: program exited with status $ac_status" >&5
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 ( exit $ac_status )
16753 ac_cv_c_stack_direction=-1
16754 fi
16755 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 fi
16758 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16759 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16760
16761 cat >>confdefs.h <<_ACEOF
16762 #define STACK_DIRECTION $ac_cv_c_stack_direction
16763 _ACEOF
16764
16765
16766 fi
16767
16768 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16769 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16770 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16771 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   ac_check_lib_save_LIBS=$LIBS
16775 LIBS="-lsun  $LIBS"
16776 cat >conftest.$ac_ext <<_ACEOF
16777 #line $LINENO "configure"
16778 /* confdefs.h.  */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h.  */
16783
16784 /* Override any gcc2 internal prototype to avoid an error.  */
16785 #ifdef __cplusplus
16786 extern "C"
16787 #endif
16788 /* We use char because int might match the return type of a gcc2
16789    builtin and then its argument prototype would still apply.  */
16790 char getmntent ();
16791 int
16792 main ()
16793 {
16794 getmntent ();
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801   (eval $ac_link) 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } &&
16805          { ac_try='test -s conftest$ac_exeext'
16806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807   (eval $ac_try) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_cv_lib_sun_getmntent=yes
16812 else
16813   echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816 ac_cv_lib_sun_getmntent=no
16817 fi
16818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_check_lib_save_LIBS
16820 fi
16821 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16822 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16823 if test $ac_cv_lib_sun_getmntent = yes; then
16824   LIBS="-lsun $LIBS"
16825 else
16826   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16827 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16828 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   ac_check_lib_save_LIBS=$LIBS
16832 LIBS="-lseq  $LIBS"
16833 cat >conftest.$ac_ext <<_ACEOF
16834 #line $LINENO "configure"
16835 /* confdefs.h.  */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h.  */
16840
16841 /* Override any gcc2 internal prototype to avoid an error.  */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 /* We use char because int might match the return type of a gcc2
16846    builtin and then its argument prototype would still apply.  */
16847 char getmntent ();
16848 int
16849 main ()
16850 {
16851 getmntent ();
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16858   (eval $ac_link) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); } &&
16862          { ac_try='test -s conftest$ac_exeext'
16863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864   (eval $ac_try) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; }; then
16868   ac_cv_lib_seq_getmntent=yes
16869 else
16870   echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ac_cv_lib_seq_getmntent=no
16874 fi
16875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16876 LIBS=$ac_check_lib_save_LIBS
16877 fi
16878 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16879 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16880 if test $ac_cv_lib_seq_getmntent = yes; then
16881   LIBS="-lseq $LIBS"
16882 else
16883   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16884 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16885 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16886   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888   ac_check_lib_save_LIBS=$LIBS
16889 LIBS="-lgen  $LIBS"
16890 cat >conftest.$ac_ext <<_ACEOF
16891 #line $LINENO "configure"
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897
16898 /* Override any gcc2 internal prototype to avoid an error.  */
16899 #ifdef __cplusplus
16900 extern "C"
16901 #endif
16902 /* We use char because int might match the return type of a gcc2
16903    builtin and then its argument prototype would still apply.  */
16904 char getmntent ();
16905 int
16906 main ()
16907 {
16908 getmntent ();
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915   (eval $ac_link) 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); } &&
16919          { ac_try='test -s conftest$ac_exeext'
16920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921   (eval $ac_try) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; }; then
16925   ac_cv_lib_gen_getmntent=yes
16926 else
16927   echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930 ac_cv_lib_gen_getmntent=no
16931 fi
16932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16934 fi
16935 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16936 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16937 if test $ac_cv_lib_gen_getmntent = yes; then
16938   LIBS="-lgen $LIBS"
16939 fi
16940
16941 fi
16942
16943 fi
16944
16945
16946 for ac_func in getmntent
16947 do
16948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16949 echo "$as_me:$LINENO: checking for $ac_func" >&5
16950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16951 if eval "test \"\${$as_ac_var+set}\" = set"; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   cat >conftest.$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961 /* System header to define __stub macros and hopefully few prototypes,
16962     which can conflict with char $ac_func (); below.
16963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16964     <limits.h> exists even on freestanding compilers.  */
16965 #ifdef __STDC__
16966 # include <limits.h>
16967 #else
16968 # include <assert.h>
16969 #endif
16970 /* Override any gcc2 internal prototype to avoid an error.  */
16971 #ifdef __cplusplus
16972 extern "C"
16973 {
16974 #endif
16975 /* We use char because int might match the return type of a gcc2
16976    builtin and then its argument prototype would still apply.  */
16977 char $ac_func ();
16978 /* The GNU C library defines this for functions which it implements
16979     to always fail with ENOSYS.  Some functions are actually named
16980     something starting with __ and the normal name is an alias.  */
16981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16982 choke me
16983 #else
16984 char (*f) () = $ac_func;
16985 #endif
16986 #ifdef __cplusplus
16987 }
16988 #endif
16989
16990 int
16991 main ()
16992 {
16993 return f != $ac_func;
16994   ;
16995   return 0;
16996 }
16997 _ACEOF
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000   (eval $ac_link) 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); } &&
17004          { ac_try='test -s conftest$ac_exeext'
17005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006   (eval $ac_try) 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); }; }; then
17010   eval "$as_ac_var=yes"
17011 else
17012   echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014
17015 eval "$as_ac_var=no"
17016 fi
17017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17018 fi
17019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17021 if test `eval echo '${'$as_ac_var'}'` = yes; then
17022   cat >>confdefs.h <<_ACEOF
17023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17024 _ACEOF
17025
17026 fi
17027 done
17028
17029
17030 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17031 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17032 if test "${ac_cv_func_closedir_void+set}" = set; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   if test "$cross_compiling" = yes; then
17036   ac_cv_func_closedir_void=yes
17037 else
17038   cat >conftest.$ac_ext <<_ACEOF
17039 #line $LINENO "configure"
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045 $ac_includes_default
17046 #include <$ac_header_dirent>
17047 #ifndef __cplusplus
17048 int closedir ();
17049 #endif
17050
17051 int
17052 main ()
17053 {
17054 exit (closedir (opendir (".")) != 0);
17055   ;
17056   return 0;
17057 }
17058 _ACEOF
17059 rm -f conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061   (eval $ac_link) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066   (eval $ac_try) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_cv_func_closedir_void=no
17071 else
17072   echo "$as_me: program exited with status $ac_status" >&5
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 ( exit $ac_status )
17077 ac_cv_func_closedir_void=yes
17078 fi
17079 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17080 fi
17081 fi
17082 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17083 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17084 if test $ac_cv_func_closedir_void = yes; then
17085
17086 cat >>confdefs.h <<\_ACEOF
17087 #define CLOSEDIR_VOID 1
17088 _ACEOF
17089
17090 fi
17091
17092 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17093 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17094 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   if test "$cross_compiling" = yes; then
17098   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17099 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17100    { (exit 1); exit 1; }; }
17101 else
17102   cat >conftest.$ac_ext <<_ACEOF
17103 #line $LINENO "configure"
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109 #if HAVE_UNISTD_H
17110 # include <unistd.h>
17111 #endif
17112
17113 int
17114 main ()
17115 {
17116 /* If this system has a BSD-style setpgrp which takes arguments,
17117   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17118   exit successfully. */
17119   exit (setpgrp (1,1) == -1 ? 0 : 1);
17120   ;
17121   return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126   (eval $ac_link) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   ac_cv_func_setpgrp_void=no
17136 else
17137   echo "$as_me: program exited with status $ac_status" >&5
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141 ( exit $ac_status )
17142 ac_cv_func_setpgrp_void=yes
17143 fi
17144 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 fi
17147 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17148 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17149 if test $ac_cv_func_setpgrp_void = yes; then
17150
17151 cat >>confdefs.h <<\_ACEOF
17152 #define SETPGRP_VOID 1
17153 _ACEOF
17154
17155 fi
17156                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17157 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17158 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17159   echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161   # Some versions of Solaris, SCO, and the GNU C Library
17162    # have a broken or incompatible fnmatch.
17163    # So we run a test program.  If we are cross-compiling, take no chance.
17164    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17165    if test "$cross_compiling" = yes; then
17166   ac_cv_func_fnmatch_works=cross
17167 else
17168   cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175 #include <fnmatch.h>
17176 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17177 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17178
17179 int
17180 main ()
17181 {
17182 exit
17183            (!(y ("a*", "abc", 0)
17184               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17185               && y ("a\\\\bc", "abc", 0)
17186               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17187               && y ("*x", ".x", 0)
17188               && n ("*x", ".x", FNM_PERIOD)
17189               && 1));
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 rm -f conftest$ac_exeext
17195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196   (eval $ac_link) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201   (eval $ac_try) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; }; then
17205   ac_cv_func_fnmatch_works=yes
17206 else
17207   echo "$as_me: program exited with status $ac_status" >&5
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211 ( exit $ac_status )
17212 ac_cv_func_fnmatch_works=no
17213 fi
17214 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17215 fi
17216 fi
17217 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17218 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17219 if test $ac_cv_func_fnmatch_works = yes; then
17220
17221 cat >>confdefs.h <<\_ACEOF
17222 #define HAVE_FNMATCH 1
17223 _ACEOF
17224
17225 fi
17226
17227
17228
17229
17230
17231 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17232 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17233 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17234   echo $ECHO_N "(cached) $ECHO_C" >&6
17235 else
17236   ac_check_lib_save_LIBS=$LIBS
17237 LIBS="-lxpg4  $LIBS"
17238 cat >conftest.$ac_ext <<_ACEOF
17239 #line $LINENO "configure"
17240 /* confdefs.h.  */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h.  */
17245
17246 /* Override any gcc2 internal prototype to avoid an error.  */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 /* We use char because int might match the return type of a gcc2
17251    builtin and then its argument prototype would still apply.  */
17252 char setlocale ();
17253 int
17254 main ()
17255 {
17256 setlocale ();
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263   (eval $ac_link) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); } &&
17267          { ac_try='test -s conftest$ac_exeext'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273   ac_cv_lib_xpg4_setlocale=yes
17274 else
17275   echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278 ac_cv_lib_xpg4_setlocale=no
17279 fi
17280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17282 fi
17283 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17284 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17285 if test $ac_cv_lib_xpg4_setlocale = yes; then
17286   LIBS="$LIBS -lxpg4"
17287 fi
17288
17289
17290
17291
17292 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17293 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17294 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17295   echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297   ac_check_lib_save_LIBS=$LIBS
17298 LIBS="-lsun  $LIBS"
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line $LINENO "configure"
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306
17307 /* Override any gcc2 internal prototype to avoid an error.  */
17308 #ifdef __cplusplus
17309 extern "C"
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 getpwnam ();
17314 int
17315 main ()
17316 {
17317 getpwnam ();
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324   (eval $ac_link) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } &&
17328          { ac_try='test -s conftest$ac_exeext'
17329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330   (eval $ac_try) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); }; }; then
17334   ac_cv_lib_sun_getpwnam=yes
17335 else
17336   echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339 ac_cv_lib_sun_getpwnam=no
17340 fi
17341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17343 fi
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17345 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17346 if test $ac_cv_lib_sun_getpwnam = yes; then
17347   cat >>confdefs.h <<_ACEOF
17348 #define HAVE_LIBSUN 1
17349 _ACEOF
17350
17351   LIBS="-lsun $LIBS"
17352
17353 fi
17354
17355
17356
17357 for ac_header in zlib.h
17358 do
17359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17361   echo "$as_me:$LINENO: checking for $ac_header" >&5
17362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 fi
17366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17368 else
17369   # Is the header compilable?
17370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17372 cat >conftest.$ac_ext <<_ACEOF
17373 #line $LINENO "configure"
17374 /* confdefs.h.  */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h.  */
17379 $ac_includes_default
17380 #include <$ac_header>
17381 _ACEOF
17382 rm -f conftest.$ac_objext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384   (eval $ac_compile) 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); } &&
17388          { ac_try='test -s conftest.$ac_objext'
17389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390   (eval $ac_try) 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); }; }; then
17394   ac_header_compiler=yes
17395 else
17396   echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399 ac_header_compiler=no
17400 fi
17401 rm -f conftest.$ac_objext conftest.$ac_ext
17402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17403 echo "${ECHO_T}$ac_header_compiler" >&6
17404
17405 # Is the header present?
17406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17408 cat >conftest.$ac_ext <<_ACEOF
17409 #line $LINENO "configure"
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 #include <$ac_header>
17416 _ACEOF
17417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } >/dev/null; then
17425   if test -s conftest.err; then
17426     ac_cpp_err=$ac_c_preproc_warn_flag
17427   else
17428     ac_cpp_err=
17429   fi
17430 else
17431   ac_cpp_err=yes
17432 fi
17433 if test -z "$ac_cpp_err"; then
17434   ac_header_preproc=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439   ac_header_preproc=no
17440 fi
17441 rm -f conftest.err conftest.$ac_ext
17442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17443 echo "${ECHO_T}$ac_header_preproc" >&6
17444
17445 # So?  What about this header?
17446 case $ac_header_compiler:$ac_header_preproc in
17447   yes:no )
17448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17452     (
17453       cat <<\_ASBOX
17454 ## ------------------------------------ ##
17455 ## Report this to bug-autoconf@gnu.org. ##
17456 ## ------------------------------------ ##
17457 _ASBOX
17458     ) |
17459       sed "s/^/$as_me: WARNING:     /" >&2
17460     ;;
17461   no:yes )
17462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17464     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17468     (
17469       cat <<\_ASBOX
17470 ## ------------------------------------ ##
17471 ## Report this to bug-autoconf@gnu.org. ##
17472 ## ------------------------------------ ##
17473 _ASBOX
17474     ) |
17475       sed "s/^/$as_me: WARNING:     /" >&2
17476     ;;
17477 esac
17478 echo "$as_me:$LINENO: checking for $ac_header" >&5
17479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17481   echo $ECHO_N "(cached) $ECHO_C" >&6
17482 else
17483   eval "$as_ac_Header=$ac_header_preproc"
17484 fi
17485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17487
17488 fi
17489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17490   cat >>confdefs.h <<_ACEOF
17491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17492 _ACEOF
17493
17494 fi
17495
17496 done
17497
17498 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17499 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17500 if test "${ac_cv_lib_z_deflate+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-lz  $LIBS"
17505 cat >conftest.$ac_ext <<_ACEOF
17506 #line $LINENO "configure"
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512
17513 /* Override any gcc2 internal prototype to avoid an error.  */
17514 #ifdef __cplusplus
17515 extern "C"
17516 #endif
17517 /* We use char because int might match the return type of a gcc2
17518    builtin and then its argument prototype would still apply.  */
17519 char deflate ();
17520 int
17521 main ()
17522 {
17523 deflate ();
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530   (eval $ac_link) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -s conftest$ac_exeext'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; }; then
17540   ac_cv_lib_z_deflate=yes
17541 else
17542   echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545 ac_cv_lib_z_deflate=no
17546 fi
17547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17549 fi
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17551 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17552 if test $ac_cv_lib_z_deflate = yes; then
17553   FDLIBS="-lz"
17554 fi
17555
17556 have_zlib=no
17557 if test x$FDLIBS = x-lz; then
17558   cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_LIBZ 1
17560 _ACEOF
17561
17562   have_zlib=yes
17563 fi
17564
17565 PTHREAD_LIB=""
17566 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17567 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17568 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571   ac_check_lib_save_LIBS=$LIBS
17572 LIBS="-lpthread  $LIBS"
17573 cat >conftest.$ac_ext <<_ACEOF
17574 #line $LINENO "configure"
17575 /* confdefs.h.  */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h.  */
17580
17581 /* Override any gcc2 internal prototype to avoid an error.  */
17582 #ifdef __cplusplus
17583 extern "C"
17584 #endif
17585 /* We use char because int might match the return type of a gcc2
17586    builtin and then its argument prototype would still apply.  */
17587 char pthread_create ();
17588 int
17589 main ()
17590 {
17591 pthread_create ();
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17598   (eval $ac_link) 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -s conftest$ac_exeext'
17603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604   (eval $ac_try) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); }; }; then
17608   ac_cv_lib_pthread_pthread_create=yes
17609 else
17610   echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 ac_cv_lib_pthread_pthread_create=no
17614 fi
17615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17616 LIBS=$ac_check_lib_save_LIBS
17617 fi
17618 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17619 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17620 if test $ac_cv_lib_pthread_pthread_create = yes; then
17621   PTHREAD_LIB="-lpthread"
17622 else
17623   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17624 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17625 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628   ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-lpthreads  $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17631 #line $LINENO "configure"
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637
17638 /* Override any gcc2 internal prototype to avoid an error.  */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 /* We use char because int might match the return type of a gcc2
17643    builtin and then its argument prototype would still apply.  */
17644 char pthread_create ();
17645 int
17646 main ()
17647 {
17648 pthread_create ();
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext conftest$ac_exeext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655   (eval $ac_link) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -s conftest$ac_exeext'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   ac_cv_lib_pthreads_pthread_create=yes
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_lib_pthreads_pthread_create=no
17671 fi
17672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17673 LIBS=$ac_check_lib_save_LIBS
17674 fi
17675 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17676 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17677 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17678   PTHREAD_LIB="-lpthreads"
17679 else
17680   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17681 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17682 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685   ac_check_lib_save_LIBS=$LIBS
17686 LIBS="-lc_r  $LIBS"
17687 cat >conftest.$ac_ext <<_ACEOF
17688 #line $LINENO "configure"
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694
17695 /* Override any gcc2 internal prototype to avoid an error.  */
17696 #ifdef __cplusplus
17697 extern "C"
17698 #endif
17699 /* We use char because int might match the return type of a gcc2
17700    builtin and then its argument prototype would still apply.  */
17701 char pthread_create ();
17702 int
17703 main ()
17704 {
17705 pthread_create ();
17706   ;
17707   return 0;
17708 }
17709 _ACEOF
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712   (eval $ac_link) 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -s conftest$ac_exeext'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; }; then
17722   ac_cv_lib_c_r_pthread_create=yes
17723 else
17724   echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_cv_lib_c_r_pthread_create=no
17728 fi
17729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17730 LIBS=$ac_check_lib_save_LIBS
17731 fi
17732 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17733 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17734 if test $ac_cv_lib_c_r_pthread_create = yes; then
17735   PTHREAD_LIB="-lc_r"
17736 else
17737   echo "$as_me:$LINENO: checking for pthread_create" >&5
17738 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17739 if test "${ac_cv_func_pthread_create+set}" = set; then
17740   echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742   cat >conftest.$ac_ext <<_ACEOF
17743 #line $LINENO "configure"
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749 /* System header to define __stub macros and hopefully few prototypes,
17750     which can conflict with char pthread_create (); below.
17751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752     <limits.h> exists even on freestanding compilers.  */
17753 #ifdef __STDC__
17754 # include <limits.h>
17755 #else
17756 # include <assert.h>
17757 #endif
17758 /* Override any gcc2 internal prototype to avoid an error.  */
17759 #ifdef __cplusplus
17760 extern "C"
17761 {
17762 #endif
17763 /* We use char because int might match the return type of a gcc2
17764    builtin and then its argument prototype would still apply.  */
17765 char pthread_create ();
17766 /* The GNU C library defines this for functions which it implements
17767     to always fail with ENOSYS.  Some functions are actually named
17768     something starting with __ and the normal name is an alias.  */
17769 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17770 choke me
17771 #else
17772 char (*f) () = pthread_create;
17773 #endif
17774 #ifdef __cplusplus
17775 }
17776 #endif
17777
17778 int
17779 main ()
17780 {
17781 return f != pthread_create;
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788   (eval $ac_link) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); } &&
17792          { ac_try='test -s conftest$ac_exeext'
17793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794   (eval $ac_try) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); }; }; then
17798   ac_cv_func_pthread_create=yes
17799 else
17800   echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 ac_cv_func_pthread_create=no
17804 fi
17805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17806 fi
17807 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17808 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17809
17810
17811 fi
17812
17813
17814 fi
17815
17816
17817 fi
17818
17819
17820
17821 cat >>confdefs.h <<\_ACEOF
17822 #define FDLIBS 1
17823 _ACEOF
17824
17825
17826
17827 CFLAGS=${CFLAGS--O}
17828 LDFLAGS=${LDFLAGS--O}
17829 DB_LIBS="${SQL_LFLAGS}"
17830
17831 CPPFLAGS="$CPPFLAGS"
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846 OBJLIST=
17847
17848
17849 lld="lld"
17850 llu="llu"
17851
17852 WCFLAGS=
17853 WLDFLAGS=
17854
17855 #
17856 # Finally we set appropriate distribution specific
17857 #  variables and defaults
17858 #
17859 # PFILES are platform specific files
17860 PFILES="platforms/Makefile"
17861 PSCMD="ps -e"
17862 WIN32=
17863 hostname=`uname -n | cut -d '.' -f 1`
17864 case "$DISTNAME" in
17865 aix)
17866         DISTVER=`uname -r`
17867         PSCMD="ps -e -o pid,comm"
17868         PFILES="${PFILES} \
17869            platforms/aix/Makefile"
17870         TAPEDRIVE="/dev/rmt0.1"
17871   ;;
17872 alpha)
17873         DISTVER=`uname -r`
17874         PTHREAD_LIB="-lpthread -lexc"
17875         if test "${CC}" = "gcc" ; then
17876            lld="lld"
17877            llu="llu"
17878         else
17879            lld="ld"
17880            llu="lu"
17881         fi
17882         TAPEDRIVE="/dev/nrmt0"
17883   ;;
17884 bsdi)
17885         DISTVER=`uname -a |awk '{print $3}'`
17886         TAPEDRIVE="/dev/nrmt0"
17887         PTHREAD_LIB="-pthread"
17888         CFLAGS="${CFLAGS} -pthread"
17889         PSCMD="ps -x -o pid,command"
17890         lld="qd"
17891         llu="qu"
17892         PFILES="${PFILES} \
17893             platforms/bsdi/Makefile \
17894             platforms/bsdi/bacula-fd \
17895             platforms/bsdi/bacula-sd \
17896             platforms/bsdi/bacula-dir"
17897         largefile_support="yes"
17898   ;;
17899 cygwin)
17900         DISTVER=`uname -a |awk '{print $3}'`
17901         TAPEDRIVE="/dev/nrst0"
17902         WIN32=win32
17903         WCFLAGS="-mwindows"
17904         WLDFLAGS="-mwindows"
17905   ;;
17906 darwin)
17907         DISTVER=`uname -r`
17908         TAPEDRIVE="/dev/nst0"
17909         PSCMD="ps -e -o pid,command"
17910         PFILES="${PFILES} \
17911            platforms/darwin/Makefile"
17912   ;;
17913 debian)
17914         DISTVER=`cat /etc/debian_version`
17915         TAPEDRIVE="/dev/nrst0"
17916         PSCMD="ps -e -o pid,command"
17917   ;;
17918 freebsd)
17919         DISTVER=`uname -a |awk '{print $3}'`
17920         VER=`echo $DISTVER | cut -c 1`
17921         if test x$VER = x4 ; then
17922            PTHREAD_LIB="-pthread"
17923            CFLAGS="${CFLAGS} -pthread"
17924         fi
17925         lld="qd"
17926         llu="qu"
17927         TAPEDRIVE="/dev/nrsa0"
17928         PSCMD="ps -x -o pid,command"
17929         PFILES="${PFILES} \
17930             platforms/freebsd/Makefile \
17931             platforms/freebsd/bacula-fd \
17932             platforms/freebsd/bacula-sd \
17933             platforms/freebsd/bacula-dir"
17934         largefile_support="yes"
17935   ;;
17936 hpux)
17937         PSCMD="UNIX95=1 ps -e -o pid,comm"
17938         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
17939         DISTVER=`uname -r`
17940         TAPEDRIVE="/dev/rmt/0hnb"
17941   ;;
17942 irix)
17943         DISTVER=`uname -r`
17944         TAPEDRIVE="/dev/rmt/0cbn"
17945         PSCMD="ps -e -o pid,comm"
17946         PFILES="${PFILES} \
17947             platforms/irix/Makefile \
17948             platforms/irix/bacula-fd \
17949             platforms/irix/bacula-sd \
17950             platforms/irix/bacula-dir"
17951   ;;
17952 netbsd)
17953         DISTVER=`uname -a |awk '{print $3}'`
17954         lld="qd"
17955         llu="qu"
17956         TAPEDRIVE="/dev/nrst0"
17957         PSCMD="ps -a -o pid,command"
17958         PTHREAD_LIB="-pthread"
17959         CFLAGS="${CFLAGS} -pthread"
17960   ;;
17961 openbsd)
17962         DISTVER=`uname -a |awk '{print $3}'`
17963         lld="qd"
17964         llu="qu"
17965         TAPEDRIVE="/dev/nrst0"
17966         PSCMD="ps -a -o pid,command"
17967         PTHREAD_LIB="-pthread"
17968         CFLAGS="${CFLAGS} -pthread"
17969         PFILES="${PFILES} \
17970             platforms/openbsd/Makefile \
17971             platforms/openbsd/bacula-fd \
17972             platforms/openbsd/bacula-sd \
17973             platforms/openbsd/bacula-dir"
17974   ;;
17975 redhat)
17976         if test `cat /etc/redhat-release | grep release |\
17977                    cut -f 3 -d ' '`x = "Enterprise"x ; then
17978            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17979                     cut -f 6 -d ' '`
17980         else
17981             DISTVER=`cat /etc/redhat-release | grep release |\
17982                      cut -f 5 -d ' '`
17983         fi
17984         TAPEDRIVE="/dev/nst0"
17985         PSCMD="ps -e -o pid,command"
17986         PFILES="${PFILES} \
17987             platforms/redhat/Makefile \
17988             platforms/redhat/bacula-fd \
17989             platforms/redhat/bacula-sd \
17990             platforms/redhat/bacula-dir \
17991             platforms/redhat/bacula.spec \
17992             "
17993         hostname=`hostname -s`
17994   ;;
17995 mandrake)
17996         DISTVER=`cat /etc/mandrake-release | grep release |\
17997            cut -f 5 -d ' '`
17998         TAPEDRIVE="/dev/nst0"
17999         PSCMD="ps -e -o pid,command"
18000         PFILES="${PFILES} \
18001             platforms/mandrake/Makefile \
18002             platforms/mandrake/bacula-fd \
18003             platforms/mandrake/bacula-sd \
18004             platforms/mandrake/bacula-dir \
18005             platforms/mandrake/bacula.spec \
18006             "
18007   ;;
18008 gentoo)
18009         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18010         TAPEDRIVE="/dev/nst0"
18011         PSCMD="ps -e -o pid,command"
18012         PFILES="${PFILES} \
18013             platforms/gentoo/Makefile \
18014             platforms/gentoo/bacula-fd \
18015             platforms/gentoo/bacula-sd \
18016             platforms/gentoo/bacula-dir"
18017   ;;
18018 slackware)
18019         DISTVER=`cat /etc/slackware-version`
18020         TAPEDRIVE="/dev/nst0"
18021         PSCMD="ps -e -o pid,command"
18022         PFILES="${PFILES} \
18023             platforms/slackware/Makefile \
18024             platforms/slackware/rc.bacula-fd \
18025             platforms/slackware/rc.bacula-sd \
18026             platforms/slackware/rc.bacula-dir\
18027             platforms/slackware/functions.bacula"
18028   ;;
18029 solaris)
18030         DISTVER=`uname -r`
18031         TAPEDRIVE="/dev/rmt/0cbn"
18032         PSCMD="ps -e -o pid,comm"
18033         PFILES="${PFILES} \
18034             platforms/solaris/Makefile \
18035             platforms/solaris/bacula-fd \
18036             platforms/solaris/bacula-sd \
18037             platforms/solaris/bacula-dir"
18038         if test x$DISTVER = x5.6 ; then
18039             cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_OLD_SOCKOPT 1
18041 _ACEOF
18042
18043         fi
18044   ;;
18045 suse)
18046         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18047             cut -f 3 -d ' '`
18048         TAPEDRIVE="/dev/nst0"
18049         PSCMD="ps -e -o pid,command"
18050         PFILES="${PFILES} \
18051             platforms/suse/Makefile \
18052             platforms/suse/bacula-fd \
18053             platforms/suse/bacula-sd \
18054             platforms/suse/bacula-dir \
18055             platforms/suse/bacula \
18056             platforms/suse/bacula.spec"
18057   ;;
18058 suse5)
18059         DISTNAME=suse
18060         DISTVER=5.x
18061         TAPEDRIVE="/dev/nst0"
18062         PSCMD="ps -e -o pid,command"
18063         PFILES="${PFILES} \
18064             platforms/suse/Makefile \
18065             platforms/suse/bacula-fd \
18066             platforms/suse/bacula-sd \
18067             platforms/suse/bacula-dir"
18068   ;;
18069 unknown)
18070         DISTVER=unknown
18071         TAPEDRIVE="/dev/nst0"
18072   ;;
18073 *)
18074   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18075   ;;
18076 esac
18077
18078
18079
18080 LIBS="$PTHREAD_LIB $LIBS"
18081
18082 cat >>confdefs.h <<_ACEOF
18083 #define lld "$lld"
18084 _ACEOF
18085
18086 cat >>confdefs.h <<_ACEOF
18087 #define llu "$llu"
18088 _ACEOF
18089
18090
18091
18092
18093
18094
18095
18096 MCOMMON=./autoconf/Make.common
18097
18098
18099 if test "x${subsysdir}" = "x${sbindir}" ; then
18100    echo " "
18101    echo " "
18102    echo "You have set both --sbindir and --with-subsys-dir"
18103    echo "  equal to: ${subsysdir} "
18104    echo "This is not permitted. Please reconfigure."
18105    echo " "
18106    echo "Aborting configuration ..."
18107    echo " "
18108    echo " "
18109    exit 1
18110 fi
18111
18112                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd 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 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/tconsole/Makefile 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/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/bacula-fd.conf src/win32/Makefile $PFILES"
18113           ac_config_commands="$ac_config_commands default"
18114 cat >confcache <<\_ACEOF
18115 # This file is a shell script that caches the results of configure
18116 # tests run on this system so they can be shared between configure
18117 # scripts and configure runs, see configure's option --config-cache.
18118 # It is not useful on other systems.  If it contains results you don't
18119 # want to keep, you may remove or edit it.
18120 #
18121 # config.status only pays attention to the cache file if you give it
18122 # the --recheck option to rerun configure.
18123 #
18124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18126 # following values.
18127
18128 _ACEOF
18129
18130 # The following way of writing the cache mishandles newlines in values,
18131 # but we know of no workaround that is simple, portable, and efficient.
18132 # So, don't put newlines in cache variables' values.
18133 # Ultrix sh set writes to stderr and can't be redirected directly,
18134 # and sets the high bit in the cache file unless we assign to the vars.
18135 {
18136   (set) 2>&1 |
18137     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18138     *ac_space=\ *)
18139       # `set' does not quote correctly, so add quotes (double-quote
18140       # substitution turns \\\\ into \\, and sed turns \\ into \).
18141       sed -n \
18142         "s/'/'\\\\''/g;
18143           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18144       ;;
18145     *)
18146       # `set' quotes correctly as required by POSIX, so do not add quotes.
18147       sed -n \
18148         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18149       ;;
18150     esac;
18151 } |
18152   sed '
18153      t clear
18154      : clear
18155      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18156      t end
18157      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18158      : end' >>confcache
18159 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18160   if test -w $cache_file; then
18161     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18162     cat confcache >$cache_file
18163   else
18164     echo "not updating unwritable cache $cache_file"
18165   fi
18166 fi
18167 rm -f confcache
18168
18169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18170 # Let make expand exec_prefix.
18171 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18172
18173 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18174 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18175 # trailing colons and then remove the whole line if VPATH becomes empty
18176 # (actually we leave an empty line to preserve line numbers).
18177 if test "x$srcdir" = x.; then
18178   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18179 s/:*\$(srcdir):*/:/;
18180 s/:*\${srcdir}:*/:/;
18181 s/:*@srcdir@:*/:/;
18182 s/^\([^=]*=[    ]*\):*/\1/;
18183 s/:*$//;
18184 s/^[^=]*=[      ]*$//;
18185 }'
18186 fi
18187
18188 DEFS=-DHAVE_CONFIG_H
18189
18190 ac_libobjs=
18191 ac_ltlibobjs=
18192 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18193   # 1. Remove the extension, and $U if already installed.
18194   ac_i=`echo "$ac_i" |
18195          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18196   # 2. Add them.
18197   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18198   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18199 done
18200 LIBOBJS=$ac_libobjs
18201
18202 LTLIBOBJS=$ac_ltlibobjs
18203
18204
18205
18206 : ${CONFIG_STATUS=./config.status}
18207 ac_clean_files_save=$ac_clean_files
18208 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18209 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18210 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18211 cat >$CONFIG_STATUS <<_ACEOF
18212 #! $SHELL
18213 # Generated by $as_me.
18214 # Run this file to recreate the current configuration.
18215 # Compiler output produced by configure, useful for debugging
18216 # configure, is in config.log if it exists.
18217
18218 debug=false
18219 ac_cs_recheck=false
18220 ac_cs_silent=false
18221 SHELL=\${CONFIG_SHELL-$SHELL}
18222 _ACEOF
18223
18224 cat >>$CONFIG_STATUS <<\_ACEOF
18225 ## --------------------- ##
18226 ## M4sh Initialization.  ##
18227 ## --------------------- ##
18228
18229 # Be Bourne compatible
18230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18231   emulate sh
18232   NULLCMD=:
18233   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18234   # is contrary to our usage.  Disable this feature.
18235   alias -g '${1+"$@"}'='"$@"'
18236 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18237   set -o posix
18238 fi
18239
18240 # Support unset when possible.
18241 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18242   as_unset=unset
18243 else
18244   as_unset=false
18245 fi
18246
18247
18248 # Work around bugs in pre-3.0 UWIN ksh.
18249 $as_unset ENV MAIL MAILPATH
18250 PS1='$ '
18251 PS2='> '
18252 PS4='+ '
18253
18254 # NLS nuisances.
18255 for as_var in \
18256   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18257   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18258   LC_TELEPHONE LC_TIME
18259 do
18260   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18261     eval $as_var=C; export $as_var
18262   else
18263     $as_unset $as_var
18264   fi
18265 done
18266
18267 # Required to use basename.
18268 if expr a : '\(a\)' >/dev/null 2>&1; then
18269   as_expr=expr
18270 else
18271   as_expr=false
18272 fi
18273
18274 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18275   as_basename=basename
18276 else
18277   as_basename=false
18278 fi
18279
18280
18281 # Name of the executable.
18282 as_me=`$as_basename "$0" ||
18283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18284          X"$0" : 'X\(//\)$' \| \
18285          X"$0" : 'X\(/\)$' \| \
18286          .     : '\(.\)' 2>/dev/null ||
18287 echo X/"$0" |
18288     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18289           /^X\/\(\/\/\)$/{ s//\1/; q; }
18290           /^X\/\(\/\).*/{ s//\1/; q; }
18291           s/.*/./; q'`
18292
18293
18294 # PATH needs CR, and LINENO needs CR and PATH.
18295 # Avoid depending upon Character Ranges.
18296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18299 as_cr_digits='0123456789'
18300 as_cr_alnum=$as_cr_Letters$as_cr_digits
18301
18302 # The user is always right.
18303 if test "${PATH_SEPARATOR+set}" != set; then
18304   echo "#! /bin/sh" >conf$$.sh
18305   echo  "exit 0"   >>conf$$.sh
18306   chmod +x conf$$.sh
18307   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18308     PATH_SEPARATOR=';'
18309   else
18310     PATH_SEPARATOR=:
18311   fi
18312   rm -f conf$$.sh
18313 fi
18314
18315
18316   as_lineno_1=$LINENO
18317   as_lineno_2=$LINENO
18318   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18319   test "x$as_lineno_1" != "x$as_lineno_2" &&
18320   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18321   # Find who we are.  Look in the path if we contain no path at all
18322   # relative or not.
18323   case $0 in
18324     *[\\/]* ) as_myself=$0 ;;
18325     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18326 for as_dir in $PATH
18327 do
18328   IFS=$as_save_IFS
18329   test -z "$as_dir" && as_dir=.
18330   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18331 done
18332
18333        ;;
18334   esac
18335   # We did not find ourselves, most probably we were run as `sh COMMAND'
18336   # in which case we are not to be found in the path.
18337   if test "x$as_myself" = x; then
18338     as_myself=$0
18339   fi
18340   if test ! -f "$as_myself"; then
18341     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18342 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18343    { (exit 1); exit 1; }; }
18344   fi
18345   case $CONFIG_SHELL in
18346   '')
18347     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18348 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18349 do
18350   IFS=$as_save_IFS
18351   test -z "$as_dir" && as_dir=.
18352   for as_base in sh bash ksh sh5; do
18353          case $as_dir in
18354          /*)
18355            if ("$as_dir/$as_base" -c '
18356   as_lineno_1=$LINENO
18357   as_lineno_2=$LINENO
18358   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18359   test "x$as_lineno_1" != "x$as_lineno_2" &&
18360   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18361              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18362              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18363              CONFIG_SHELL=$as_dir/$as_base
18364              export CONFIG_SHELL
18365              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18366            fi;;
18367          esac
18368        done
18369 done
18370 ;;
18371   esac
18372
18373   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18374   # uniformly replaced by the line number.  The first 'sed' inserts a
18375   # line-number line before each line; the second 'sed' does the real
18376   # work.  The second script uses 'N' to pair each line-number line
18377   # with the numbered line, and appends trailing '-' during
18378   # substitution so that $LINENO is not a special case at line end.
18379   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18380   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18381   sed '=' <$as_myself |
18382     sed '
18383       N
18384       s,$,-,
18385       : loop
18386       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18387       t loop
18388       s,-$,,
18389       s,^['$as_cr_digits']*\n,,
18390     ' >$as_me.lineno &&
18391   chmod +x $as_me.lineno ||
18392     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18393 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18394    { (exit 1); exit 1; }; }
18395
18396   # Don't try to exec as it changes $[0], causing all sort of problems
18397   # (the dirname of $[0] is not the place where we might find the
18398   # original and so on.  Autoconf is especially sensible to this).
18399   . ./$as_me.lineno
18400   # Exit status is that of the last command.
18401   exit
18402 }
18403
18404
18405 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18406   *c*,-n*) ECHO_N= ECHO_C='
18407 ' ECHO_T='      ' ;;
18408   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18409   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18410 esac
18411
18412 if expr a : '\(a\)' >/dev/null 2>&1; then
18413   as_expr=expr
18414 else
18415   as_expr=false
18416 fi
18417
18418 rm -f conf$$ conf$$.exe conf$$.file
18419 echo >conf$$.file
18420 if ln -s conf$$.file conf$$ 2>/dev/null; then
18421   # We could just check for DJGPP; but this test a) works b) is more generic
18422   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18423   if test -f conf$$.exe; then
18424     # Don't use ln at all; we don't have any links
18425     as_ln_s='cp -p'
18426   else
18427     as_ln_s='ln -s'
18428   fi
18429 elif ln conf$$.file conf$$ 2>/dev/null; then
18430   as_ln_s=ln
18431 else
18432   as_ln_s='cp -p'
18433 fi
18434 rm -f conf$$ conf$$.exe conf$$.file
18435
18436 if mkdir -p . 2>/dev/null; then
18437   as_mkdir_p=:
18438 else
18439   as_mkdir_p=false
18440 fi
18441
18442 as_executable_p="test -f"
18443
18444 # Sed expression to map a string onto a valid CPP name.
18445 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18446
18447 # Sed expression to map a string onto a valid variable name.
18448 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18449
18450
18451 # IFS
18452 # We need space, tab and new line, in precisely that order.
18453 as_nl='
18454 '
18455 IFS="   $as_nl"
18456
18457 # CDPATH.
18458 $as_unset CDPATH
18459
18460 exec 6>&1
18461
18462 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18463 # report actual input values of CONFIG_FILES etc. instead of their
18464 # values after options handling.  Logging --version etc. is OK.
18465 exec 5>>config.log
18466 {
18467   echo
18468   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18469 ## Running $as_me. ##
18470 _ASBOX
18471 } >&5
18472 cat >&5 <<_CSEOF
18473
18474 This file was extended by $as_me, which was
18475 generated by GNU Autoconf 2.57.  Invocation command line was
18476
18477   CONFIG_FILES    = $CONFIG_FILES
18478   CONFIG_HEADERS  = $CONFIG_HEADERS
18479   CONFIG_LINKS    = $CONFIG_LINKS
18480   CONFIG_COMMANDS = $CONFIG_COMMANDS
18481   $ $0 $@
18482
18483 _CSEOF
18484 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18485 echo >&5
18486 _ACEOF
18487
18488 # Files that config.status was made for.
18489 if test -n "$ac_config_files"; then
18490   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18491 fi
18492
18493 if test -n "$ac_config_headers"; then
18494   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18495 fi
18496
18497 if test -n "$ac_config_links"; then
18498   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18499 fi
18500
18501 if test -n "$ac_config_commands"; then
18502   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18503 fi
18504
18505 cat >>$CONFIG_STATUS <<\_ACEOF
18506
18507 ac_cs_usage="\
18508 \`$as_me' instantiates files from templates according to the
18509 current configuration.
18510
18511 Usage: $0 [OPTIONS] [FILE]...
18512
18513   -h, --help       print this help, then exit
18514   -V, --version    print version number, then exit
18515   -q, --quiet      do not print progress messages
18516   -d, --debug      don't remove temporary files
18517       --recheck    update $as_me by reconfiguring in the same conditions
18518   --file=FILE[:TEMPLATE]
18519                    instantiate the configuration file FILE
18520   --header=FILE[:TEMPLATE]
18521                    instantiate the configuration header FILE
18522
18523 Configuration files:
18524 $config_files
18525
18526 Configuration headers:
18527 $config_headers
18528
18529 Configuration commands:
18530 $config_commands
18531
18532 Report bugs to <bug-autoconf@gnu.org>."
18533 _ACEOF
18534
18535 cat >>$CONFIG_STATUS <<_ACEOF
18536 ac_cs_version="\\
18537 config.status
18538 configured by $0, generated by GNU Autoconf 2.57,
18539   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18540
18541 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18542 Free Software Foundation, Inc.
18543 This config.status script is free software; the Free Software Foundation
18544 gives unlimited permission to copy, distribute and modify it."
18545 srcdir=$srcdir
18546 INSTALL="$INSTALL"
18547 _ACEOF
18548
18549 cat >>$CONFIG_STATUS <<\_ACEOF
18550 # If no file are specified by the user, then we need to provide default
18551 # value.  By we need to know if files were specified by the user.
18552 ac_need_defaults=:
18553 while test $# != 0
18554 do
18555   case $1 in
18556   --*=*)
18557     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18558     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18559     ac_shift=:
18560     ;;
18561   -*)
18562     ac_option=$1
18563     ac_optarg=$2
18564     ac_shift=shift
18565     ;;
18566   *) # This is not an option, so the user has probably given explicit
18567      # arguments.
18568      ac_option=$1
18569      ac_need_defaults=false;;
18570   esac
18571
18572   case $ac_option in
18573   # Handling of the options.
18574 _ACEOF
18575 cat >>$CONFIG_STATUS <<\_ACEOF
18576   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18577     ac_cs_recheck=: ;;
18578   --version | --vers* | -V )
18579     echo "$ac_cs_version"; exit 0 ;;
18580   --he | --h)
18581     # Conflict between --help and --header
18582     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18583 Try \`$0 --help' for more information." >&5
18584 echo "$as_me: error: ambiguous option: $1
18585 Try \`$0 --help' for more information." >&2;}
18586    { (exit 1); exit 1; }; };;
18587   --help | --hel | -h )
18588     echo "$ac_cs_usage"; exit 0 ;;
18589   --debug | --d* | -d )
18590     debug=: ;;
18591   --file | --fil | --fi | --f )
18592     $ac_shift
18593     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18594     ac_need_defaults=false;;
18595   --header | --heade | --head | --hea )
18596     $ac_shift
18597     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18598     ac_need_defaults=false;;
18599   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18600   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18601     ac_cs_silent=: ;;
18602
18603   # This is an error.
18604   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18605 Try \`$0 --help' for more information." >&5
18606 echo "$as_me: error: unrecognized option: $1
18607 Try \`$0 --help' for more information." >&2;}
18608    { (exit 1); exit 1; }; } ;;
18609
18610   *) ac_config_targets="$ac_config_targets $1" ;;
18611
18612   esac
18613   shift
18614 done
18615
18616 ac_configure_extra_args=
18617
18618 if $ac_cs_silent; then
18619   exec 6>/dev/null
18620   ac_configure_extra_args="$ac_configure_extra_args --silent"
18621 fi
18622
18623 _ACEOF
18624 cat >>$CONFIG_STATUS <<_ACEOF
18625 if \$ac_cs_recheck; then
18626   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18627   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18628 fi
18629
18630 _ACEOF
18631
18632
18633
18634
18635
18636 cat >>$CONFIG_STATUS <<\_ACEOF
18637 for ac_config_target in $ac_config_targets
18638 do
18639   case "$ac_config_target" in
18640   # Handling of arguments.
18641   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18642   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18643   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18644   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18645   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18646   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18647   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18648   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18649   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18650   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18651   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18652   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18653   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18654   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18655   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18656   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18657   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18658   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18659   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18660   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18661   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18662   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18663   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18664   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18665   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18666   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18667   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18668   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18669   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18670   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18671   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18672   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18673   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18674   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18675   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18676   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18677   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18678   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18679   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18680   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18681   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18682   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18683   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18684   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18685   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18686   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18687   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18688   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18689   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18690   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18691   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18692   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18693   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18694   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18695   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18696   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18697   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18698   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18699   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18700   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18701   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18702   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18703   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18704   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18705   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18706   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18707   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18708   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18709   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18710   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18711   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18712   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18713   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18714   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18715   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18716   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18717   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18718   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18719   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18720   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18721   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18722   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18723   "src/win32/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/bacula-fd.conf" ;;
18724   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18725   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18726   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18727   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18728   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18729 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18730    { (exit 1); exit 1; }; };;
18731   esac
18732 done
18733
18734 # If the user did not use the arguments to specify the items to instantiate,
18735 # then the envvar interface is used.  Set only those that are not.
18736 # We use the long form for the default assignment because of an extremely
18737 # bizarre bug on SunOS 4.1.3.
18738 if $ac_need_defaults; then
18739   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18740   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18741   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18742 fi
18743
18744 # Have a temporary directory for convenience.  Make it in the build tree
18745 # simply because there is no reason to put it here, and in addition,
18746 # creating and moving files from /tmp can sometimes cause problems.
18747 # Create a temporary directory, and hook for its removal unless debugging.
18748 $debug ||
18749 {
18750   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18751   trap '{ (exit 1); exit 1; }' 1 2 13 15
18752 }
18753
18754 # Create a (secure) tmp directory for tmp files.
18755
18756 {
18757   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18758   test -n "$tmp" && test -d "$tmp"
18759 }  ||
18760 {
18761   tmp=./confstat$$-$RANDOM
18762   (umask 077 && mkdir $tmp)
18763 } ||
18764 {
18765    echo "$me: cannot create a temporary directory in ." >&2
18766    { (exit 1); exit 1; }
18767 }
18768
18769 _ACEOF
18770
18771 cat >>$CONFIG_STATUS <<_ACEOF
18772
18773 #
18774 # CONFIG_FILES section.
18775 #
18776
18777 # No need to generate the scripts if there are no CONFIG_FILES.
18778 # This happens for instance when ./config.status config.h
18779 if test -n "\$CONFIG_FILES"; then
18780   # Protect against being on the right side of a sed subst in config.status.
18781   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18782    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18783 s,@SHELL@,$SHELL,;t t
18784 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18785 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18786 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18787 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18788 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18789 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18790 s,@exec_prefix@,$exec_prefix,;t t
18791 s,@prefix@,$prefix,;t t
18792 s,@program_transform_name@,$program_transform_name,;t t
18793 s,@bindir@,$bindir,;t t
18794 s,@sbindir@,$sbindir,;t t
18795 s,@libexecdir@,$libexecdir,;t t
18796 s,@datadir@,$datadir,;t t
18797 s,@sysconfdir@,$sysconfdir,;t t
18798 s,@sharedstatedir@,$sharedstatedir,;t t
18799 s,@localstatedir@,$localstatedir,;t t
18800 s,@libdir@,$libdir,;t t
18801 s,@includedir@,$includedir,;t t
18802 s,@oldincludedir@,$oldincludedir,;t t
18803 s,@infodir@,$infodir,;t t
18804 s,@mandir@,$mandir,;t t
18805 s,@build_alias@,$build_alias,;t t
18806 s,@host_alias@,$host_alias,;t t
18807 s,@target_alias@,$target_alias,;t t
18808 s,@DEFS@,$DEFS,;t t
18809 s,@ECHO_C@,$ECHO_C,;t t
18810 s,@ECHO_N@,$ECHO_N,;t t
18811 s,@ECHO_T@,$ECHO_T,;t t
18812 s,@LIBS@,$LIBS,;t t
18813 s,@BUILD_DIR@,$BUILD_DIR,;t t
18814 s,@TRUEPRG@,$TRUEPRG,;t t
18815 s,@FALSEPRG@,$FALSEPRG,;t t
18816 s,@build@,$build,;t t
18817 s,@build_cpu@,$build_cpu,;t t
18818 s,@build_vendor@,$build_vendor,;t t
18819 s,@build_os@,$build_os,;t t
18820 s,@host@,$host,;t t
18821 s,@host_cpu@,$host_cpu,;t t
18822 s,@host_vendor@,$host_vendor,;t t
18823 s,@host_os@,$host_os,;t t
18824 s,@VERSION@,$VERSION,;t t
18825 s,@DATE@,$DATE,;t t
18826 s,@LSMDATE@,$LSMDATE,;t t
18827 s,@CC@,$CC,;t t
18828 s,@CFLAGS@,$CFLAGS,;t t
18829 s,@LDFLAGS@,$LDFLAGS,;t t
18830 s,@CPPFLAGS@,$CPPFLAGS,;t t
18831 s,@ac_ct_CC@,$ac_ct_CC,;t t
18832 s,@EXEEXT@,$EXEEXT,;t t
18833 s,@OBJEXT@,$OBJEXT,;t t
18834 s,@CXX@,$CXX,;t t
18835 s,@CXXFLAGS@,$CXXFLAGS,;t t
18836 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18837 s,@CPP@,$CPP,;t t
18838 s,@EGREP@,$EGREP,;t t
18839 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18840 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18841 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18842 s,@RANLIB@,$RANLIB,;t t
18843 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18844 s,@MV@,$MV,;t t
18845 s,@RM@,$RM,;t t
18846 s,@CP@,$CP,;t t
18847 s,@SED@,$SED,;t t
18848 s,@AWK@,$AWK,;t t
18849 s,@ECHO@,$ECHO,;t t
18850 s,@CMP@,$CMP,;t t
18851 s,@TBL@,$TBL,;t t
18852 s,@AR@,$AR,;t t
18853 s,@OPENSSL@,$OPENSSL,;t t
18854 s,@MTX@,$MTX,;t t
18855 s,@PKGCONFIG@,$PKGCONFIG,;t t
18856 s,@ARFLAGS@,$ARFLAGS,;t t
18857 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18858 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18859 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18860 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18861 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18862 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18863 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18864 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18865 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18866 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18867 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18868 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18869 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18870 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18871 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18872 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18873 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18874 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18875 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18876 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18877 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18878 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18879 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18880 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18881 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18882 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18883 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18884 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18885 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18886 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18887 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18888 s,@MSGFMT@,$MSGFMT,;t t
18889 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18890 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18891 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18892 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18893 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18894 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18895 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18896 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18897 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18898 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18899 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18900 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18901 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18902 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18903 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18904 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18905 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18906 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18907 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18908 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18909 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18910 s,@GNOME_DIR@,$GNOME_DIR,;t t
18911 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18912 s,@STATIC_FD@,$STATIC_FD,;t t
18913 s,@STATIC_SD@,$STATIC_SD,;t t
18914 s,@STATIC_DIR@,$STATIC_DIR,;t t
18915 s,@STATIC_CONS@,$STATIC_CONS,;t t
18916 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18917 s,@ALL_DIRS@,$ALL_DIRS,;t t
18918 s,@CONS_INC@,$CONS_INC,;t t
18919 s,@CONS_OBJ@,$CONS_OBJ,;t t
18920 s,@CONS_SRC@,$CONS_SRC,;t t
18921 s,@CONS_LIBS@,$CONS_LIBS,;t t
18922 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18923 s,@READLINE_SRC@,$READLINE_SRC,;t t
18924 s,@working_dir@,$working_dir,;t t
18925 s,@scriptdir@,$scriptdir,;t t
18926 s,@dump_email@,$dump_email,;t t
18927 s,@job_email@,$job_email,;t t
18928 s,@smtp_host@,$smtp_host,;t t
18929 s,@piddir@,$piddir,;t t
18930 s,@subsysdir@,$subsysdir,;t t
18931 s,@baseport@,$baseport,;t t
18932 s,@dir_port@,$dir_port,;t t
18933 s,@fd_port@,$fd_port,;t t
18934 s,@sd_port@,$sd_port,;t t
18935 s,@dir_password@,$dir_password,;t t
18936 s,@fd_password@,$fd_password,;t t
18937 s,@sd_password@,$sd_password,;t t
18938 s,@dir_user@,$dir_user,;t t
18939 s,@dir_group@,$dir_group,;t t
18940 s,@sd_user@,$sd_user,;t t
18941 s,@sd_group@,$sd_group,;t t
18942 s,@fd_user@,$fd_user,;t t
18943 s,@fd_group@,$fd_group,;t t
18944 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18945 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18946 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18947 s,@cats@,$cats,;t t
18948 s,@DB_NAME@,$DB_NAME,;t t
18949 s,@GETCONF@,$GETCONF,;t t
18950 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18951 s,@X_CFLAGS@,$X_CFLAGS,;t t
18952 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18953 s,@X_LIBS@,$X_LIBS,;t t
18954 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18955 s,@LIBOBJS@,$LIBOBJS,;t t
18956 s,@ALLOCA@,$ALLOCA,;t t
18957 s,@FDLIBS@,$FDLIBS,;t t
18958 s,@DEBUG@,$DEBUG,;t t
18959 s,@DINCLUDE@,$DINCLUDE,;t t
18960 s,@DLIB@,$DLIB,;t t
18961 s,@DB_LIBS@,$DB_LIBS,;t t
18962 s,@WCFLAGS@,$WCFLAGS,;t t
18963 s,@WLDFLAGS@,$WLDFLAGS,;t t
18964 s,@OBJLIST@,$OBJLIST,;t t
18965 s,@hostname@,$hostname,;t t
18966 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18967 s,@PSCMD@,$PSCMD,;t t
18968 s,@WIN32@,$WIN32,;t t
18969 s,@DISTNAME@,$DISTNAME,;t t
18970 s,@DISTVER@,$DISTVER,;t t
18971 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18972 /@MCOMMON@/r $MCOMMON
18973 s,@MCOMMON@,,;t t
18974 CEOF
18975
18976 _ACEOF
18977
18978   cat >>$CONFIG_STATUS <<\_ACEOF
18979   # Split the substitutions into bite-sized pieces for seds with
18980   # small command number limits, like on Digital OSF/1 and HP-UX.
18981   ac_max_sed_lines=48
18982   ac_sed_frag=1 # Number of current file.
18983   ac_beg=1 # First line for current file.
18984   ac_end=$ac_max_sed_lines # Line after last line for current file.
18985   ac_more_lines=:
18986   ac_sed_cmds=
18987   while $ac_more_lines; do
18988     if test $ac_beg -gt 1; then
18989       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18990     else
18991       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18992     fi
18993     if test ! -s $tmp/subs.frag; then
18994       ac_more_lines=false
18995     else
18996       # The purpose of the label and of the branching condition is to
18997       # speed up the sed processing (if there are no `@' at all, there
18998       # is no need to browse any of the substitutions).
18999       # These are the two extra sed commands mentioned above.
19000       (echo ':t
19001   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19002       if test -z "$ac_sed_cmds"; then
19003         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19004       else
19005         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19006       fi
19007       ac_sed_frag=`expr $ac_sed_frag + 1`
19008       ac_beg=$ac_end
19009       ac_end=`expr $ac_end + $ac_max_sed_lines`
19010     fi
19011   done
19012   if test -z "$ac_sed_cmds"; then
19013     ac_sed_cmds=cat
19014   fi
19015 fi # test -n "$CONFIG_FILES"
19016
19017 _ACEOF
19018 cat >>$CONFIG_STATUS <<\_ACEOF
19019 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19020   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19021   case $ac_file in
19022   - | *:- | *:-:* ) # input from stdin
19023         cat >$tmp/stdin
19024         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19025         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19026   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19027         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19028   * )   ac_file_in=$ac_file.in ;;
19029   esac
19030
19031   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19032   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034          X"$ac_file" : 'X\(//\)[^/]' \| \
19035          X"$ac_file" : 'X\(//\)$' \| \
19036          X"$ac_file" : 'X\(/\)' \| \
19037          .     : '\(.\)' 2>/dev/null ||
19038 echo X"$ac_file" |
19039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19040           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19041           /^X\(\/\/\)$/{ s//\1/; q; }
19042           /^X\(\/\).*/{ s//\1/; q; }
19043           s/.*/./; q'`
19044   { if $as_mkdir_p; then
19045     mkdir -p "$ac_dir"
19046   else
19047     as_dir="$ac_dir"
19048     as_dirs=
19049     while test ! -d "$as_dir"; do
19050       as_dirs="$as_dir $as_dirs"
19051       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19053          X"$as_dir" : 'X\(//\)[^/]' \| \
19054          X"$as_dir" : 'X\(//\)$' \| \
19055          X"$as_dir" : 'X\(/\)' \| \
19056          .     : '\(.\)' 2>/dev/null ||
19057 echo X"$as_dir" |
19058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19060           /^X\(\/\/\)$/{ s//\1/; q; }
19061           /^X\(\/\).*/{ s//\1/; q; }
19062           s/.*/./; q'`
19063     done
19064     test ! -n "$as_dirs" || mkdir $as_dirs
19065   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19067    { (exit 1); exit 1; }; }; }
19068
19069   ac_builddir=.
19070
19071 if test "$ac_dir" != .; then
19072   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19073   # A "../" for each directory in $ac_dir_suffix.
19074   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19075 else
19076   ac_dir_suffix= ac_top_builddir=
19077 fi
19078
19079 case $srcdir in
19080   .)  # No --srcdir option.  We are building in place.
19081     ac_srcdir=.
19082     if test -z "$ac_top_builddir"; then
19083        ac_top_srcdir=.
19084     else
19085        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19086     fi ;;
19087   [\\/]* | ?:[\\/]* )  # Absolute path.
19088     ac_srcdir=$srcdir$ac_dir_suffix;
19089     ac_top_srcdir=$srcdir ;;
19090   *) # Relative path.
19091     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19092     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19093 esac
19094 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19095 # absolute.
19096 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19097 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19098 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19099 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19100
19101
19102   case $INSTALL in
19103   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19104   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19105   esac
19106
19107   if test x"$ac_file" != x-; then
19108     { echo "$as_me:$LINENO: creating $ac_file" >&5
19109 echo "$as_me: creating $ac_file" >&6;}
19110     rm -f "$ac_file"
19111   fi
19112   # Let's still pretend it is `configure' which instantiates (i.e., don't
19113   # use $as_me), people would be surprised to read:
19114   #    /* config.h.  Generated by config.status.  */
19115   if test x"$ac_file" = x-; then
19116     configure_input=
19117   else
19118     configure_input="$ac_file.  "
19119   fi
19120   configure_input=$configure_input"Generated from `echo $ac_file_in |
19121                                      sed 's,.*/,,'` by configure."
19122
19123   # First look for the input files in the build tree, otherwise in the
19124   # src tree.
19125   ac_file_inputs=`IFS=:
19126     for f in $ac_file_in; do
19127       case $f in
19128       -) echo $tmp/stdin ;;
19129       [\\/$]*)
19130          # Absolute (can't be DOS-style, as IFS=:)
19131          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19132 echo "$as_me: error: cannot find input file: $f" >&2;}
19133    { (exit 1); exit 1; }; }
19134          echo $f;;
19135       *) # Relative
19136          if test -f "$f"; then
19137            # Build tree
19138            echo $f
19139          elif test -f "$srcdir/$f"; then
19140            # Source tree
19141            echo $srcdir/$f
19142          else
19143            # /dev/null tree
19144            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19145 echo "$as_me: error: cannot find input file: $f" >&2;}
19146    { (exit 1); exit 1; }; }
19147          fi;;
19148       esac
19149     done` || { (exit 1); exit 1; }
19150 _ACEOF
19151 cat >>$CONFIG_STATUS <<_ACEOF
19152   sed "$ac_vpsub
19153 $extrasub
19154 _ACEOF
19155 cat >>$CONFIG_STATUS <<\_ACEOF
19156 :t
19157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19158 s,@configure_input@,$configure_input,;t t
19159 s,@srcdir@,$ac_srcdir,;t t
19160 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19161 s,@top_srcdir@,$ac_top_srcdir,;t t
19162 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19163 s,@builddir@,$ac_builddir,;t t
19164 s,@abs_builddir@,$ac_abs_builddir,;t t
19165 s,@top_builddir@,$ac_top_builddir,;t t
19166 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19167 s,@INSTALL@,$ac_INSTALL,;t t
19168 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19169   rm -f $tmp/stdin
19170   if test x"$ac_file" != x-; then
19171     mv $tmp/out $ac_file
19172   else
19173     cat $tmp/out
19174     rm -f $tmp/out
19175   fi
19176
19177 done
19178 _ACEOF
19179 cat >>$CONFIG_STATUS <<\_ACEOF
19180
19181 #
19182 # CONFIG_HEADER section.
19183 #
19184
19185 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19186 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19187 #
19188 # ac_d sets the value in "#define NAME VALUE" lines.
19189 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19190 ac_dB='[        ].*$,\1#\2'
19191 ac_dC=' '
19192 ac_dD=',;t'
19193 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19194 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19195 ac_uB='$,\1#\2define\3'
19196 ac_uC=' '
19197 ac_uD=',;t'
19198
19199 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19200   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19201   case $ac_file in
19202   - | *:- | *:-:* ) # input from stdin
19203         cat >$tmp/stdin
19204         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19205         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19206   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19207         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19208   * )   ac_file_in=$ac_file.in ;;
19209   esac
19210
19211   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19212 echo "$as_me: creating $ac_file" >&6;}
19213
19214   # First look for the input files in the build tree, otherwise in the
19215   # src tree.
19216   ac_file_inputs=`IFS=:
19217     for f in $ac_file_in; do
19218       case $f in
19219       -) echo $tmp/stdin ;;
19220       [\\/$]*)
19221          # Absolute (can't be DOS-style, as IFS=:)
19222          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19223 echo "$as_me: error: cannot find input file: $f" >&2;}
19224    { (exit 1); exit 1; }; }
19225          echo $f;;
19226       *) # Relative
19227          if test -f "$f"; then
19228            # Build tree
19229            echo $f
19230          elif test -f "$srcdir/$f"; then
19231            # Source tree
19232            echo $srcdir/$f
19233          else
19234            # /dev/null tree
19235            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19236 echo "$as_me: error: cannot find input file: $f" >&2;}
19237    { (exit 1); exit 1; }; }
19238          fi;;
19239       esac
19240     done` || { (exit 1); exit 1; }
19241   # Remove the trailing spaces.
19242   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19243
19244 _ACEOF
19245
19246 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19247 # `conftest.undefs', that substitutes the proper values into
19248 # config.h.in to produce config.h.  The first handles `#define'
19249 # templates, and the second `#undef' templates.
19250 # And first: Protect against being on the right side of a sed subst in
19251 # config.status.  Protect against being in an unquoted here document
19252 # in config.status.
19253 rm -f conftest.defines conftest.undefs
19254 # Using a here document instead of a string reduces the quoting nightmare.
19255 # Putting comments in sed scripts is not portable.
19256 #
19257 # `end' is used to avoid that the second main sed command (meant for
19258 # 0-ary CPP macros) applies to n-ary macro definitions.
19259 # See the Autoconf documentation for `clear'.
19260 cat >confdef2sed.sed <<\_ACEOF
19261 s/[\\&,]/\\&/g
19262 s,[\\$`],\\&,g
19263 t clear
19264 : clear
19265 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19266 t end
19267 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19268 : end
19269 _ACEOF
19270 # If some macros were called several times there might be several times
19271 # the same #defines, which is useless.  Nevertheless, we may not want to
19272 # sort them, since we want the *last* AC-DEFINE to be honored.
19273 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19274 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19275 rm -f confdef2sed.sed
19276
19277 # This sed command replaces #undef with comments.  This is necessary, for
19278 # example, in the case of _POSIX_SOURCE, which is predefined and required
19279 # on some systems where configure will not decide to define it.
19280 cat >>conftest.undefs <<\_ACEOF
19281 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19282 _ACEOF
19283
19284 # Break up conftest.defines because some shells have a limit on the size
19285 # of here documents, and old seds have small limits too (100 cmds).
19286 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19287 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19288 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19289 echo '  :' >>$CONFIG_STATUS
19290 rm -f conftest.tail
19291 while grep . conftest.defines >/dev/null
19292 do
19293   # Write a limited-size here document to $tmp/defines.sed.
19294   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19295   # Speed up: don't consider the non `#define' lines.
19296   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19297   # Work around the forget-to-reset-the-flag bug.
19298   echo 't clr' >>$CONFIG_STATUS
19299   echo ': clr' >>$CONFIG_STATUS
19300   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19301   echo 'CEOF
19302   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19303   rm -f $tmp/in
19304   mv $tmp/out $tmp/in
19305 ' >>$CONFIG_STATUS
19306   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19307   rm -f conftest.defines
19308   mv conftest.tail conftest.defines
19309 done
19310 rm -f conftest.defines
19311 echo '  fi # grep' >>$CONFIG_STATUS
19312 echo >>$CONFIG_STATUS
19313
19314 # Break up conftest.undefs because some shells have a limit on the size
19315 # of here documents, and old seds have small limits too (100 cmds).
19316 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19317 rm -f conftest.tail
19318 while grep . conftest.undefs >/dev/null
19319 do
19320   # Write a limited-size here document to $tmp/undefs.sed.
19321   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19322   # Speed up: don't consider the non `#undef'
19323   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19324   # Work around the forget-to-reset-the-flag bug.
19325   echo 't clr' >>$CONFIG_STATUS
19326   echo ': clr' >>$CONFIG_STATUS
19327   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19328   echo 'CEOF
19329   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19330   rm -f $tmp/in
19331   mv $tmp/out $tmp/in
19332 ' >>$CONFIG_STATUS
19333   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19334   rm -f conftest.undefs
19335   mv conftest.tail conftest.undefs
19336 done
19337 rm -f conftest.undefs
19338
19339 cat >>$CONFIG_STATUS <<\_ACEOF
19340   # Let's still pretend it is `configure' which instantiates (i.e., don't
19341   # use $as_me), people would be surprised to read:
19342   #    /* config.h.  Generated by config.status.  */
19343   if test x"$ac_file" = x-; then
19344     echo "/* Generated by configure.  */" >$tmp/config.h
19345   else
19346     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19347   fi
19348   cat $tmp/in >>$tmp/config.h
19349   rm -f $tmp/in
19350   if test x"$ac_file" != x-; then
19351     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19352       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19353 echo "$as_me: $ac_file is unchanged" >&6;}
19354     else
19355       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19357          X"$ac_file" : 'X\(//\)[^/]' \| \
19358          X"$ac_file" : 'X\(//\)$' \| \
19359          X"$ac_file" : 'X\(/\)' \| \
19360          .     : '\(.\)' 2>/dev/null ||
19361 echo X"$ac_file" |
19362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19363           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19364           /^X\(\/\/\)$/{ s//\1/; q; }
19365           /^X\(\/\).*/{ s//\1/; q; }
19366           s/.*/./; q'`
19367       { if $as_mkdir_p; then
19368     mkdir -p "$ac_dir"
19369   else
19370     as_dir="$ac_dir"
19371     as_dirs=
19372     while test ! -d "$as_dir"; do
19373       as_dirs="$as_dir $as_dirs"
19374       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19376          X"$as_dir" : 'X\(//\)[^/]' \| \
19377          X"$as_dir" : 'X\(//\)$' \| \
19378          X"$as_dir" : 'X\(/\)' \| \
19379          .     : '\(.\)' 2>/dev/null ||
19380 echo X"$as_dir" |
19381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19383           /^X\(\/\/\)$/{ s//\1/; q; }
19384           /^X\(\/\).*/{ s//\1/; q; }
19385           s/.*/./; q'`
19386     done
19387     test ! -n "$as_dirs" || mkdir $as_dirs
19388   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19390    { (exit 1); exit 1; }; }; }
19391
19392       rm -f $ac_file
19393       mv $tmp/config.h $ac_file
19394     fi
19395   else
19396     cat $tmp/config.h
19397     rm -f $tmp/config.h
19398   fi
19399 done
19400 _ACEOF
19401 cat >>$CONFIG_STATUS <<\_ACEOF
19402
19403 #
19404 # CONFIG_COMMANDS section.
19405 #
19406 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19407   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19408   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19409   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19410 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19411          X"$ac_dest" : 'X\(//\)[^/]' \| \
19412          X"$ac_dest" : 'X\(//\)$' \| \
19413          X"$ac_dest" : 'X\(/\)' \| \
19414          .     : '\(.\)' 2>/dev/null ||
19415 echo X"$ac_dest" |
19416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19417           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19418           /^X\(\/\/\)$/{ s//\1/; q; }
19419           /^X\(\/\).*/{ s//\1/; q; }
19420           s/.*/./; q'`
19421   ac_builddir=.
19422
19423 if test "$ac_dir" != .; then
19424   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19425   # A "../" for each directory in $ac_dir_suffix.
19426   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19427 else
19428   ac_dir_suffix= ac_top_builddir=
19429 fi
19430
19431 case $srcdir in
19432   .)  # No --srcdir option.  We are building in place.
19433     ac_srcdir=.
19434     if test -z "$ac_top_builddir"; then
19435        ac_top_srcdir=.
19436     else
19437        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19438     fi ;;
19439   [\\/]* | ?:[\\/]* )  # Absolute path.
19440     ac_srcdir=$srcdir$ac_dir_suffix;
19441     ac_top_srcdir=$srcdir ;;
19442   *) # Relative path.
19443     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19444     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19445 esac
19446 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19447 # absolute.
19448 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19449 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19450 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19451 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19452
19453
19454   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19455 echo "$as_me: executing $ac_dest commands" >&6;}
19456   case $ac_dest in
19457     default ) (echo "Doing make of dependencies"; make depend;)
19458  ;;
19459   esac
19460 done
19461 _ACEOF
19462
19463 cat >>$CONFIG_STATUS <<\_ACEOF
19464
19465 { (exit 0); exit 0; }
19466 _ACEOF
19467 chmod +x $CONFIG_STATUS
19468 ac_clean_files=$ac_clean_files_save
19469
19470
19471 # configure is writing to config.log, and then calls config.status.
19472 # config.status does its own redirection, appending to config.log.
19473 # Unfortunately, on DOS this fails, as config.log is still kept open
19474 # by configure, so config.status won't be able to write to it; its
19475 # output is simply discarded.  So we exec the FD to /dev/null,
19476 # effectively closing config.log, so it can be properly (re)opened and
19477 # appended to by config.status.  When coming back to configure, we
19478 # need to make the FD available again.
19479 if test "$no_create" != yes; then
19480   ac_cs_success=:
19481   ac_config_status_args=
19482   test "$silent" = yes &&
19483     ac_config_status_args="$ac_config_status_args --quiet"
19484   exec 5>/dev/null
19485   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19486   exec 5>>config.log
19487   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19488   # would make configure fail if this is the last instruction.
19489   $ac_cs_success || { (exit 1); exit 1; }
19490 fi
19491
19492
19493 cd scripts
19494 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19495 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19496 cd ..
19497
19498 c=src/cats
19499
19500 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19501 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19502
19503 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19504 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19505
19506 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19507 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19508
19509 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19510 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19511
19512 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19513 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19514
19515 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19516 chmod 755 $c/sqlite
19517 chmod 755 $c/mysql
19518
19519 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19520    largefile_support="yes"
19521 fi
19522
19523 #
19524 # A whole lot of hand springs to get the compiler version.
19525 #  This is because gcc changed the output in version 3.0
19526 #
19527 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19528 if test "x${CCVERSION}" = "x" ; then
19529   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19530 fi
19531 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19532 if test x"${CXXVERSION}" = x ; then
19533   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19534 fi
19535
19536 if test "x${subsysdir}" = "x${sbindir}" ; then
19537    echo " "
19538    echo " "
19539    echo "You have set --sbindir and --with-subsys-dir"
19540    echo "  both equal to: ${subsysdir} "
19541    echo "  This is not permitted. Please reconfigure."
19542    echo "Aborting configuration ..."
19543    echo " "
19544    echo " "
19545    exit 1
19546 fi
19547
19548 echo "
19549 Configuration on `date`:
19550
19551   Host:                       $host -- ${DISTNAME} ${DISTVER}
19552   Bacula version:             ${VERSION} (${DATE})
19553   Source code location:       ${srcdir}
19554   Install binaries:           ${sbindir}
19555   Install config files:       ${sysconfdir}
19556   Scripts directory:          ${scriptdir}
19557   Working directory:          ${working_dir}
19558   PID directory:              ${piddir}
19559   Subsys directory:           ${subsysdir}
19560   C Compiler:                 ${CC} ${CCVERSION}
19561   C++ Compiler:               ${CXX} ${CXXVERSION}
19562   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19563   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19564   Libraries:                  ${LIBS}
19565   Statically Linked Tools:    ${support_static_tools}
19566   Statically Linked FD:       ${support_static_fd}
19567   Statically Linked SD:       ${support_static_sd}
19568   Statically Linked DIR:      ${support_static_dir}
19569   Statically Linked CONS:     ${support_static_cons}
19570   Database type:              ${db_name}
19571   Database lib:               ${DB_LIBS}
19572
19573   Job Output Email:           ${job_email}
19574   Traceback Email:            ${dump_email}
19575   SMTP Host Address:          ${smtp_host}
19576
19577   Director Port:              ${dir_port}
19578   File daemon Port:           ${fd_port}
19579   Storage daemon Port:        ${sd_port}
19580
19581   Director User:              ${dir_user}
19582   Director Group:             ${dir_group}
19583   Storage Daemon User:        ${sd_user}
19584   Storage DaemonGroup:        ${sd_group}
19585   File Daemon User:           ${fd_user}
19586   File Daemon Group:          ${fd_group}
19587
19588   SQL binaries Directory      ${SQL_BINDIR}
19589
19590   Large file support:         $largefile_support
19591   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19592   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19593   TCP Wrappers support:       ${TCPW_MSG}
19594   ZLIB support:               ${have_zlib}
19595   enable-smartalloc:          ${support_smartalloc}
19596   enable-gnome:               ${support_gnome} ${gnome_version}
19597   client-only:                ${build_client_only}
19598
19599   " > config.out
19600
19601 cat config.out
19602
19603 # old stuff
19604 # cweb support:               ${got_cweb} ${CWEB_SRC}
19605 # gmp support:                ${got_gmp} ${GMP_SRC}